/* ============================================================================
   yourname.thankful.day — the classroom

   Direction: the whole page is a chalkboard in a wood frame, with the product
   previews pinned to it as photographs. See docs/DECISIONS.md.

   Two problems this solves rather than ignores:

   1. Photographic product previews on a chalkboard look pasted on. So they are
      treated AS photographs - cream mat, slight rotation, soft shadow - which
      turns the mismatch into part of the theme.

   2. Chalk on green is a contrast risk. Body copy is near-white at full opacity
      in a clean sans; the handwriting face is reserved for headings, never for
      the ~1,270 characters of narrative on every name page.
   ========================================================================== */

:root {
  --board:        #2C4A3B;
  --board-deep:   #1E3629;
  --board-light:  #35563F;

  --chalk:        #F2EFE4;
  --chalk-soft:   #D6DDD0;
  --chalk-dim:    #A9B7A6;
  --chalk-yellow: #F2D680;

  --wood:         #8A5426;
  --wood-light:   #A9682F;
  --wood-dark:    #4E2E13;

  --paper:        #F6F1E3;
  --paper-ink:    #2A2418;

  --frame: clamp(10px, 2.4vw, 26px);
  --radius-hand: 255px 15px 225px 15px / 15px 225px 15px 255px;
  /* Milder hand radius for tall dropdown panels (S5 retro fix 108): the pill's
     extremes warp on a tall box, so the panel keeps a gentler hand wobble. */
  --radius-hand-panel: 28px 10px 26px 10px / 10px 26px 10px 28px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Column flex with main growing: the footer stays at the bottom of the viewport on a short
     page instead of riding up and leaving bare board beneath it. The home page has no merch
     grid, so its <main> is a single search box and would otherwise collapse. On every page
     that has real content, flex-grow has nothing to do and the layout is unchanged. */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  color: var(--chalk);
  /* It is a chalkboard, so everything is handwritten. Caveat is the most legible handwriting
     face available, but it still needs roughly 20% more size and looser leading than a
     grotesque to stay readable at body length - hence 21px, not 17px. Karla stays in the stack
     as the fallback if Caveat fails to load. */
  font-family: "Caveat", "Karla", ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

  /* The board: a deep green with a soft centre glow, the way a real chalkboard
     catches classroom light, plus a faint chalk-dust texture over the top. */
  /* ===== USED-BOARD START =============================================
     A clean board reads as a green rectangle. A real one carries the ghost of
     everything wiped off it: broad arcs where a cloth swept, a chalkier haze
     low down where dust settles, and heavier grain overall.

     ROLLBACK: replace everything between the USED-BOARD markers with exactly:

       background-color: var(--board);
       background-image:
         radial-gradient(ellipse 120% 80% at 50% 22%, var(--board-light) 0%, transparent 62%),
         radial-gradient(ellipse 100% 100% at 50% 100%, var(--board-deep) 0%, transparent 70%),
         url("data:image/svg+xml,...baseFrequency='0.75'...opacity='0.055'...");
       background-attachment: fixed;

     (the SVG line is the same noise tile used below, at opacity 0.055)
     ==================================================================== */
  background-color: var(--board);
  background-image:
    /* wipe arcs - wide, soft, barely there, at the angles an arm actually sweeps */
    radial-gradient(ellipse 55% 24% at 22% 30%, rgba(226,235,222,.055) 0%, transparent 70%),
    radial-gradient(ellipse 62% 20% at 78% 46%, rgba(226,235,222,.045) 0%, transparent 72%),
    radial-gradient(ellipse 48% 18% at 40% 68%, rgba(226,235,222,.05) 0%, transparent 70%),
    radial-gradient(ellipse 70% 26% at 62% 86%, rgba(226,235,222,.035) 0%, transparent 74%),
    /* chalk haze pooling toward the bottom, where dust ends up */
    linear-gradient(180deg, transparent 55%, rgba(226,235,222,.04) 100%),
    /* the original light and vignette */
    radial-gradient(ellipse 120% 80% at 50% 22%, var(--board-light) 0%, transparent 62%),
    radial-gradient(ellipse 100% 100% at 50% 100%, var(--board-deep) 0%, transparent 70%),
    /* grain, heavier than before */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.11'/%3E%3C/svg%3E");
  background-attachment: fixed;
  /* ===== USED-BOARD END ============================================== */

  /* No wooden surround on the page itself - it now belongs to the keepsake dialog only.
     The inner shadow stays: it is what stops the board reading as a flat green rectangle. */
  box-shadow: inset 0 0 90px rgba(0,0,0,.45);
}

a { color: inherit; }

::selection { background: var(--chalk-yellow); color: var(--board-deep); }

:focus-visible { outline: 3px dashed var(--chalk-yellow); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 0; top: 0; z-index: 100;
  background: var(--chalk); color: var(--board-deep); padding: 10px 16px;
}

/* ---------- chalk headings ---------- */
h1, h2, h3, .wordmark, .cta, .picker button {
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Everything previously set in the sans, now handwritten too. */
.hero .sub, .traits, .nameday, .lucky li, .card-body p, .page p, .page li, .story-body p,
.footer .disclosure, .footer nav, .masthead nav, .picker input, .picker-options li, .miss {
  font-family: "Caveat", "Karla", ui-sans-serif, sans-serif;
}

/* Chalk doesn't sit flat on a board - it catches a little light and dusts the
   edges. One soft shadow does more than any texture overlay here. */
h1, h2, .hero .kicker {
  text-shadow: 0 1px 0 rgba(255,255,255,.16), 0 0 22px rgba(242,239,228,.14);
}

/* ---------- chrome ---------- */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 16px clamp(14px, 4vw, 36px);
  border-bottom: 2px solid rgba(242,239,228,.22);
  /* Sticky (Johnny GO 2026-11-27): the bar stays at the top on scroll. In
     flow (sticky, not fixed), so nothing jumps when it sticks and no page
     needs compensating padding. The ground is SOLID var(--board-deep) -
     the S1 keepsake bar's precedent - because the body's board texture is
     background-attachment: fixed and a transparent bar would let scrolled
     text show through and tangle with the wordmark. z-index 30 stays
     UNDER the S1 keepsake bar (40) and the focused skip link (100): when
     the keepsake bar slides in it covers the masthead exactly as it used
     to cover the scrolled-away top of the page. The soft shadow is the
     separation from scrolled content the border alone does not give over
     photographs. */
  position: sticky; top: 0; z-index: 30;
  background: var(--board-deep);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.45);
  /* The yield slide (round 3, below) animates transform on this base
     transition; visibility flips at once on the way back so the returning
     bar is visible for its whole slide-in. */
  transition: transform 180ms ease, visibility 0s;
}
/* Keepsake yield (round 3, SE's prescribed fix): while the S1 keepsake bar
   (z-index 40) is visible, sticky.js puts .is-yielded on the masthead and
   the masthead slides wholly out instead of leaving its lower ~30px as a
   sliced strip of logo/wordmark under the ~56px keepsake bar. The z-stack
   does not move (masthead 30, keepsake 40, skip link 100); visibility and
   pointer-events follow the keepsake bar's own hidden-state pattern, so a
   yielded bar is neither clickable nor focusable. At ALL widths - the
   sliver showed on desktop and phone alike. */
