/* Wattle - the app layer.
   tokens.css holds the design tokens and components.css the design system's
   components (both generated; see wattle-tools/design). This file is the
   hand-written part: the page shell, and the parts of Wattle the design
   system does not draw, each built from the same tokens and the same rules
   (flat cream, hairlines not boxes, one Page, gold only for "this one, now").
   A few plain class names without the w- prefix (child-bar, spotlight,
   today-story, backlink, flash-success ...) are stable hooks the acceptance
   suites read; they carry little or no styling of their own. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--cream); scroll-padding-top: var(--space-6); }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-wrap: break-word; }
main { flex: 1; display: flex; flex-direction: column; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; text-wrap: balance; }
button, input, select, textarea { font-family: inherit; }
.w-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 60; }
.w-skip:focus { top: var(--space-2); }

/* ---------- the ground ----------
   A quiet pattern on the cream made only of the brand's bloom, in loose clusters of
   mismatched sizes and brand colours, with its own tints for Night. Travis asked for a
   pattern again on 15 November 2026 and for the brand's own shapes on the 16th. The
   brand book keeps the cream flat, so this is a recorded exception (see BRAND.md). The
   two tiles are drawn from the design tokens by wattle-tools/design/build_pattern.py;
   never edit them by hand. Paper, sage and gum surfaces stay plain, and so do the bars. */
body { background-image: url("wattle-ground-day.svg?v=3"); background-size: 520px auto; background-position: center top; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) body { background-image: url("wattle-ground-night.svg?v=3"); } }
:root[data-theme="night"] body { background-image: url("wattle-ground-night.svg?v=3"); }
@media (max-width: 599px) { body { background-size: 440px auto; } }
@media (prefers-contrast: more), (forced-colors: active) { body { background-image: none !important; } }

/* The drifting ground. Where scripting runs and the device has not asked for stillness,
   wattle.js swaps the printed tile for the same blooms as a fixed layer and lets them drift:
   a few pixels a second, turning, nudging off one another. Travis, 16 November 2026:
   "slowly bobbling around, colliding into eachother ... very slowly moving and kinda playful".
   Only transforms change, so nothing reflows. Without it the tile above is the pattern. */
.w-drift { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; animation: w-fade-in var(--w-settle) var(--w-ease) both; }
/* The layer always sits behind the page, in a page change too: it has no transition name of
   its own, so it cross-fades with everything else and is never drawn above the words. */
.w-drift i { position: absolute; left: 0; top: 0; will-change: transform; -webkit-mask: var(--w-bloom) center / contain no-repeat; mask: var(--w-bloom) center / contain no-repeat; }
.w-drift .d-gold { background: color-mix(in srgb, var(--gold) 29%, var(--cream)); }
.w-drift .d-honey { background: color-mix(in srgb, var(--honey) 22%, var(--cream)); }
.w-drift .d-sage { background: color-mix(in srgb, var(--sage-line) 66%, var(--cream)); }
.w-drift .d-eucalypt { background: color-mix(in srgb, var(--eucalypt) 25%, var(--cream)); }
html.has-drift body { background-image: none !important; background-color: transparent; }
@media print { .w-drift { display: none; } }

/* Where words sit, the pattern steps back. The reading column carries a veil of the ground
   colour, so the blooms stay clear in the margins and fall to a whisper behind text. The
   veil is the cream token itself, flat: no blur, no glass, no visible gradient (its edges
   only feather across the gutter). On phones there is no margin, so the whole page is veiled. */
:root { --veil: color-mix(in srgb, var(--cream) 70%, transparent); --veil-edge: var(--space-6); }
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  main > .w-screen, main > .w-section, main > .w-hero, .w-foot__in {
    background-image: linear-gradient(90deg, transparent, var(--veil) var(--veil-edge), var(--veil) calc(100% - var(--veil-edge)), transparent);
  }
  main > .w-screen { flex: 1; }
  .w-foot__in { padding-inline: var(--veil-edge); margin-block: calc(-1 * var(--space-8)); padding-block: var(--space-8); max-width: var(--content-max); }
  .w-ground .w-section, .w-gum .w-section, .w-gum .w-foot__in { background-image: none; }
  @media (max-width: 759px) {
    main, .w-foot { background-color: var(--veil); }
    main > .w-screen, main > .w-section, main > .w-hero, .w-foot__in { background-image: none; }
    .w-foot__in { padding-inline: 0; margin-block: 0; padding-block: 0; }
    .w-gum .w-foot { background-color: transparent; }
  }
}

/* ---------- the bloom's edge ----------
   Travis, 16 November 2026: "I could imagine some of the curves, or shapes being added to
   the site to make buttons, cards, or things more interesting. Even if its not the whole
   shape, but just a bit of the rectangle." A pale bloom sits tucked behind the top corner
   of The Page, as the sprig does behind the Page on the website. One Page a view, so one
   tucked bloom a view. (Scalloped edges on sage panels were tried and removed the same
   day: Travis, "the one edge with the circles just looks out of place".) */
:has(> .w-page) { isolation: isolate; }
.w-page { position: relative; }
.w-page::after {
  content: ""; position: absolute; z-index: -1; top: -30px; right: 22px; width: 76px; height: 76px; pointer-events: none;
  background: var(--blossom); -webkit-mask: var(--w-bloom) center / contain no-repeat; mask: var(--w-bloom) center / contain no-repeat;
}
.w-hero .w-page::after { content: none; }
@media (max-width: 599px) { .w-page::after { top: -24px; right: 16px; width: 60px; height: 60px; } }
/* 3. A main button answers with a small bloom opening at its corner, on hover, keyboard
      focus and press. The button keeps its plain shape and size; nothing moves. */
.w-btn:not(.w-btn--quiet):not(.w-btn--gold):not(.w-skip) { position: relative; }
.w-btn:not(.w-btn--quiet):not(.w-btn--gold):not(.w-skip)::after {
  content: ""; position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; pointer-events: none;
  background: var(--gold); -webkit-mask: var(--w-bloom) center / contain no-repeat; mask: var(--w-bloom) center / contain no-repeat;
  opacity: 0; transform: scale(.2) rotate(-50deg);
  transition: opacity var(--w-quick) var(--w-ease), transform var(--w-open) var(--w-ease-bloom);
}
.w-btn:not(.w-btn--quiet):not(.w-btn--gold):not(.w-skip):focus-visible::after, .w-btn:not(.w-btn--quiet):not(.w-btn--gold):not(.w-skip):active::after { opacity: 1; transform: none; }
@media (hover: hover) { .w-btn:not(.w-btn--quiet):not(.w-btn--gold):not(.w-skip):hover::after { opacity: 1; transform: none; } }
.w-btn:disabled::after, .w-btn.is-busy::after { content: none !important; }
/* 4. The blooms that are there for warmth turn, very slowly, each at its own pace: the one
      tucked behind The Page, the Sign-off, and the cluster that closes the website. Travis,
      16 November 2026: "animated to turn slowly, or just generally feel alive". Transform
      only, so nothing reflows; the ground pattern itself stays still under the words, and
      reduced motion stops them (components.css). */
