/* ==========================================================================
   Case study pages (work/*.html)
   One project, its evidence, and the reasoning behind each decision.
   Loaded after styles.css — reuses its tokens, .ba slider, .band and .reveal.
   ========================================================================== */

/* ---------- Case bar: back link + persistent "what changed & why" ---------- */

.casebar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
}
.casebar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  padding-block: 0.5rem;
}
.casebar__back {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  white-space: nowrap;
}
.casebar__back:hover { opacity: 1; }
.casebar__label {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.6);
}
.casebar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(250, 246, 240, 0.28);
  background: rgba(250, 246, 240, 0.08);
  color: var(--paper);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.casebar__btn:hover {
  background: rgba(250, 246, 240, 0.16);
  border-color: rgba(250, 246, 240, 0.5);
}
.casebar__btn-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}
@media (max-width: 46rem) {
  .casebar__label { display: none; }
  .casebar__inner { justify-content: space-between; }
}
@media (max-width: 30rem) {
  .casebar__btn { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
}

/* ---------- Case hero ---------- */

.chero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.chero__title {
  font-size: var(--size-hero);
  margin-bottom: 0.35em;
}
.chero__title em { font-style: italic; color: var(--clay-deep); }
.chero__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.cshow { padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Receipts row ---------- */

.receipts {
  padding-bottom: var(--space-section);
  scroll-margin-top: 5rem;
}
.receipts__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 56rem) {
  .receipts__grid { grid-template-columns: repeat(4, 1fr); }
}
.receipts__item {
  background: var(--white);
  padding: 1.6rem 1.4rem;
}
.receipts__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--clay-deep);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.receipts__unit { font-size: 0.55em; }
.receipts__item p {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.receipts__note {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Findings: prose + infographic, alternating ---------- */

.broke__list {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}
.finding {
  display: grid;
  gap: 2rem;
  align-items: center;
  scroll-margin-top: 5rem;
}
@media (min-width: 56rem) {
  .finding { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
  /* mirror the columns too, so the infographic keeps one width down the page */
  .finding--flip { grid-template-columns: 0.95fr 1.05fr; }
  .finding--flip .finding__body { order: 2; }
}
.finding__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 0.7rem;
}
.finding__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.15;
  margin-bottom: 0.7em;
}
.finding__body p { color: var(--ink-soft); }
.finding__plain { font-size: 1.05rem; }
.finding__body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--paper-tint);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: var(--ink);
  word-break: break-word;
}
.finding__punch {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--clay);
  color: var(--ink) !important;
  font-weight: 500;
}
/* The answer, right under the problem — nobody should have to scroll for it. */
.finding__fix {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--ink) !important;
  font-weight: 500;
}
.finding__fix-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--clay-deep);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
}
.finding__viz {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.5rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.finding__viz svg { width: 100%; height: auto; display: block; }
/* the charts scale with their box, so on a phone the padding is coming
   straight out of the label size — give the drawing the room instead */
@media (max-width: 30rem) {
  .finding__viz { padding: 1.15rem 0.85rem 1rem; }
}
.finding__viz figcaption {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
/* Illustration variant: the picture is the card, so it gets no inner padding. */
.finding__viz--art { padding: 0; overflow: hidden; }
.finding__viz--art img { width: 100%; }
@media (max-width: 30rem) {
  .finding__viz--art { padding: 0; }
}

/* ---------- Annotated screenshot ---------- */

.did {
  padding-block: var(--space-section);
  scroll-margin-top: 5rem;
}
.annot { display: grid; gap: 2rem; }
@media (min-width: 62rem) {
  .annot { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; }
}
/* The frame lives on the image, not the stage, so a pin sitting near an edge
   overhangs it instead of being clipped in half. */
.annot__stage {
  position: relative;
  align-self: start;
}
.annot__stage img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.annot__pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--clay-deep);
  color: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 10px rgba(34, 29, 24, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}
.annot__pin:hover { transform: translate(-50%, -50%) scale(1.15); }
.annot__pin.is-active {
  background: var(--ink);
  transform: translate(-50%, -50%) scale(1.15);
}
/* the halo exists only to say "these are tappable" — it stops once one is picked */
@media (prefers-reduced-motion: no-preference) {
  .annot__pin::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--clay);
    opacity: 0;
    animation: pin-halo 2.8s ease-out infinite;
  }
  .annot__pin:nth-of-type(2)::after { animation-delay: 0.35s; }
  .annot__pin:nth-of-type(3)::after { animation-delay: 0.7s; }
  .annot__pin:nth-of-type(4)::after { animation-delay: 1.05s; }
  .annot__pin:nth-of-type(5)::after { animation-delay: 1.4s; }
  .annot.is-picked .annot__pin::after { animation: none; opacity: 0; }
}
@keyframes pin-halo {
  0%   { opacity: 0.9; transform: scale(0.85); }
  70%  { opacity: 0;   transform: scale(1.5); }
  100% { opacity: 0;   transform: scale(1.5); }
}
.annot__notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.annot__note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  scroll-margin-top: 5rem;
  transition: border-left-color 0.2s ease, background 0.2s ease;
}
.annot__note.is-active {
  border-left-color: var(--clay);
  background: var(--paper-tint);
}
.annot__note h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  margin-bottom: 0.4em;
}
.annot__n {
  flex: none;
  width: 1.55rem; height: 1.55rem;
  border-radius: 50%;
  background: var(--clay-deep);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.annot__note p {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Accessibility section ---------- */

.access { scroll-margin-top: 5rem; }
.access__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) {
  .access__grid { grid-template-columns: 1fr 22rem; gap: 3.5rem; }
}
.access__body p { color: var(--ink-soft); }
.access__punch {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--clay);
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 1.05rem;
}
.access__note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: 1.1rem;
  max-width: 44rem;
}