.masthead.is-yielded {
  transform: translateY(-110%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 180ms ease, visibility 0s linear 180ms;
}
@media (prefers-reduced-motion: reduce) {
  .masthead { transition: none; }
}
/* Social row (Johnny GO 2026-11-27): seven brand icons centred in the
   masthead. flex: 1 takes the middle ground between wordmark and nav so
   the row centres itself; the icons are inline SVG at 22px, matching the
   approved preview. Review fixes (2026-11-27 panel): the Reels glyph is
   an outline, so at 22px / stroke 1.9 it read lighter than the six filled
   icons - it goes to 24px / stroke 2.2; LinkedIn's blue is only 2.29:1
   on the bar's dark ground, so it goes to 24px and lets its shape carry
   it (the brand colour itself does not change). Each LINK is at least
   36px wide (min-width on the link, glyph centred) so the tap target is
   not glyph-sized; width only, so the bar gains no height. */
.socials { display: flex; align-items: center; justify-content: center; gap: 13px; flex: 1 1 auto; }
.socials a { display: inline-flex; align-items: center; justify-content: center; line-height: 0; min-width: 36px; }
.socials a:hover { opacity: .85; }
.socials svg { width: 22px; height: 22px; display: block; }
.socials a.is-linkedin svg, .socials a.is-reels svg { width: 24px; height: 24px; }
/* Below 900px the three groups no longer fit one line (wordmark ~310px +
   icons ~330px at the 36px link width + nav ~140px + gaps and padding),
   so the social row wraps to its own centred line under them instead of
   squeezing any of them. The wrapped bar uses compact padding (12px
   vertical, 10px row gap - review fix 2026-11-27): ~108px at mid widths.
   On a phone the nav wraps under the wordmark as well (at real Caveat
   widths wordmark + nav need ~414px, more than a phone's content box),
   so the phone bar is three rows, ~130px - the compact padding is what
   holds it there instead of ~144px. Every icon stays visible while
   scrolling. */
@media (max-width: 900px) {
  .masthead { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  .socials { order: 3; flex: 1 1 100%; }
}
.wordmark {
  font-size: 30px; text-decoration: none; color: var(--chalk); line-height: 1;
  display: inline-flex; align-items: center; gap: 10px;
}
/* Scoped to .wordmark-text, not to .wordmark: the wrapper added for the logo is itself a
   span, and a bare ".wordmark span" would paint the whole wordmark yellow at 20px. */
.wordmark-text span { color: var(--chalk-yellow); font-size: 20px; }
/* The logo is a rendered medallion with its own light on it - it needs no chalk treatment,
   only a size that sits on the wordmark's baseline. */
.wordmark-logo {
  width: 48px; height: 48px; flex: 0 0 auto; display: block;
}
@media (max-width: 520px) { .wordmark-logo { width: 38px; height: 38px; } }
.masthead nav { display: flex; gap: 18px; font-size: 21px; font-weight: 600; }
.masthead nav a { color: var(--chalk-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--chalk-yellow); text-decoration: underline wavy; }

/* S1 fix round 3: the masthead row must never overflow the viewport.
   Its min-content at small widths - wordmark 241px (logo 38 + gap 10 +
   text 193) + 16px gap + nav 118px = 375px, inside a content box of
   only 331.2px at 360px - could not shrink (flex items size to
   min-content by default), so the nav stuck out to x=389, the page's
   scrollable width grew to 389px, and the fixed sticky bar
   (left: 0; right: 0) sized itself to that 389px: its dismiss circle
   landed at right=374.6px, 14.6px past the 360px viewport, and was
   clipped in every mobile capture (desktop never overflowed, so it
   rendered perfectly there). The bar's own flex was never at fault -
   its name already carries min-width: 0 and its actions measured
   correct inside the wider bar. Below the site's existing 520px
   breakpoint the masthead type and gaps shrink enough for the row to
   fit on one line at 360px (header height unchanged), and flex-wrap
   is the guarantee for narrower still: the nav wraps under the
   wordmark instead of overflowing. Above 520px nothing changes. */
@media (max-width: 520px) {
  .masthead { flex-wrap: wrap; column-gap: 12px; row-gap: 8px; padding-left: 12px; padding-right: 12px; }
  .wordmark { font-size: 25px; }
  .wordmark-text span { font-size: 18px; }
  .masthead nav { gap: 12px; font-size: 19px; }
  .socials { gap: 10px; }
  .socials svg { width: 20px; height: 20px; }
  .socials a.is-linkedin svg, .socials a.is-reels svg { width: 22px; height: 22px; }
  /* Phone collapse-on-scroll (round 3, Johnny's Option 2): once the
     visitor scrolls, sticky.js puts .is-collapsed on the masthead and the
     stuck bar shrinks to just the social row - 8px + 8px padding, the
     22px icons and the 2px border make ~40px. At the top of the page the
     full three-row bar shows; back at the top it expands again. The
     wordmark and nav rows animate their max-height (their real phone
     heights: 38px logo row, ~29px nav text at 19px/1.5) while the bar's
     own padding and row-gap animate with them, so the bar's height
     follows one smooth 180ms motion and the content below glides with
     it instead of jumping. Collapsed rows are visibility:hidden +
     pointer-events:none, so nothing invisible stays tappable or
     focusable. Desktop and mid widths have no collapse at all. */
  .masthead {
    transition: transform 180ms ease, visibility 0s,
      padding-top 180ms ease, padding-bottom 180ms ease, row-gap 180ms ease;
  }
  .masthead .wordmark {
    max-height: 38px; overflow: hidden;
    transition: max-height 180ms ease, opacity 180ms ease, visibility 0s;
  }
  .masthead nav {
    max-height: 30px; overflow: hidden;
    transition: max-height 180ms ease, opacity 180ms ease, visibility 0s;
  }
  .masthead.is-collapsed { padding-top: 8px; padding-bottom: 8px; row-gap: 0; }
  .masthead.is-collapsed .wordmark, .masthead.is-collapsed nav {
    max-height: 0; opacity: 0; visibility: hidden; pointer-events: none;
    transition: max-height 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  .masthead, .masthead .wordmark, .masthead nav { transition: none; }
}

main { max-width: 1060px; width: 100%; margin: 0 auto; padding: 0 clamp(14px, 4vw, 36px); flex: 1 0 auto; box-sizing: border-box; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(22px, 5vw, 44px) 0 6px; }

.kicker {
  font-family: "Caveat", cursive; font-size: clamp(20px, 3.4vw, 28px);
  color: var(--chalk-yellow); margin: 0 0 2px; font-weight: 500;
}
.hero h1 {
  font-size: clamp(42px, 9vw, 80px); line-height: .92;
  margin: 0; color: var(--chalk); font-weight: 700; text-wrap: balance;
}
.hero .sub {
  font-size: clamp(19px, 2.4vw, 23px); color: var(--chalk-soft);
  max-width: 46ch; margin: 14px auto 0;
}
.miss {
  margin: 18px auto 0; max-width: 46ch; font-size: 21px; color: var(--chalk-soft);
  border: 3px solid var(--chalk-dim); border-radius: var(--radius-hand);
  padding: 14px 22px; background: rgba(0,0,0,.14);
}

.traits {
  margin: 4px auto 0; max-width: 48ch;
  font-size: clamp(20px, 2.5vw, 24px); color: var(--chalk-soft); font-style: italic;
}

/* S3 (panel fix): the name-day countdown sentence, under the name's facts in
   the hero. Screen only - @media print hides .nameday below, and it is
   outside .keepsake-frame (not a selector modal.js clones), so neither
   print nor the PDF keepsake ever carries the countdown. The permanent fact
   row is NOT styled here: it rides the lucky list above. It once carried one
   override (.nameday-fact-value) keeping its value chalk white instead of the
   lucky values' yellow - "the fact is timeless, not a celebration" - but
   Johnny overruled the distinction (2026-11-01): the attribute list is key
   white / value yellow with NO exceptions, so the override is gone and the
   name day's value takes the same chalk-yellow as colour, stone and number.
   S3 retro fix: (201) the plain countdown is no longer demoted to
   chalk-soft/500 - over the hero glow that measured 5.92:1 in thin Caveat
   strokes and a fast-scrolling phone visitor missed the line entirely; it
   now sits in full chalk (--chalk) at weight 600 (7.14:1 on the glow), same
   size and position as before. (202) the day itself needed more than yellow
   to stand apart - yellow bold is already every lucky value, the read-more
   link and the kicker - so .nameday--today alone also gets the house
   chalk-yellow squiggle underline (the same hand-drawn SVG the read-more
   link uses) and a modest size step up. No new colours, no icon fonts. */
.nameday {
  margin: 8px auto 0; max-width: 48ch;
  font-size: clamp(20px, 2.5vw, 24px); color: var(--chalk); font-weight: 600;
}
.nameday--today {
  color: var(--chalk-yellow); font-weight: 700;
  font-size: clamp(22px, 2.8vw, 27px);
  padding-bottom: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='7' viewBox='0 0 118 7'%3E%3Cg fill='none' stroke='%23F2D680' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4.4 C 8 3.2, 13 5.2, 19 3.9'/%3E%3Cpath d='M28 3.6 C 34 5.0, 40 3.0, 47 4.4'/%3E%3Cpath d='M56 4.6 C 62 3.1, 68 5.3, 74 3.8'/%3E%3Cpath d='M83 3.5 C 89 5.1, 95 3.2, 101 4.6'/%3E%3Cpath d='M110 4.3 C 112 3.4, 114 5.0, 116 4.0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 118px 7px; background-position: left bottom;
}
.nameday a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Hand-drawn underscores. The wobble is a real SVG squiggle rather than a border-bottom,
   because a dead-straight rule under handwriting gives the whole thing away. */
.lucky {
  display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center;
  list-style: none; margin: 6px 0 0; padding: 0;
}
.lucky li {
  font-size: 20px; color: var(--chalk); padding: 0 4px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='7' viewBox='0 0 120 7' preserveAspectRatio='none'%3E%3Cpath d='M1 4.2 C 18 1.9, 34 5.6, 52 3.4 S 88 1.4, 119 3.9' fill='none' stroke='%23D6DDD0' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 7px;
  background-position: left bottom;
}
.lucky-label { color: var(--chalk-soft); }
.lucky-value { color: var(--chalk-yellow); font-weight: 700; }

.readmore { margin: 6px 0 0; font-family: "Caveat", cursive; font-size: 19px; }
.readmore a {
  color: var(--chalk-yellow); text-decoration: none; padding-bottom: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='7' viewBox='0 0 118 7'%3E%3Cg fill='none' stroke='%23F2D680' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4.4 C 8 3.2, 13 5.2, 19 3.9'/%3E%3Cpath d='M28 3.6 C 34 5.0, 40 3.0, 47 4.4'/%3E%3Cpath d='M56 4.6 C 62 3.1, 68 5.3, 74 3.8'/%3E%3Cpath d='M83 3.5 C 89 5.1, 95 3.2, 101 4.6'/%3E%3Cpath d='M110 4.3 C 112 3.4, 114 5.0, 116 4.0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 118px 7px; background-position: left bottom;
}
.readmore a:hover { opacity: .8; }

/* Scroll padding clears the STUCK masthead (Johnny GO 2026-11-27): it was
   56px when nothing stuck; the masthead is ~82px tall on one row and
   ~108px wrapped at mid widths, so a #main skip-link or fragment jump
   would land its target hidden under the bar. 90px / 116px give the
   stuck bar at each width plus a breath of board. Round 3: on a phone
   the stuck bar COLLAPSES to the ~40px social row once the visitor
   scrolls (see the <=520px block above), and a fragment jump is a
   scrolled state, so the phone tier follows the collapsed bar instead
   of the ~130px full bar: 48px = ~40px collapsed + the same breath. */
html { scroll-behavior: smooth; scroll-padding-top: calc(90px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { html { scroll-padding-top: calc(116px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 520px) { html { scroll-padding-top: calc(48px + env(safe-area-inset-top, 0px)); } }
#story, #gifts { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- the name picker ---------- */
.picker {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  max-width: 340px; margin: 0 auto 26px;
  background: rgba(0,0,0,.2);
  border: 4px solid var(--chalk-soft);
  border-radius: var(--radius-hand);
  padding: 1px 6px 1px 18px;
}
.picker input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 21px; font-weight: 600; color: var(--chalk); padding: 3px 0; line-height: 1.2;
}
.picker input::placeholder { color: var(--chalk-dim); font-weight: 400; }
.picker button {
  border: 3px solid var(--chalk-yellow); background: transparent; color: var(--chalk-yellow);
  border-radius: 180px 14px 160px 14px / 14px 160px 14px 180px;
  padding: 2px 18px; line-height: 1.25; font-size: 21px; cursor: pointer; white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}
.picker button:hover { background: var(--chalk-yellow); color: var(--board-deep); }

.picker-options {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  margin: 0; padding: 6px; list-style: none; text-align: left;
  background: var(--board-deep);
  border: 3px solid var(--chalk-soft); border-radius: 14px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.7);
  max-height: 320px; overflow-y: auto;
}
.picker-options li {
  padding: 9px 16px; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 21px; color: var(--chalk-soft);
}
.picker-options li[aria-selected="true"], .picker-options li:hover {
  background: rgba(242,214,128,.16); color: var(--chalk-yellow);
}

/* Screen-reader-only text (the typeahead live region). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* S5 panel fit - homepage name picker ONLY. The merch picker shares the base
   .picker-options above and keeps it; every rule here is scoped with
   :not(.picker-merch) so the name-page merch panel cannot regress.
   The panel echoes the search box itself: same 4px chalk border weight, the same
   hand-drawn radius, a softer chalk-appropriate shadow, and a 4px gap. Its
   max-height is sized to the row cap the matcher enforces (6 desktop / 5 at
   <=520px) plus one footer row, so every capped row is fully visible and the
   panel never scrolls for its own rows. Row height is padded up to the 44px
   touch minimum. Hover (mouse) is a faint white tint; the keyboard-active row
   is the yellow tint, so the two never read as the same state. */
.picker:not(.picker-merch) > .picker-options {
  top: calc(100% + 4px);
  border: 4px solid var(--chalk-soft);
  border-radius: var(--radius-hand-panel);
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
  max-height: 372px;
}
@media (max-width: 520px) {
  .picker:not(.picker-merch) > .picker-options { max-height: 322px; }
}
.picker:not(.picker-merch) > .picker-options li {
  min-height: 44px; display: flex; align-items: center; padding: 7px 16px;
}
.picker:not(.picker-merch) > .picker-options li:hover {
  background: rgba(242,239,228,.18); color: var(--chalk);
}
.picker:not(.picker-merch) > .picker-options li[aria-selected="true"] {
  background: rgba(242,214,128,.22); color: var(--chalk-yellow);
}
.picker-options .picker-match { color: var(--chalk-yellow); font-weight: 700; }

/* S5 retro fix 102/103 - homepage only. Colour alone could not carry the match:
   chalk-yellow against the rows' chalk-soft is 1.03:1 in luminance, so the match
   also gets a FORM cue - the house chalk squiggle (same SVG idiom as the lucky
   list and the read-more link) underlined in chalk-yellow beneath the matched
   letters. On the keyboard-active row the whole row turns chalk-yellow, so the
   match flips polarity instead: board-deep text on a solid chalk-yellow wash,
   squiggle off - it stays findable at a glance, phone size included. */
.picker:not(.picker-merch) > .picker-options .picker-match {
  padding: 0 1px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='7' viewBox='0 0 120 7' preserveAspectRatio='none'%3E%3Cpath d='M1 4.2 C 18 1.9, 34 5.6, 52 3.4 S 88 1.4, 119 3.9' fill='none' stroke='%23F2D680' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: left bottom;
}
.picker:not(.picker-merch) > .picker-options li[aria-selected="true"] .picker-match {
  background-color: var(--chalk-yellow);
  background-image: none;
  color: var(--board-deep);
  border-radius: 4px;
}

/* Guidance rows (zero-match / "+ N more"): information, never an option. */
.picker-options li.picker-options-note {
  cursor: default; font-size: 18px; font-weight: 400; color: var(--chalk-dim);
}
.picker:not(.picker-merch) > .picker-options li.picker-options-note:hover {
  background: transparent; color: var(--chalk-soft);
}

/* S5 retro fix 105/106/107 - homepage only. The note rows carried the feature's
   most important sentence in its smallest, thinnest text (18px/400 chalk-dim)
   inside a 44px result-row box that read as tappable even when it was inert.
   They now step up to 21px/600 in chalk-soft and are de-rowed: no result-row
   box, a divider on top instead - a footer, not a result. The zero-match
   guidance variant (--action, wired in combobox.js) takes the pointer, and
   its hover underlines like the instruction it is. Micro-fix: the truncation
   variant (--focus, also wired in combobox.js) now acts too - a tap refocuses
   the input - so it takes the same pointer and the same hover treatment,
   while keeping this de-rowed footer look (divider, no result-row box). */
.picker:not(.picker-merch) > .picker-options li.picker-options-note {
  min-height: 0;
  font-size: 21px; font-weight: 600; color: var(--chalk-soft);
  border-top: 2px solid rgba(242,239,228,.25);
  border-radius: 0;
  margin-top: 4px;
  padding: 10px 16px 4px;
}
.picker:not(.picker-merch) > .picker-options li.picker-options-note--action {
  cursor: pointer;
}
.picker:not(.picker-merch) > .picker-options li.picker-options-note--action:hover {
  background: transparent; color: var(--chalk);
  text-decoration: underline;
}
.picker:not(.picker-merch) > .picker-options li.picker-options-note--focus {
  cursor: pointer;
}
.picker:not(.picker-merch) > .picker-options li.picker-options-note--focus:hover {
  background: transparent; color: var(--chalk);
  text-decoration: underline;
}

/* ---------- sections ---------- */
.section { padding: clamp(20px, 4vw, 40px) 0; }
.section-title {
  font-size: clamp(21px, 3vw, 27px); text-align: center; margin: 0 0 10px;
  font-weight: 400;
  color: var(--chalk); font-weight: 600;
}

/* ---------- watch the lesson (S7) ---------- */
/* On the board, not pinned to it: a chalk frame drawn around the lesson, the way
   the teacher would box the important part. The section is a .section child
   of main like the merch shelf, so the @media print rules already leave it
   off the paper keepsake - a video has no more place on paper than the
   shelf does. */
.watch-lesson { text-align: center; }
.watch-lesson-note {
  margin: 0 auto 18px; max-width: 46ch;
  font-size: 21px; color: var(--chalk-soft);
}
.watch-lesson-frame {
  max-width: 540px; margin: 0 auto; padding: 10px;
  background: rgba(0,0,0,.18);
  border: 3px solid var(--chalk-soft); border-radius: var(--radius-hand);
}
.watch-lesson-frame iframe {
  display: block; width: 100%; height: min(680px, 150vw);
  border: 0; border-radius: 12px; background: var(--paper);
}
.watch-lesson-link { margin: 14px 0 0; font-size: 20px; }
.watch-lesson-link a { color: var(--chalk-yellow); }
.watch-lesson-link a:hover { opacity: .8; }

/* A4 (2026-11-09): the name's YouTube video, under the story - the same
   chalk frame as the lesson above it, sized for YouTube's landscape frame
   rather than the lesson's portrait one. The facade is a real <button>
   wearing the thumbnail: full-bleed image, the play badge centred over
   it. js/video.js swaps the button for the embed iframe on tap; the
   iframe takes the facade's exact box (16:9, frame padding included), so
   the page does not move when the video loads. A .section child of main
   like the shelf and the lesson, so the @media print rules already leave
   it off the paper keepsake. */
.name-video { text-align: center; }
.name-video-note {
  margin: 0 auto 18px; max-width: 46ch;
  font-size: 21px; color: var(--chalk-soft);
}
.name-video-frame {
  max-width: 640px; margin: 0 auto; padding: 10px;
  background: rgba(0,0,0,.18);
  border: 3px solid var(--chalk-soft); border-radius: var(--radius-hand);
}
.name-video-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: #000; cursor: pointer;
}
.name-video-facade img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.name-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.name-video-play-bg { fill: rgba(20,20,20,.82); transition: fill .15s ease; }
.name-video-play-arrow { fill: #fff; }
.name-video-facade:hover .name-video-play-bg,
.name-video-facade:focus-visible .name-video-play-bg { fill: #c00; }
.name-video-frame iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: 12px; background: #000;
}
.name-video-link { margin: 14px 0 0; font-size: 20px; }
.name-video-link a { color: var(--chalk-yellow); }
.name-video-link a:hover { opacity: .8; }


/* ---------- product cards: chalk boxes with photos pinned inside ---------- */
/* S2 (fix round 2): the one section note above the grid - full-strength yellow chalk,
   22px/600 so it reads as a statement, not a caption (body copy is 21px), outside the
   grid so it costs no card height. */
.own-designs-note { margin: 0 0 18px; font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--chalk-yellow); text-align: center; }

/* S2 badge (fix round 2): the per-card marker, directly above an own card's title.
   Its own ground does the context-contrast work the CTA star could not: a board-deep
   pill with a chalk-soft border and chalk-yellow bold text, so it separates from the
   card image above it, the board around the card, and the all-yellow CTA below. */
.own-design-badge {
  align-self: center; display: inline-block; margin: 0 0 2px;
  padding: 3px 12px 4px; background: var(--board-deep);
  border: 1.5px solid var(--chalk-soft); border-radius: 999px;
  color: var(--chalk-yellow); font-size: 18px; font-weight: 700; line-height: 1.3;
  white-space: nowrap;
}

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); }

/* Two outline styles, both live, chosen by Ui:CardOutline in config.json:
     "strokes" (default) - .chalk-box, four separate SVG strokes whose corners sometimes
                           overshoot and sometimes leave a gap. See ChalkBox.razor.
     "border"            - .card-css-border, the original CSS border with an irregular radius.
                           Corners always meet perfectly.
   Neither is dead code - keep both working. */
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 30px; text-decoration: none;
  color: var(--chalk-soft);                /* the stroke colour the SVG inherits */
  transition: transform 200ms ease, color 200ms ease;
}
.chalk-box {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;                       /* let the corner overshoots run past the box */
  pointer-events: none;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); color: var(--chalk-yellow); }