.w-page::after { animation: w-turn 90s linear infinite; }
.w-signoff .w-bloom { animation: w-turn 48s linear infinite; }
.w-closing__blooms .w-bloom { animation: w-turn 70s linear infinite; }
.w-closing__blooms .w-bloom:nth-child(2) { animation-duration: 110s; animation-direction: reverse; }
.w-closing__blooms .w-bloom:nth-child(3) { animation-duration: 40s; }
@media print, (forced-colors: active) { .w-page::after { content: none; } }

/* ---------- the drawings ----------
   Travis, 17 November 2026: "I need wattle to have Photos included on the activites, in a
   smart, tasteful way ... This needs to look like its part of the page". Every idea and
   activity has one pencil drawing, in the style he set (wattle-tools/art/README.md). A
   recorded exception to the brand book's "no illustrated babies or families" (BRAND.md).
   A drawing has no box, border or ground of its own. The build lifts the pencil off its
   paper and redraws it in Bark and Eucalypt, so the page is the paper and the drawing sits
   in its margin. At night the same two pencils are turned light; nothing else is filtered.
   Markup comes from art() in app/present.php; an entry with no drawing keeps its old shape. */
:root { --art-night: invert(1) hue-rotate(180deg) drop-shadow(0 0 0 rgb(222 215 201 / .5)); }
.w-art { display: block; margin: 0; pointer-events: none; }
.w-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .w-art img { filter: var(--art-night); } }
:root[data-theme="night"] .w-art img { filter: var(--art-night); }
@media print { .w-art img { filter: none !important; } }
@media (forced-colors: active) { .w-art img { filter: none !important; background: #FBF6EA; border-radius: var(--radius-sm); } }

/* On its own page: under the lead on phones; from 900px in the margin, level with the title,
   with the facts beneath it. The title column keeps its reading measure. */
.w-art--page { max-width: 21rem; margin: calc(-1 * var(--space-2)) auto var(--space-4); background: radial-gradient(ellipse closest-side, color-mix(in srgb, var(--cream) 72%, transparent) 55%, transparent); }
@media (min-width: 900px) {
  .w-screen--art { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; column-gap: var(--space-12); align-items: start; align-content: start; }
  .w-screen--art > * { grid-column: 1 / -1; }
  .w-screen--art > .w-pagehead { grid-column: 1; grid-row: 1; }
  .w-screen--art > .w-idea { display: contents; }
  .w-screen--art .w-idea__side { grid-column: 2; grid-row: 1 / span 2; }
  .w-screen--art .w-idea__main { grid-column: 1; grid-row: 2; }
  .w-art--page { max-width: none; margin: var(--space-2) 0 var(--space-5); }
}

/* Beside a title in a list. On phones a small drawing sits level with the label and title,
   and the sentence beneath runs the full width. */
.w-entry--art, .w-act--art, .today-story--art { display: grid; grid-template-columns: minmax(0, 1fr) 6.25rem; grid-template-rows: auto 1fr; column-gap: var(--space-3); align-items: start; }
.w-entry__body, .w-act__body { display: contents; }
.w-entry--art > .w-art, .w-act--art > .w-art { grid-column: 2; grid-row: 1 / span 2; }
.w-entry--art .w-label, .w-entry--art .w-entry__title, .w-act--art .w-act__top, .w-act--art .w-act__title { grid-column: 1; }
.w-entry--art .w-entry__teaser, .w-entry--art .w-entry__state, .w-act--art .w-act__sum, .w-act--art .w-caption { grid-column: 1 / -1; }
.today-story--art { grid-template-rows: none; }
.today-story--art > .w-art { grid-column: 2; grid-row: 1; }
.today-story--art > .today-story-heading { grid-column: 1; grid-row: 1; }
.today-story--art > .today-story-copy, .today-story--art > .w-entry__state, .today-story--art > .today-people { grid-column: 1 / -1; }
@media (min-width: 700px) {
  /* From here a card is led by its drawing, like a plate above its caption. */
  .w-entries--grid .w-entry--art, .w-act--art { display: flex; flex-direction: column; }
  .w-entries--grid .w-entry__body, .w-act--art > .w-act__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .w-entries--grid .w-entry--art > .w-art, .w-act--art > .w-art { margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
  /* A ruled row keeps its drawing at the right, a little larger, beside all of its words. */
  .w-entries:not(.w-entries--grid) > li > .w-entry--art, .today-story--art { grid-template-columns: minmax(0, 1fr) 8.5rem; grid-template-rows: auto auto 1fr; column-gap: var(--space-6); }
  .w-entries:not(.w-entries--grid) > li > .w-entry--art > .w-art { grid-row: 1 / span 3; }
  .w-entries:not(.w-entries--grid) > li > .w-entry--art .w-entry__teaser, .w-entries:not(.w-entries--grid) > li > .w-entry--art .w-entry__state { grid-column: 1; }
  .today-story--art { grid-template-rows: auto 1fr; }
  .today-story--art > .w-art { grid-row: 1 / span 2; }
  .today-story--art > .today-story-copy, .today-story--art > .w-entry__state { grid-column: 1; }
}
@media (min-width: 761px) {
  /* The home page's three columns: each tile opens with its drawing. */
  .w-grid3 .w-entry--art { display: flex; flex-direction: column; }
  .w-grid3 .w-entry__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .w-grid3 .w-entry--art > .w-art { width: 100%; max-width: 16rem; margin: 0 0 var(--space-2) calc(-1 * var(--space-3)); }
}

/* On The Page: above the title on phones, beside the words from 560px. */
.w-page--art > .w-art, .today-story.family-feature.today-story--art > .w-art { max-width: 15rem; margin: 0 auto var(--space-3); }
.today-story.family-feature.today-story--art { display: block; }
@media (min-width: 560px) {
  .w-page.w-page--art, .today-opening .w-page.w-page--art, .today-story.family-feature.today-story--art {
    display: grid; grid-template-columns: minmax(0, 1fr) 12rem; grid-template-rows: auto auto 1fr auto; column-gap: var(--space-5); align-items: start;
  }
  .w-page--art > *, .today-story.family-feature.today-story--art > * { grid-column: 1; grid-row: auto; }
  .w-page--art > .w-art, .today-story.family-feature.today-story--art > .w-art { grid-column: 2; grid-row: 1 / span 3; align-self: center; max-width: none; margin: 0; }
  .w-page--art > .w-page__foot, .today-story.family-feature.today-story--art > .today-people { grid-column: 1 / -1; }
}

/* ---------- the story, by month ----------
   Travis, 16 November 2026: "consider order, and how its displayed ... if you only enter 1
   memory for a month, it wastes screen real-estate ... the content always feels full-rich".
   A family's own words lead: each memory is a paper card that shows what was written, and
   the cards share the row however many there are, so one memory fills it. The ideas they
   tried are a quiet two-column list beneath. On wide screens the month sits in the margin
   beside its content. The hover pop-ups are gone; the words are on the card. */
.journey-memories .story-month { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.journey-memories .story-month + .story-month { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.journey-memories .story-month > h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; line-height: 1.25; color: var(--bark); margin: 0; }
.journey-memories .story-month > h3 span { color: var(--bark-soft); font-size: 15px; font-family: var(--font-sans); font-weight: 500; }
.story-month__body { display: grid; gap: var(--space-4); min-width: 0; }
.story-memories { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.story-memories > li { display: flex; min-width: 0; }
.story-memories > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.story-memory { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: var(--tap-min); padding: var(--space-4) var(--space-5); color: var(--bark); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--line); border-radius: var(--radius-md); transition: border-color var(--w-settle) var(--w-ease), opacity var(--w-press) var(--w-ease); }
.story-memory--milestone { border-top-color: var(--sage-line); }
.story-memory__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--space-3); font-size: 13px; line-height: 1.4; color: var(--bark-soft); }
.story-memory__kind { color: var(--eucalypt-dark); font-weight: 700; }
.story-memory__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance; }
.story-memory__words { font-size: 15px; line-height: 1.55; color: var(--bark-soft); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-memory__from { font-size: 13px; color: var(--eucalypt-dark); margin-top: auto; padding-top: 4px; }
.story-memory:active { opacity: .7; }
.story-memory:focus-visible, .story-tried a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .story-memory:hover { border-top-color: var(--eucalypt); } .story-tried a:hover .story-tried__title { text-decoration-color: var(--honey); } }
.story-tried > .w-label { margin: 0 0 2px; color: var(--bark-soft); }
.story-tried ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); column-gap: var(--space-6); }
.story-tried li { min-width: 0; border-bottom: 1px solid var(--line); }
.story-tried a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--tap-min); padding-block: 8px; color: var(--bark); text-decoration: none; }
.story-tried__title { min-width: 0; font-size: 16px; line-height: 1.35; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: .25em; transition: text-decoration-color var(--w-quick) var(--w-ease); }
.story-tried__when { flex: none; font-size: 13px; color: var(--bark-soft); white-space: nowrap; }
@media (min-width: 760px) {
  .journey-memories .story-month { grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-6); align-items: start; }
  .journey-memories .story-month > h3 { position: sticky; top: var(--space-6); display: grid; }
}

