/* ---------- reference pages: missions, data, alerts, about ----------
   The same system as the story: one family, true black, hairlines, large light numerals.
   These pages are for reading and looking things up, so the Moon appears once, at the top, and then gets out of the way. */
body.page { background: var(--black); }
body.page .nav::before { opacity: 1; }
body.page[data-nav="clear"] .nav::before { opacity: 0; }
body.page[data-nav="clear"].navsolid .nav::before, body.page.menu-open .nav::before, body.page.pop-open .nav::before { opacity: 1; }
body.page .nav::after { display: none; }
body.page[data-nav="clear"] .nav::after { display: block; }
.page .foot { padding-top: 0; background: none; border-top: 1px solid var(--line); }
.page .foot-top { padding-top: clamp(56px, 6vw, 88px); }
/* links in running text: underlined, quietly. :where() keeps this weak, so tables and registers can restyle theirs */
.page main :where(a:not([class])) { color: var(--ink-1); text-decoration: underline; text-decoration-color: var(--ink-4); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color 0.2s; }
.page main :where(a:not([class])):hover { text-decoration-color: var(--ink-1); }
.more { margin-top: 18px; }
.note a { color: var(--ink-2); }

/* ---------- page opening: a title on the left, what the page is on the right ---------- */
.phero { position: relative; z-index: 3; padding: calc(var(--nav-h) + clamp(56px, 9vw, 136px)) var(--margin) clamp(48px, 6vw, 96px); }
.phero-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; max-width: 1560px; margin: 0 auto; }
.phero h1 { grid-column: 1 / span 7; font-size: clamp(40px, 5.1vw, 84px); line-height: 0.98; letter-spacing: -0.048em; font-weight: 500; }
.phero-side { grid-column: 8 / span 5; display: grid; gap: 22px; justify-items: start; }
.phero--solo { min-height: 72svh; display: grid; align-items: center; }
.phero--solo .phero-in { width: 100%; }