/* Ui:CardOutline = "border" */
.card-css-border {
  border: 4px solid var(--chalk-soft);
  border-radius: var(--radius-hand);
}
.card-css-border:nth-child(2n) { border-radius: 15px 225px 15px 255px / 225px 15px 255px 15px; }
.card-css-border:nth-child(3n) { border-radius: 200px 22px 240px 18px / 20px 250px 16px 210px; }
.card-css-border:hover { border-color: var(--chalk-yellow); }

/* Batch C Change 3, border mode: the dashed "sketch" variant for category cards when
   Ui:CardOutline = "border". (In strokes mode the dash lives on the ChalkBox SVG.) */
.card-css-border-dashed { border-style: dashed; }

/* The preview is a photograph pinned to the board, not a flat tile. */
/* The photo mat is drawn, not cut: the same irregular radius as the card box, so a
   photographic product sits inside a hand-drawn frame rather than a machined rectangle. */
.card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  flex: 0 0 auto; height: auto; min-height: 0;
  background: var(--paper);
  border: 7px solid var(--paper);
  border-radius: 145px 12px 130px 14px / 14px 130px 12px 145px;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.65);
  transform: rotate(-1.1deg);
}
.card:nth-child(2n) img {
  transform: rotate(1.3deg);
  border-radius: 12px 140px 14px 125px / 125px 14px 140px 12px;
}
.card:nth-child(3n) img {
  transform: rotate(-.5deg);
  border-radius: 130px 16px 150px 10px / 12px 145px 14px 135px;
}