/* ---------- when a phone can't fit it ----------
   Travis, 16 November 2026: "be smart about width on the phone, and how screens display
   overflow or manage content you cant fit on the screen". Three rules:
   1. A row that scrolls sideways says so. It runs to the edge of the screen instead of
      stopping at the gutter, and fades out on the side that has more. wattle.js keeps the
      fade honest as the row moves and brings the chosen option into view; without it the
      row simply fades on the right.
   2. Three short links share a row evenly, each on two lines, with none left alone below.
   3. Advice choices stack, one to a row, where three will not sit side by side. */
.w-filters .w-pills, .child-bar {
  --fade-l: 0px; --fade-r: 28px; scroll-padding-inline: var(--phone-gutter); overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.w-filters .w-pills.at-end, .child-bar.at-end, .w-filters .w-pills.fits, .child-bar.fits { --fade-r: 0px; }
.w-filters .w-pills.not-start, .child-bar.not-start { --fade-l: 28px; }
@media (max-width: 759px) {
  .w-filters .w-pills, .child-bar { margin-right: calc(-1 * var(--phone-gutter)); padding-right: var(--phone-gutter); }
}
@media (max-width: 480px) {
  .family-child .family-child-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: start; }
  .family-child .family-child-links a { display: block; min-height: var(--tap-min); padding-block: 4px; line-height: 1.45; text-wrap: balance; }
  .ethos-row .w-seg { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ethos-row .w-seg span { display: flex; justify-content: center; }
}

/* ---------- arriving ----------
   The brand book's "content settles in", made lighter after Travis found loading "isnt
   nice" (16 November 2026): a page's parts rise 6px and fade in, top first, 30ms apart,
   four steps at most, all done within a third of a second. The design system ships the keyframes; this
   turns them on for server-rendered pages. Opacity and transform only, so nothing
   reflows; it ends with no lasting effect (fill backwards), and reduced motion is
   already handled in components.css. The page itself then only cross-fades. */
@keyframes w-settle-in { from { opacity: 0; transform: translateY(6px); } }
main > .w-screen > * { animation: w-settle-in var(--w-settle) var(--w-ease) backwards; }
main > .w-screen > :nth-child(2) { animation-delay: 30ms; }
main > .w-screen > :nth-child(3) { animation-delay: 60ms; }
main > .w-screen > :nth-child(n+4) { animation-delay: 90ms; }
::view-transition-old(root) { animation: w-fade-out var(--w-press) var(--w-ease) both; }
::view-transition-new(root) { animation: w-fade-in var(--w-quick) var(--w-ease) both; }

/* A slow page says it is on its way (wattle.js adds is-leaving after the system's patience). */
html.is-leaving main { opacity: .55; transition: opacity var(--w-settle) var(--w-ease); }
.w-wait { position: fixed; z-index: 45; left: 50%; top: 84px; width: 56px; height: 40px; margin-left: -28px; pointer-events: none; opacity: 0; transition: opacity var(--w-settle) var(--w-ease); }
html.is-leaving .w-wait { opacity: 1; }
.w-wait i { position: absolute; -webkit-mask: var(--w-bloom) center / contain no-repeat; mask: var(--w-bloom) center / contain no-repeat; }
.w-wait i:nth-child(1) { left: 6px; top: 6px; width: 28px; height: 28px; background: var(--gold); }
.w-wait i:nth-child(2) { left: 32px; top: 18px; width: 18px; height: 18px; background: var(--honey); }
.w-wait i:nth-child(3) { left: 36px; top: 2px; width: 11px; height: 11px; background: var(--eucalypt); }
html.is-leaving .w-wait i:nth-child(1) { animation: w-turn 2.8s linear infinite; }
html.is-leaving .w-wait i:nth-child(2) { animation: w-turn 2s linear infinite reverse; }
html.is-leaving .w-wait i:nth-child(3) { animation: w-turn 1.4s linear infinite; }
@media (max-width: 759px) { .w-wait { top: 66px; } }

@media print { main > .w-screen > * { animation: none; } }

/* Text links that carry no class of their own: bark words on a honey underline. */
main a:not([class]), .w-foot p a {
  color: var(--bark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--honey);
  text-decoration-thickness: 2px; text-underline-offset: .25em; border-radius: 2px;
  transition: color var(--w-quick) var(--w-ease);
}
main a:not([class]):hover { color: var(--honey-dark); }
main a:not([class]):focus-visible, .w-details > summary:focus-visible, .w-linkbtn:focus-visible,
.today-person > a:focus-visible, .w-brand:focus-visible, .w-back:focus-visible, .w-band__ideas a:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.w-gum .w-foot p a { color: var(--on-gum); }

/* ---------- shell ---------- */
.w-screen { width: 100%; max-width: 44rem; margin-inline: auto; }
.w-screen--narrow { max-width: 30rem; }
.w-screen--wide { max-width: var(--content-max); }
.w-screen > :first-child { margin-top: 0; }
.w-topbar { position: relative; z-index: 5; }
.w-topbar__fact { display: none; text-align: right; }
.w-nav form { display: contents; }
.w-linkbtn { padding: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--bark-soft); background: none; border: 0; border-radius: 4px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.w-linkbtn:hover { color: var(--bark); }
.w-foot .w-linkbtn { font-size: 14px; color: var(--bark); min-height: 32px; }
.w-foot .w-linkbtn:hover { text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: .3em; }
.w-foot form { display: contents; }
.w-foot__credit { display: flex; align-items: center; gap: 6px; }
.w-foot__credit svg { flex: none; }
.w-tabbar--app { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; }
.w-toasts { bottom: var(--space-6); }

@media (max-width: 759px) {
  .w-nav { gap: var(--space-4); }
  .w-nav__wide { display: none !important; }
  .w-topbar--app { min-height: 56px; border-bottom-color: transparent; }
  .w-topbar--app .w-nav { display: none; }
  .w-topbar--app .w-topbar__fact { display: block; }
  .has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .has-tabbar .w-toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  /* Tabbing down a page never lands on something hidden under the fixed tab bar. */
  html:has(.has-tabbar) { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 760px) {
  .w-tabbar--app { display: none; }
  .w-screen { padding: var(--space-8) var(--space-6) var(--space-12); }
}
@media (max-width: 359px) { .w-nav { gap: var(--space-3); } .w-topbar .w-btn--sm { padding: 0 12px; } }

/* ---------- messages ---------- */
.w-flashes { width: 100%; max-width: 44rem; margin: 0 auto; padding: var(--space-3) var(--phone-gutter) 0; display: grid; gap: var(--space-2); }
.w-flashes:empty { display: none; }
.w-flash { margin: 0; }
.w-flash--info { color: var(--bark); background: var(--sage); }
.w-flash ul { margin: 0; padding-left: 1.1em; }
.w-flash li + li { margin-top: 4px; }
.w-flash a { color: inherit; }
.w-toast.flash-success { pointer-events: auto; max-width: 30rem; }
/* the script times a confirmation's exit; without scripting it simply stays, like any notice */

/* ---------- forms ---------- */
.w-field > label.w-label { cursor: pointer; }
.w-field > .w-input + .w-label { margin-top: var(--space-4); }
select.w-input {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--bark-soft) 50%), linear-gradient(135deg, var(--bark-soft) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.w-input:disabled { color: var(--bark-soft); background-color: var(--sand); }
/* A password field carries one word, "Show" or "Hide" (wattle.js adds it where scripting
   runs). Words, not an eye: Wattle has no icon set. It is as tall as the field, so it is
   easy to press, and its focus outline sits inside the field's own border. */
.w-reveal { position: relative; display: block; }
.w-reveal > .w-input { padding-right: 4.75rem; }
.w-reveal__btn { position: absolute; top: 0; right: 0; height: 100%; min-width: 4.25rem; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 700; color: var(--bark-soft); background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--w-quick) var(--w-ease), opacity var(--w-press) var(--w-ease); }
.w-reveal__btn:hover { color: var(--bark); }
.w-reveal__btn:active { opacity: .7; }
.w-reveal__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -5px; }
.w-field > .w-reveal + .w-label { margin-top: var(--space-4); }
.w-check { margin: 0 0 var(--space-4); }
.w-check input { cursor: pointer; }
.w-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.w-check small { display: block; font-size: 14px; color: var(--bark-soft); margin-top: 2px; }
.w-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px var(--space-4); margin-top: var(--space-4); }
.w-actions form { display: contents; }
.w-btn svg { flex: none; width: 18px; height: 18px; }
.w-btn--block { white-space: normal; overflow-wrap: anywhere; text-align: center; padding-top: 10px; padding-bottom: 10px; }
@supports not selector(:has(*)) {
  .w-topic { padding-left: 16px; }
  .w-topic::before { display: none; }
  .w-topic input { position: static; opacity: 1; float: left; width: 20px; height: 20px; margin: 1px 10px 0 0; accent-color: var(--eucalypt-dark); }
}
.w-seg { margin-bottom: var(--space-5); }
.w-fieldlabel + .w-help { margin: -2px 0 10px; }
.w-topic { min-height: var(--tap-min); }
.w-topics { margin-bottom: var(--space-6); }
@media (max-width: 420px) { .w-row2 { grid-template-columns: 1fr; gap: 0; } }