/* ---------- sections: a heading in the left rail, the content beside it ---------- */
.sheet { position: relative; z-index: 3; background: var(--black); }
.sec { padding: 0 var(--margin); scroll-margin-top: var(--nav-h); }
.sec-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; max-width: 1560px; margin: 0 auto; border-top: 1px solid var(--line-2); padding: 28px 0 clamp(64px, 7.5vw, 112px); }
.sec-h { grid-column: 1 / span 4; display: grid; gap: 8px; align-content: start; }
.sec-h h2 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.12; letter-spacing: -0.03em; }
.sec-h p { font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 36ch; text-wrap: pretty; }
.sec-b { grid-column: 5 / span 8; min-width: 0; }
.sec-full { grid-column: 1 / -1; min-width: 0; }
.sec-in--full .sec-h { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.sec-in--full .sec-h h2 { grid-column: 1 / span 4; }
.sec-in--full .sec-h p { grid-column: 5 / span 7; max-width: 62ch; align-self: end; }
.sec--chart > .sec-full { max-width: 1560px; margin: 0 auto; padding-bottom: clamp(40px, 5vw, 72px); }
.sec--last .sec-in { padding-bottom: clamp(72px, 9vw, 128px); }
/* Every section opens with a rule, so a list starts straight under it: lines go under rows, never above the first one.
   A list that opens a section is nudged up so its first line of text sits level with the heading beside it. */
.page .spec, .page .nums { border-top: 0; }
.sec-b > :is(.spec, .reg, .items--plain, .srcs, .lost, .faq, .who):first-child { margin-top: -7px; }
.prose .sec-b { display: grid; gap: 14px; align-content: start; }
.prose .sec-b > p { font-size: 16px; line-height: 1.62; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.prose b { color: var(--ink-1); font-weight: 500; }
.items--plain { display: grid; max-width: 760px; }
.items--plain li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.items--plain li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 1px; background: var(--ink-3); }
.items--plain b { color: var(--ink-1); font-weight: 500; }

/* ---------- mission page: the site on a still Moon, the words beside it ---------- */
.mhero { position: relative; z-index: 3; min-height: min(100svh, 940px); display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--nav-h) + 48px) var(--margin) clamp(64px, 9vh, 104px); }
.mhero-stage { position: absolute; inset: 0; }
.mhero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.mhero.on .mhero-canvas { opacity: 1; }
.mhero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.74) 24%, rgba(0, 0, 0, 0.28) 42%, transparent 56%), linear-gradient(0deg, #000 0%, transparent 16%); }
.mhero-in { position: relative; z-index: 2; width: 100%; max-width: 1560px; margin: 0 auto; display: grid; gap: 18px; justify-items: start; }
.mhero-in > * { max-width: min(580px, 100%); }
.mhero h1 { font-size: clamp(46px, 5.6vw, 92px); line-height: 0.96; letter-spacing: -0.05em; font-weight: 500; }
.mhero .lede { color: var(--ink-2); max-width: min(500px, 100%); }
.mhero .actions { margin-top: 8px; }
.mhero-mk { transition: opacity 0.9s var(--ease) 0.5s; }
.mhero:not(.on) .mhero-mk { opacity: 0; }
.mhero-mk .sym { width: 14px; height: 14px; left: -7px; top: -7px; }
.mhero-mk .sym::before { width: 14px; height: 14px; }
/* the tag can sit on bright ground, so it carries a deeper shadow than on the map */
.mhero-mk .tag { text-shadow: 0 0 2px #000, 0 0 6px rgba(0, 0, 0, 0.9), 0 1px 14px rgba(0, 0, 0, 0.9); }
.mhero-mk .tag small { color: var(--ink-1); }
.mhero-mk .lead { filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9)); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-4); }
.crumbs a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--ink-1); }
.cat { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cat b { font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cat > span:not(.pill) { font-size: 14px; color: var(--ink-2); }
/* the record: a specification, with the numbers and a key map beside it */
.sec--record .sec-b { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); column-gap: 48px; row-gap: 32px; align-items: start; }
.spec--wide > div { grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 13px 0; font-size: 15px; line-height: 1.5; }
.spec dd small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.spec dd b { font-weight: 500; }
.spec dt .sym { margin-right: 10px; vertical-align: -1px; }
.copy { margin-top: 6px; font-size: 13px; text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 0.2em; }
.aside-col { display: grid; gap: 24px; align-content: start; }
.aside-col .nums { padding-top: 0; }
.aside-col > * + * { border-top: 1px solid var(--line); padding-top: 24px; }
.keymap { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; }
.keymap canvas { width: 112px; height: 112px; display: block; }
.keymap figcaption { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.keymap figcaption b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 500; color: var(--ink-1); }

/* a register: one row per site */
.reg { display: grid; }
.reg-row { display: grid; align-items: baseline; column-gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.reg-row .sym { align-self: start; margin-top: 4px; }
.reg-n { font-size: 16px; font-weight: 500; letter-spacing: -0.012em; color: var(--ink-1); }
.reg-row:hover .reg-n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.reg-no { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.reg-d, .reg-v { font-variant-numeric: tabular-nums; }
.reg-v { text-align: right; color: var(--ink-1); }
.reg--near .reg-row { grid-template-columns: 14px minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); }
.reg--full .reg-row { grid-template-columns: 40px 14px minmax(0, 3.4fr) minmax(0, 1.5fr) minmax(0, 2.6fr) minmax(0, 3fr); }
.reg--who .reg-row { grid-template-columns: 40px 14px minmax(0, 3fr) minmax(0, 1.6fr) minmax(0, 3.4fr); }

/* before and after */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.pager-a { display: grid; gap: 6px; align-content: start; text-decoration: none; }
.pager-a small { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pager-a span { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
a.pager-a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.pager-a--next { text-align: right; }
.srcs { display: grid; max-width: 760px; }
.srcs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.srcs .textbtn { font-size: 15px; color: var(--ink-1); }
.srcs small { font-size: 13px; color: var(--ink-3); }

/* a published touchdown time */
.count { padding: 0 var(--margin); }
.count-in { max-width: 1560px; margin: 0 auto; padding: 28px 0 clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-2); display: grid; gap: 6px; }
.count-k { font-size: 13px; color: var(--ink-3); }
.count-v { font-size: clamp(48px, 7vw, 112px); line-height: 0.95; font-weight: 200; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.count-s { font-size: 15px; color: var(--ink-2); margin-top: 8px; }

/* the sign-up band that closes a page */
.band { padding: 0 var(--margin); scroll-margin-top: var(--nav-h); }
.band-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; max-width: 1560px; margin: 0 auto; border-top: 1px solid var(--line-2); padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8.5vw, 128px); }
.band-copy { grid-column: 1 / span 6; display: grid; gap: 16px; }
.band-copy h2 { font-size: clamp(34px, 4vw, 62px); line-height: 1; letter-spacing: -0.045em; }
.band-copy p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.band-form { grid-column: 8 / span 5; }

/* ---------- missions: the chart, the filters, the register ---------- */
.arrivals { margin: 0; position: relative; }
.arrivals-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.arrivals-svg { display: block; width: 100%; min-width: 900px; height: auto; color: var(--ink-1); overflow: visible; }
.arrivals-svg .ax { font: 12px var(--font); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.arrivals-svg .an { font: 12.5px var(--font); fill: var(--ink-2); }
.am { color: var(--ink-1); transition: opacity 0.2s; }
.am--planned { color: var(--ink-2); }
.marks.dim .am:not(.on) { opacity: 0.28; }
.am:focus-visible { outline: 1.5px solid var(--ink-1); outline-offset: 1px; border-radius: 3px; }
.legend--row { display: flex; flex-wrap: wrap; gap: 10px 26px; border-top: 0; padding-top: 22px; }
.arrivals .note { margin-top: 12px; }
.narrow-only { display: none; }
@media (max-width: 940px) { .narrow-only { display: inline; } }
.tip { position: absolute; z-index: 5; left: 0; top: 0; pointer-events: none; padding: 8px 12px; border-radius: 12px; white-space: nowrap; font-size: 13px; line-height: 1.35; display: grid; gap: 1px;
  background: rgba(24, 24, 26, 0.94); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-hi), 0 12px 32px rgba(0, 0, 0, 0.55); }
.tip b { font-weight: 500; }
.tip span { color: var(--ink-2); }
.tools { position: sticky; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 1560px; margin: 0 auto; padding: 12px 0; background: var(--black); border-bottom: 1px solid var(--line-2); }
.sec-h > .tools { position: static; grid-column: 5 / -1; justify-self: end; align-self: center; margin: 0; padding: 0; border-bottom: 0; background: none; }
.tools-r { display: flex; align-items: center; gap: 16px; }
.seg--line { box-shadow: inset 0 0 0 1px var(--line-2); flex-wrap: wrap; border-radius: 22px; }
.search input { width: min(320px, 78vw); height: 40px; padding: 0 16px; border: 0; outline: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 14px; color: var(--ink-1); transition: box-shadow 0.2s; }
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.reg-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
#register > .reg-count, #register > #groups, #register > .reg-none { max-width: 1560px; margin-left: auto; margin-right: auto; }
#register > .reg-count { padding-top: 14px; }
#register { padding-bottom: clamp(64px, 7.5vw, 112px); }
.reg-none { padding: 48px 0; font-size: 17px; color: var(--ink-2); }
.dec-h { display: flex; align-items: baseline; gap: 16px; padding: clamp(40px, 5vw, 72px) 0 16px; }
.dec-h h2 { font-size: clamp(40px, 4.4vw, 64px); line-height: 0.9; font-weight: 200; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.dec-h p { font-size: 13px; color: var(--ink-3); }
.lost { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.lost li { display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lost .textbtn { font-size: 15px; color: var(--ink-1); }
.lost small { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.lost b { font-weight: 500; }
.lost small a { color: var(--ink-2); text-decoration: none; }
.lost small a:hover { color: var(--ink-1); }

/* ---------- tables ---------- */
.tbl-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; font-weight: 400; color: var(--ink-2); }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl thead th { padding-bottom: 14px; border-bottom-color: var(--line-2); vertical-align: bottom; white-space: nowrap; font-size: 13px; color: var(--ink-3); }
.tbl thead .sym { margin-right: 8px; vertical-align: -1px; }
.tbl thead .sym::before { background: var(--ink-3); }
.tbl thead button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.tbl thead button:hover, .tbl th[aria-sort] button { color: var(--ink-1); }
.tbl thead button::after { content: ""; width: 7px; height: 7px; opacity: 0; background: currentColor; clip-path: polygon(50% 100%, 0 20%, 100% 20%); }
.tbl th[aria-sort="ascending"] button::after { opacity: 1; clip-path: polygon(50% 0, 0 80%, 100% 80%); }
.tbl th[aria-sort="descending"] button::after { opacity: 1; }
.tbl tbody th { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-1); }
.tbl tbody th small, .tbl--plain tbody th small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.tbl .num { text-align: right; }
.tbl .num button { flex-direction: row-reverse; }
.tbl a { color: inherit; text-decoration: none; }
.tbl a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.tbl abbr { text-decoration: none; color: var(--ink-3); }
#tbl { min-width: 1180px; }
#tbl td, #tbl tbody th { white-space: nowrap; }
#tbl td.wrap { white-space: normal; min-width: 150px; }
.oc { display: flex; align-items: baseline; gap: 9px; }
.oc + .oc { margin-top: 6px; }
.oc .sym { align-self: center; }
.z { color: var(--ink-4); }
.tbl-scroll + .note, .tbl + .note { margin-top: 18px; max-width: 78ch; }

/* ---------- data: the numbers ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.fact dd { font-size: clamp(36px, 3.6vw, 56px); line-height: 1; font-weight: 200; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.fact dt { font-size: 15px; line-height: 1.4; color: var(--ink-1); }
.fact dt small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* ---------- who has reached the Moon ---------- */
.who summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.who summary::-webkit-details-marker { display: none; }
.who-n { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; }
.who-c { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 12px; }
.who-c::after { content: ""; width: 9px; height: 9px; background: var(--ink-2); clip-path: polygon(50% 85%, 0 25%, 100% 25%); transition: transform 0.25s var(--ease); }
.who[open] .who-c::after { transform: rotate(180deg); }
.who[open] .reg { margin-bottom: 28px; }
.lost--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- alerts ---------- */
.phero--form .signup { max-width: 480px; }
.mail { margin: 0; max-width: 600px; display: grid; gap: 14px; }
.mail-head { display: grid; gap: 14px; padding: 22px 26px 20px; border-radius: 24px 24px 0 0; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px var(--glass-line); }
.mail-from { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.mail-from .brand-mark { width: 14px; height: 14px; }
.mail-head b { font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; }
.mail-body { display: grid; gap: 18px; justify-items: start; margin-top: -14px; padding: 8px 26px 28px; border-radius: 0 0 24px 24px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--glass-line); }
.mail-body .spec { width: 100%; }
.mail-body p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.faq { display: grid; max-width: 900px; }
.faq > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 24px; row-gap: 6px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-size: 16px; letter-spacing: -0.01em; color: var(--ink-1); }
.faq dd { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- thanks: tonight's Moon beside the welcome ---------- */
.thx { position: relative; z-index: 3; padding: calc(var(--nav-h) + clamp(32px, 5vw, 72px)) var(--margin) clamp(56px, 7vw, 104px); }
.thx-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; max-width: 1560px; margin: 0 auto; }
.thx-copy { grid-column: 1 / span 6; display: grid; gap: 20px; justify-items: start; }
.thx-k { font-size: 14px; color: var(--ink-3); }
.thx h1 { font-size: clamp(52px, 7vw, 120px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 500; }
.thx-phase { font-size: 15px; line-height: 1.5; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.thx-phase:empty { display: none; }
.thx-copy .note { max-width: 46ch; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.thx-moon { grid-column: 7 / span 6; margin: 0; display: grid; gap: 14px; justify-items: center; }
.thx-moon canvas { display: block; width: min(100%, 640px); height: auto; aspect-ratio: 1 / 1; opacity: 0; transform: scale(0.96); transition: opacity 1.6s var(--ease), transform 2.4s var(--ease); }
.thx-moon.on canvas { opacity: 1; transform: none; }
.thx-moon figcaption { font-size: 13px; color: var(--ink-3); text-align: center; }
.thx-fact { display: grid; gap: 12px; justify-items: start; max-width: 640px; }
.thx-fact-meta { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.thx-fact h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.thx-fact-place { font-size: 14px; color: var(--ink-2); }
.thx-fact-blurb { font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.thx-fact-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.thx-fact-acts .textbtn { font-size: 15px; color: var(--ink-1); text-decoration: underline; text-decoration-color: var(--ink-4); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color 0.2s; }
.thx-fact-acts .textbtn:hover { text-decoration-color: var(--ink-1); }
@media (prefers-reduced-motion: reduce) { .thx-moon canvas { transform: none; transition: opacity 0.4s linear; } }

/* ---------- narrower windows ---------- */
@media (max-width: 1100px) {
  .phero h1, .phero-side { grid-column: 1 / -1; }
  .sec-h, .sec-b { grid-column: 1 / -1; }
  .sec-h p { max-width: 60ch; }
  .sec-in--full .sec-h h2, .sec-in--full .sec-h p, .sec-h > .tools { grid-column: 1 / -1; }
  .sec-h > .tools { justify-self: stretch; }
  .band-copy, .band-form { grid-column: 1 / -1; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thx-copy, .thx-moon { grid-column: 1 / -1; }
  .thx-moon { grid-row: 1; }
  .thx-moon canvas { width: min(78vw, 460px); }
}
@media (max-width: 900px) {
  .sec--record .sec-b { grid-template-columns: minmax(0, 1fr); }
  .reg--full .reg-row { grid-template-columns: 36px 14px minmax(0, 1fr) auto; row-gap: 2px; }
  .reg--full .reg-m, .reg--full .reg-p { grid-column: 3 / -1; }
  .reg--who .reg-row { grid-template-columns: 36px 14px minmax(0, 1fr) auto; row-gap: 2px; }
  .reg--who .reg-p { grid-column: 3 / -1; }
  .reg--near .reg-row { grid-template-columns: 14px minmax(0, 1fr) auto; row-gap: 2px; }
  .reg--near .reg-m { grid-column: 2 / -1; grid-row: 2; }
  .tools { position: static; }
  .tools-r { width: 100%; justify-content: space-between; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .faq > div { grid-template-columns: minmax(0, 1fr); }
}
/* portrait: the Moon above, the words below (matches the story) */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .mhero { min-height: 0; padding-top: 58svh; padding-bottom: 40px; }
  .mhero::after { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.92) 30%, rgba(0, 0, 0, 0.55) 44%, transparent 62%); }
  .mhero h1 { font-size: clamp(40px, 11vw, 64px); }
  .phero { padding-top: calc(var(--nav-h) + 40px); }
  .phero h1 { font-size: clamp(36px, 10vw, 60px); }
  .spec--wide > div { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .facts-grid, .lost, .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-a--next { text-align: left; }
  .keymap { grid-template-columns: 96px minmax(0, 1fr); }
  .keymap canvas { width: 96px; height: 96px; }
  .seg--line button { padding: 0 11px; }
}

/* ---------- dev/check.html ---------- */
.page--check .phero { padding-top: clamp(40px, 6vw, 72px); }
.page--check textarea { display: block; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--ink-1); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; resize: vertical; }
.page--check code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-1); }
