/* ───────────────────────────────────────────────────────────────────────────
   Character meal pages (ab-), card 873. One idea: every restaurant is a
   character autograph book. Cream paper pages on the night-indigo site, ink
   signatures for the characters Disney names, pencil for the ones guests
   report, a bookplate and price ledger on the inside cover, ribbon tabs for
   meals, and the park's own data pasted in as the back pages.
   _LayoutV1 loads v1.css, so every token below aliases a v1 name with a
   fallback.
   ─────────────────────────────────────────────────────────────────────────── */

.ab {
  --ab-night:  var(--bg, oklch(21% 0.046 280));
  --ab-panel:  var(--surface, oklch(27% 0.050 279));
  --ab-ink:    var(--ink, oklch(93% 0.030 84));
  --ab-mute:   var(--ink-2, oklch(82% 0.030 84));
  --ab-gold:   var(--brand, oklch(84% 0.130 86));
  --ab-gold-d: oklch(62% 0.120 78);
  --ab-paper:  oklch(95.5% 0.022 88);
  --ab-paper-2: oklch(92% 0.028 84);
  --ab-paper-edge: oklch(84% 0.035 80);
  --ab-pen:    oklch(28% 0.045 270);           /* body text on paper */
  --ab-pen-2:  oklch(42% 0.040 270);
  --ab-rule:   oklch(80% 0.040 250 / 0.55);    /* faint ledger lines */
  --ab-calm:   oklch(72% 0.120 152);
  --ab-mid:    oklch(80% 0.130 84);
  --ab-busy:   oklch(66% 0.170 25);
  --ab-serif:  "Fraunces", "Libre Caslon Display", Georgia, serif;
  --ab-sans:   var(--ui, "Hanken Grotesk", system-ui, sans-serif);
  --ab-hand:   "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --ab-r:      var(--r-sm, 9px);

  color: var(--ab-ink);
  font-family: var(--ab-sans);
  padding-bottom: 96px;
}
.ab .visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.ab h1, .ab h2, .ab h3 { font-family: var(--ab-serif); font-weight: 600; letter-spacing: -0.01em; }

/* ── Cover: real photo, answer on a frosted plate ─────────────────────────── */
.ab-cover {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.ab-cover-photo { position: absolute; inset: 0; z-index: -2; }
.ab-cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, oklch(21% 0.046 280 / 0.05) 25%, oklch(21% 0.046 280 / 0.92) 88%);
}
.ab-cover-plate {
  width: min(100% - 32px, 860px);
  margin: 0 auto 40px;
  padding: 28px clamp(20px, 4vw, 40px);
  border-radius: var(--r-lg, 18px);
  background: var(--ab-night);
  border: 1px solid oklch(84% 0.13 86 / 0.45);
  box-shadow: 0 20px 50px oklch(8% 0.03 280 / 0.6), inset 0 0 0 5px var(--ab-night), inset 0 0 0 6px oklch(84% 0.13 86 / 0.25);
}
.ab-crumbs { font-size: 0.82rem; color: var(--ab-mute); margin: 0 0 10px; }
.ab-crumbs a { color: var(--ab-gold); text-decoration: none; }
.ab-crumbs a:hover, .ab-crumbs a:focus-visible { text-decoration: underline; }
.ab-cover h1 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.02;
  margin: 0 0 14px;
  text-wrap: balance;
}
.ab-cover h1 span { display: block; font-style: italic; font-weight: 400; color: var(--ab-gold); font-size: 0.62em; margin-top: 6px; }
.ab-answer { font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.55; margin: 0 0 12px; max-width: 64ch; }
.ab-updated { font-size: 0.82rem; color: var(--ab-mute); margin: 0; }
.ab-credit { font-size: 0.76rem; color: var(--ab-mute); margin: 8px 0 0; opacity: 0.85; }
.ab-credit a { color: inherit; }

/* ── The book ─────────────────────────────────────────────────────────────── */
.ab-book {
  width: min(100% - 32px, 1120px);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}
