/* glan.ie, the one stylesheet. Built from session 21B's canvas (docs/design/session-21B/design_handoff_21B/site/,
   canvas/s21b/site-c.js). No framework, no outside font, script or tracking. Three bands, from the canvas's
   breakpoints: narrow (the 390 frames, below 860 px), mid (the 1024 frames) and wide (the 1440 frames, from 1280 px). */

@font-face { font-family: Jost; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/Jost-600-Semi.woff2) format("woff2"); }
@font-face { font-family: Jost; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/Jost-700-Bold.woff2) format("woff2"); }

/* ---------- Colours (BRAND.md; the canvas's light and dark themes) ---------- */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF; --ink: #0B0D1A; --ink2: #555A73; --acc: #2448FF; --press: #1230C8; --sep: #D9DEF0;
  --tint: #EEF1FD; --pen: #2448FF; --ph: #9AA1C2; --on-acc: #FFFFFF;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --jost: Jost, var(--sys);
  --mono: ui-monospace, Menlo, monospace;

  /* narrow band (390) */
  --pad: 20px; --w: 7px; --r: 14px; --inset: 20px; --hair: 1.5px;
  --h1: 600 34px/40px var(--jost); --h2: 600 28px/34px var(--jost); --cap: 600 22px/28px var(--jost);
  --body: 400 17px/26px var(--sys); --lead: 400 18px/27px var(--sys); --small: 400 14px/20px var(--sys);
  --link: 500 17px/26px var(--sys);
  --wm-w: 80px; --shot-hero: min(290px, 100vw - 2 * var(--pad) - 2 * var(--inset)); --shot: min(280px, 100vw - 2 * var(--pad) - 2 * var(--inset)); --shot-side: var(--shot);
  --ar: 2.17413; /* every capture is 1206 x 2622 */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161C; --ink: #F3F4FB; --ink2: #A3A8C4; --acc: #6E8BFF; --press: #9DB1FF; --sep: #30344A;
    --tint: #1F2130; --pen: #6E8BFF; --ph: #565B7A; --on-acc: #15161C;
  }
}
@media (min-width: 860px) {
  :root {
    --pad: 48px; --w: 8px; --r: 14px; --inset: 16px; --hair: 2px;
    --h1: 600 48px/56px var(--jost); --h2: 600 34px/42px var(--jost); --cap: 600 21px/27px var(--jost);
    --body: 400 16px/24px var(--sys); --lead: 400 19px/29px var(--sys); --small: 400 16px/24px var(--sys);
    --link: 500 16px/24px var(--sys);
    --wm-w: 96px; --shot-hero: 320px; --shot-side: 290px; --colgap: 31.3px;
  }
}
@media (min-width: 1280px) {
  :root {
    --pad: 64px; --w: 10px; --r: 20px; --inset: 24px;
    --h1: 600 60px/68px var(--jost); --h2: 600 40px/48px var(--jost); --cap: 600 26px/32px var(--jost);
    --body: 400 18px/28px var(--sys); --lead: 400 21px/32px var(--sys); --small: 400 18px/28px var(--sys);
    --link: 500 18px/28px var(--sys);
    --wm-w: 104px; --shot-hero: 400px; --shot-side: 360px; --colgap: 49.3px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Reserve the scrollbar's width on every page, so a page short enough not to
   scroll and a long one centre their column in the same place (Robert's report,
   4 December 2026: switching between Support and Press moved the layout where
   the Mac shows classic scrollbars). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
html, body { margin: 0; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); font: var(--body); font-feature-settings: "tnum"; }
.page { overflow-x: clip; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }
.nw { white-space: nowrap; }                 /* "take-home" never breaks (SC-13) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wide-only { display: none; }
@media (min-width: 860px) { .wide-only { display: revert; } .narrow-only { display: none; } }

/* Sections run edge to edge; their words stay inside a 1440 px column. */
.gut { padding-inline: max(var(--pad), calc(50% - 720px + var(--pad))); }

/* ---------- Links and states (the states sheet) ---------- */
a { color: inherit; text-decoration: none; border-radius: 6px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.lnk { font: var(--link); color: var(--acc); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lnk:hover { text-decoration-line: underline; }
.lnk:active { color: var(--press); text-decoration-line: underline; }
.navl { font: 500 16px/22px var(--sys); color: var(--ink); padding: 6px 2px; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.navl:hover { color: var(--acc); text-decoration-line: underline; }
.navl:active { color: var(--press); text-decoration-line: underline; }

/* ---------- Top bar ---------- */
.bar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 14px; border-bottom: 1px solid var(--sep); background: var(--bg); }
@media (min-width: 860px) { .bar { padding-block: 22px; } }
.home { display: flex; align-items: center; gap: 24px; }
.wordmark { width: var(--wm-w); height: auto; aspect-ratio: 240 / 110; }
.tagline { font: 600 17px/24px var(--jost); color: var(--ink2); }
@media (min-width: 1280px) { .bar .tagline { font-size: 19px; } }
.bar .tagline, .bar .links { display: none; }
@media (min-width: 860px) { .bar .links { display: flex; gap: 32px; } .bar .menu { display: none; } }
@media (min-width: 1000px) { .bar .tagline { display: block; } }

/* The 390 menu: a details element, no script. */
.menu > summary { list-style: none; cursor: pointer; min-height: 44px; padding: 12px 16px; border-radius: 22px;
  background: var(--tint); color: var(--ink); font: 600 16px/20px var(--sys); user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--sep); }
.menu .when-open { display: none; }
.menu[open] .when-open { display: inline; }
.menu[open] .when-closed { display: none; }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 100%); overflow-y: auto;
  background: var(--bg); animation: menu-in 150ms ease-out; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu-panel nav { padding: 24px var(--pad) 28px; border-bottom: 1px solid var(--sep); }
.menu-panel ul { list-style: none; padding: 0; }
.menu-panel li a { display: block; padding: 14px 0 13px; border-bottom: 1px solid var(--sep); font: 600 30px/36px var(--jost); color: var(--ink); }
.menu-panel li:first-child a { padding-top: 0; }
.menu-panel li a:hover { color: var(--acc); }
.menu-panel .tagline { display: block; padding: 28px var(--pad) 0; }
.menu-panel .badge-slot { padding: 24px var(--pad) 0; }

/* ---------- The pen ----------
   One line edge to edge that drops in a U around a screen and runs under the line of the capture the caption
   names. A .pen sits in its anchor (the element whose top edge is the line, padded by --inset on each side);
   --f is where the U's floor crosses the capture, as a share of its height (canvas GAP / 2622). Its ::before and
   ::after are the elbows that carry the line out to --reach-l and --reach-r. */
.pen { position: absolute; top: var(--r); bottom: 0; left: calc(var(--w) / -2); right: calc(var(--w) / -2);
  margin-bottom: calc((1 - var(--f)) * var(--ar) * (100% - 2 * var(--inset)) - var(--w) / 2);
  border: var(--w) solid var(--pen); border-top: 0;
  border-radius: 0 0 calc(var(--r) + var(--w) / 2) calc(var(--r) + var(--w) / 2);
  pointer-events: none; --reach-l: 100vw; --reach-r: 100vw; }
.pen::before, .pen::after { content: ""; position: absolute; top: calc(-1 * (var(--r) + var(--w) / 2));
  height: calc(var(--r) + var(--w) / 2); border-top: var(--w) solid var(--pen); }
.pen::before { right: 100%; width: calc(var(--reach-l) + var(--w) / 2); border-right: var(--w) solid var(--pen);
  border-top-right-radius: calc(var(--r) + var(--w) / 2); }
.pen::after { left: 100%; width: calc(var(--reach-r) + var(--w) / 2); border-left: var(--w) solid var(--pen);
  border-top-left-radius: calc(var(--r) + var(--w) / 2); }
/* The pen as one straight rule. */
.rule-top { border-top: var(--w) solid var(--pen); }
.rail { height: 28px; display: flex; align-items: center; }
.rail::before { content: ""; flex: 1; border-top: var(--w) solid var(--pen); }
@media (min-width: 860px) { .rail { height: 48px; } }

/* A capture: the screen alone, its own corners and a hairline. */
.cap { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 13.68% / 6.29%;
  box-shadow: 0 0 0 var(--hair) var(--sep); background: #FFFFFF; }
.u { position: relative; width: calc(var(--shot) + 2 * var(--inset)); padding: 28px var(--inset) 0; margin-inline: auto; }

/* Where each U's floor crosses its capture (canvas GAP / 2622 px): under the line the caption names. */
.f-breakdown-monthly { --f: 0.7010; } .f-take-home { --f: 0.4386; } .f-explain-income-tax { --f: 0.8284; }
.f-compare-2027 { --f: 0.5111; } .f-check-agrees { --f: 0.8463; } .f-finder-c-result { --f: 0.5950; }
.f-planner-home { --f: 0.2712; } .f-settings { --f: 0.2437; } .f-data-sources-year { --f: 0.4432; }
.f-check-finding { --f: 0.4150; } .f-finder-d-plan { --f: 0.5168; } .f-planner-payday-aoife-next { --f: 0.3101; }

/* The App Store badge: Apple's own artwork, placed by scripts/publish-site.sh --app-id on release day. */
.badge { display: inline-block; }
.badge img { height: 52px; width: auto; }
@media (min-width: 860px) { .badge img { height: 56px; } }

/* ---------- Text blocks ---------- */
.tx { display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 760px; }
.tx > p { font: var(--lead); color: var(--ink2); }
.h1 { font: var(--h1); letter-spacing: -0.01em; color: var(--ink); }
.h2 { font: var(--h2); letter-spacing: -0.01em; color: var(--ink); }
.muted { color: var(--ink2); }
.pts { display: flex; flex-direction: column; gap: 14px; }
.pts p { font: var(--body); color: var(--ink2); }
.pts b { font-weight: 600; color: var(--ink); }
.placeholder { padding: 16px; min-height: 96px; border: 1.5px dashed var(--ph); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font: 500 12px/16px var(--mono); color: var(--ink2); }
.tx > p.placeholder { font: 500 12px/16px var(--mono); }

/* ---------- Front page: the hero ---------- */
.hero { padding-top: 20px; padding-bottom: 40px; }
.hero .tagline { display: block; }
.hero .h1 { margin-top: 16px; letter-spacing: -0.012em; }
.hero .devices { margin-top: 16px; font: var(--small); color: var(--ink2); }
.hero .badge-slot:not(:empty) { margin-top: 20px; }
.hero .u { --shot: var(--shot-hero); margin-top: 36px; padding-top: 32px; }
@media (min-width: 860px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--shot-hero) + var(--inset));
    column-gap: 40px; align-items: start; padding-top: 0; padding-bottom: 72px; }
  .hero .tagline { display: none; }
  .hero-text { padding-top: 108px; max-width: 816px; }
  .hero .h1 { margin-top: 0; }
  .hero .devices { margin-top: 24px; }
  .hero .badge-slot:not(:empty) { margin-top: 32px; }
  .hero .u { margin: 28px calc(-1 * var(--inset)) 0 0; padding-top: 56px; width: auto; }
}
@media (min-width: 1280px) { .hero { column-gap: 72px; } }

