/* ---------- Polish pass for phones, from the smallest (320px) to the largest (430px). Loaded last. ---------- */

/* the menu icon: a list style named .bars elsewhere gave it 20px of padding and squeezed it to a dot */
.nav-toggle svg.bars, .nav-toggle svg.x { padding: 0; margin: 0; }

/* the header always fits on one row, down to 320px */
@media (max-width: 640px) {
  .top-in { gap: 8px; }
  .top-in > .btn { white-space: nowrap; flex: none; }
}
@media (max-width: 380px) {
  .brand-logo img { height: 24px; width: auto; }
  .top-in > .btn { padding: 8px 11px; font-size: 0.84rem; }
  .nav-toggle { width: 42px; height: 42px; }
}

/* footer: one calm column on small phones instead of two cramped ones */
@media (max-width: 460px) {
  /* footer on phones: the brand, then two short link columns side by side, then "Learn more" in two columns (half the scroll) */
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 18px; }
  .foot-grid > div:first-child, .foot-grid > div:last-child { grid-column: 1 / -1; }
  .foot-grid > div:last-child ul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 18px; }
}

/* ---------- home ---------- */
/* the headline fills the screen on a phone: the most important sentence on the page */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.15rem, 10.6vw, 2.9rem) !important; line-height: 1.06 !important; letter-spacing: -0.02em; max-width: none; overflow-wrap: normal; }
  /* family photos sit in their own row above the words, never on top of them */
  .hero-faces { display: grid; justify-items: start; gap: 10px; margin-top: 22px; }
  .hero-faces-row img { width: 48px; height: 48px; margin-left: -12px; }
  .hero-faces-text { font-size: 1rem; }
}