.ab-book > *, .ab-spread > * { min-width: 0; }
.ab-page {
  position: relative;
  background: linear-gradient(180deg, var(--ab-paper), var(--ab-paper-2));
  color: var(--ab-pen);
  border-radius: 4px var(--ab-r) var(--ab-r) 4px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow:
    inset 6px 0 10px -6px oklch(40% 0.05 70 / 0.35),
    0 1px 0 var(--ab-paper-edge),
    0 18px 40px oklch(8% 0.03 280 / 0.5);
}
.ab-page h2 { color: var(--ab-pen); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 14px; line-height: 1.15; }
.ab-page h3 { color: var(--ab-pen); font-size: 1.15rem; margin: 22px 0 8px; }
.ab-page p { line-height: 1.6; }
.ab-page a { color: oklch(40% 0.12 265); text-underline-offset: 3px; }
.ab-fine { font-size: 0.85rem; color: var(--ab-mute); margin: 14px 0 0; }
.ab-page .ab-fine { color: var(--ab-pen-2); }

.ab-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ab-spread > .ab-page:first-child { border-radius: var(--ab-r) 4px 4px var(--ab-r); box-shadow: inset -10px 0 14px -10px oklch(40% 0.05 70 / 0.45), 0 18px 40px oklch(8% 0.03 280 / 0.5); }
.ab-spread > .ab-page:last-child  { border-radius: 4px var(--ab-r) var(--ab-r) 4px; }

/* inside cover: bookplate */
.ab-plate { text-align: center; background: linear-gradient(180deg, var(--ab-paper), var(--ab-paper-2)); }
.ab-plate::before {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1.5px solid var(--ab-gold-d); border-radius: 6px;
  box-shadow: inset 0 0 0 4px var(--ab-paper), inset 0 0 0 5px oklch(62% 0.12 78 / 0.5);
}
.ab-plate-kicker { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ab-pen-2); margin: 10px 0 6px; }
.ab-plate-name { font-family: var(--ab-hand); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.1; color: oklch(38% 0.13 262); margin: 0; }
.ab-plate-where { font-family: var(--ab-serif); font-style: italic; margin: 4px 0 16px; color: var(--ab-pen-2); }
.ab-plate-lede { max-width: 42ch; margin: 0 auto 18px; }
.ab-plate-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 0; }
.ab-plate-facts div { min-width: 7.5rem; }
.ab-plate-facts dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ab-pen-2); }
.ab-plate-facts dd { margin: 2px 0 0; font-weight: 600; }

/* inside cover: ledger */
.ab-price { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ab-price th, .ab-price td { padding: 10px 6px; text-align: left; border-bottom: 1px solid var(--ab-rule); }
.ab-price thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ab-pen-2); font-weight: 600; }
.ab-price tbody th { font-family: var(--ab-serif); font-size: 1.1rem; font-weight: 600; }
.ab-num { font-family: var(--ab-serif); font-size: 1.45rem; font-weight: 600; }
.ab-fam { color: var(--ab-pen); background: linear-gradient(transparent 60%, oklch(84% 0.13 86 / .45) 60%); }