/* A detail tucked away but one tap from open, with no script needed. */
.w-details > summary {
  display: inline-flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--bark); border-radius: 2px;
  text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.w-details > summary::-webkit-details-marker { display: none; }
.w-details[open] > summary { margin-bottom: var(--space-2); }

/* ---------- ruled groups (Family, Billing, any page of settings) ---------- */
.w-group { padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.w-group > h2 { font-size: 24px; margin: 0 0 var(--space-2); }
.w-group > h3 { font-size: 20px; line-height: 1.25; margin: 0 0 var(--space-2); }
.w-group > p, .w-group > form > p { font-size: 16px; line-height: 1.55; max-width: var(--measure); margin: 0 0 var(--space-4); }
.w-group > p.w-help, .w-group > p.w-caption { font-size: 14px; }
.w-group > :last-child { margin-bottom: 0; }
.w-group form { max-width: 30rem; }
.w-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.w-row:last-of-type { border-bottom: 1px solid var(--line); }
.w-row__name { font-family: var(--font-serif); font-size: 20px; line-height: 1.25; font-weight: 500; margin: 0; }
.w-row__meta { font-size: 15px; line-height: 1.5; color: var(--bark-soft); margin: 0; }
.w-row form { display: contents; }
.w-kid { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.w-kid:last-of-type { border-bottom: 1px solid var(--line); }
.w-kid .w-row { padding: 0; border: 0; }
.w-kid .w-details form { max-width: 30rem; }

/* ---------- Today ---------- */
.child-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px var(--space-5); padding: 2px; }
.child-bar::-webkit-scrollbar { display: none; }
.child-bar .w-pill { flex: none; min-height: 44px; white-space: nowrap; }
.w-pagehead .w-aside + .w-caption { margin-top: 4px; }
.w-page__title { margin-top: 0; }
.w-page .spot-soon { display: block; margin-top: 6px; color: var(--eucalypt-dark); font-weight: 700; }
.w-entry .w-entry__title, .w-entry .w-label { margin-block-start: 0; }
.w-entry--locked .w-entry__teaser { filter: blur(3.5px); }
.w-lookback { margin: var(--space-6) 0 var(--space-4); }
.w-strip + .w-strip { margin-top: var(--space-3); }
.w-nudge { margin: var(--space-6) 0; }
.w-nudge__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-4); }
.w-nudge__actions form { display: contents; }
.w-feednote { margin: var(--space-6) 0 0; max-width: var(--measure); }
.w-signoff p { max-width: 22rem; }