/* Drawn on the board, but framed like the photographs around it. Panel ruling
   (category-photos round, 2026-10-31): when every neighbouring tile was a chalk
   sketch, a bare drawing read as house style; amid 24 paper-framed photographs
   the two remaining sketch tiles (postage-stamp, umbrella - no genuine product
   photo exists for either) read as unfinished placeholders. So the sketch now
   sits in the same drawn paper frame as a photo - same border, radius, shadow
   and tilt - while the drawing itself stays chalk on board inside the frame. */
.card-sketch {
  aspect-ratio: 1; display: grid; place-items: center;
  flex: 0 0 auto; min-height: 0; padding: 8px;
  color: var(--chalk-soft);
  border: 7px solid var(--paper);
  border-radius: 145px 12px 130px 14px / 14px 130px 12px 145px;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.65);
  transform: rotate(-1.1deg);
}
.card:nth-child(2n) .card-sketch {
  transform: rotate(1.3deg);
  border-radius: 12px 140px 14px 125px / 125px 14px 140px 12px;
}
.card:nth-child(3n) .card-sketch {
  transform: rotate(-.5deg);
  border-radius: 130px 16px 150px 10px / 12px 145px 14px 135px;
}
.card-sketch .chalk { width: 100%; height: 100%; overflow: visible; }
.card-sketch .chalk g { opacity: .9; stroke-width: 3; }
.chalk-name {
  font-family: "Caveat", cursive; font-size: 19px; font-weight: 600;
  fill: var(--chalk-yellow); stroke: none;
}
.card:hover .card-sketch { color: var(--chalk); }

.card-body { text-align: center; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 24px; color: var(--chalk); line-height: 1.1; }
.card-body { color: var(--chalk); }
/* Batch C Change 4: 19px, not 17px — the header comment's own rule is that Caveat needs
   roughly 20% more size than a grotesque to stay readable, and the blurbs were the one
   place set at exactly the size it warns against. */
.card-body p { margin: 0; font-size: 19px; color: var(--chalk-soft); line-height: 1.45; flex: 1; }
/* Eval fix 5 (Johnny 2026-11-01): the "from $…" floor price, quiet under the
   blurb and above the CTA; it never grows the card (the blurb owns flex). */
.card-body p.card-price { flex: 0; font-size: 17px; font-weight: 600; }
.cta {
  display: block; font-size: 20px; color: var(--chalk-yellow);
  padding-top: 14px; margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='7' viewBox='0 0 118 7'%3E%3Cg fill='none' stroke='%23F2D680' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4.4 C 8 3.2, 13 5.2, 19 3.9'/%3E%3Cpath d='M28 3.6 C 34 5.0, 40 3.0, 47 4.4'/%3E%3Cpath d='M56 4.6 C 62 3.1, 68 5.3, 74 3.8'/%3E%3Cpath d='M83 3.5 C 89 5.1, 95 3.2, 101 4.6'/%3E%3Cpath d='M110 4.3 C 112 3.4, 114 5.0, 116 4.0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 118px 7px; background-position: left top;
}