/* ── Autographs ───────────────────────────────────────────────────────────── */
.ab-sec-head { max-width: 70ch; margin-bottom: 20px; }
.ab-sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; }
.ab-sec-head p { color: var(--ab-mute); line-height: 1.55; margin: 0; }
.ab-sig-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px;
}
.ab-sig {
  position: relative; min-height: 190px;
  display: grid; grid-template-rows: 1fr auto auto auto; align-content: end;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, var(--ab-paper), var(--ab-paper-2));
  color: var(--ab-pen);
  border-radius: 3px var(--ab-r) var(--ab-r) 3px;
  box-shadow: inset 5px 0 8px -5px oklch(40% 0.05 70 / 0.35), 0 12px 28px oklch(8% 0.03 280 / 0.45);
}
.ab-sig:nth-child(3n+1) { transform: rotate(-0.6deg); }
.ab-sig:nth-child(3n+2) { transform: rotate(0.5deg); }
.ab-sig-hand {
  font-family: var(--ab-hand); font-size: clamp(2.3rem, 4vw, 2.8rem); line-height: 1;
  align-self: center; transform: rotate(-6deg); transform-origin: left center;
  overflow-wrap: anywhere;
}
.ink-blue   { color: oklch(40% 0.14 262); }
.ink-red    { color: oklch(46% 0.16 25); }
.ink-violet { color: oklch(42% 0.14 305); }
.ink-green  { color: oklch(42% 0.10 160); }
.ink-brown  { color: oklch(40% 0.08 55); }
.ink-pencil { color: oklch(56% 0.010 270); opacity: 0.85; }
.ab-sig-name { font-family: var(--ab-serif); font-weight: 600; font-size: 1.05rem; margin-top: 10px; border-top: 1px solid var(--ab-rule); padding-top: 8px; }
.ab-sig-look { font-size: 0.86rem; color: var(--ab-pen-2); margin-top: 2px; }
.ab-sig-mark {
  justify-self: start; margin-top: 10px;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.is-official .ab-sig-mark { background: oklch(40% 0.14 262 / 0.1); color: oklch(38% 0.13 262); }
.is-reported .ab-sig-mark { background: oklch(56% 0.01 270 / 0.12); color: oklch(42% 0.01 270); }

/* ── Menu ribbons ─────────────────────────────────────────────────────────── */
.ab-ribbons { display: flex; gap: 6px; margin: 0 0 -2px 18px; position: relative; z-index: 1; }
.ab-ribbons button {
  font: 600 0.92rem/1 var(--ab-sans);
  padding: 12px 18px 16px; border: 0; cursor: pointer;
  color: var(--ab-pen-2); background: oklch(91% 0.03 84);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  transition: background-color 160ms ease, padding 160ms ease;
}
.ab-ribbons button[aria-selected="true"] { background: var(--ab-gold); color: var(--ab-night); font-weight: 700; padding-bottom: 22px; box-shadow: inset 0 3px 0 var(--ab-gold-d); }
.ab-ribbons button:focus-visible { outline: 3px solid var(--ab-gold); outline-offset: 2px; }
.ab-meal-stack { display: grid; gap: 18px; }
.ab-meal header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; border-bottom: 1px solid var(--ab-rule); padding-bottom: 10px; margin-bottom: 8px; }
.ab-meal h3 { margin: 0; font-size: 1.5rem; }
.ab-meal-hours { margin: 0; color: var(--ab-pen-2); }
.ab-meal-price { margin: 0 0 0 auto; }
.ab-meal-price b { font-family: var(--ab-serif); font-size: 1.25rem; }
.ab-meal ul { margin: 0; padding: 0; list-style: none; columns: 2 18rem; column-gap: 32px; }
.ab-meal li { padding: 8px 0 8px 22px; position: relative; break-inside: avoid; line-height: 1.45; }
.ab-meal li::before { content: "✦"; position: absolute; left: 0; top: 8px; color: var(--ab-gold-d); font-size: 0.8rem; }
.ab.is-tabbed .ab-meal[hidden] { display: none; }