@media (min-width: 700px) {
  /* From here entries may sit as idea cards in a grid: same three things, on paper. */
  .w-entries--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--space-5); border-bottom: 0; }
  .w-entries--grid > li { display: flex; }
  .w-entries--grid .w-entry {
    flex: 1; display: flex; flex-direction: column; padding: var(--space-5) var(--space-5) var(--space-4);
    background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--line); border-radius: var(--radius-md);
    transition: border-color var(--w-settle) var(--w-ease), opacity var(--w-press) var(--w-ease);
  }
  .w-entries--grid .w-entry__title { margin: 6px 0 8px; }
  .w-entries--grid .w-entry__teaser { flex: 1; }
  .w-entries--grid .w-entry__state { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
  .w-entries--grid a.w-entry:hover .w-entry__title { text-decoration: none; }
}
@media (min-width: 700px) and (hover: hover) { .w-entries--grid a.w-entry:hover { border-color: var(--eucalypt); } }

/* Today for a whole family: one flow, each idea once, a way in for each child. */
.today-ideas { border-bottom: 1px solid var(--line); }
.today-story { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.today-story h3 { font-size: 20px; line-height: 1.25; margin: 4px 0; }
.today-story h3 a { color: inherit; text-decoration: none; }
.today-story h3 a:hover { text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.today-story-copy { font-size: 15px; line-height: 1.5; color: var(--bark-soft); margin: 0; }
.today-story-locked .today-story-copy { filter: blur(3.5px); user-select: none; }
.today-story .w-entry__state { margin: 8px 0 0; }
.today-people { display: flex; flex-wrap: wrap; gap: 8px var(--space-3); margin-top: 10px; }
.today-person { display: grid; gap: 2px; }
.today-person > .w-pill { justify-content: space-between; gap: 8px; min-height: var(--tap-min); overflow-wrap: anywhere; }
.today-person-note { font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--bark-soft); margin: 0; padding: 0 4px; max-width: 16rem; }

/* ---------- an idea, an activity ---------- */
.w-back { margin-bottom: var(--space-2); }
.backlink { margin: 0; }
button.w-back { padding: 0; font-family: inherit; background: none; border: 0; cursor: pointer; }
.w-sechead h3 { font-size: 20px; line-height: 1.25; margin: 0; }
.w-pagehead .w-aside + .w-lead { margin-top: 12px; }
.w-idea { display: grid; gap: var(--space-6); }
.w-idea__main > :first-child, .w-idea__main > .w-sechead:first-child { margin-top: 0; }
.w-idea__main .w-sechead { margin-top: var(--space-6); }
.w-idea__main .w-prose p:last-child { margin-bottom: 0; }
.w-idea__main .w-note { margin: var(--space-5) 0 0; }
.w-idea__main .w-moment, .w-idea__main .w-sources, .w-idea__main .w-unlock { margin-top: var(--space-6); }
.w-sources li > span { min-width: 0; }
/* long words at large text sizes wrap inside these grids instead of pushing the page sideways */
.w-how li { grid-template-columns: 2rem minmax(0, 1fr); }
.w-glance div { grid-template-columns: 6.5rem minmax(0, 1fr); }
.w-sources li { grid-template-columns: 1.5rem minmax(0, 1fr); }
.w-moment form { display: contents; }
.w-moment .w-moment__quiet { background: transparent; border-color: transparent; color: var(--bark-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; padding: 0 8px; }
.w-moment .w-btn { min-height: var(--tap-min); }
.w-moment a.w-btn { border-radius: var(--radius-sm); }
@media (min-width: 900px) {
  .w-screen--idea { max-width: var(--content-max); }
  .w-idea { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--space-12); align-items: start; }
  .w-idea__side { grid-column: 2; grid-row: 1; }
  .w-idea__main { grid-column: 1; grid-row: 1; }
  .w-screen--idea .w-pagehead { max-width: 40rem; }
}

/* ---------- things to do ---------- */
.w-filters { margin-bottom: var(--space-5); }
.w-filters > div { grid-template-columns: 4.5rem minmax(0, 1fr); }
.w-filters .w-pill { min-height: 40px; }
.w-acts { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .w-acts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--space-5); } }
.w-act__title { margin-block-start: 8px; }
.w-act--locked .w-act__sum { filter: blur(3.5px); user-select: none; }