/* ---------- Batch C Change 1: the shelf unit ---------- */
/* Two grids, one board: the shelf heading leads the section; the Big Board heading
   needs air above it because it follows a full grid of cards. */
.shelf-title { margin-top: 34px; }
.shelf-title:first-of-type { margin-top: 0; }
.shelf-lead {
  text-align: center; margin: 0 0 18px;
  font-size: 21px; color: var(--chalk-soft);
}

/* ---------- Batch C Change 5: two-column phone cards (variant B) ---------- */
/* Only the Big Board grid carries .grid-compact, and only at phone width — desktop
   and tablet are untouched, and variant A keeps the single column at every width.
   The shelf grid is EXEMPT (fix round): our own cards stay full-width with their
   blurbs on phones. On compact cards the blurb clamps to TWO lines rather than
   dropping — it is also the card body's flex spacer — and the call to action pins
   itself to the card foot with margin-top:auto, so CTA baselines align across a
   row whatever the title lengths are. */
@media (max-width: 520px) {
  .grid-compact { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-compact .card { padding: 10px 10px 18px; gap: 6px; }
  .grid-compact .card-body h3 { font-size: 20px; }
  .grid-compact .card-body p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .grid-compact .cta { font-size: 18px; padding-top: 10px; margin-top: auto; }
}

/* ---------- Eval fix 13: dense phone board (Variants:PhoneShelf = B) ---------- */
/* The experiment Johnny approves or rejects from the switch: at phone width the
   Big Board (category cards only - the shelf grid is exempt, as with compact)
   goes three-across and drops the blurb, so a category reads as a tap-sized
   tile: photo, title, from-price, button. Placed after the Change 5 compact
   block so three-across wins when both switches are on; the price line is
   carved back out of the blurb rule because it is a <p> too, and it stays -
   a tile with no price is a tile that cannot be compared. The switch defaults
   to A, so nothing here applies until it is flipped. */
@media (max-width: 520px) {
  .grid-dense { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .grid-dense .card { padding: 8px 8px 12px; gap: 5px; }
  .grid-dense .card-body h3 { font-size: 16px; }
  .grid-dense .card-body p { display: none; }
  .grid-dense .card-body p.card-price { display: block; font-size: 14px; }
  .grid-dense .cta { font-size: 15px; padding-top: 8px; margin-top: auto; }
}

/* ---------- Batch C fix round 2 (C2-6): shelf media cap on phones ---------- */
/* At phone width only, the SHELF grid's card media is capped, so the four-card
   shelf block is materially shorter on phones. Shelf text, titles and CTAs are
   NOT compacted, and neither the Big Board grid, variant A (which has no shelf
   grid), nor desktop widths are affected. object-fit: cover (already the card
   image rule) crops the photo into the capped height. */
@media (max-width: 520px) {
  .grid-shelf .card img, .grid-shelf .card-sketch { max-height: 180px; }
}

/* ---------- Batch C Change 6: name days this week (homepage, variant B) ---------- */
.lessons { text-align: center; padding-top: clamp(20px, 4vw, 40px); }
.lessons-sub { margin: 0 auto 16px; font-size: 20px; color: var(--chalk-soft); }
.lessons-list {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center;
  max-width: 62ch;
}
.lessons-list li { font-size: 24px; }
.lessons-list a { color: var(--chalk); font-weight: 700; text-decoration: none; }
.lessons-list a:hover { color: var(--chalk-yellow); text-decoration: underline wavy; }
.lessons-day { color: var(--chalk-soft); font-size: 20px; margin-left: 6px; }
.lessons-day-today { color: var(--chalk-yellow); }
.lessons-empty { color: var(--chalk-soft); }
.lessons-list a.lessons-empty { color: var(--chalk-soft); font-weight: 400; }
.lessons-list a.lessons-empty:hover { color: var(--chalk-soft); text-decoration: none; }
.lessons-empty .lessons-day { margin-left: 0; font-size: 24px; }
.lessons-follow { margin: 20px auto 0; font-size: 20px; color: var(--chalk-soft); }
.lessons-follow a { color: var(--chalk-yellow); text-decoration: none; font-weight: 700; }
.lessons-follow a:hover { text-decoration: underline wavy; }

/* ---------- SEO round (2026-10-31): homepage h1 + the names register ---------- */
/* The h1 sits under the search box: the hero's rule is that nothing competes
   with the search, so the heading supports it from below. The selector outranks
   .hero h1 on purpose (panel fix, 2026-10-31): that rule's billboard scale -
   built for a name page's single word - would make a full sentence shout over
   the search box; this size keeps the line a headline, not a slogan. */
.hero h1.hero-tagline {
  font-size: clamp(30px, 8.7vw, 46px); line-height: 1.05;
  margin: 16px 0 0; color: var(--chalk); font-weight: 600;
}
/* The register: the board used as a class list. Letter headings reuse
   .section-title; the names are plain chalk links in columns - on a phone two
   columns keep a thumb-scroll of 1,925 names to a sane length. */
.names-index {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(14px, 4vw, 36px);
}
.names-index h1 {
  text-align: center; font-size: clamp(34px, 6vw, 56px);
  margin: 0 0 8px; font-weight: 700; color: var(--chalk);
}
.names-intro {
  text-align: center; color: var(--chalk-soft); font-size: 22px;
  max-width: 52ch; margin: 0 auto 18px;
}
.names-letters {
  display: flex; flex-wrap: wrap; gap: 2px 5px; justify-content: center;
  margin: 0 auto 8px;
}
/* Panel fix (2026-10-31): the padding is the tap target, not decoration - each
   letter gets a ~44px-tall hit area, and the tighter tracking keeps all 26 on
   one line at desktop widths instead of orphaning Z on a line of its own. */
.names-letters a {
  color: var(--chalk); font-weight: 700; font-size: 22px; letter-spacing: .06em;
  text-decoration: none; padding: 11px 5px;
}
.names-letters a:hover { color: var(--chalk-yellow); text-decoration: underline wavy; }
.names-group { padding-top: clamp(18px, 3vw, 30px); }
/* Panel fix (2026-10-31): the letter must outrank its own list - gold, larger
   than the names, and squiggle-underlined like the site's other gold headings,
   so a fast scroll still registers "you are now in M". */
.names-group .section-title {
  font-size: clamp(30px, 4.5vw, 38px); color: var(--chalk-yellow);
  text-decoration: underline wavy; text-underline-offset: 7px;
}
.names-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
@media (min-width: 760px) { .names-list { columns: 4; } }
.names-list li { font-size: 23px; break-inside: avoid; padding: 0; }
/* The anchor carries the row's height (44px house target, as on the related
   rail) so the whole line is tappable, not just the glyphs. */
.names-list a {
  color: var(--chalk); font-weight: 600; text-decoration: none;
  display: block; padding: .3rem 0;
}
.names-list a:hover { color: var(--chalk-yellow); text-decoration: underline wavy; }
.names-top { text-align: center; margin: 10px 0 0; font-size: 16px; }
.names-top a { color: var(--chalk-soft); text-decoration: none; }
.names-top a:hover { color: var(--chalk-yellow); text-decoration: underline wavy; }

/* ---------- the name's story ---------- */
.story { max-width: 68ch; margin: 0 auto; }
.story .section-title {
  margin-bottom: 20px;
  font-size: clamp(30px, 4.4vw, 42px);
  color: var(--chalk-yellow);
}
/* Johnny 2026-11-01: in the story heading the name itself is white chalk,
   like the name at the top of the board, against the heading's yellow.
   (And no comma before it - the name is an appositive, not an address.) */
.story .section-title .section-title-name { color: var(--chalk); }
.story-body p {
  margin: 0 0 18px; font-size: 24px; line-height: 1.6; color: var(--chalk);
}
.story-body p:first-of-type::first-letter {
  font-family: "Caveat", cursive; font-size: 3.4em; line-height: .82;
  float: left; margin: 6px 10px 0 0; color: var(--chalk-yellow);
}

/* ---------- the name FAQ (SEO item A2b) ---------- */
/* Question time at the end of the lesson, in the story section's own voice:
   the standard section title, questions in the story heading's chalk yellow,
   answers in full chalk a step under story size. It is a .section child of
   main, so the print block leaves it off the paper keepsake, like the shelf
   and the lesson - it answers search visitors, not the printed page. */
.faq { max-width: 68ch; margin: 0 auto; }
.faq-item { margin: 0 0 24px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
  margin: 0 0 6px; font-size: 24px; font-weight: 600; line-height: 1.35;
  color: var(--chalk-yellow);
}
.faq-a { margin: 0; font-size: 22px; line-height: 1.6; color: var(--chalk); }

/* ---------- static pages ---------- */
.page { max-width: 68ch; margin: 0 auto; padding: clamp(20px, 4vw, 44px) 0; }
.page h1 { font-size: clamp(42px, 7vw, 62px); margin: 0 0 18px; }
.page h2 { font-size: 30px; margin: 30px 0 6px; color: var(--chalk-yellow); }
.page p, .page li { font-size: 22px; line-height: 1.7; color: var(--chalk); }
.page a { color: var(--chalk-yellow); }

/* S4: the related-names rail ("More names on the board") at the foot of the name
   page, above the sign-off. Names written on the board in chalk yellow, like the
   other links on the page - a list, not cards. Print keeps it off the paper: it is
   a .section child of <main>, which the print block already excludes. */
/* The bottom padding sits below the .section default on purpose: 16px gives
   the rail a clear bracket of air above the same-voice sign-off below it,
   without the footer-like void the full section padding plus the sign-off's
   own margin would leave between them. The sign-off itself is untouched. */
.related-names { max-width: 68ch; margin: 0 auto; padding-bottom: 16px; text-align: center; }
.related-note { margin: 0; font-size: 20px; color: var(--chalk-soft); }
.related-list {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center;
}
/* Each link is a real touch target (min-height 44px, padding included via the
   global border-box) and is underlined with the same chalk squiggle the
   .readmore link wears - a drawn chalk line, not a bare text row. */
.related-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--chalk-yellow); font-size: 24px; font-weight: 600;
  text-decoration: none; padding: 4px 6px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='7' viewBox='0 0 118 7'%3E%3Cg fill='none' stroke='%23F2D680' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4.4 C 8 3.2, 13 5.2, 19 3.9'/%3E%3Cpath d='M28 3.6 C 34 5.0, 40 3.0, 47 4.4'/%3E%3Cpath d='M56 4.6 C 62 3.1, 68 5.3, 74 3.8'/%3E%3Cpath d='M83 3.5 C 89 5.1, 95 3.2, 101 4.6'/%3E%3Cpath d='M110 4.3 C 112 3.4, 114 5.0, 116 4.0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 118px 7px; background-position: left bottom;
}
.related-list a:hover { opacity: .8; }