/* ── Walk-out waits ───────────────────────────────────────────────────────── */
.ab-walk-lede { max-width: 70ch; }
.ab-walk-grid { display: grid; gap: 4px; margin: 18px 0 10px; overflow-x: auto; padding-bottom: 4px; }
.ab-walk-row { display: grid; grid-template-columns: minmax(9rem, 13rem) repeat(14, minmax(2.1rem, 1fr)); gap: 4px; align-items: stretch; min-width: 620px; }
.ab-walk-ride { font-family: var(--ab-serif); font-weight: 600; font-size: 0.95rem; align-self: center; padding-right: 8px; }
.ab-walk-cell {
  display: grid; place-items: center; min-height: 2.2rem; border-radius: 6px;
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.86rem;
  background: oklch(90% 0.02 84);
}
.ab-walk-meals .ab-walk-cell { background: transparent; font-weight: 500; font-size: 0.8rem; color: var(--ab-pen-2); min-height: 1.6rem; }
.ab-walk-meals .ab-walk-cell.is-meal { background: var(--ab-gold); color: var(--ab-pen); font-weight: 700; }
.ab-walk-cell.t-calm { background: oklch(86% 0.08 152); }
.ab-walk-cell.t-mid  { background: oklch(88% 0.10 86); }
.ab-walk-cell.t-busy { background: oklch(80% 0.11 30); }
.ab-walk-cell.t-none { color: var(--ab-pen-2); }
.ab-walk-key { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.85rem; color: var(--ab-pen-2); }
.ab-walk-key span { padding: 3px 10px; border-radius: 999px; color: var(--ab-pen); }
.ab-walk-key .t-calm { background: oklch(86% 0.08 152); }
.ab-walk-key .t-mid  { background: oklch(88% 0.10 86); }
.ab-walk-key .t-busy { background: oklch(80% 0.11 30); }

/* ── Crowd stamps ─────────────────────────────────────────────────────────── */
.ab-stamps { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); gap: 8px; }
.ab-stamp {
  display: grid; justify-items: center; gap: 2px; padding: 8px 4px;
  border: 1.5px dashed oklch(60% 0.03 270 / 0.5); border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.ab-stamp-dow { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ab-pen-2); }
.ab-stamp-day { font-size: 0.82rem; font-weight: 600; }
.ab-stamp-score { font-family: var(--ab-serif); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.ab-stamp.t-calm .ab-stamp-score { color: oklch(46% 0.12 152); }
.ab-stamp.t-mid  .ab-stamp-score { color: oklch(52% 0.12 75); }
.ab-stamp.t-busy .ab-stamp-score { color: oklch(50% 0.17 25); }
.ab-stamp.is-pick { border: 2px solid oklch(46% 0.12 152); background: oklch(86% 0.08 152 / 0.45); transform: rotate(-2deg); }
.ab-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; }
.ab-links a { font-weight: 600; }

/* ── Notes ────────────────────────────────────────────────────────────────── */
.ab-ticks { margin: 0; padding: 0; list-style: none; }
.ab-ticks li { padding: 8px 0 8px 26px; position: relative; line-height: 1.5; border-bottom: 1px dotted var(--ab-rule); }
.ab-ticks li::before { content: "✓"; position: absolute; left: 2px; top: 8px; color: oklch(40% 0.14 262); font-weight: 700; }
.ab :where(a).ab-book-btn {
  display: inline-block; margin-top: 20px; padding: 12px 20px; border-radius: 999px;
  background: var(--ab-night); color: var(--ab-gold); font-weight: 700; text-decoration: none;
}
.ab :where(a).ab-book-btn:hover, .ab :where(a).ab-book-btn:focus-visible { background: oklch(30% 0.06 280); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.ab-faq h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 12px; }
.ab-faq details { border-top: 1px solid var(--line, oklch(40% 0.05 280)); padding: 4px 0; }
.ab-faq details:last-child { border-bottom: 1px solid var(--line, oklch(40% 0.05 280)); }
.ab-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 1.05rem; }
.ab-faq summary:focus-visible { outline: 2px solid var(--ab-gold); outline-offset: 4px; }
.ab-faq p { margin: 0 0 16px; color: var(--ab-mute); line-height: 1.6; max-width: 72ch; }