/* ---------- Sections of screens under one rail ---------- */
.sec-head { padding-top: 40px; }
.sec-head .lead { margin-top: 14px; font: var(--lead); color: var(--ink2); max-width: 780px; }
.feats { padding-top: 20px; padding-inline: var(--pad); }
.feat { padding-top: 8px; padding-bottom: 36px; }
.feat h3 { font: var(--cap); color: var(--ink); }
.feat p { margin-top: 6px; font: var(--body); color: var(--ink2); }
.feat .more { display: inline-block; margin-top: 36px; }
.feat .u { margin-top: 26px; }
.feat .more + .u { margin-top: 28px; }
@media (min-width: 860px) {
  .sec-head { padding-top: 88px; }
  .sec-head .lead { margin-top: 16px; }
  .feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto);
    column-gap: var(--colgap); padding-top: 40px; padding-bottom: 72px;
    padding-inline: calc(max(var(--pad), 50% - 720px + var(--pad)) + var(--colgap) / 2); }
  .feat { position: relative; grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0;
    padding: 48px var(--inset) 0; }
  .feat p { margin-top: 8px; }
  .feat .more { margin-top: 12px; justify-self: start; }
  .feat .u, .feat .more + .u { position: static; grid-row: 4; width: auto; margin: 36px 0 0; padding: 0; }
  .feats.with-links .feat .u { margin-top: 48px; }
  .feat .pen { --reach-l: calc(var(--colgap) / 2); --reach-r: calc(var(--colgap) / 2); }
  .feat:first-child .pen { --reach-l: 100vw; }
  .feat:last-child .pen { --reach-r: 100vw; }
  .feat .more.narrow-only { display: none; }
}
.after-feats { padding-bottom: 24px; }
.after-feats .lnk { display: inline-block; }