/* SEO item A3 (2026-11-09): the letter door at the foot of a name page —
   one centred line under the related rail, wearing the rail's own chalk
   treatment (chalk yellow, the same hand-drawn squiggle, a 44px touch
   target). No new visual language: it reads as one more line on the
   board. It is a .section child of <main>, so the print block leaves it
   off the paper keepsake like the rail above it. The current letter in a
   hub's letter nav takes the nav's own hover treatment permanently. */
.letter-door { max-width: 68ch; margin: 0 auto; padding-bottom: 16px; text-align: center; }
.letter-door-line { margin: 0; }
.letter-door-line a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--chalk-yellow); font-size: 24px; font-weight: 600;
  text-decoration: none; padding: 4px 6px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='7' viewBox='0 0 118 7'%3E%3Cg fill='none' stroke='%23F2D680' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4.4 C 8 3.2, 13 5.2, 19 3.9'/%3E%3Cpath d='M28 3.6 C 34 5.0, 40 3.0, 47 4.4'/%3E%3Cpath d='M56 4.6 C 62 3.1, 68 5.3, 74 3.8'/%3E%3Cpath d='M83 3.5 C 89 5.1, 95 3.2, 101 4.6'/%3E%3Cpath d='M110 4.3 C 112 3.4, 114 5.0, 116 4.0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 118px 7px; background-position: left bottom;
}
.letter-door-line a:hover { opacity: .8; }
.names-letters a[aria-current="page"] { color: var(--chalk-yellow); text-decoration: underline wavy; }

/* Batch B (change 6): the name page's closing sign-off, above the footer. */
.signoff {
  max-width: 62ch; margin: 28px auto 0; text-align: center;
  font-size: 19px; color: var(--chalk-soft);
}

/* Eval fix 6 (Johnny 2026-11-01): the picked follow line, directly under the
   sign-off; the handle is a link to the channel. Deliberately a step quieter
   than the 19px sign-off above it (panel hierarchy call: at near-equal sizes
   the two closing lines competed as rival sign-offs). */
.follow-line {
  max-width: 62ch; margin: 10px auto 0; text-align: center;
  font-size: 16px; color: var(--chalk-soft);
}
.follow-line a { color: var(--chalk-yellow); font-weight: 600; text-decoration: none; }
.follow-line a:hover { text-decoration: underline; }

/* ---------- footer: the chalk tray ---------- */
.footer {
  margin-top: 44px; padding: 22px clamp(14px, 4vw, 36px) 30px; text-align: center;
  border-top: 3px solid var(--wood-light);
  background: linear-gradient(180deg, rgba(138,84,38,.35), rgba(78,46,19,.5));
}
.footer .disclosure { max-width: 62ch; margin: 0 auto 14px; font-size: 18px; color: var(--chalk-soft); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; font-size: 19px; }
.footer nav a { color: var(--chalk-soft); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--chalk-yellow); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .card:hover { transform: none; }
}

/* ---------- infinite scroll ---------- */
/* Cards start hidden only once grid.js has marked them; with JavaScript off none of this
   applies and the full catalogue renders. */
.card-pending { display: none; }
.grid-sentinel { height: 1px; }

/* The merch search sits under the section heading, narrower than the name picker so the two
   never read as the same control. */
.picker-merch { max-width: 480px; margin-bottom: 30px; }

/* ---------- S1: the sticky keepsake bar (variant B only) ---------- */
/* A slim strip pinned to the top of the screen and shown by sticky.js
   only after the hero scrolls away. Fixed, not in flow: it is rendered
   hidden, so it takes no space and covers nothing until the hero (its
   whole first screen) is already gone.
   Panel fix round 2 (context contrast): the ground is SOLID
   var(--board-deep). Round 1 copied the body's own board stack with
   background-attachment: fixed so the bar would "line up with the board
   beneath it" - which made it melt into board-green content, the fresh
   panel's core fault ("words floating on the page"). A distinct deep
   ground, the hand-drawn squiggle rule at FULL opacity along the bottom
   edge, and a full drop shadow now make the bar read as its own object
   over board, story text and photos alike. Text colours are unchanged:
   chalk on board-deep is 11.3:1, chalk-yellow 9.11:1, and the chalk-soft
   squiggle stroke on board-deep is 9.36:1. The story link keeps the
   hero link's chalk-yellow squiggle underline (demoted from a solid
   pill in round 1); the inner row follows the masthead layout (page
   column, name left, actions right); the slide is a 180ms translateY
   both ways, off under prefers-reduced-motion; the hidden state is
   translated + visibility:hidden (unfocusable), and [hidden] (the
   no-JS / dismissed state) stays display:none. It is never inside
   .keepsake-frame, and @media print below hides it. */