/* ---------- the journey ---------- */
.w-band__range .w-tag { margin-left: 4px; vertical-align: 1px; }
.w-band__ideas li > span:first-child { min-width: 0; }
.w-band__ideas small { display: block; font-size: 14px; line-height: 1.45; color: var(--bark-soft); }
.w-band__ideas .w-tag { flex: none; }
.w-band--next .w-band__dot { box-sizing: border-box; }

/* ---------- Full access ---------- */
.w-unlock h2 { margin-top: 10px; }
.tease-blur { filter: blur(3.5px); user-select: none; }
.tease-preview .w-caption { margin: 0 0 var(--space-4); }
.w-unlock .w-btn { margin-top: 4px; }
.w-payform { max-width: 30rem; }
.w-payform .w-topics { grid-template-columns: 1fr 1fr; margin-bottom: var(--space-4); }
.w-pay__monthly, .w-pay__once { display: none; }
.w-payterms { display: grid; gap: 6px; margin: var(--space-3) 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--bark-soft); }
.w-payterms b { color: var(--bark); }
@supports selector(:has(*)) {
  .w-payform:has(input[value="monthly"]:checked) .w-pay__monthly,
  .w-payform:has(input[value="lifetime"]:checked) .w-pay__once { display: inline; }
  .w-payform:has(input[name="plan"]:checked) .w-pay__any { display: none; }
  .w-payform:has(input[value="monthly"]:checked) .w-payterms__once,
  .w-payform:has(input[value="lifetime"]:checked) .w-payterms__monthly { display: none; }
}
.w-club { margin-top: var(--space-8); padding: var(--space-5) var(--space-6); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); }
.w-club__head { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 20px; line-height: 1.25; font-weight: 500; margin: 0 0 6px; }
.w-club__head svg { flex: none; width: 18px; height: 18px; color: var(--eucalypt-dark); }
.w-club p { font-size: 15px; line-height: 1.55; color: var(--bark-soft); margin: 0 0 var(--space-3); max-width: var(--measure); }
.w-club p.w-club__price { color: var(--bark); font-weight: 700; }
.w-club form { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.w-club form .w-label { display: block; font-weight: 500; color: var(--bark-soft); margin-bottom: 8px; }
.w-club__row { display: flex; flex-wrap: wrap; gap: 8px; }
.w-club__row .w-input { flex: 1 1 14rem; width: auto; }
.w-plans + .w-caption { margin-top: var(--space-5); max-width: var(--measure); }

/* ---------- reading pages (privacy, terms) ---------- */
.w-prose h3 { font-size: 20px; line-height: 1.25; margin: var(--space-6) 0 var(--space-2); }
.w-prose ul { margin: 0 0 var(--space-4); padding: 0; list-style: none; max-width: var(--measure); }
.w-prose ul li { position: relative; padding: 0 0 10px 26px; font-size: 17px; line-height: 1.55; }
.w-prose ul li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; background: var(--gold); -webkit-mask: var(--w-bloom) center / contain no-repeat; mask: var(--w-bloom) center / contain no-repeat; }
.w-prose .w-fine { max-width: var(--measure); margin-top: var(--space-6); }

/* ---------- the website ---------- */
main > .w-section, main > .w-hero, .w-ground > .w-section, .w-gum > .w-section { width: 100%; }
.w-hero__art > img { pointer-events: none; }
.w-hero h1 { margin-top: var(--space-3); }
.w-statement p, .w-section__head p, .w-split__text > p:not(.w-label) { text-wrap: pretty; }
.w-split__ev { display: grid; gap: 10px; }
.w-split .w-sources { margin-top: var(--space-5); }
.w-closing h2 { color: var(--on-gum); }
.w-gum .w-btn--gold:hover { background: var(--blossom); border-color: var(--blossom); }
.w-gum .w-section--closing { padding-bottom: var(--space-8); }
.w-steps .w-step h3 { margin-top: 0; }
@media (max-width: 760px) {
  .w-hero__sub { font-size: 17px; margin-bottom: var(--space-6); }
  .w-hero__cta .w-btn { width: 100%; }
  .w-hero__cta .w-link { display: none; }
  .w-hero__fine { text-align: center; }
  .w-step { display: grid; grid-template-columns: 2.4rem 1fr; }
  .w-step__n { grid-row: span 2; }
  .w-section__head { margin-bottom: var(--space-5); }
  .w-section__head h2 { font-size: 24px; }
  .w-split__text h2 { font-size: 24px; }
}