/* ---------- A block with one screen beside its words ---------- */
.side { display: flex; flex-direction: column; border-top: var(--w) solid var(--pen); padding-top: 40px; padding-bottom: 36px; }
.side .tx { order: -1; }
.side .tx { padding-bottom: 8px; }
.side .u { --shot: var(--shot-side); margin-top: 8px; }
@media (min-width: 860px) {
  .side { --uoff: 8px; border-top: 0; padding-top: 0; padding-bottom: 72px; display: grid; align-items: start;
    grid-template-columns: calc(var(--shot-side) + 2 * var(--inset) + var(--uoff)) minmax(0, 1fr); column-gap: 48px; }
  .side .u { grid-column: 1; grid-row: 1; width: auto; margin: calc(var(--w) / 2) 0 0 var(--uoff); padding-top: 72px; }
  .side .tx { grid-column: 2; grid-row: 1; padding-top: 96px; padding-bottom: 0; max-width: 776px; }
  .side.screen-right { grid-template-columns: minmax(0, 1fr) calc(var(--shot-side) + 2 * var(--inset) + var(--uoff)); }
  .side.screen-right .u { grid-column: 2; margin: calc(var(--w) / 2) var(--uoff) 0 0; }
  .side.screen-right .tx { grid-column: 1; }
  .side .tx > p { font: var(--lead); }
}
@media (min-width: 1280px) {
  .side { --uoff: 32px; column-gap: 96px; }
}
.side .tx > .h1 { letter-spacing: -0.01em; }
.hero .h1, .side .h1, .side .h2 { text-wrap: wrap; }
/* A page's first block sits under the top bar: at narrow widths its rule is the bar's own line. */