/* A still of the real accessibility panel. Presented as an image, so none of
   these look-alike controls are focusable or announced to a screen reader. */
.access__panel { margin: 0; }
.panelmock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.panelmock__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35em;
}
.panelmock__intro {
  margin: 0 0 1.3rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.panelmock__label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.panelmock__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}
.panelmock__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
}
.panelmock__btn.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.panelmock__a { font-weight: 700; line-height: 1; }
.panelmock__a--sm { font-size: 0.72rem; }
.panelmock__a--md { font-size: 0.92rem; }
.panelmock__a--lg { font-size: 1.12rem; }
.panelmock__sw {
  width: 2.6rem; height: 2.1rem;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--sw);
}
.panelmock__sw.is-on { border-color: var(--ink); border-width: 2.5px; }
.panelmock__reset {
  display: block;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.access__panel figcaption {
  margin-top: 0.95rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Backstage: screenshots + the two routes ---------- */

.backstage {
  padding-block: var(--space-section);
  scroll-margin-top: 5rem;
}
.shot-fig {
  margin: 0 0 2.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 62rem) {
  .shot-fig { grid-template-columns: 1.55fr 1fr; gap: 2.25rem; align-items: center; }
}
.shot-fig img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.shot-fig figcaption {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.shot-fig figcaption strong { color: var(--ink); display: block; margin-bottom: 0.35em; }

.routes {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 48rem) {
  .routes { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
.route {
  border-radius: var(--radius-card);
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--line);
}
.route--before { background: var(--paper-tint); }
.route--after { background: var(--white); border-color: var(--clay); }
.route__head {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.route--after .route__head { color: var(--clay-deep); }
.route__steps {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
}
.route--after .route__steps { color: var(--ink); font-weight: 500; }
.route__steps li::marker { color: var(--clay-deep); font-weight: 700; }
.route__punch {
  margin: 1.3rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Where the money goes ---------- */

.money { scroll-margin-top: 5rem; }
/* The illustration carries the idea; the bars underneath carry the figures. */
.money__art {
  margin: 0 0 2rem;
  max-width: 46rem;
}
.money__art img {
  width: 100%;
  border-radius: var(--radius-card);
}
.money__viz {
  margin: 0 0 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.8rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.mbar + .mbar {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.mbar__head {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 700;
}
.mbar__sub {
  margin: 0 0 0.7rem;
  font-size: 0.925rem;
  color: var(--ink-soft);
}
.mbar__sub strong { color: var(--ink); }
.mbar__track {
  display: flex;
  gap: 3px;
  height: 3.4rem;
}
.mbar__seg {
  flex: 0 0 var(--pct);
  border-radius: 5px;
  display: flex;
  align-items: center;
  min-width: 0;
}
.mbar__seg--keep {
  background: var(--clay-deep);
  padding-inline: 1rem;
}
.mbar__seg--keep span {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  white-space: nowrap;
}
.mbar__seg--cut { background: var(--ink); }
.mbar__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  font-size: 0.925rem;
  color: var(--ink-soft);
}
.mbar__foot strong { color: var(--ink); }
.mbar__key {
  flex: none;
  width: 0.85rem; height: 0.85rem;
  border-radius: 3px;
  background: var(--ink);
}
.money__viz figcaption {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 30rem) {
  .money__viz { padding: 1.1rem 0.9rem 1rem; }
}
.money__take { max-width: 44rem; margin-bottom: 2rem; }
.money__big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 0.5em;
}
.money__big strong { color: var(--clay-deep); font-weight: 400; }
.money__take p { color: var(--ink-soft); }
.money__take p strong { color: var(--ink); }

.caveat {
  max-width: 44rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}
.caveat__head {
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.caveat p:last-child { margin-bottom: 0; }
.caveat p { color: var(--ink-soft); font-size: 0.975rem; }

/* ---------- The platform-fee risk ---------- */

.risk {
  padding-block: var(--space-section);
  scroll-margin-top: 5rem;
}
.risk .prose { color: var(--ink-soft); font-size: 1.05rem; }
.risk .prose strong { color: var(--ink); }
.risk__src {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Fixes + method ---------- */

.fixes { scroll-margin-top: 5rem; }
.fixes__honest {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: 1.1rem;
}
.method {
  padding-block: var(--space-section);
  scroll-margin-top: 5rem;
}
.method .prose { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Flash target (the drawer's "Show me") ---------- */

@keyframes case-flash {
  0%   { box-shadow: 0 0 0 0 rgba(196, 80, 42, 0); }
  25%  { box-shadow: 0 0 0 8px rgba(196, 80, 42, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(196, 80, 42, 0); }
}
.is-flashing {
  border-radius: var(--radius-card);
  animation: case-flash 1.7s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .is-flashing { animation: none; outline: 3px solid var(--clay); outline-offset: 8px; }
}

/* ---------- Next / CTA ---------- */

.casenext {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.casenext__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--paper-tint);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
@media (min-width: 52rem) {
  .casenext__inner { grid-template-columns: 1fr auto; gap: 2.5rem; }
}
.casenext__title { margin-bottom: 0.25em; }
.casenext__sub { margin: 0; color: var(--ink-soft); }
.casenext__inner .btn { justify-self: start; }
.casenext__back { margin: 1.75rem 0 0; }

/* ---------- "What changed & why" — floating button + drawer ---------- */

.notes-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 24px -6px rgba(34, 29, 24, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.notes-fab:hover { background: #3A322A; transform: translateY(-2px); }
.notes-fab__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .notes-fab__dot { animation: pulse-dot 2.4s ease-in-out infinite; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.75); }
}
/* below this width the sticky case bar already carries the same control */
@media (max-width: 46rem) {
  .notes-fab { display: none; }
}

.notes-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(34, 29, 24, 0.45);
}

.notes {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(30rem, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -12px 0 40px -12px rgba(34, 29, 24, 0.45);
  transform: translateX(101%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  visibility: hidden;
}
.notes.is-open { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .notes { transition: none; }
}
.notes__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  flex: none;
}
.notes__head h2 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.2em;
  color: var(--paper);
}
.notes__head p { margin: 0; font-size: 0.85rem; color: rgba(250, 246, 240, 0.7); }
.notes__close {
  margin-left: auto;
  flex: none;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: none;
  background: rgba(250, 246, 240, 0.15);
  color: var(--paper);
  font-size: 0.95rem;
  cursor: pointer;
}
.notes__close:hover { background: rgba(250, 246, 240, 0.3); }
.notes__list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 2.5rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
}
.note h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45em;
}
.note__n {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--clay-deep);
  color: var(--white);
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}
.note p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.note__go {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--clay-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.note__go:hover { background: var(--paper-tint); border-color: var(--clay); }

/* Without JS the drawer is simply the last section of the document. */
html:not(.js) .notes {
  position: static;
  width: auto;
  height: auto;
  transform: none;
  visibility: visible;
  box-shadow: none;
  border-top: 1px solid var(--line);
}
html:not(.js) .notes-fab,
html:not(.js) .casebar__btn,
html:not(.js) .note__go,
html:not(.js) .notes__close { display: none; }