/* Night keeps the same layout; the sprig and the app icon keep their own colours. */
@media print {
  .w-topbar, .w-tabbar, .w-foot nav, .w-toasts, .w-moment, .w-nudge { display: none !important; }
  body { background: #fff; background-image: none !important; }
}

/* Today reads like a small family journal: one leading Page, a quiet memory
   alongside, and clearly named chapters for children. All colours are tokens. */
.w-settings-icon { width: 22px; height: 22px; flex: none; }
.w-nav a:has(.w-settings-icon) { display: inline-flex; align-items: center; gap: 6px; }
.w-tabbar--app .w-tab:has(.w-settings-icon) { flex-direction: row; gap: 5px; }
.w-tabbar--app .w-settings-icon { width: 19px; height: 19px; }
.today-single > .w-pagehead, .today-family > .w-pagehead { margin-bottom: var(--space-8); }
.today-opening { display: grid; gap: var(--space-6); align-items: stretch; }
.today-opening .w-page { margin: 0; display: flex; flex-direction: column; }
.today-opening .w-page__body { flex: 1; }
.today-opening .w-page__foot { margin-top: var(--space-4); }
.today-memory { display: flex; flex-direction: column; background: var(--sage); border-radius: var(--radius-md); padding: var(--space-6); }
.today-memory > .w-label { margin: 0 0 var(--space-4); }
.today-memory > .w-link:last-child { margin-top: auto; padding-top: var(--space-3); align-self: flex-start; }
.today-memory h2, .today-pause h2 { font-size: 24px; line-height: 1.3; margin: var(--space-2) 0 var(--space-4); }
.today-memory-copy { color: var(--bark-soft); font-size: 16px; line-height: 1.6; margin: 0 0 var(--space-5); }
.today-memory .w-caption { margin: 0; }
.today-memory-links { display: grid; gap: var(--space-3); }
.today-memory-links a { min-height: var(--tap-min); display: flex; align-items: center; }
.today-pause { padding: var(--space-6); border-block: 1px solid var(--line); }
.family-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); border-block: 1px solid var(--line); margin-bottom: var(--space-8); }
.family-index > a { display: grid; gap: 4px; padding: var(--space-4) var(--space-5); text-decoration: none !important; font-weight: 400 !important; min-width: 0; }
.family-index > a + a { border-left: 1px solid var(--line); }
.family-index-name { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-serif); font-size: 24px; line-height: 1.3; }
.family-index .child-age { font-size: 15px; color: var(--bark-soft); }
.family-index .w-label { margin-top: var(--space-2); }
.family-index > a:hover { background: var(--sand); }
.family-day-layout { display: grid; gap: var(--space-8); }
.family-day-children, .family-day-aside { min-width: 0; }
.family-child { scroll-margin-top: var(--space-6); }
.family-child + .family-child { margin-top: var(--space-12); }
.family-child-heading { display: flex; flex-wrap: wrap; align-items: center; min-height: var(--tap-min); justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.family-child-heading h2 { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: 24px; margin: 0; }
.family-child-heading > a { display: inline-flex; align-items: center; min-height: var(--tap-min); font-size: 15px; }
/* The week's quiet line ("Two moments kept this week."): a caption tucked under the child's name. */
.family-child-heading + .today-rhythm { margin: calc(-1 * var(--space-3)) 0 var(--space-3); }
.family-aside-heading { display: flex; align-items: center; min-height: var(--tap-min); margin-bottom: var(--space-4); }
.family-aside-heading h2 { font-size: 24px; margin: 0; }
.family-child .today-ideas { border-bottom: 0; }
.today-story.family-feature { display: block; padding: var(--space-6); margin: 0 0 var(--space-5); border-top: 0; }
.today-story.family-feature h3 { font-size: 24px; line-height: 1.25; margin: var(--space-3) 0 var(--space-3); }
.today-story.family-feature .today-people { align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.today-story.family-feature .today-story-copy { font-size: 17px; }
.today-story-copy { max-width: var(--measure); }
.family-child-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.family-child-links a { min-height: var(--tap-min); display: inline-flex; align-items: center; font-size: 15px; }
.family-shared { margin-top: var(--space-8); }
.family-shared .today-person { max-width: 100%; }
@media (min-width: 850px) {
  .today-opening, .family-day-layout { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: var(--space-8); }
  .family-day-aside { align-self: start; }
  .today-memory { padding: var(--space-6); }
}
@media (max-width: 480px) {
  .family-index { grid-template-columns: 1fr 1fr; }
  .family-index > a { padding: var(--space-3); }
  .family-index > a:nth-child(odd) { border-left: 0; }
  .family-index > a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .family-index-name { font-size: 22px; }
  .today-story.family-feature { padding: var(--space-6); }
  .w-tabbar--app .w-tab:has(.w-settings-icon) { flex-direction: column; gap: 0; }
}

/* Journey memories are a dated personal story, apart from the advice chapters. */
.journey-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-8); }
.journey-head__title { min-width: 0; flex: 1 1 20rem; }
.journey-head .w-btn { min-height: var(--tap-min); max-width: 100%; white-space: normal; padding-block: var(--space-3); text-align: center; }
@media (max-width: 599px) {
  .journey-head { display: grid; grid-template-columns: minmax(0, 1fr); }
  .journey-head .w-btn { width: 100%; }
}
/* Small moments, read together. The detail stays behind the link. */
.story-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.story-heading h2 { font-size: 24px; margin: 0; }
.story-filters { display: flex; gap: var(--space-4); }
.story-filters a { min-height: var(--tap-min); display: inline-flex; align-items: center; font-size: 15px; }
.story-filters a[aria-current] { text-decoration-color: var(--bark); }
.story-empty { font-size: 17px; line-height: 1.6; color: var(--bark-soft); margin: var(--space-4) 0 0; max-width: var(--measure); }
.story-month { margin-top: var(--space-6); }
.story-month + .story-month { margin-top: var(--space-8); }
.story-month > h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--eucalypt-dark); margin: 0 0 var(--space-3); }
.story-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.story-pagination a { min-height: var(--tap-min); display: inline-flex; align-items: center; }
.memory-context { margin: 0; }
.idea-journey { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.idea-journey h2 { font-size: 24px; margin: 0 0 var(--space-2); }
.idea-memory-links { list-style: none; margin: var(--space-4) 0; padding: 0; }
.idea-memory-links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.journey-chapters-head { border-top: 1px solid var(--line); padding-top: var(--space-8); margin-top: var(--space-12); }
/* The editor follows the system's reading measure and space-8 grouping.
   Words come first; date and kind are supporting details. */
.memory-editor { max-width: calc(var(--measure) + var(--space-6) + var(--space-6)); }
.memory-editor > .w-back { min-height: var(--tap-min); margin-bottom: var(--space-4); }
.memory-editor > .w-pagehead { margin-bottom: var(--space-8); }
.memory-editor .w-pagehead h1 { margin: 0 0 var(--space-2); }
.memory-form { display: grid; gap: var(--space-8); }
.memory-form .w-field { min-width: 0; margin: 0; }
.memory-form .w-help { margin: var(--space-2) 0 0; }
.memory-form__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.memory-form__finish { border-top: 1px solid var(--line); padding-top: var(--space-6); }
.memory-form__finish > .w-caption { margin: 0; }
.memory-form__finish .w-actions { margin-top: var(--space-5); gap: var(--space-4) var(--space-6); }
.memory-form__finish .w-back { min-height: var(--tap-min); margin: 0; }
@media (max-width: 599px) {
  .memory-form__details { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .memory-form__finish .w-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .memory-form__finish .w-btn { width: 100%; }
  .memory-form__finish .w-back { justify-self: center; }
}
.memory-form .w-input, .memory-comments .w-input { max-width: 100%; min-width: 0; }
textarea.w-input { resize: vertical; min-height: 7rem; line-height: 1.6; }
.memory-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 18px; line-height: 1.7; max-width: var(--measure); }
.memory-reading { padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.memory-comments { margin-top: var(--space-8); }
.memory-comment { padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.memory-comment .memory-body { font-size: 16px; margin: 10px 0; }
.memory-comment .w-actions { margin-top: var(--space-2); }
.memory-comment .w-label { margin: 0; }
.memory-reading .w-actions form, .memory-comment .w-actions form { display: block; }
.memory-comments > form { margin-bottom: var(--space-5); }

.w-note--error { background: var(--clay-wash); color: var(--clay); margin-bottom: var(--space-5); }
.today-story-timely:not(.family-feature) { padding: var(--space-6); background: var(--paper); border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.today-story-timely:not(.family-feature) h3 { font-size: 24px; margin-block: var(--space-3); }
.today-story-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.today-story .today-people:has(.today-person:empty) { display: none; }
.w-tab:has(.w-settings-icon)::before { display: none; }
.w-tab:has(.w-settings-icon)[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: .25em; }
/* Enlarged text must wrap within the phone, including the four destinations. */
.w-tabbar--app { grid-auto-columns: minmax(0, 1fr); }
.w-tabbar--app .w-tab { min-width: 0; overflow-wrap: anywhere; }
.w-tabbar--app .w-tab span { max-width: 100%; }
.memory-form .w-btn, .memory-comments .w-btn, .w-group .w-btn { max-width: 100%; white-space: normal; height: auto; padding-block: 12px; text-align: center; }

.today-support + .journey-strip, .locked-gallery + .journey-strip { margin-top: var(--space-8); }
.today-single .w-feednote { margin-top: var(--space-8); }
.today-opening > * { min-width: 0; }

.today-single .w-ev, .today-family .w-ev { min-width: 0; white-space: normal; }
.today-single .w-ev i, .today-family .w-ev i { flex: none; }

/* Standalone actions remain easy to press, including links that look like text. */
.w-topbar--app .w-nav a:not(.w-btn),
.memory-detail .w-back, .memory-detail .w-btn, .memory-detail .w-linkbtn,
.memory-detail .w-details > summary, .memory-detail .w-actions > a,
.memory-comment-editor .w-back, .memory-comment-editor .w-actions > a,
.idea-journey .w-actions > a, .idea-memory-links a,
.w-journey .w-details > summary, .w-band__ideas .j-idea,
.today-story-link { min-height: var(--tap-min); display: inline-flex; align-items: center; }
.w-back { max-width: 100%; overflow-wrap: anywhere; }
.idea-memory-links a { min-width: 0; overflow-wrap: anywhere; }

.w-band__ideas li { padding-block: 0; min-height: var(--tap-min); align-items: center; flex-wrap: wrap; }

.today-story-link { max-width: 100%; overflow-wrap: anywhere; }

/* Review fixes, 15 November 2026: press height on three text links, the lead
   card keeps its own height, and sibling comment actions share one size. */
.today-memory > .w-link, .today-person > .w-link, .journey-memories > a { min-height: var(--tap-min); display: inline-flex; align-items: center; }
.today-opening { align-items: start; }
.memory-comment .w-actions > a { font-size: 15px; }

/* ---------- type and rhythm ----------
   Travis, 17 November 2026: "Same fonts, but just spacing and sizing maybe need to be refined ...
   some elements are just a little snug together, or line height wrong, or mis aligned".
   Nothing new is introduced: the same two faces and the same spacing tokens. What changes is
   that things of one kind now share one size and one gap. On an idea or activity page the
   three section headings had two sizes and the reading text three; labels sat hard against
   their titles; facts and their labels did not share a baseline. This block comes last so it
   settles those in one place. */

/* A label has air above its title; a title and its sentence read as one thought. */
.w-pagehead .w-label { margin-bottom: 6px; }
.w-pagehead h1 { margin: 0 0 var(--space-2); line-height: 1.18; }
.w-pagehead .w-lead { margin-top: 0; line-height: 1.5; max-width: var(--measure); }
.w-screen--idea .w-pagehead { margin-bottom: var(--space-6); }

/* The reading column: one heading size, one gap above and below it, one text size. */
.w-idea__main .w-prose h2, .w-idea__main .w-sechead h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.003em; }
.w-idea__main .w-prose h2 { margin: var(--space-8) 0 var(--space-2); }
.w-idea__main .w-sechead { margin: var(--space-8) 0 var(--space-3); }
.w-idea__main > .w-prose:first-child h2:first-child, .w-idea__main > .w-sechead:first-child { margin-top: 0; }
.w-idea__main .w-prose p { margin-bottom: 0; }
.w-idea__main .w-prose p + p { margin-top: var(--space-4); }
.w-idea__main .w-tips li, .w-idea__main .w-how li { font-size: 17px; line-height: 1.55; }
.w-idea__main .w-tips li { padding: 0 0 var(--space-3) 28px; max-width: var(--measure); }
.w-idea__main .w-tips li:last-child { padding-bottom: 0; }
.w-idea__main .w-tips li::before { top: .36em; }
.w-idea__main .w-how li { padding: 14px 0; }
.w-idea__main .w-how li::before { line-height: 1.15; }
.w-idea__main .w-note { font-size: 16px; line-height: 1.55; margin-top: var(--space-6); }
.w-idea__main .w-moment p { font-size: 17px; line-height: 1.4; margin-bottom: var(--space-3); }

/* Facts: the label sits on the first line of its fact. */
.w-glance div { padding: 14px 0; align-items: baseline; }
.w-glance dt { padding-top: 0; line-height: 1.45; }
.w-glance dd small { line-height: 1.45; margin-top: 4px; }

/* Rows and cards: label, title, sentence, each with the same breath between. */
.w-entry .w-entry__title { margin: 6px 0 6px; }
.w-entries--grid .w-entry .w-entry__title { margin: 8px 0 8px; }
.w-act__title { margin: 8px 0 8px; }
.w-entry__teaser, .w-act__sum, .today-story-copy { line-height: 1.55; }
.w-act .w-caption { line-height: 1.5; }
.w-sechead p { margin-top: 4px; line-height: 1.5; }
.w-page__title { margin-bottom: 10px; line-height: 1.22; }
.w-sources h3 { margin-bottom: 10px; }
.w-sources li { padding: 4px 0; }

/* Small things of the same kind, across Today, Journey and Settings. */
.w-link--arrow::after { content: "\00a0\2192"; }   /* a space that cannot collapse, so the arrow never touches the words and the underline stays whole */
.w-row__meta { margin-top: 2px; }
.journey-memories .story-month > h3 span { display: inline-block; margin-top: 2px; line-height: 1.4; }
.w-pagehead .w-aside + .w-caption { margin-top: 6px; }
.w-group > h3 + .w-fieldlabel, .w-group > h3 + .w-label { margin-top: var(--space-3); }