/* ---------- Plain sections ---------- */
.band { padding-top: 48px; padding-bottom: 56px; }
.band.pen-top { border-top: var(--w) solid var(--pen); }
.band.hair-top { border-top: 1px solid var(--sep); padding-top: 40px; }
.band .stack { display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 860px) {
  .band { padding-top: 96px; padding-bottom: 104px; }
  .band.hair-top { padding-top: 80px; }
}

/* ---------- Support, privacy and terms ---------- */
.doc-head { padding-top: 40px; padding-bottom: 8px; }
.doc-head .tx > p { font: var(--lead); }
.doc-head .updated { font: var(--body); color: var(--ink2); }
.doc-body { padding-top: 24px; padding-bottom: 56px; }
.doc-body .stack { display: flex; flex-direction: column; gap: 40px; }
.toc { display: none; }
.dots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.dots li { display: flex; gap: 14px; align-items: baseline; font: var(--body); color: var(--ink2); }
.dots li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--acc); transform: translateY(-2px); }
.doc-body .tx > p { font: var(--body); }
@media (min-width: 860px) {
  .doc-head { padding-top: 88px; padding-bottom: 24px; }
  .doc-body { display: grid; grid-template-columns: 240px minmax(0, 720px); column-gap: 64px; align-items: start;
    padding-top: 40px; padding-bottom: 112px; }
  .doc-body .stack { gap: 48px; }
  .toc { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 24px; }
  .toc .label { font: 600 12px/16px var(--mono); color: var(--ink2); }
  .toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .toc a { font: 500 15px/22px var(--sys); color: var(--ink2); text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .toc a:hover { color: var(--acc); text-decoration-line: underline; }
}
@media (min-width: 1280px) { .doc-body { grid-template-columns: 280px minmax(0, 720px); column-gap: 96px; } }
section[id], h2[id] { scroll-margin-top: 24px; }

/* ---------- Press ---------- */
.press-head { padding-top: 40px; padding-bottom: 24px; }
.press-head .tx { max-width: 980px; }
.press-head .say { font: 600 26px/32px var(--jost); color: var(--ink); }
.press-top { display: grid; gap: 48px; padding-top: 16px; padding-bottom: 40px; }
.descs, .facts { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.desc { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--sep); }
.desc .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.label { font: 600 12px/16px var(--mono); color: var(--ink2); }
.desc p { font: var(--body); color: var(--ink); }
.copy { appearance: none; border: 0; cursor: pointer; min-height: 36px; padding: 8px 16px; border-radius: 10px;
  background: var(--tint); color: var(--acc); font: 600 15px/20px var(--sys); }
.copy:hover { background: var(--sep); }
.copy:active { background: var(--acc); color: var(--on-acc); }
.copy.done { color: var(--ink); }
.facts dl { padding: 8px 24px; border-radius: 22px; background: var(--tint); display: flex; flex-direction: column; }
.facts dl > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--sep); }
.facts dt { font: 600 14px/20px var(--sys); color: var(--ink2); }
.facts dd { font: var(--body); color: var(--ink); }
.press-sec { border-top: 1px solid var(--sep); padding-top: 40px; padding-bottom: 40px; }
.press-sec .grid { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.press-sec .grid > p { font: var(--body); color: var(--ink2); max-width: 760px; }
.press-sec .pts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 56px; }
.cells { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin-top: 12px; }
.cell { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cell .cap { max-width: 160px; }
.cell .name { font: 600 15px/20px var(--sys); color: var(--ink); }
.dl { display: flex; gap: 16px; flex-wrap: wrap; }
.dl .lnk, .press-sec .all { font: 500 14px/20px var(--sys); }
.tile { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 160px; aspect-ratio: 160 / 110;
  border-radius: 16px; box-shadow: 0 0 0 1.5px var(--sep); }
.tile img { width: 58%; height: auto; }
.tile.g img { width: 42%; }
.tile.on-white { background: #FFFFFF; } .tile.on-cobalt { background: #2448FF; } .tile.on-night { background: #15161C; }
.press-who { border-top: 1px solid var(--sep); padding-top: 40px; padding-bottom: 56px; }
@media (min-width: 600px) { .cells.pictures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) {
  .press-head { padding-top: 88px; padding-bottom: 40px; }
  .press-head .say { font: var(--h2); }
  .press-top { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; padding-top: 24px; padding-bottom: 88px; }
  .press-sec { padding-top: 80px; padding-bottom: 80px; }
  .press-sec .pts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-sec .tx { max-width: 1100px; }
  .cells.marks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { max-width: 290px; aspect-ratio: 290 / 180; }
  .press-who { padding-top: 80px; padding-bottom: 104px; }
}
@media (min-width: 1024px) { .cells.pictures { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cell .cap { max-width: 200px; } }
@media (min-width: 1280px) { .press-top { grid-template-columns: minmax(0, 1fr) 400px; gap: 80px; } }

/* ---------- Footer ---------- */
.foot { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--sep); }
.foot .frow { display: flex; flex-direction: column; gap: 24px; }
.foot .fmark { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .fmark .wordmark { width: 88px; }
.foot .tagline { display: block; }
.foot ul { list-style: none; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.foot .flines { display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.foot .flines p { font: 400 13px/19px var(--sys); color: var(--ink2); }
@media (min-width: 860px) {
  .foot { padding-top: 56px; padding-bottom: 64px; }
  .foot .frow { flex-direction: row; justify-content: space-between; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Words still to come: each placeholder names its id (data-words) for the words pack. */
.page p.placeholder { font: 500 12px/16px var(--mono); color: var(--ink2); }

/* A link inside running text (D-12): the link colour only; the states sheet's hover and pressed. */
.inl { color: var(--acc); text-underline-offset: 6px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.inl:hover { text-decoration-line: underline; }
.inl:active { color: var(--press); text-decoration-line: underline; }

/* The words in a page's sections (site/words.json): body text, as Support's sections. */
.band .stack .tx > p, .band .stack .tx > table { font: var(--body); color: var(--ink2); }
.tx b { font-weight: 600; color: var(--ink); }
.words-table { border-collapse: collapse; font: var(--body); color: var(--ink2); }
.words-table th, .words-table td { text-align: left; padding: 10px 32px 10px 0; border-bottom: 1px solid var(--sep); }
.words-table th { font-weight: 600; color: var(--ink); }

/* ---------- One top for every page (Robert, 4 December 2026) ----------
   21B's frames gave the front page (checkpoint C) its pen 48 px under the top bar and
   its title 108 px under it, the Part G pages 25 and 96, and support, privacy, terms,
   press and the not-found page 88: clicking between pages made the pen and the title
   jump. At 860 px and wider every page's first block now puts its title where the
   front page's is, and a page with a screen beside it puts its pen where the front
   page's is. Below 860 px the front page stacks its title above the screen, as drawn;
   the others share one top there once the pen's own width is taken off the first
   screen-beside page's padding (its pen is a top border at that width). */
main > .side:first-child { padding-top: calc(40px - var(--w)); }
@media (min-width: 860px) {
  main > .side:first-child { padding-top: 23px; }
  main > .side:first-child .tx { padding-top: 85px; }
  main > .doc-head:first-child, main > .press-head:first-child { padding-top: 108px; }
}

/* A screen's ground while its picture decodes (Robert's recording, 4 December 2026:
   in dark mode a reload showed a white phone for a frame before the dark capture
   drew). Every capture has a dark twin whose ground is #15161C, the night colour. */
@media (prefers-color-scheme: dark) { .cap { background: #15161C; } }