.sticky-keepsake {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: var(--board-deep);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.45);
  font-family: "Caveat", cursive;
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 180ms ease, visibility 0s linear 180ms;
}
.sticky-keepsake::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='7' viewBox='0 0 120 7' preserveAspectRatio='none'%3E%3Cpath d='M1 4.2 C 18 1.9, 34 5.6, 52 3.4 S 88 1.4, 119 3.9' fill='none' stroke='%23D6DDD0' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 120px 7px; background-position: left bottom;
  pointer-events: none; opacity: 1;
}
.sticky-keepsake[hidden] { display: none; }
.sticky-keepsake.is-visible {
  transform: translateY(0); visibility: visible;
  transition: transform 180ms ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .sticky-keepsake { transition: none; }
}
.sticky-keepsake-inner {
  max-width: 1060px; margin: 0 auto; box-sizing: border-box;
  padding: 4px clamp(14px, 4vw, 36px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 48px;
}
.sticky-keepsake-name {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  font-size: clamp(18px, 6vw, 24px); font-weight: 700; color: var(--chalk);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
}
.sticky-keepsake-name:hover { color: var(--chalk-yellow); }
.sticky-keepsake-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.sticky-keepsake-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 4px 9px; box-sizing: border-box;
  flex: 0 0 auto; white-space: nowrap;
  font-size: 20px; font-weight: 600; line-height: 1.2;
  color: var(--chalk-yellow); background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='7' viewBox='0 0 118 7'%3E%3Cg fill='none' stroke='%23F2D680' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4.4 C 8 3.2, 13 5.2, 19 3.9'/%3E%3Cpath d='M28 3.6 C 34 5.0, 40 3.0, 47 4.4'/%3E%3Cpath d='M56 4.6 C 62 3.1, 68 5.3, 74 3.8'/%3E%3Cpath d='M83 3.5 C 89 5.1, 95 3.2, 101 4.6'/%3E%3Cpath d='M110 4.3 C 112 3.4, 114 5.0, 116 4.0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 118px 7px; background-position: left bottom;
  text-decoration: none; cursor: pointer;
}
.sticky-keepsake-btn:hover { opacity: .8; }
.sticky-keepsake-dismiss {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--chalk-soft); cursor: pointer;
  color: var(--chalk); font-family: "Caveat", cursive; font-size: 26px; line-height: 1;
}
.sticky-keepsake-dismiss:hover { color: var(--chalk-yellow); border-color: var(--chalk-yellow); }
.sticky-keepsake-label-short { display: none; }
@media (max-width: 520px) {
  .sticky-keepsake-inner { gap: 10px; min-height: 44px; }
  .sticky-keepsake-btn { min-height: 44px; font-size: 19px; }
  .sticky-keepsake-label-full { display: none; }
  .sticky-keepsake-label-short { display: inline; }
}

/* ---------- the keepsake dialog ---------- */
/* A framed board on the wall, not a card floating on grey: the wooden surround is a real
   gradient on a wrapper rather than a border-image, because html2canvas cannot rasterise
   border-image and the PDF would come out frameless. */
.keepsake {
  border: 0; padding: 0; background: transparent;
  width: min(782px, 94vw); max-width: 94vw; max-height: 92dvh;
  overflow: visible; color: var(--chalk);
}
/* Johnny 2026-11-01: while the keepsake popup is open the page behind it
   blurs - the backdrop filter sits on the dialog's own ::backdrop, so the
   popup itself stays sharp and closing restores the page exactly. The
   -webkit- prefix is for Safari/iOS. Scoped to .keepsake: no other dialog
   shares this rule. */