/* "Where to start": bigger family photos. On a phone each board's questions become swipeable picture cards. */
.pz-board li a:has(.pz-row-photo) { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding-left: 0; }
.pz-row-photo { width: 76px; height: 76px; border-radius: 14px; }
@media (max-width: 640px) {
  .pz-board ol { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; padding: 16px 16px 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .pz-board ol::-webkit-scrollbar { display: none; }
  .pz-board ol > li { scroll-snap-align: start; }
  .pz-board li a:has(.pz-row-photo) { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 12px; height: 100%; padding: 0 0 16px !important; border: 1px solid var(--line) !important; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(20, 40, 59, 0.05); }
  .pz-board li:first-child a:has(.pz-row-photo) { border-top: 1px solid var(--line) !important; }
  .pz-board li a:has(.pz-row-photo) .pz-row-photo { width: 100%; height: 168px; border-radius: 0; }
  .pz-board li a:has(.pz-row-photo) .pz-row-main { padding: 0 16px; }
  .pz-board li a:has(.pz-row-photo) .pz-row-right { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; min-height: 34px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 14px rgba(20, 40, 59, 0.18); }
  .pz-board li a:has(.pz-row-photo) .pz-row-right:has(.pz-ring) { padding: 4px; }
  .pz-board .pz-more { margin: 0 16px 18px; }
  .pz-board-head { padding: 18px 16px 16px; gap: 12px; }
}

/* "Just happened": the label and who asked wrap under the question instead of squeezing beside it */
@media (max-width: 640px) {
  #now .tl-row { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 12px; padding: 14px 8px; }
  #now .tl-label { flex-wrap: wrap; gap: 2px 8px; letter-spacing: 0.06em; }
  #now .tl-body small { flex-wrap: wrap; gap: 4px 10px; line-height: 1.45; }
  #now .tl-go { width: 18px; }
}

/* ---------- What you get for a verified result ---------- */
.cr { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cr-cert { display: grid; gap: 18px; justify-items: center; padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--brass-soft); border: 1px solid #ead9b0; }
.cr-cert .mini-cert { width: 100%; max-width: 420px; }
.cr-name { display: grid; gap: 6px; width: 100%; max-width: 420px; }
.cr-name span { font: 600 0.88rem/1.2 var(--sans); color: var(--brass-ink); }
.cr-name input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #e0cb98; background: #fff; font: 400 1rem/1.3 var(--sans); color: var(--ink); }
.cr-name input:focus { outline: 3px solid rgba(169, 123, 31, 0.22); border-color: var(--brass); }
.cr-side { display: grid; gap: 22px; }
.cr-gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cr-gets li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.cr-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--pine); background: var(--pine-soft); }
.cr-gets li:nth-child(3) .cr-ic { color: #fff; background: var(--brass); }
.cr-gets b { display: block; font: 600 1.06rem/1.3 var(--serif); color: var(--ink); }
.cr-gets p { margin: 4px 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
.cr-levels > b { display: block; margin-bottom: 10px; font: 600 0.92rem/1.2 var(--sans); color: var(--ink); }
.cr-levels ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.cr-levels li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--pine-wash); border: 1px solid #d6e9de; border-bottom: calc(2px + var(--i) * 1px) solid var(--pine-2); }
.cr-levels li span { font: 600 0.88rem/1.25 var(--sans); color: var(--pine-deep); }
.cr-levels li small { font-size: 0.78rem; color: var(--sub); }
.cr-go { align-items: center; gap: 12px 20px; }
@media (max-width: 860px) { .cr { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .cr-cert { padding: 22px 16px; border-radius: 20px; }
  .cr-cert .mini-cert { transform: none; }
  .cr-gets li { padding: 14px; gap: 12px; }
  .cr-ic { width: 38px; height: 38px; }
  .cr-levels ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-go .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- question page ---------- */
/* the journey's eight stops fit any phone without touching */
@media (max-width: 640px) {
  .sp-track { --dot: min(32px, calc((100vw - 76px) / 8)); }
  .sp-stop.now .sp-dot { transform: none; }
  .sp-stop.now .sp-dot::after { inset: -4px; }
  .sp-dot svg { width: 13px; height: 13px; }
}
@media (max-width: 360px) { .sp-dot svg { width: 11px; height: 11px; } .sp-stop.done .sp-dot, .sp-stop.now .sp-dot { border-width: 2px; } }

/* the family's words use the whole width on a phone; the quote mark sits above them */
@media (max-width: 640px) {
  .qd-story { padding: 46px 18px 20px; }
  .qd-quote { left: 16px; top: 2px; font-size: 3.4rem; }
  .qd-story blockquote { font-size: 1.08rem; line-height: 1.65; }
  .qd-story.map { padding: 20px 18px; }
  .qd-story-wrap > .qd-story { padding-top: 46px; }
}
/* "If we find the answer": a plain heading, not shouted */
.hope-label { letter-spacing: 0; text-transform: none; font-size: 0.86rem; }

/* the next experiment: the cost band wraps instead of pushing the card off the screen */
.lb-band { white-space: normal; }
.lb-band small { white-space: normal; }
.lb-designs { grid-template-columns: minmax(0, 1fr); }
.lb > * { min-width: 0; }
@media (max-width: 640px) {
  .lb-design-top { display: grid; gap: 4px; }
  .lb-band small { display: block; margin-top: 2px; }
  /* the flask sits beside the status, not alone on its own row */
  .lb-head { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; }
  .lb-head > div { display: contents; }
  .lb-head .lb-kicker { grid-column: 2; margin: 0; justify-self: start; }
  .lb-head h2, .lb-head > div > p { grid-column: 1 / -1; }
  .lb-head h2 { margin-top: 8px; }
}

/* the pledge card: amounts never squeeze, and the three steps read as tidy lines */
.qd-money-path small { display: block; margin-top: 2px; }
@media (max-width: 380px) {
  .qd-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qd-pledge-top { padding: 16px; gap: 12px; }
  .qd-coin { width: 42px; height: 42px; border-radius: 13px; }
}

/* help doors on a phone: the icon lines up with the door's title */
@media (max-width: 700px) {
  .qf-door { align-items: start; }
  .qf-door-ic { margin-top: 2px; }
  .qf-door-mark { top: 18px; margin-top: 0; }
}

/* question rows: the actions wrap inside the card instead of running off the edge */
@media (max-width: 640px) {
  .qrow-side { flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
}

/* home hero on a phone: the live card stays; the certificate (shown in full further down, under "What you get") and
   the challenge chips step aside so the hero is one calm screen. Both buttons are full width. */
@media (max-width: 640px) {
  .hero-live .st-cert, .hero-live .st-chips { display: none; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .st-row .st-who b em { display: none; }
}

/* home: "Progress" reads as a heading with its number underneath on a phone, not squeezed beside it */
@media (max-width: 640px) {
  .pz-prog-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pz-prog-head > b { font-size: 1.15rem; }
}
/* "Put your AI on the desk": tidy lines, and the Connect link sits under the words on a phone */
.oracle-desk-join small { display: block; margin-top: 2px; line-height: 1.45; }
@media (max-width: 640px) {
  .oracle-desk-join { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
  .oracle-desk-join em { grid-column: 2; }
}

/* home "Lend your AI": on a phone a locked step is one short line (its lock, its name, what unlocks it), not a
   full greyed-out copy of the step */
@media (max-width: 640px) {
  .ln-tile.locked { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 16px 16px; }
  .ln-tile.locked > .ln-n { grid-row: span 2; margin: 0; }
  .ln-tile.locked > small, .ln-tile.locked .ln-ghost { display: none; }
  .ln-tile.locked .ln-locked { grid-column: 2; margin: 0; }
  .ln-tile.locked .ln-lock { padding: 0; border: 0; background: none; color: var(--sub); font-weight: 500; }
  .ln-tile.locked > b { font-size: 1.05rem; }
}
@media (max-width: 460px) { .ln-does { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* "What we've learned so far": the heading keeps its width; its link goes underneath on a phone */
@media (max-width: 640px) {
  .rm-head { display: grid !important; gap: 6px; justify-items: start; }
}

/* "Pick a field" on a phone: a calm two-column grid of fields (icon, name, how many questions), not twelve tall cards */
@media (max-width: 640px) {
  .fields { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .field-card { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; justify-items: start; align-content: start; gap: 8px !important; padding: 14px !important; min-height: 0 !important; }
  .field-card .field-icon { width: 40px !important; height: 40px !important; margin: 0 !important; }
  .field-card > b { font-size: 0.98rem !important; line-height: 1.25 !important; }
  .field-card > small { display: none !important; }
  .field-card > em { font-size: 0.8rem !important; line-height: 1.35 !important; margin: 0 !important; }
}

/* number facts on a phone: one tidy column, the big number beside its words (no odd empty cell) */
@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .facts .fact { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 2px 14px; align-items: start; padding: 16px !important; }
  .facts .fact-v { grid-row: span 2; font-size: clamp(1.6rem, 8vw, 2.1rem) !important; line-height: 1.05 !important; }
  .facts .fact-l { font-size: 0.98rem; }
  .facts .fact-d { font-size: 0.86rem; line-height: 1.45; }
}

/* the questions people asked (home): swipeable picture cards on a phone instead of three very tall ones */
@media (max-width: 640px) {
  #questions .grid.g3 { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none !important; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  #questions .grid.g3::-webkit-scrollbar { display: none; }
  #questions .grid.g3 > * { scroll-snap-align: start; min-width: 0; }
}

/* a title in bold with a small line under it (used across the site): the small line sits right under its title with
   its own comfortable spacing, instead of borrowing the wide line spacing of the text around it */
:where(div, li) > b + small { display: block; line-height: 1.45; }
.cr-levels li { align-content: space-between; }

/* small labels in plain sentence case, readable size: no shouting capitals (house style) */
.ac-label { font-size: 0.82rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ac-label a { font-size: 0.82rem; }
.qd-pledge-label { font-size: 0.86rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }

/* question page on a phone: the journey card gets its own space under the backers card instead of tucking beneath it */
@media (max-width: 640px) {
  .sp-band { position: static; margin-top: 0; padding-block: 4px 22px; background: var(--pine-wash); border-bottom: 1px solid var(--line); }
  .qd-hero { border-bottom: 0; }
}
@media (max-width: 640px) {
  .qd-hero::before { display: none; }            /* the dot texture would stop at a visible seam above the journey */
  .sp-band > .wrap { padding-inline: 0; }   /* same width as the backers card above it */
  .qd-hero { overflow: visible; }            /* the card shadow was being cut off in a straight line */
}
@media (max-width: 640px) {
  .sp-band .sp { position: relative; z-index: 1; }
  .qd-card { box-shadow: 0 1px 2px rgba(20, 40, 59, 0.06), 0 10px 26px -8px rgba(20, 40, 59, 0.16); }
}

/* Contributors board on a phone: name and badges get the full width; points sit under the name, the level bar below */
@media (max-width: 560px) {
  .cb-row { grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; padding: 14px; }
  .cb-row.lead .cb-rank { width: 38px; height: 38px; font-size: 1.1rem; }
  .cb-row > .who-row { grid-column: 2; grid-row: 1; }
  .cb-pts { grid-column: 2; grid-row: 2; justify-content: start; justify-items: start; }
  .cb-pts b { font-size: 1.5rem; }
  .cb-share { display: none; }
  .cb-row .climb { grid-column: 1 / -1; grid-row: 3; }
  .cb .who .glyph { width: 38px; height: 38px; padding: 5px; }
  .cb .who { gap: 10px; }
  .cb .row-badges { padding-left: 0; }
  .cb-rank { align-self: start; margin-top: 2px; }
}
@media (max-width: 460px) {
  .stat-band { grid-template-columns: minmax(0, 1fr) !important; margin-top: -20px; }
  .stat { grid-template-rows: auto; gap: 10px; padding: 20px 18px; border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .stat-vis { min-height: 0; }
}

/* Funding on small phones: promises and the two name fields in one column; the cause line keeps tidy spacing */
@media (max-width: 460px) {
  .pl-two { grid-template-columns: minmax(0, 1fr) !important; }
}
.pl-cause span:not(.qd-icon) { display: block; line-height: 1.5; }
.pl-promises small { display: block; }

/* tables on a phone: each row becomes a small card, every value with its column's name above it (no words broken
   letter by letter in narrow columns) */
@media (max-width: 520px) {
  .table-wrap { overflow: visible; }
  .table-wrap .table, .table-wrap .table tbody { display: block; width: 100%; }
  .table-wrap .table thead { display: none; }
  .table-wrap .table tr { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table-wrap .table td { display: block; padding: 0; border: 0; text-align: left; overflow-wrap: normal; word-break: normal; }
  .table-wrap .table td:first-child { font-weight: 600; }
  .table-wrap .table td:not(:first-child)[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 0.78rem/1.3 var(--sans); color: var(--sub); }
}
.pt-link small { display: block; line-height: 1.45; margin-top: 2px; }

/* Challenges on a phone: who's active wraps onto two lines instead of running off; the prize cards read as rows */
@media (max-width: 640px) {
  .ar-livebox .ar-score.big .ar-active { grid-auto-flow: row; grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; gap: 2px 12px; }
  .ar-livebox .ar-score.big .ar-active .ar-active-faces { grid-row: span 2; }
  .ar-active small { white-space: normal; }
  .ar-prize-head { flex-wrap: wrap; }
  .ar-prize { gap: 14px; padding: 14px; }
  .ar-prize.main .coin { transform: scale(0.78); margin: -10px; }
  .ar-prize small { letter-spacing: 0.04em; }
}

/* cancer map "What we work on next": the internal priority score is gone, so each card is just the question and where
   it stands, with tidy line spacing */
.cm-next { grid-template-columns: minmax(0, 1fr); }
.cm-next small { display: block; margin-top: 4px; line-height: 1.45; }

/* practice lab on small phones: each measurement's name keeps its line; its strength bars sit after it, never on top */
@media (max-width: 520px) {
  .lab-tile { padding: 12px 12px 10px; }
  .lab-tile-top { gap: 6px; align-items: center; }
  .lab-tile-top b { white-space: nowrap; font-size: 0.86rem; }
  .lab-tile-top > *:last-child { flex: none; }
}
@media (max-width: 360px) { .lab-tile-top b { font-size: 0.8rem; letter-spacing: -0.01em; } }

/* profile numbers on a phone: whole labels (no "Questions he…"), breathing room from the card edge */
@media (max-width: 640px) {
  .pf-stat, .pf-stat:first-child, .pf-stat:nth-child(odd), .pf-stat:nth-child(4) { padding: 18px 16px !important; }
  .pf-stat-label { white-space: normal !important; overflow: visible; letter-spacing: 0.04em; }
  .pf-qs li, .pf-stat-vis li { white-space: normal; }
}
@media (max-width: 400px) {
  .pf-stats { grid-template-columns: minmax(0, 1fr) !important; }
  .pf-stat { border-left: 0 !important; border-top: 1px solid var(--line-2); }
  .pf-stat:first-child { border-top: 0; }
}

/* the phone menu: plain rows with a hairline between them; only the current page is tinted */
@media (max-width: 1140px) {
  .top-in .nav a { border-radius: 0; box-shadow: none !important; background: none; }
  .top-in .nav a.on { background: var(--pine-wash); border-radius: 10px; border-bottom-color: transparent; }
}
.qd-count b:empty { display: none; }

/* ---------- "What we know so far": the server's plain sentence leads ---------- */
.qf-known { display: grid; gap: 10px; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--pine); box-shadow: var(--sh); }
.qf-known-say { margin: 0; font: 400 clamp(1.16rem, 2.1vw, 1.38rem)/1.6 var(--serif-text, var(--serif)); color: var(--ink); text-wrap: pretty; }
.qf-known-note { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--sub); }
/* nothing (or little) checked yet: a warm invitation */
.qf-known.invite { grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; background: var(--brass-soft); border-color: #ead9b0; border-left-color: var(--brass); box-shadow: none; }
.qf-known.invite > div { display: grid; gap: 8px; }
.qf-known.invite .qf-known-say { font-size: clamp(1.08rem, 1.9vw, 1.24rem); }
.qf-known-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--brass); }
.qf-known-go { justify-self: start; font: 600 0.95rem/1.3 var(--sans); color: var(--brass-ink); }
.qf-numbers { border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.qf-numbers > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font: 600 0.95rem/1.3 var(--sans); color: var(--pine-deep); }
.qf-numbers > summary::-webkit-details-marker { display: none; }
.qf-numbers > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.qf-numbers[open] > summary::after { transform: rotate(225deg); }
.qf-numbers > .qf-slot { display: grid; gap: 14px; padding: 0 18px 18px; }
.qf-numbers .qf-lede { font-size: 1rem; }
@media (max-width: 640px) {
  .qf-known { padding: 18px 16px; border-radius: 16px; }
  .qf-known.invite { gap: 12px; }
  .qf-known-ic { width: 38px; height: 38px; }
  .qf-numbers > summary { padding: 14px 16px; }
  .qf-numbers > .qf-slot { padding: 0 12px 14px; }
}

/* the module's "needs a different kind of evidence": two calm sentences, the rest under "More about this" */
.mj-answer .mj-need { font-size: 1rem; color: var(--ink); }
.mj-more > summary { cursor: pointer; font: 600 0.88rem/1.3 var(--sans); color: var(--pine); min-height: 32px; display: inline-flex; align-items: center; }
.mj-more[open] > summary { margin-bottom: 6px; }
.mj-more > p + p { margin-top: 8px; }
@media (max-width: 640px) { .mj-answer.gap { padding: 16px 16px 16px 56px; } }

/* ---------- lend your AI: one step at a time (the step to do now is open; the others show just their name) ---------- */
.ct-steps.guided > .ct-step:not(.now):not(.done) .ct-step-body > :not(.ct-step-title),
.ct-steps.guided > .ct-step.done:first-child .ct-step-body > :not(.ct-step-title) { display: none; }
.ct-steps.guided > .ct-step:not(.now):not(.done) .ct-step-title { color: var(--sub); }
.ct-steps.guided > .ct-step:not(.now):not(.done) .ct-n { color: var(--faint); border-color: var(--line-strong); }
@media (max-width: 700px) {
  /* inside its door the panel needs no second introduction: a slim points line, then the ways and the steps */
  .qf-pane .ct-intro { display: none; }
  .qf-pane .ct-band { padding: 16px 14px 0; }
  .qf-pane .ct-band-top { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .qf-pane .ct-prize { padding: 8px 12px; gap: 10px; }
  .qf-pane .ct-prize .ct-coin { width: 36px; height: 36px; font-size: 0.9rem; }
  .qf-pane .ct-prize small { display: none; }
  .qf-pane .ct-steps { gap: 14px; }
}

/* ---------- phone hero: the backers band is light and warm, not a heavy dark block ---------- */
@media (max-width: 640px) {
  .qd-card-top { background: var(--pine-wash); color: var(--ink); border-bottom: 1px solid #d6e9de; grid-template-columns: minmax(0, 1fr) auto; }
  .qd-card-top::before, .qd-card-top::after { display: none; }
  .qd-count b { color: var(--pine-deep); }
  .qd-count span { color: var(--ink-2); max-width: none; }
  .qd-crowd { grid-column: auto; justify-self: end; }
  .qd-fig.you { color: var(--pine); border-color: var(--pine-2); }
}

/* ---------- phones: one "Stand with this question" card instead of three stacked side cards ---------- */
.qf-stand { display: none; }
@media (max-width: 940px) {
  .qf-stand { display: grid; gap: 14px; padding: 22px 18px; border-radius: 20px; background: #fffdf8; border: 1px solid #ead9b0; box-shadow: 0 2px 4px rgba(80, 55, 10, 0.04), 0 18px 40px -20px rgba(116, 83, 15, 0.35); }
  .qf-stand h2 { margin: 0; }
  .qf-stand-lede { margin: 0; color: var(--ink-2); line-height: 1.55; }
  .qf-stand .qf-stand-back { width: 100%; min-height: 48px; justify-content: center; font-size: 1rem; }
  .qf-stand-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .qf-stand-row > * { justify-content: center; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font: 600 0.92rem/1 var(--sans); color: var(--ink-2); }
  .qf-stand-pledge { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--brass); color: #fff; }
  .qf-stand-pledge:hover { text-decoration: none; background: var(--brass-ink); }
  .qf-stand-pledge b { display: block; font: 600 1.05rem/1.3 var(--sans); }
  .qf-stand-pledge small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.85); font-size: 0.84rem; }
  .qf-stand .qd-org { margin: 0; }
  .qd-grid > aside > .qd-pledge-card, .qd-grid > aside > .qd-side, .qd-grid > aside > .qd-stick { display: none; }
}
@media (max-width: 940px) { .qd-grid > aside .ac-wait { display: none; } }   /* the Stand card just above already offers backing */
.ac-first { margin: 0; padding: 16px 18px; font: 400 1rem/1.55 var(--serif-text, var(--serif)); color: var(--ink); border-bottom: 1px solid var(--line-2); }
/* "Why this question is here": a plain label, not shouted */
.qd-story.map .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 0.92rem; }

/* ---------- home on a phone: the same story, about a quarter shorter ---------- */
@media (max-width: 640px) {
  /* "Why you can trust what we share": the live funnel and the way into the full story; the five points live there */
  #verification .points { display: none; }
  #verification .tb { margin-top: 18px; }
  /* the three steps of asking are on the questions page; here the cards and one button are enough */
  #questions .path { display: none; }
  /* where a pledge goes is shown in full on the pledge page */
  #funding .pl-impact { display: none; }
  /* practice-round results belong to the challenges page */
  #now .rm { display: none; }
  #now .stream .tl-row:nth-child(n+4) { display: none; }
  /* closest to the first discovery: swipeable cards, like the boards above */
  .dcb .dc-close-grid, .dcb .dc-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none !important; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .dcb .dc-close-grid::-webkit-scrollbar, .dcb .dc-grid::-webkit-scrollbar { display: none; }
  .dcb .dc-close-grid > *, .dcb .dc-grid > * { scroll-snap-align: start; min-width: 0; }
}
@media (min-width: 641px) { #verification .tb { margin-top: 26px; } }

/* cancer map: wider than a phone, so it says so; the cancer names stay put while the hopes scroll past */
.cm-swipe { display: none; }
.cm-scroll-wrap { position: relative; }
@media (max-width: 960px) {
  .cm-swipe { display: block; margin: 0 0 8px; font: 600 0.86rem/1.3 var(--sans); color: var(--pine); }
  .cm-scroll-wrap.at-end .cm-swipe { visibility: hidden; }
  .cm-scroll-wrap::after { content: ""; position: absolute; top: 28px; right: 0; bottom: 6px; width: 18px; pointer-events: none; box-shadow: inset -16px 0 14px -12px rgba(20, 40, 59, 0.25); transition: opacity 0.2s; }
  .cm-scroll-wrap.at-end::after { opacity: 0; }
  .cm-row, .cm-corner { position: sticky; left: 0; z-index: 1; background: var(--paper, #fafaf7); }
  .cm-grid { grid-template-columns: 118px repeat(var(--cols), minmax(18px, 1fr)); }
  .cm-row { font-size: 0.8rem; }
}
/* tablets: the journey card gets its own space under the backers card, as on phones */
@media (min-width: 641px) and (max-width: 900px) {
  .sp-band { position: static; margin-top: 0; padding-block: 6px 26px; background: var(--pine-wash); border-bottom: 1px solid var(--line); }
  .qd-hero { border-bottom: 0; overflow: visible; }
  .qd-hero::before { display: none; }
  .sp-band .sp { position: relative; z-index: 1; }
}

/* question page: the family's story leads under the hero; the journey is the status block, with a pine top edge */
.qf-status .sp { border-top: 1px solid var(--pine); box-shadow: inset 0 3px 0 var(--pine), 0 2px 4px rgba(20, 40, 59, 0.04), 0 24px 60px rgba(20, 40, 59, 0.1); }
.qf-story-band .qd-story-wrap { box-shadow: 0 2px 4px rgba(20, 40, 59, 0.05), 0 24px 60px rgba(20, 40, 59, 0.1); }
@media (min-width: 941px) {
  .qf-status .sp { padding: 26px 28px 22px; }
}

/* the gold invitation bar scrolls away with the page at every width: it never sits over what people are reading */
.sample-bar, .story-bar { position: static; top: auto; }

/* sections that rise into view only move, never fade: nothing can ever sit half-transparent, even mid-scroll or if the
   observer never fires */
.reveal { opacity: 1 !important; transform: translateY(14px); transition: transform 0.5s var(--ease); }
.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition: none; } }

/* the top of a question: one green way to help, straight away */
.qd-hero-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.qd-lend { min-height: 50px; padding: 12px 22px; font-size: 1.02rem; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 22px -10px rgba(18, 107, 80, 0.8); }
.qd-lend-ic { margin-right: 10px; font-size: 1.05em; }
.qd-hero-go small { max-width: 34ch; font-size: 0.86rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 640px) {
  .qd-hero-go { display: grid; gap: 8px; }
  .qd-lend { width: 100%; justify-content: center; }
}

/* lend panel: three ways, not three steps */
.ct-ways-note { position: relative; z-index: 1; margin: 18px 0 -12px; font-size: 0.9rem; color: #d7e9e0; }
.ct-tab-n svg { display: block; }
.ct-tab-tag { justify-self: start; padding: 2px 8px; border-radius: 999px; font: 600 0.68rem/1.4 var(--sans); font-style: normal; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.35); }
.ct-tab-tag.easy { color: #1d2a1f; background: #e9d6a0; border-color: #e9d6a0; }
.ct-tabs button.on .ct-tab-tag { color: var(--sub); border-color: var(--line-strong); }
.ct-tabs button.on .ct-tab-tag.easy { color: var(--brass-ink); background: var(--brass-soft); border-color: #ead9b0; }
@media (max-width: 700px) { .ct-tab-tag { font-size: 0.62rem; padding: 1px 6px; } .ct-ways-note { margin: 12px 0 -14px; font-size: 0.84rem; } }

/* ---------- asking a question: the form first on a phone, the preview after it ---------- */
@media (max-width: 900px) {
  .aw-preview { order: 2; padding-top: 4px; }
  .aw-main { order: 1; }
}
@media (max-width: 640px) {
  .aw-preview { gap: 8px; padding: 16px 12px 18px; border-top: 1px solid var(--line-2); background: var(--paper, #fafaf7); }
  .aw-pv-card { padding: 16px !important; }
  .aw-pv-title, .aw-pv-card h4 { font-size: 1.05rem !important; }
}
/* plain labels, not shouted */
.aw-pv-label, .qask-head .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 0.9rem; }
.qh .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 0.95rem; }
/* the opening question box: two calm lines */
textarea.qh-input { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: none; padding: 8px 4px; font: italic 400 1.08rem/1.45 var(--serif-text, var(--serif)); color: var(--ink); }
textarea.qh-input::placeholder { color: var(--sub); }
.qh-ask { align-items: center; }
@media (max-width: 560px) { textarea.qh-input { font-size: 1.02rem; padding: 6px 6px 10px; } }
textarea#aw-title { resize: none; min-height: 0; line-height: 1.4; }

/* ---------- pledging on a phone: the form comes straight after the cause; the payout picture follows it ---------- */
@media (max-width: 940px) {
  .pl-side { order: 2 !important; }
  .pl-grid { gap: 22px; }
}
@media (max-width: 640px) {
  .pl-hero-in { gap: 14px; padding-block: 30px 26px; }
  /* the four promises as a calm 2 x 2 of short titles (the lede above already says what they mean) */
  .pl-promises { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .pl-promises li { gap: 8px; padding: 10px; align-items: center; }
  .pl-promises li > span { width: 28px; height: 28px; border-radius: 9px; }
  .pl-promises small { display: none !important; }
  .pl-promises b { font-size: 0.86rem; }
  /* the stories placeholder waits for real stories before it takes a phone screen */
  .pl-story.empty { display: none; }
}
/* plain labels, not shouted */
.pl-hero .eyebrow, .pl-cause small, .pl-impact-head small { letter-spacing: 0.02em; text-transform: none; }
.pl-cause small { font-size: 0.86rem; }
.pl-impact-head small { font-size: 0.9rem; }
.pl-never { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--sub); }

/* lend: the name step says what's wrong right under the field */
.ct-err { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--brass-soft); border: 1px solid #ead9b0; color: var(--brass-ink); font-size: 0.92rem; line-height: 1.45; }
.ct-err::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brass); color: #fff; font: 700 0.75rem/1 var(--sans); margin-top: 1px; }
.ct-err[hidden] { display: none; }

/* ===== Whole-site review, sitewide (phase AA) ===== */
body { font-variant-numeric: lining-nums; }
main p, main li, main dd, main figcaption, main blockquote, main small, footer p { text-wrap: pretty; }
main button, main .btn, main summary, main label, main th, main .chip { text-wrap: balance; }
.more::after { margin-left: 0.32em; }
/* inline commands never break in the middle of a word or flag */
main :not(pre) > code { white-space: nowrap; }
/* brass buttons are real buttons, never pale "disabled-looking" ones */
.btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-brass:hover { background: #956b17; border-color: #956b17; color: #fff; }
.qrow-tally.zero small { font-size: 0.8rem; line-height: 1.3; color: var(--pine-deep); font-weight: 600; text-align: center; }
.pool-first { font: 600 1.3rem/1.2 var(--serif); color: var(--brass-ink); }
@media (min-width: 941px) and (min-height: 840px) {
  .qd-grid > aside { align-self: stretch; }
  .qd-stick { position: sticky; top: 84px; }
}
/* questions hero ask box: the example question shows whole on phones, left-aligned; what you type is upright */
textarea.qh-input { font-style: normal; }
textarea.qh-input::placeholder { font-style: italic; }
@media (max-width: 560px) {
  .qh-ask { align-items: stretch; }
  textarea.qh-input { min-height: calc(3 * 1.45em + 16px); padding: 8px 10px 10px; }
}
/* Jared: the logo reads bigger on phones (it still shares one row with Ask and the menu down to 320px) */
@media (max-width: 640px) { .brand-logo img { height: 40px; } }
@media (max-width: 420px) { .brand-logo img { height: 36px; } }
@media (max-width: 370px) { .brand-logo img { height: 31px; } }
@media (max-width: 340px) { .brand-logo img { height: 28px; } }
/* rounded cards with one thick accent edge: a thick border bends into a "hook" at the corners. The accent is now a
   1px border plus an inset band, which follows the curve of the corner cleanly. Colours and shadows unchanged. */
.ar-bties .ar-bty { border-top-width: 1px; box-shadow: inset 0 2px 0 var(--pine-2), 0 1px 2px rgba(20, 40, 59, 0.05), 0 6px 18px rgba(20, 40, 59, 0.06); }
.ar-bties .ar-bty.f-cancer { box-shadow: inset 0 2px 0 var(--brass), 0 1px 2px rgba(20, 40, 59, 0.05), 0 6px 18px rgba(20, 40, 59, 0.06); }
.ar-leaders { border-top-width: 1px; box-shadow: inset 0 2px 0 var(--brass), 0 1px 2px rgba(20, 40, 59, 0.05), 0 6px 18px rgba(20, 40, 59, 0.06); }
.dx-row.strong { border-left-width: 1px; box-shadow: inset 2px 0 0 var(--pine); }
.hope { border-left-width: 1px; box-shadow: inset 2px 0 0 var(--pine-2); }
.hope.big { border-left-width: 1px; box-shadow: inset 3px 0 0 var(--pine-2); }
.lg-find { border-top-width: 1px; box-shadow: inset 0 3px 0 var(--cc, var(--pine)), 0 1px 2px rgba(20, 40, 59, 0.04), 0 10px 26px rgba(20, 40, 59, 0.07); }
.mc-found.honest { border-left-width: 1px; box-shadow: inset 4px 0 0 #8f9aa3, 0 1px 2px rgba(20, 40, 59, 0.04), 0 16px 34px -24px rgba(20, 40, 59, 0.3); }
.mc-rung { border-left-width: 1px; box-shadow: inset 4px 0 0 var(--c), 0 1px 2px rgba(20, 40, 59, 0.04); }
.pf-medal:not(.locked) { border-top-width: 1px; box-shadow: inset 0 2px 0 var(--pine); }
.pf-medal.brass:not(.locked) { box-shadow: inset 0 2px 0 var(--brass); }
.pf-medal.muted:not(.locked) { box-shadow: inset 0 2px 0 var(--line-strong); }
.qf-known { border-left-width: 1px; box-shadow: inset 3px 0 0 var(--pine), 0 1px 2px rgba(20, 40, 59, 0.05), 0 6px 18px rgba(20, 40, 59, 0.06); }
.qf-known.invite { box-shadow: inset 3px 0 0 var(--brass), 0 1px 2px rgba(20, 40, 59, 0.05), 0 6px 18px rgba(20, 40, 59, 0.06); }
.rs-card { border-left-width: 1px; box-shadow: inset 3px 0 0 var(--pine), 0 1px 2px rgba(20, 40, 59, 0.04); }
.rx-glance { border-top-width: 1px; box-shadow: inset 0 2px 0 var(--pine); }
.sp { border-top-width: 1px; box-shadow: inset 0 3px 0 var(--pine), 0 2px 4px rgba(20, 40, 59, 0.04), 0 24px 60px rgba(20, 40, 59, 0.1); }
/* the menu button keeps the same 16px margin as the logo on the other side */
@media (max-width: 640px) { .nav-toggle { margin-right: 0; } }
.ar-bties .ar-bty:hover { box-shadow: inset 0 2px 0 var(--pine-2), var(--sh-2); }
.ar-bties .ar-bty.f-cancer:hover { box-shadow: inset 0 2px 0 var(--brass), var(--sh-2); }
.lg-find:hover { box-shadow: inset 0 3px 0 var(--cc, var(--pine)), 0 18px 38px rgba(20, 40, 59, 0.12); }
.pf-medal:not(.locked):hover { box-shadow: inset 0 2px 0 var(--pine), var(--sh-2); }
.pf-medal.brass:not(.locked):hover { box-shadow: inset 0 2px 0 var(--brass), var(--sh-2); }
/* lab shot pledge: the amount field carries its own $ sign */
.lb-amt { position: relative; display: block; }
.lb-amt > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 600 1rem/1 var(--sans); font-style: normal; color: var(--sub); pointer-events: none; }
.lb-pledge-row .lb-amt input { padding-left: 30px; }
.lp-steps b { padding-right: 22px; }
/* commands to copy: never split inside a flag or a URL; a one-line command scrolls sideways instead */
.cmd:not(.block) .cmd-text { white-space: pre; overflow-wrap: normal; overflow-x: auto; scrollbar-width: thin; }
.cmd.block .cmd-text { overflow-wrap: break-word; font-weight: 400; font-size: 0.88rem; line-height: 1.6; }
.cmd .copy { background: var(--pine); border-color: var(--pine); }
.cmd .copy:hover { background: var(--pine-deep); }
.cmd.quiet .copy { background: var(--wash); }
@media (max-width: 640px) {
  .cmd:not(.block) { flex-direction: column; }
  .cmd:not(.block) .copy { border-left: 0; border-top: 1.5px solid var(--pine); padding: 11px 18px; }
}
/* technical docs: code blocks scroll sideways on phones instead of wrapping mid-argument */
main pre.code { white-space: pre; overflow-x: auto; overflow-wrap: normal; word-break: normal; }

/* Pick a field: each count on its own line, pinned to the card's foot so rows line up; an empty field invites */
.field-card > em span { display: block; }
.field-card > em span + span::before { content: none; }
.field-card:not(.has) > em { color: var(--pine); font-style: normal; font-weight: 600; }
.field-card:not(.has) > em::after { content: " \2192"; }
@media (max-width: 640px) {
  .field-card { grid-template-rows: auto auto 1fr; }
  .field-card > em { align-self: end; }
  /* board headings fit on two balanced lines next to their count */
  .pz-board-head b { font-size: 1.08rem; line-height: 1.25; text-wrap: balance; }
  /* number facts: the big number on top, its words underneath (never "About 5 / years") */
  .facts .fact { grid-template-columns: minmax(0, 1fr) !important; gap: 4px !important; }
  .facts .fact-v { grid-row: auto; font-size: 2rem !important; }
  /* points levels: the last one spans the row instead of sitting alone */
  .cr-levels ol > li:last-child:nth-child(odd), .cr-levels ul > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .cr-levels ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cr-levels li { align-content: start; }
/* funding: no empty video frame until a real story exists, just the invitation */
.pl-story.empty .pl-story-frame { display: none; }
.pl-story.empty { padding: 22px 22px 20px; border-radius: 18px; background: var(--cream); border: 1px solid #ecdcb5; }
/* the two "who you are" fields line up and match in height */
.pl-two { align-items: start; }
.pl-two input { height: 50px; box-sizing: border-box; }
/* each step's split bar sits at the foot of its card, so the four bars line up */
.pl-flow-body { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.pl-flow-body > p { flex: 1 1 auto; }
@media (max-width: 640px) {
  .pl-flow-legend { display: grid; gap: 6px; border-radius: 16px; }
  .pl-flow-body dl { display: none; }   /* the legend above already names the three shares */
}
/* challenges */
.ar-levels li { grid-template-rows: 72px auto auto; align-content: start; }
.ar-levels .ar-lv-coin { align-self: center; margin-top: 0 !important; }
.ar-track li { white-space: nowrap; }
@media (max-width: 640px) {
  .ar-track { flex-wrap: wrap; row-gap: 8px; }
  .ar-track li:not(:last-child)::after { width: 18px; margin: 0 6px; }
  .ar-perks { grid-template-columns: minmax(0, 1fr); }
  .ar-livebox-head { flex-wrap: wrap; row-gap: 4px; }
  .ar-livebox-head > span:last-child { margin-left: 0; flex-basis: 100%; padding-left: 19px; }
  /* any pair of main buttons: both full width, so they never sit at two odd widths */
  main .row:has(> .btn + .btn) > .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
/* results tables (challenge pages): names on one line with their mark beside them, the date never clipped */
.rt .table .who { display: flex; align-items: center; gap: 10px; }
.rt .table .who > span { display: grid; min-width: 0; }
.rt .table .name { white-space: nowrap; }
.rt .table td:nth-child(2) { min-width: 210px; }
.rt .table td:last-child, .rt .table th:last-child { white-space: nowrap; }
@media (max-width: 520px) {
  .rt .table tr { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
  .rt .table td:nth-child(1) { grid-column: 1; align-self: center; font: 600 1rem/1 var(--serif); color: var(--brass-ink); }
  .rt .table td:nth-child(2) { grid-column: 2 / -1; min-width: 0; }
  .rt .table td:nth-child(3), .rt .table td:nth-child(5) { grid-column: 2; }
  .rt .table td:nth-child(n + 3) { font-size: 0.9rem; }
}
/* the practice lab's three steps: three equal pills in one row; on a phone, three full-width rows */
.coach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coach li { border-radius: 16px; }
@media (max-width: 640px) { .coach { grid-template-columns: minmax(0, 1fr); } }
/* contributors: the levels timeline sits inside its card, dots on a rail, not on the card's edge */
.levels-grid .ladder { position: relative; border-left: 1px solid var(--line); padding-left: 24px; border-radius: 16px; }
.levels-grid .ladder::before { content: ""; position: absolute; left: 23px; top: 18px; bottom: 18px; width: 2px; background: var(--line-strong); }
@media (max-width: 640px) {
  .levels-grid .ladder li { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; }
  .levels-grid .ladder b { font-size: 0.98rem; }
}
/* profile wins: the "next win" tag never wraps, a reached step's top edge is an inset band (no corner hooks),
   and the steps still to come stay readable */
.ld-tag { white-space: nowrap; }
.ld-rung.got { border-top-width: 1px; border-top-color: var(--pine); box-shadow: inset 0 3px 0 var(--pine), 0 10px 26px rgba(11, 74, 55, 0.1); }
.ld-txt small { color: var(--sub); }
/* Terms and Privacy: "Last updated" is a quiet line under the intro, not a big empty card */
.phead:has(+ .legal) .meta-strip { display: flex; gap: 6px; width: auto; margin-top: 10px; padding: 0; border: 0; background: none; box-shadow: none; }
.phead:has(+ .legal) .meta-strip > div { display: flex; gap: 6px; padding: 0; border: 0; background: none; }
.phead:has(+ .legal) .meta-strip dt { font: 400 0.9rem/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--sub); }
.phead:has(+ .legal) .meta-strip dd { margin: 0; font: 600 0.9rem/1.4 var(--sans); color: var(--ink-2); }
/* questions: the closing band ends in a real button, and a soft rule separates it from the footer */
.qclose-go { margin-top: 22px; min-height: 48px; padding: 12px 26px; font-size: 1rem; }
.qclose { border-bottom: 1px solid rgba(233, 214, 160, 0.22); }
/* discoveries: the step numbers are readable */
.dc-step-n { color: var(--brass-ink) !important; font-weight: 700; }
/* about: the heart is in the site's own brass, not an off-palette red */
.pt-link-ic { color: var(--brass); }
/* machine ladder on phones: a gentle stair, never a narrow column pushed far to the right */
@media (max-width: 640px) {
  .mc-rung { width: calc(100% - var(--i) * 7px); margin-left: calc(var(--i) * 7px); }
}
.rx-more { margin-bottom: 44px; }
/* lining figures everywhere: the font shorthand resets font-variant-numeric, but never font-feature-settings */
html { font-feature-settings: "lnum" 1; }
/* home hero: the Oracle's own row is the living machine, always on: its seal with a slow heartbeat ring, a warm wash,
   and its whole sentence (never cut off). It links to #/status. */
.st-founder { background: linear-gradient(90deg, var(--pine-wash), rgba(241, 248, 244, 0)); border: 1px solid #d6e9de; }
.st-founder:hover { background: var(--pine-wash); text-decoration: none; }
.st-omark.founder { position: relative; background: none; border-radius: 50%; overflow: visible; }
.st-omark.founder .sm { width: 42px; height: 42px; display: block; }
.st-omark.founder::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(26, 132, 99, 0.45); animation: stBeat 2.6s ease-out infinite; }
.st-founder .st-who small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .st-omark.founder::before { animation: none; } }
@media (max-width: 640px) { .st-busy { min-width: 0; } .st-busy i { width: 52px; } }
/* Digits in the serif: Windows' Sitka only has old-style figures (a "0" reads as the letter "o"). Digits alone come
   from a matching serif with full-height figures; every letter stays exactly as it was. Elsewhere (Mac, iPhone,
   Android) the next fonts in the list apply, with the lnum feature above. */
@font-face { font-family: "OH Figures"; src: local("Cambria"), local("Palatino Linotype"); unicode-range: U+0030-0039; }
:root {
  --serif: "OH Figures", "Sitka Heading", "Sitka Display", "Iowan Old Style", "Palatino Linotype", Cambria, Georgia, serif;
  --serif-text: "OH Figures", "Sitka Text", "Iowan Old Style", "Palatino Linotype", Cambria, Georgia, serif;
}

/* ===== Results: "Check the record now", a real check your own browser does ===== */
.lg-chain { position: relative; padding: 20px 22px; border-radius: 18px; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.lg-chain ol { gap: 6px; }
.lg-chain li:not(.lg-arrow) { position: relative; padding: 8px 11px; border-radius: 10px; }
.lg-block.ok { transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(11, 74, 55, 0.6); }
.lg-block.ok::after { content: "✓"; position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pine); color: #fff; font: 700 0.66rem/1 var(--sans); box-shadow: 0 0 0 2px #fff; animation: lgPop 0.35s var(--ease) both; }
@keyframes lgPop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lg-check-row { gap: 12px 16px; }
.lg-check { min-height: 44px; padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 18px -10px rgba(11, 74, 55, 0.6); }
.lg-check:hover:not(:disabled) { background: var(--pine-deep); }
/* while checking: the seal turns, a bar fills with the links really checked, and the hash it just computed */
.lg-chain.checking .lg-seal { animation: lgTurn 1.2s linear infinite; }
@keyframes lgTurn { to { transform: rotate(360deg); } }
.lg-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; flex: 1 1 260px; min-width: 0; }
.lg-progress[hidden] { display: none; }
.lg-progress-bar { position: relative; flex: 1 1 140px; max-width: 220px; height: 8px; border-radius: 999px; background: #fff; border: 1px solid var(--pine-soft); overflow: hidden; }
.lg-progress-bar > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pine-2), var(--pine)); transition: width 0.12s linear; }
.lg-progress-txt { font-size: 0.86rem; color: var(--ink-2); }
.lg-progress-txt b { color: var(--pine-deep); font-variant-numeric: tabular-nums; }
.lg-progress code { font: 500 0.78rem/1 var(--mono); color: var(--pine); background: #fff; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--pine-soft); }
/* the result: a quiet celebration, in the reader's own words */
.lg-check-status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.lg-check-status:empty { display: none; }
.lg-check-status > span:last-child { display: grid; gap: 2px; }
.lg-check-status small { font-size: 0.82rem; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.lg-check-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pine); color: #fff; box-shadow: 0 0 0 4px var(--pine-soft); animation: lgPop 0.4s var(--ease) both; }
.lg-check-status.good b { font: 600 1.05rem/1.25 var(--serif); color: var(--pine-deep); }
.lg-check-status.bad .lg-check-mark { background: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); font: 700 1rem/1 var(--sans); }
.lg-check-status.bad b { color: var(--brass-ink); }
.lg-chain.checked { background: linear-gradient(180deg, #e9f6ef, var(--pine-wash)); border-color: #bfe0cf; box-shadow: 0 18px 40px -28px rgba(11, 74, 55, 0.55); }
.lg-chain.failed { background: #fffaf0; border-color: #ead9b0; }
@media (max-width: 640px) {
  .lg-check { width: 100%; justify-content: center; }
  .lg-progress { flex-basis: 100%; }
  .lg-progress-bar { max-width: none; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lg-chain.checking .lg-seal, .lg-block.ok::after, .lg-check-mark { animation: none; } }
/* the last four links as a tidy 2 x 2, each pair joined by an arrow (never one block alone on a row) */
.lg-chain ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; }
.lg-chain ol > .lg-arrow { display: none; }
.lg-chain ol > .lg-block:nth-child(4n + 1)::before { content: "→"; position: absolute; top: 50%; right: -23px; transform: translateY(-50%); font: 700 0.95rem/1 var(--sans); color: var(--pine-2); }
.lg-anchor { margin: 0; padding-top: 14px; border-top: 1px dashed #bfe0cf; color: var(--ink-2); line-height: 1.6; }
.lg-anchor b { color: var(--pine-deep); }

/* ===== Second agency pass (phase AD) ===== */
/* home: the latest-event note shows the question itself, up to two lines */
.st-toast > span:last-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
/* home, phones: 500 / 61 / 9,500 as one aligned column, each with the dot colour it has in the chart below */
@media (max-width: 640px) {
  .unit-notes { display: grid !important; gap: 8px !important; }
  .unit-note { position: relative; display: grid !important; grid-template-columns: 4.4em minmax(0, 1fr); align-items: baseline; gap: 10px; padding-left: 20px; text-align: left !important; }
  .unit-note b { margin: 0 !important; text-align: right; font-size: 1.9rem !important; }
  .unit-note::before, .unit-note.brass::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 10px; margin: 0; border-radius: 50%; background: var(--line-strong); }
  .unit-note.on::before { background: var(--pine); }
  .unit-note.brass::before { background: #c9962e; box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.25); }
}

/* ---- one voice for section intros: plain sans lead text, no quote-like rule (it read as a pull-quote) ---- */
.sec .sec-sum { padding: 0 !important; border-left: 0 !important; font: 400 1.08rem/1.65 var(--sans) !important; color: var(--ink-2); max-width: 60ch; }
.sec .sec-sum::first-line { color: inherit; }
@media (max-width: 640px) { .sec .sec-sum { font-size: 1.02rem !important; line-height: 1.6 !important; } }

/* ---- one heading system: the short green bar above a serif heading (no navy full-width rules) ---- */
.ar-sec-head, .board-head, .pf-sec-head, .lg-sec-head { border-top: 0 !important; padding-top: 0 !important; }
.pf-sec > h2 { border-top: 0 !important; padding-top: 0 !important; }
.ar-sec-head > h2::before, .ar-sec-head > div > h2::before, .board-head h2::before, .pf-sec-head h2::before, .pf-sec > h2::before, .lg-sec-head h2::before {
  content: ""; display: block; width: 56px; height: 5px; margin-bottom: 18px; border-radius: 3px; background: var(--pine); }
.rx-head { border-top: 1px solid var(--line) !important; }

/* ---- header on phones: the menu button matches the Ask button (height, radius) and is quieter ---- */
@media (max-width: 640px) {
  .nav-toggle { width: 42px !important; height: 40px !important; border-radius: 12px !important; background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important; }
  .nav-toggle[aria-expanded="true"] { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
  /* footer links: a comfortable 44px tap row */
  .foot ul { gap: 0 !important; }
  .foot li a { display: inline-block; padding: 10px 0; }
}
/* home: the stray arrow circle on the "Lend your AI" divider goes */
#connect::after { content: none !important; }
@media (max-width: 640px) { .field-card > b { align-self: start !important; } }
/* proof trail: what is still to come is one quiet line */
.pft-wait { margin: 0; color: var(--sub); line-height: 1.55; }
.pft-wait b { color: var(--ink-2); font-weight: 600; }
.pft-list:empty { display: none; }
/* question page, phones: the summary reads calmly, not as a wall of large serif */
@media (max-width: 640px) { .qf-known-say { font-size: 1.08rem !important; line-height: 1.6 !important; } }
/* "Before anyone funds it": pending marks, never radio buttons */
.lb-blockers li::before { border-style: dashed !important; background: transparent !important; }
/* funding: the general fund offers two choices for unclaimed money, side by side */
.pl-rules button[hidden] { display: none !important; }
.pl-rules:has(> button[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .pl-rules:has(> button[hidden]) { grid-template-columns: minmax(0, 1fr); }
  /* the four promises read as a calm checklist, not as tappable boxes */
  .pl-promises li { padding: 4px 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  .pl-promises li > span { width: 24px !important; height: 24px !important; border-radius: 50% !important; }
  .pl-promises li > span svg { width: 13px; height: 13px; }
  .pl-hero-in .lede { text-align: left; }
  .pl-hero-in { justify-items: start; text-align: left; }
}
/* challenges: the points coin on each question card is a quiet tag, never bigger than the family's question */
.ar-bties .ar-bty .coin { transform: scale(0.62); transform-origin: top right; margin: -6px -6px -18px 0; }
.ar-bties .ar-bty:hover .coin { transform: scale(0.62) rotate(-8deg); }
/* home discovery band: its explainer is a quiet link with the celebration line beside it */
.dcb-foot .more { font-size: 1rem; }
/* "In short" is a small eyebrow, not a shouted heading (the phone h2 size had been overriding it) */
.keymsg h2 { font: 700 0.76rem/1.3 var(--sans) !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pine-deep); }
/* result charts: the last axis label is never clipped */
svg:has(> .fp-axis) { overflow: visible; }

/* ---- round 2, batch 2 ---- */
/* status: a flat dot with a soft pulse (no glossy sphere); on phones the summary dot sits inline before the words,
   and the hero ring stays behind the empty corner, never across the text */
.st-sum.ok .st-dot { background: var(--pine-2) !important; }
.st-sum .st-dot { width: 16px !important; height: 16px !important; }
@media (max-width: 640px) {
  .st-sum { grid-template-columns: auto minmax(0, 1fr) !important; gap: 12px !important; align-items: start !important; }
  .st-sum .st-dot { margin: 8px 0 0 !important; }
  .st-hero::before, .st-hero::after { right: -150px !important; top: 8% !important; opacity: 0.55; }
}
/* results: the record check button matches every other button's shape */
.lg-check { border-radius: 14px !important; }
/* discoveries: faces keep their headroom in the card photos; the hero sun stays inside the margin */
.dc-close-photo img { object-position: 50% 28%; }
@media (max-width: 640px) { .dc-hero .dcb-sun, .dc-hero-in > span:last-child { margin-inline: 0 !important; } }
/* machine ladder on phones: one clean left edge, the climb told by order and colour */
@media (max-width: 640px) { .mc-rung { width: 100% !important; margin-left: 0 !important; } }
/* learned: the heart is a smaller medallion; thanks chips as a neat 2-column grid on phones */
.lw-thanks-ic { width: 52px; height: 52px; }
@media (max-width: 640px) {
  .lw-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .lw-people > li { padding: 7px 12px 7px 7px; }
  .lw-people a { font-size: 0.98rem; }
}
/* questions: filter chips are 44px tall, the chosen one in the site's green */
.qarea { min-height: 44px; }
/* partners: the main button is full width on phones */
@media (max-width: 640px) { .pt-hero .btn, .pt-form .btn-primary { width: 100%; justify-content: center; } }
.qarea.on { background: var(--pine-deep); border-color: var(--pine-deep); }
/* practice lab, phones: the live score rides along at the bottom while the sliders are moved */
.lab-mini { display: none; }
@media (max-width: 900px) {
  .lab-mini { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: baseline; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 16px;
    border: 0; border-radius: 16px; background: var(--ink); color: #fff; text-align: left; box-shadow: 0 14px 30px -12px rgba(20, 40, 59, 0.6); cursor: pointer; }
  .lab-mini > span { font: 600 0.82rem/1 var(--sans); color: #b9c8d4; }
  .lab-mini > b { font: 600 1.5rem/1 var(--serif); }
  .lab-mini > small { margin-left: auto; font: 600 0.82rem/1.2 var(--sans); color: #d6e2ea; text-align: right; }
  .lab-mini.ok { background: var(--pine-deep); }
  .lab-mini.ok > small { color: #bfe9d4; }
}
/* phones: clip sideways overflow without turning <body> into its own scroll box (with "hidden", position: sticky
   could never work inside the page) */
@media (max-width: 640px) { html, body { overflow-x: clip; } }

/* ---- home "Happening now": two single bands (Jared) ---- */
/* who is working: one slim strip */
#now .now-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 26px; padding: 12px 14px 12px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 40, 59, 0.04); }
#now .now-bar .now-head { display: flex; align-items: center; gap: 9px; margin: 0; white-space: nowrap; font-size: 1.02rem; }
#now .now-bar .desk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; flex: 1 1 320px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
#now .now-bar .oracle-desk-head { display: block; margin: 0; padding: 0; border: 0; background: none; }
#now .now-bar .oracle-desk-head b { font: 400 0.95rem/1.4 var(--sans); color: var(--ink-2); }
#now .now-bar .oracle-desk-head small { display: none; }
#now .now-bar .oracle-desk-join { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; width: auto; padding: 6px 16px 6px 6px; border: 1px solid #cfe5d8; border-radius: 999px; background: var(--pine-wash); text-align: left; }
#now .now-bar .oracle-desk-join small { display: none; }
#now .now-bar .oracle-desk-join b { font: 600 0.9rem/1.2 var(--sans); color: var(--ink); }
#now .now-bar .oracle-desk-join em { margin-left: 4px; font: 600 0.9rem/1 var(--sans); font-style: normal; color: var(--pine); }
#now .now-bar .oracle-plus { width: 28px; height: 28px; font-size: 1.15rem; }
#now .now-bar .desk-row { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line-2); }
#now .now-bar .desk-row .desk-who small, #now .now-bar .desk-row .desk-tries, #now .now-bar .desk-row .desk-stage { display: none; }
#now .now-bar .desk-row .desk-who b { font: 600 0.88rem/1.2 var(--sans); white-space: nowrap; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; display: block; }
/* what just happened: one row of small cards */
#now .now-just { margin-bottom: 30px; }
#now .now-just .now-head { margin: 0 0 12px; }
#now .now-just .stream { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; background: none; border: 0; box-shadow: none; }
#now .now-just .stream::before { content: none; }
#now .now-just .tl-row { display: grid !important; grid-template-columns: 32px minmax(0, 1fr) !important; align-content: start; gap: 10px !important; padding: 14px !important; border: 1px solid var(--line) !important; border-radius: 16px !important; background: #fff; }
#now .now-just .tl-row:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--sh); }
#now .now-just .tl-row .tl-go { display: none; }
#now .now-just .tl-row .tl-icon { width: 32px; height: 32px; }
#now .now-just .tl-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 6px; font-size: 0.95rem; line-height: 1.4; }
#now .now-just .stream > p.sub { grid-column: 1 / -1; }
@media (max-width: 1000px) { #now .now-just .stream { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  #now .now-bar { padding: 12px 14px; }
  #now .now-bar .oracle-desk-join { margin-left: 0; width: 100%; }
  /* phones: the latest happenings swipe sideways, like the boards above */
  #now .now-just .stream { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  #now .now-just .stream::-webkit-scrollbar { display: none; }
  #now .now-just .stream .tl-row { scroll-snap-align: start; display: grid !important; }
  #now .now-just .stream .tl-row:nth-child(n+4) { display: grid !important; }
}

/* ---- home: one strong trust band (Jared: the funnel and five cards were a weaker copy of the seal) ---- */
#verification .tr-band { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px); align-items: center; gap: 22px 32px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; color: var(--ink); text-decoration: none;
  background: radial-gradient(80% 140% at 0% 0%, #fdf3dc 0%, rgba(253, 243, 220, 0) 55%), #fff; border: 1px solid #ecdcb5; box-shadow: 0 2px 4px rgba(20, 40, 59, 0.04), 0 26px 60px -36px rgba(116, 83, 15, 0.45); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
#verification .tr-band:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 40, 59, 0.04), 0 30px 64px -34px rgba(116, 83, 15, 0.55); }
#verification .tr-seal { display: grid; place-items: center; filter: drop-shadow(0 10px 18px rgba(11, 74, 55, 0.25)); }
#verification .tr-seal .sm { width: 96px; height: 96px; display: block; }
#verification .tr-words { display: grid; gap: 8px; min-width: 0; }
#verification .tr-words > b { font: 600 clamp(1.4rem, 2.4vw, 1.75rem)/1.2 var(--serif); color: var(--pine-deep); }
#verification .tr-words > span { color: var(--ink-2); line-height: 1.6; }
#verification .tr-words > em { font: 600 0.95rem/1.3 var(--sans); font-style: normal; color: var(--pine); }
#verification .tr-tally { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--pine-wash); border: 1px solid #cfe5d8; color: var(--ink-2); line-height: 1.45; }
#verification .tr-tally b { font: 600 1.35rem/1 var(--serif); color: var(--pine-deep); margin-right: 4px; }
#verification .tr-tally small { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--sub); }
#verification .tr-bar { display: block; height: 8px; border-radius: 999px; background: #fff; border: 1px solid #cfe5d8; overflow: hidden; }
#verification .tr-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--pine); }
@media (max-width: 900px) { #verification .tr-band { grid-template-columns: auto minmax(0, 1fr); } #verification .tr-tally { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  #verification .tr-band { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 16px; }
  #verification .tr-seal .sm { width: 76px; height: 76px; }
}

/* ---- home "What we've learned so far": the right side is a plain invitation ---- */
.rm-invite { display: grid; align-content: center; justify-items: start; gap: 10px; padding: clamp(20px, 3vw, 32px); }
.rm-invite > b { font: 600 clamp(1.2rem, 2vw, 1.45rem)/1.25 var(--serif); color: var(--ink); }
.rm-invite > p { margin: 0; max-width: 46ch; color: var(--ink-2); line-height: 1.6; }
.rm-invite .btn { margin-top: 4px; }
@media (max-width: 640px) { .rm-invite .btn { width: 100%; justify-content: center; } }

/* ---- home discovery band: the fourth place is an open door for a family's own question ---- */
.dc-close.dc-ask { justify-content: center; gap: 12px; background: radial-gradient(90% 80% at 0% 0%, #fdf3dc 0%, rgba(253, 243, 220, 0) 60%), #fffcf5; border: 1px solid #ecdcb5; box-shadow: none; }
.dc-close.dc-ask:hover { border-color: var(--brass); }
.dc-ask-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; border: 1.5px solid #e3cf9d; color: var(--brass); font: 300 2rem/1 var(--sans); }
.dc-ask .dc-close-now { -webkit-line-clamp: unset; display: block; }
.dc-ask .dc-go { color: var(--brass-ink); }
/* home discovery band: three questions and the open door always share one row on desktop */
@media (min-width: 1000px) { .dcb .dc-close-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 641px) and (max-width: 999px) { .dcb .dc-close-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* the green welcome bar is a desktop touch (Jared); phones keep just the gold bar */
@media (max-width: 640px) { .welcome { display: none !important; } }

/* ---- "Tell me on this device": a gentle promise, not a settings toggle ---- */
.qnotify { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 10px; padding: 10px 16px; border-radius: 14px;
  border: 1px solid #ecdcb5; background: linear-gradient(180deg, #fffaf0, #fdf3dc); color: var(--brass-ink); font: 600 0.94rem/1.3 var(--sans); cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.qnotify:hover { border-color: var(--brass); transform: translateY(-1px); }
.qnotify:disabled { opacity: 0.7; cursor: progress; transform: none; }
.qnotify[hidden] { display: none; }
.qnotify.on { background: var(--pine-wash); border-color: #cfe5d8; color: var(--pine-deep); }
.qnotify.on::after { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pine); color: #fff; font: 700 0.66rem/1 var(--sans); }
/* the invite line under the share row: small and warm */
.qinvite { margin: 8px 0 0; padding-left: 22px; position: relative; font-size: 0.84rem; line-height: 1.5; color: var(--ink-2); }
.qinvite::before { content: "♥"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--brass-soft); color: var(--brass); font-size: 0.6rem; }
.wn-links + .qinvite { margin-top: 10px; }
.qd-card .qinvite, .qf-stand .qinvite, .qinvite { margin: 10px 0 0 !important; padding: 0 0 0 22px !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; text-align: left; }
.qinvite::before { top: 2px !important; left: 0 !important; }

/* ---- scroll hints (js/guide.js): a soft glow on the part to use, one warm tip that fades by itself ---- */
.gd-glow { position: relative; z-index: 3; border-radius: 14px; animation: gdGlow 2.2s ease-in-out 3; }
@keyframes gdGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(169, 123, 31, 0); } 50% { box-shadow: 0 0 0 6px rgba(233, 207, 140, 0.55), 0 0 28px 6px rgba(201, 162, 74, 0.35); } }
.gd-tip { position: absolute; z-index: 40; display: flex; align-items: flex-start; gap: 10px; width: max-content; max-width: min(320px, calc(100vw - 24px)); padding: 12px 10px 12px 16px;
  border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px -14px rgba(20, 40, 59, 0.55);
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); pointer-events: auto; }
.gd-tip.in { opacity: 1; transform: none; }
.gd-tip.below { transform: translateY(-6px); }
.gd-tip.below.in { transform: none; }
.gd-tip p { margin: 0; font: 400 0.92rem/1.5 var(--sans); text-wrap: pretty; }
.gd-tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.gd-tip.below::after { top: -6px; bottom: auto; }
.gd-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: -4px 0 -4px 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font: 400 1.1rem/1 var(--sans); cursor: pointer; }
.gd-x:hover { background: rgba(255, 255, 255, 0.22); }
@media (prefers-reduced-motion: reduce) { .gd-glow { animation: none; box-shadow: 0 0 0 4px rgba(233, 207, 140, 0.7); } .gd-tip { transition: none; } }

/* ---- the Oracle's full study (question.js studyBlock): calm, authoritative, warm ---- */
.mj-study { display: grid; gap: 12px; padding: clamp(18px, 2.6vw, 24px); border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 40, 59, 0.04), 0 18px 40px -30px rgba(20, 40, 59, 0.4); }
.mj-study.ok { background: radial-gradient(90% 120% at 0% 0%, #e7f5ee 0%, rgba(231, 245, 238, 0) 60%), #fff; border-color: #cfe5d8; box-shadow: inset 0 3px 0 var(--pine), 0 18px 40px -30px rgba(11, 74, 55, 0.5); }
.mj-study-head { display: flex; align-items: center; gap: 12px; }
.mj-study-seal { flex: none; line-height: 0; filter: drop-shadow(0 6px 12px rgba(11, 74, 55, 0.25)); }
.mj-study-seal .sm { width: 40px; height: 40px; display: block; }
.mj-study h4 { margin: 0; font: 600 1.2rem/1.3 var(--serif); color: var(--ink); }
.mj-study > p { margin: 0; color: var(--ink-2); line-height: 1.65; }
.mj-study-rung { justify-self: start; display: inline-flex !important; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; font-size: 0.88rem; color: var(--sub) !important;
  background: color-mix(in srgb, var(--c, var(--line-strong)) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c, var(--line-strong)) 40%, #fff); }
.mj-study-rung::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 46%), var(--c, var(--line-strong)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c, var(--line-strong)) 65%, #fff); }
.mj-study-rung b { font: 600 0.98rem/1 var(--serif); color: var(--ink-c, var(--ink)); }
.mj-study-checks { list-style: none; margin: 2px 0 0; padding: 12px 0 0; display: grid; gap: 8px; border-top: 1px dashed var(--line); }
.mj-study-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.5; }
.mj-study-checks li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 0.7rem/1 var(--sans); font-style: normal; }
.mj-study-checks li.ok { color: var(--ink); }
.mj-study-checks li.ok i { background: var(--pine); color: #fff; }
.mj-study-checks li.wait { color: var(--sub); }
.mj-study-checks li.wait i { border: 1.5px solid var(--line-strong); color: transparent; }
/* while it runs: a calm, living bar */
.mj-study.running { border-style: solid; background: linear-gradient(180deg, #fbfdfc, #fff); }
.mj-study.running .mj-study-seal { animation: lgTurn 6s linear infinite; }
.mj-study-bar { display: block; height: 8px; border-radius: 999px; background: var(--pine-wash); border: 1px solid #cfe5d8; overflow: hidden; }
.mj-study-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pine-2), var(--pine)); transition: width 0.6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .mj-study.running .mj-study-seal { animation: none; } }