/* ── Shelf of sibling books ───────────────────────────────────────────────── */
.ab-shelf h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 16px; }
.ab-shelf ul {
  list-style: none; margin: 0; padding: 0 0 14px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px;
  border-bottom: 10px solid oklch(42% 0.06 55);
  box-shadow: 0 6px 0 oklch(30% 0.05 50);
}
.ab-shelf a {
  display: grid; align-content: space-between; gap: 18px; min-height: 150px; padding: 16px 14px;
  text-decoration: none; color: var(--ab-pen);
  background: linear-gradient(90deg, oklch(0% 0 0 / 0.12) 0 8px, transparent 8px), linear-gradient(180deg, var(--ab-paper), var(--ab-paper-2));
  border-radius: 4px 8px 8px 4px;
  transition: transform 180ms ease;
}
.ab-shelf li:nth-child(2n) a { background: linear-gradient(90deg, oklch(0% 0 0 / 0.18) 0 8px, transparent 8px), linear-gradient(180deg, oklch(38% 0.10 262), oklch(32% 0.09 262)); color: var(--ab-ink); }
.ab-shelf li.is-hub a { background: linear-gradient(90deg, oklch(0% 0 0 / 0.15) 0 8px, transparent 8px), linear-gradient(180deg, var(--ab-gold), oklch(76% 0.13 80)); color: var(--brand-ink, oklch(24% 0.045 78)); }
.ab-shelf a:hover, .ab-shelf a:focus-visible { transform: translateY(-6px); }
.ab-shelf a:focus-visible { outline: 3px solid var(--ab-gold); outline-offset: 3px; }
.ab-spine-name { font-family: var(--ab-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.ab-spine-price { font-size: 0.82rem; opacity: 0.8; }

/* ride names stay put while the hours scroll */
.ab-walk-ride { position: sticky; left: 0; z-index: 1; background: var(--ab-paper); }
.ab-walk-notes { margin: 6px 0 4px; max-width: 70ch; }

/* ── Small screens ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .ab-spread { grid-template-columns: 1fr; gap: 14px; }
  .ab-spread > .ab-page:first-child, .ab-spread > .ab-page:last-child { border-radius: var(--ab-r); }
  .ab-cover { min-height: 0; padding-top: 220px; }
  .ab-cover-plate { margin-bottom: 20px; }
  .ab-meal-price { margin-left: 0; width: 100%; }
  .ab-num { font-size: 1.2rem; }
  .ab-price th, .ab-price td { padding: 9px 4px; }
  .ab-book { gap: 40px; }
  .ab-walk-row { grid-template-columns: 7.2rem repeat(14, 2.5rem); min-width: max-content; }
  .ab-walk-ride { font-size: 0.82rem; line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  .ab *, .ab *::before { transition: none !important; }
  .ab-sig, .ab-stamp.is-pick { transform: none; }
}


/* ── Critique round 1 fixes ───────────────────────────────────────────────── */
/* ribbon index: page-edge tabs that stay in reach on a long page */
.ab-index {
  position: sticky; top: 65px; z-index: 5;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  width: min(100% - 32px, 1120px); margin: 16px auto 0;
  padding-top: 6px; background: var(--ab-night); box-shadow: 0 -8px 0 var(--ab-night);
}
.ab-index a {
  flex: none; padding: 8px 12px 13px;
  background: oklch(70% 0.09 84); color: var(--ab-night);
  font: 600 0.85rem/1 var(--ab-sans); text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.ab-index a:hover, .ab-index a:focus-visible { background: var(--ab-gold); }
.ab-index a:focus-visible { outline: 2px solid var(--ab-ink); outline-offset: -4px; }
.ab h2[id] { scroll-margin-top: 130px; }

/* signatures share one autograph page */
.ab-sig-page { padding-block: clamp(26px, 4vw, 44px); }
.ab-sig-group { font-family: var(--ab-serif); font-size: 1.05rem; margin: 0 0 18px; color: var(--ab-pen-2); }
.ab-sig-group span { font-family: var(--ab-hand); font-size: 2.2rem; vertical-align: -0.2em; margin-right: 4px; }
.ab-sig-grid { display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: flex-end; }
.ab-sig {
  display: flex; flex-direction: column; min-height: 0; padding: 0;
  background: none; box-shadow: none; border-radius: 0; transform: none !important;
}
.ab-sig-hand { font-size: clamp(2.4rem, 5vw, 3.2rem); transform: rotate(-5deg); }
.ab-sig:nth-child(2n) .ab-sig-hand { transform: rotate(-2deg) translateY(4px); }
.ab-sig.is-reported .ab-sig-hand { font-size: clamp(1.9rem, 3.6vw, 2.4rem); }
.ab-sig-name { font-size: 0.78rem; font-family: var(--ab-sans); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; padding-top: 4px; color: var(--ab-pen-2); }
.ab-sig-look { font-size: 0.82rem; }

/* wait grid: meal hours outlined down every row, the rest recede */
.ab-walk-cell.in-meal { box-shadow: inset 0 0 0 2px var(--ab-gold-d); }
.ab-walk-row:not(.ab-walk-meals) .ab-walk-cell:not(.in-meal) { filter: saturate(.3); box-shadow: inset 0 0 0 1px oklch(70% 0.02 80); }
.ab-walk-ride { background: inherit; background: var(--ab-paper-2); }

/* crowd stamps: a real month, seven across */
.ab-stamps-dow, .ab-stamps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ab-stamps-dow { margin-top: 18px; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ab-pen-2); text-align: center; }
.ab-stamps { margin-top: 6px; }
.ab-stamp { border: 0; outline: 2px dotted oklch(60% 0.03 270 / 0.55); outline-offset: -4px; background: oklch(98% 0.012 88); padding: 9px 2px 8px; }
.ab-stamp.is-pick { outline: 2px solid oklch(46% 0.12 152); outline-offset: -3px; }

@media (max-width: 760px) {
  .ab-walk-grid { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ab-stamp-day { font-size: 0.75rem; }
  .ab-stamp-score { font-size: 1.1rem; }
  .ab-stamps, .ab-stamps-dow { gap: 4px; }
  .ab-sig-grid { gap: 10px 28px; }
  .ab-index { top: 65px; }
}

/* ── Critique round 2 fixes ───────────────────────────────────────────────── */
.ab-ledger { display: flex; flex-direction: column; }
.ab-ledger .ab-fine { margin-top: auto; padding-top: 14px; }
.ab-ledger-note { margin: 18px 0 0; font-family: var(--ab-serif); font-style: italic; font-size: 1.05rem; color: var(--ab-pen-2); }
.ab-sig-groupnote { margin: -8px 0 16px; font-size: 0.86rem; color: var(--ab-pen-2); }
@media (max-width: 760px) {
  .ab-walk-ride { position: sticky; left: 0; z-index: 1; padding-right: 6px; box-shadow: 8px 0 8px -8px oklch(30% 0.03 270 / .35); }
  .ab-walk-grid.is-end { mask-image: none; -webkit-mask-image: none; }
  .ab-index { mask-image: linear-gradient(90deg, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .ab-index.is-end { mask-image: none; -webkit-mask-image: none; }
}

/* ── Critique round 3 fixes ───────────────────────────────────────────────── */
.ab-index a[aria-current="true"] { background: var(--ab-gold); padding-bottom: 17px; }
.ab-crumbs a { display: inline-block; padding: 4px 0; }
.ab-shelf li:nth-child(3n+1) a { min-height: 172px; }
.ab-shelf li:nth-child(3n+2) a { min-height: 150px; }
.ab-shelf li:nth-child(3n)   a { min-height: 190px; }
.ab-shelf ul { align-items: end; }
@media (max-width: 760px) {
  .ab-shelf ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 118px;
    overflow-x: auto; scroll-snap-type: x proximity; padding-top: 10px; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .ab-shelf ul.is-end { mask-image: none; -webkit-mask-image: none; }
  .ab-shelf li { scroll-snap-align: start; }
}

/* ── Critique round 4 fixes ───────────────────────────────────────────────── */
.ab-book-line { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 0.92rem; }
.ab-book-line .ab-book-btn { margin-top: 0; }

/* ── Critique round 5 fixes ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .ab-index, .ab-index.is-end { mask-image: none; -webkit-mask-image: none; }
  .ab-index a[href="#ab-book-h"] {
    order: 99; position: sticky; right: 0; margin-left: auto;
    background: var(--ab-gold); border-left: 10px solid var(--ab-night);
  }
}
.ab :where(a).ab-book-btn::after { content: " \2197"; }