.keepsake::backdrop { background: rgba(8,14,10,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.keepsake-frame {
  padding: clamp(10px, 2vw, 25px);
  border-radius: 4px;
  background: linear-gradient(150deg,
    var(--wood-light) 0%, var(--wood) 20%, var(--wood-dark) 44%,
    var(--wood) 66%, var(--wood-light) 84%, var(--wood-dark) 100%);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8), inset 0 0 0 2px rgba(0,0,0,.35);
}

.keepsake-board {
  padding: clamp(16px, 2.7vw, 37px);
  border-radius: 2px;
  background-color: var(--board);
  background-image:
    radial-gradient(ellipse 55% 24% at 22% 30%, rgba(226,235,222,.055) 0%, transparent 70%),
    radial-gradient(ellipse 62% 20% at 78% 46%, rgba(226,235,222,.045) 0%, transparent 72%),
    radial-gradient(ellipse 120% 80% at 50% 18%, var(--board-light) 0%, transparent 62%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.3), inset 0 0 70px rgba(0,0,0,.4);
  max-height: 74dvh; overflow-y: auto;
}

.keepsake-content { text-align: center; }
/* The seal. Sized in px rather than em because html2canvas rasterises this at 2x for the PDF
   and a relative size would drift with whatever the dialog's font-size resolved to. */
.keepsake-seal {
  display: block; width: 75px; height: 75px; margin: 0 auto 9px;
  /* Just enough shadow to lift a round object off a flat board - the medallion already
     carries its own lighting, so anything more reads as a sticker. */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
@media (max-width: 520px) { .keepsake-seal { width: 58px; height: 58px; } }
.keepsake-content h1 { font-size: clamp(34px, 6.8vw, 61px); margin: 0; }
.keepsake-content .traits { margin: 4px auto 0; }
.keepsake-content .lucky { margin: 6px 0 0; }
.keepsake-content .story { max-width: 62ch; margin: 20px auto 0; padding: 0; text-align: left; }
/* Popup round (2026-10-31) + scale refinement (Johnny, same day): the
   popup as a whole scales to ~85% of its pre-round size - dialog width,
   frame/board padding, seal, headline, and the phone board cap (45dvh ->
   42dvh below) all take the full step. The keepsake's own story type goes
   24px -> 21px: as far as it can go, since 21px is the site's own floor
   for Caveat at body length ("fully readable" was the condition). The
   page's story outside the dialog keeps its 24px. modal.js's
   STORY_PT_PER_FIT is recalibrated to this size in the same commit, so
   the Batch D print floor (10.5pt) stays exact. */
.keepsake-content .story-body p { font-size: 21px; }
.keepsake-content .story .section-title { text-align: center; }

.keepsake-tools {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
}
/* Batch D (changes 1 + 3): the printout's foot, inside the frame at the foot of
   the story, so the PDF capture carries it. Small, same chalk hand as the rest
   of the board (the dialog inherits Caveat), set apart by a faint chalk rule -
   a colophon, not a banner. The shelf line sits directly under the footer line;
   it is only rendered at all when Variants:PrintShelfLine is B. */
.keepsake-print-foot {
  margin: 22px auto 0; max-width: 62ch; text-align: center;
  border-top: 2px solid rgba(242,239,228,.25); padding-top: 14px;
}
/* Fix round (P4): both small-print lines carry a legibility floor. At the
   pagination floor fit (story at 10.5pt) a CSS px prints at 0.4375pt, so the
   footer at 20px lands at 8.75pt and the shelf line at 19px at ~8.3pt -
   neither falls below ~8pt even when the story is at its smallest allowed
   scale. Slightly heavier weight + a touch of letter-spacing keep the chalk
   hand legible at that size. Pinned by KeepsakeVariantsTests.
   Fix round (P3b): the shelf line is DEMOTED under the footer - no larger
   than the footer's type (19px against its 20px) and in the softer chalk -
   and it no longer repeats the page URL the footer directly above carries. */
.keepsake-print-line { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .02em; line-height: 1.45; color: var(--chalk-soft); }
/* Popup round (2026-10-31): the foot's first line is the Instagram line -
   the camera glyph plus "follow us on Instagram @handle", set in the same
   chalk small-print hand as the address line under it. On screen the whole
   line is the profile link; in the capture and on paper it reads as print.
   The glyph is an inline SVG in the link, stroked in the line's colour. */
.keepsake-ig-line { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: .02em; line-height: 1.45; }
.keepsake-ig { color: var(--chalk-soft); text-decoration: none; }
.keepsake-ig:hover { color: var(--chalk-yellow); }
/* Johnny 2026-11-01: no box around the foot's Instagram line. Opening the
   dialog moves focus to this link (the frame's first focusable element),
   and the global :focus-visible outline fragments around the wrapped
   inline text as a stepped yellow box. The foot is a printed colophon -
   the line sits plainly on the board, like the address line under it. */
.keepsake-ig:focus, .keepsake-ig:focus-visible { outline: none; }
/* Johnny 2026-11-01: no box around the name either. open() parks focus on
   the story heading (tabIndex -1, never a tab stop) so the popup opens at
   the top; WebKit counts that parked focus as :focus-visible and draws
   the global dashed outline around the name as a dotted yellow box. The
   heading is a focus target, not a control - it sits plainly on the
   board. Keyboard focus outlines stay everywhere they are reachable. */
#keepsake-title:focus, #keepsake-title:focus-visible { outline: none; }
/* Inline, not flex: the line must wrap as ordinary centred text on a narrow
   phone frame, with the glyph flowing at the start of the first line. */
.keepsake-ig-glyph { vertical-align: -0.16em; margin-right: 9px; }
.keepsake-shelf-line { margin: 5px 0 0; font-size: 19px; font-weight: 600; letter-spacing: .02em; line-height: 1.45; color: var(--chalk-soft); }
/* Since the server-render round (Johnny 2026-11-01) the PDF control wearing
   these classes is an <a>, not a <button>: it must lay out and read exactly
   like the button did. */
.keepsake-btn {
  display: inline-block; text-decoration: none;
  font-family: "Caveat", cursive; font-size: 22px; cursor: pointer;
  padding: 7px 24px; min-height: 44px;
  max-width: 92vw; white-space: normal; text-align: center; line-height: 1.2;
  color: var(--board-deep); background: var(--chalk-yellow);
  border: 3px solid var(--chalk-yellow);
  border-radius: 140px 12px 130px 14px / 14px 130px 12px 140px;
}
.keepsake-btn:hover { background: var(--chalk); border-color: var(--chalk); }
.keepsake-btn[disabled], .keepsake-btn[aria-disabled="true"] { opacity: .6; cursor: progress; pointer-events: none; }
.keepsake-btn-quiet {
  background: transparent; color: var(--chalk-soft); border-color: var(--chalk-soft);
}
.keepsake-btn-quiet:hover { background: transparent; color: var(--chalk); border-color: var(--chalk); }

/* Fix round 2 (X7): on a phone the dialog must show the buttons AND the
   note under them without scrolling - at 360x740 with the default (B)
   button copy wrapping to two lines, a 74dvh board pushes the note below
   the fold. The board scrolls internally instead; the capture stage
   overrides max-height for the PDF shot, so print is unaffected. */
@media (max-width: 520px) {
  /* Popup round (2026-10-31) + scale refinement: the board cap is the
     frame's visible height on a phone, so it takes the scale step too -
     50dvh originally, 45dvh in the popup round, 42dvh at the ~85% scale (measured: the 390x844 dialog lands at 84-85% of its pre-round height)
     Johnny settled on. Print is unaffected (the capture stage and the
     print stylesheet both override max-height). */
  .keepsake-board { max-height: 42dvh; }
}

/* The .capture-stage rules that used to stand here served the client-side
   PDF capture: an off-screen clone of the frame, shot by html2canvas, with
   corrections for that library's rasterising quirks. Deleted with the
   builder in the server-render round (Johnny 2026-11-01) — the server
   photographs the live dialog, so there is no clone, no stage and nothing
   to correct. */

/* Present and above the links. See ProductGrid.razor. History: fix round 2
   set a legibility floor (chalk-soft, never below 18px); the eval round's
   first restyle (2026-11-01) made it Arial at 18px. Johnny's LATEST
   instruction the same day supersedes both: the line is legal small print
   by his design - Courier New at 6pt, text and position unchanged. The old
   18px floor does not apply; do not "restore" it. The CSS test pins this
   spec (Courier New, 6pt, chalk-soft) so the change is deliberate either
   way. */
.disclosure-line {
  text-align: center; margin: 0 0 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 6pt; color: var(--chalk-soft);
}

/* ---------- print: the paper keepsake ---------- */
/*
   The site's own Save as PDF (modal.js) is the deliberate print path and is
   untouched by everything below: html2canvas works from the screen rendering,
   and these rules live in print media only.

   This block exists for the visitor who reaches for the browser's own Print.
   Without it, that produced a near-blank sheet: every colour on the page is a
   chalk colour (the main text measures ~1.15:1 against white), browsers do
   not print backgrounds by default, and the story lives inside the keepsake
   dialog, which a closed dialog does not print at all.

   The composition on paper is the name, its traits and lucky details,
   followed by the story out of the dialog, restated in the palette's paper
   ink on white. Chrome, buttons and the merch shelf do not print.

   The name block exists twice in the DOM - the hero, and the clones modal.js
   fills into #keepsake-head when the dialog opens - and which copy can carry
   the print depends on the dialog's state. Closed (or filled then closed):
   the hero prints and the head stays hidden. Open: the dialog sits in the
   top layer and Chromium paints it over the top of the page, so the hero
   stands down and the head - filled by then, because opening is what fills
   it - carries the name instead. Either way the name prints exactly once.
*/
@media print {
  /* Say the paper out loud: a reader who enables background graphics must
     still get white under the ink, not the board green. */
  html, body { background: #fff; }
  body {
    display: block; min-height: 0;
    color: var(--paper-ink);
    box-shadow: none;
  }

  /* Screen chrome. main > .section is the merch shelf; the story's own
     .section lives inside the dialog and is not a child of main. */
  .masthead, .footer, .picker, .readmore, .nameday,
  main > .section, .sticky-keepsake,
  .keepsake-tools, .keepsake-seal {
    display: none !important;
  }

  /* The name-block handover between hero and dialog head, per the note
     above. */
  dialog:not([open]) #keepsake-head { display: none !important; }
  main:has(dialog[open]) .hero { display: none !important; }

  /* The dialog, laid into the flow of the page. A closed dialog is
     display:none in the UA sheet, and an open modal floats in the top layer
     (Chromium stamps a fixed element onto every printed page) - laying it
     out statically answers both. The board's scroll box must open up in
     print too, or the story clips at the board's screen height. */
  .keepsake {
    display: block; position: static;
    width: auto; max-width: none; max-height: none;
    margin: 0; overflow: visible;
    color: var(--paper-ink);
  }
  .keepsake-frame, .keepsake-board {
    padding: 0; border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .keepsake-board { max-height: none; overflow: visible; }

  /* The name block, in ink, whichever copy of it prints. The lucky list's
     chalk squiggle is a background image and would not print anyway;
     dropping it keeps the spacing honest. */
  .hero { padding-top: 0; }
  h1, h2 { text-shadow: none; }
  .hero h1, .keepsake-content h1 { color: var(--paper-ink); }
  .traits, .lucky li, .lucky-label, .lucky-value, .lucky li .nameday-fact-value { color: var(--paper-ink); }
  .lucky li { background-image: none; padding-bottom: 0; }

  /* The story, in ink. The drop cap is neutralised because a re-laid-out
     drop cap detaches from its paragraph and reads as a bug. */
  .story .section-title { color: var(--paper-ink); }
  /* The heading's white-chalk name (screen rule above) must take ink on
     paper too - white on white would vanish. */
  .story .section-title .section-title-name { color: var(--paper-ink); }
  .story-body p { color: var(--paper-ink); }
  .story-body p:first-of-type::first-letter {
    font-family: inherit; font-size: inherit; line-height: inherit;
    float: none; margin: 0; color: inherit;
  }
  .keepsake-print-line, .keepsake-shelf-line, .keepsake-ig, .keepsake-ig-line { color: var(--paper-ink); }
  .keepsake-print-foot { border-top-color: rgba(42,36,24,.25); }

  /* The board takes focus when the dialog opens (it is the scroll region),
     and the screen's dashed :focus-visible outline would otherwise print as
     a stray rule around it. Focus is a screen conversation; paper does not
     need it. */
  * { outline: none !important; }

  /* Static pages print as pages, not as a board. */
  .page h1, .page h2, .page p, .page li, .page a { color: var(--paper-ink); }
}

/* Eval fix 7 (Johnny 2026-11-01): the share control under "read more" - a
   <details> menu (ShareButton.razor + share.js). The summary wears the same
   chalk-squiggle treatment as the read-more link beside it; the menu is an
   in-flow panel of channel links, so nothing can clip or strand it. The old
   Batch E hero link (.share-hero-link) went away with the email form. */
.share-menu { margin: 8px 0 0; }
.share-btn {
  display: inline-block; cursor: pointer; list-style: none;
  font-family: "Caveat", cursive; font-size: 21px; color: var(--chalk-yellow);
  padding-bottom: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='7' viewBox='0 0 118 7'%3E%3Cg fill='none' stroke='%23F2D680' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4.4 C 8 3.2, 13 5.2, 19 3.9'/%3E%3Cpath d='M28 3.6 C 34 5.0, 40 3.0, 47 4.4'/%3E%3Cpath d='M56 4.6 C 62 3.1, 68 5.3, 74 3.8'/%3E%3Cpath d='M83 3.5 C 89 5.1, 95 3.2, 101 4.6'/%3E%3Cpath d='M110 4.3 C 112 3.4, 114 5.0, 116 4.0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 118px 7px; background-position: left bottom;
}
.share-btn::-webkit-details-marker { display: none; }
.share-btn:hover { opacity: .8; }
/* The chain-link glyph closing the share label (Johnny's addition to fix 7,
   2026-11-01): same stroke style as the keepsake's Instagram glyph, so the
   button reads as a share/link action at a glance. */
.share-link-glyph { vertical-align: -0.16em; margin-left: 7px; }
.share-options {
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center;
  max-width: 560px; margin: 12px auto 4px; padding: 14px 18px;
  background: rgba(0,0,0,.22); border: 2px solid rgba(242,239,228,.45);
  border-radius: 130px 12px 120px 14px / 14px 120px 12px 130px;
}
.share-options a, .share-options button {
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  color: var(--chalk); background: none; border: none; padding: 4px 2px;
  text-decoration: none; border-bottom: 1px solid var(--chalk-soft);
}
.share-options a:hover, .share-options button:hover { color: var(--chalk-yellow); }
