/* PSR: page layer over reference template 05 (system.css, cards.css, motion.css, layout.css).
   Graphite/amber palette, IBM Plex Sans + IBM Plex Mono, sharp radius. */
:root {
  --p-bg: #0e1116; --p-surface: #161b22; --p-ink: #e8eaed; --p-muted: #8e9297;
  --p-accent: #f2a93b; --p-accent-ink: #0e1116; --p-action: #f2a93b; --p-action-ink: #0e1116;
  --p-inv-bg: #e8eaed; --p-inv-surface: #d6d9dc; --p-inv-ink: #0e1116; --p-inv-muted: #575a5f;
  --p-inv-accent: #0e1116; --p-inv-accent-ink: #e8eaed; --p-inv-action: #0e1116; --p-inv-action-ink: #e8eaed;
  --font-display: "IBM Plex Sans", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
  --ly-scale: 0.98;
  /* the lit ground, kept in the graphite family: a lifted panel, never a light slab on a dark site */
  --ground-bg: #161b22; --ground-surface: #1d232c; --ground-ink: #e8eaed; --ground-muted: #9ba0a6; --ground-accent: #7a5420;
  --math: "Cambria Math", "STIX Two Math", "Latin Modern Math", "Times New Roman", serif;
  --hair: color-mix(in oklab, var(--p-ink) 10%, transparent);
  --embed-bg: #f4f5f7;
}

/* ---------------------------------------------------------------- mono labels and metadata */
.meta, .t-mono { font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.meta b, .t-mono b { color: var(--accent); font-weight: 500; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
        font: 500 var(--t-label)/1 var(--font-mono); color: var(--ink); white-space: nowrap; }
[data-client] { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- typeset mathematics (HTML, no images) */
.tex { font-family: var(--math); font-size: 1.12em; line-height: 1.5; color: var(--ink); white-space: nowrap; font-weight: 400; letter-spacing: 0; }
.tex i { font-style: italic; }
.tex sub, .tex sup { font-size: .68em; line-height: 0; }
.tex .op { margin-inline: .22em; }
.tex .frac { display: inline-grid; vertical-align: middle; text-align: center; margin-inline: .12em; line-height: 1.15; }
.tex .frac > :first-child { border-bottom: 1px solid currentColor; padding: 0 .2em .05em; }
.tex .frac > :last-child { padding: .05em .2em 0; }
.tex .sqrt { display: inline-flex; align-items: stretch; }
.tex .sqrt > .rad { border-top: 1px solid currentColor; padding: .06em .12em 0; }
.tex-block { display: block; text-align: center; font-size: 1.25em; }

/* ---------------------------------------------------------------- the hero: grid paper and the typeset collage */
.hero--triptych.bg-ruled::after { opacity: .55; }
/* every column of the triptych starts on the hero's top line; its buttons keep the page's one height */
@media (min-width: 1024px) { .hero--triptych .hero__grid > :is(:first-child, .hero__cta) { align-self: start; } }
.hero--triptych .hero__cta { flex-direction: column; align-items: flex-end; gap: var(--s-3); }
.hero--triptych .hero__cta .btn { height: var(--btn-h); font-size: var(--t-body); padding-inline: var(--s-5); }
@media (max-width: 1279px) { .hero--triptych .hero__cta { align-items: flex-start; } }
@media (max-width: 639px) { .hero--triptych .hero__cta { align-items: stretch; } }
@media (max-width: 639px) {
  .hero__meta { display: none; }
  .hero--triptych .ly-collage { min-height: 200px; margin-block: var(--s-5); }
  .hero--triptych .hero__cta .btn { height: 48px; }
}
.hero__meta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ly-collage { container-type: inline-size; }
.ly-collage .ly-piece { background: var(--p-surface); color: var(--p-ink); border: 1px solid var(--hair); border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 24px 48px -28px rgb(0 0 0 / .8); }
.pc { padding: 3.2cqw 3.6cqw; display: grid; align-content: start; gap: 2cqw; font: 400 max(13px, 2.05cqw)/1.45 var(--font-text); }
.pc__head { display: flex; justify-content: space-between; gap: 2cqw; font: 500 max(13px, 1.9cqw)/1.2 var(--font-mono); color: var(--p-muted); }
.pc__head b { color: var(--p-accent); font-weight: 500; }
.pc .tex { font-size: max(14px, 3.1cqw); white-space: normal; }
.pc .tex-block { font-size: max(15px, 3.7cqw); padding-block: 1cqw; }
.pc p { color: color-mix(in oklab, var(--p-ink) 82%, var(--p-surface)); }
.algo { margin: 0; font: 400 max(13px, 1.95cqw)/1.62 var(--font-mono); color: var(--p-ink); counter-reset: ln; white-space: pre; overflow: hidden; }
.algo > span { display: block; counter-increment: ln; }
.algo > span::before { content: counter(ln); display: inline-block; width: 2.4em; color: color-mix(in oklab, var(--p-muted) 70%, transparent); }
.algo .kw { color: var(--p-accent); }
.algo .cm { color: var(--p-muted); }
.pc-plot svg { width: 100%; height: auto; overflow: visible; }
.pc-plot .ax { stroke: var(--hair); stroke-width: 1; fill: none; }
.pc-plot .gr { stroke: color-mix(in oklab, var(--p-ink) 6%, transparent); stroke-width: 1; }
.pc-plot .ln { fill: none; stroke: var(--p-accent); stroke-width: 2; stroke-linejoin: round; }
.pc-plot .ln2 { fill: none; stroke: var(--p-ink); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .55; }
.pc-plot text { font: 500 13px var(--font-mono); fill: var(--p-muted); }
.spy { display: grid; grid-template-columns: repeat(12, 1fr); gap: .7cqw; }
.spy i { aspect-ratio: 1; background: color-mix(in oklab, var(--p-ink) 7%, transparent); }
.spy i.on { background: var(--p-ink); }
.spy i.d { background: var(--p-accent); }
/* a phone: one typeset piece a set, the collage's full width (inline positions are the desktop composition) */
@media (max-width: 639px) {
  .ly-collage .ly-collage__set > .ly-piece:not(:first-child) { display: none; }
  .ly-collage .ly-collage__set > .ly-piece:first-child { left: 0 !important; top: 50% !important; translate: 0 -50%; width: 100% !important; padding: 16px; gap: 10px; }
  .ly-collage .pc__head { font-size: 13px; }
  .ly-collage .pc { font-size: 15px; }
  .ly-collage .pc .tex-block { font-size: 18px; }
}

/* ---------------------------------------------------------------- scope cards: a typeset line on a lit strip */
.scope .card > h3 { font-size: var(--t-card); }
.scope .card > .panel.formula { --p-h: 112px; margin-top: var(--s-5); display: flex; align-items: center; justify-content: center; }
.formula .tex { position: relative; z-index: 1; font-size: 24px; }
.formula .meta { position: absolute; z-index: 1; top: 10px; right: 12px; }
@media (max-width: 639px) { .scope .card > .panel.formula { --p-h: 88px; } .formula .tex { font-size: 20px; } }

/* ---------------------------------------------------------------- the review pipeline: drawn windows in the pinned frame */
.win { width: 100%; max-width: 520px; background: var(--p-bg); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; font-size: 15px; }
.win__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 16px; border-bottom: 1px solid var(--hair); font: 500 13px/1.3 var(--font-mono); color: var(--p-muted); }
.win__bar b { color: var(--p-accent); font-weight: 500; }
.win__body { padding: 16px; display: grid; gap: 10px; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.kv:last-child { border-bottom: 0; padding-bottom: 0; }
.kv > span:first-child { color: var(--p-muted); }
.kv > span:last-child { font-family: var(--font-mono); font-size: 14px; text-align: right; }
.ok { color: var(--p-accent); }
.win .dg { width: 100%; }
.mo-pc__visual--lit .dg { width: 100%; }
@media (max-width: 639px) { .win { font-size: 14px; } .win__body { padding: 12px; gap: 8px; } }
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual.mo-pc__visual--lit { aspect-ratio: auto; }
/* a phone: each step's window keeps its first three rows, so the four steps stand in two screens */
@media (max-width: 639px) {
  [data-moment="pinned-chapters"] .win .kv:nth-child(n+3) { display: none; }
  [data-moment="pinned-chapters"] .win .kv:nth-child(2) { border-bottom: 0; padding-bottom: 0; }
  [data-moment="pinned-chapters"] .mo-pc__visual--lit { padding: 12px; }
}

/* ---------------------------------------------------------------- embedded legacy pages (the backend's iframes) */
.embed { position: relative; background: var(--embed-bg); color: #1d232c; border-radius: var(--r-lg); padding: var(--s-4); border: 1px solid var(--hair); }
.embed__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 0 var(--s-2) var(--s-3); font: 500 13px/1.3 var(--font-mono); color: #4a5058; }
.embed__bar b { color: #1d232c; font-weight: 500; }
.embed__status { margin: 0; font: 400 14px/1.4 var(--font-text); color: #4a5058; }
.embed iframe { display: block; width: 100%; min-height: var(--embed-h, 640px); height: var(--embed-h, 640px); border: 1px solid #dfe2e6; border-radius: var(--r-sm); background: #ffffff; position: relative; }
.embed--fill { display: flex; flex-direction: column; }
.embed--fill iframe { flex: 1 1 0; min-height: 0; height: auto; }
@media (max-width: 639px) { .embed { padding: var(--s-2); border-radius: var(--r-md); } }
.latest-grid { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.latest-grid > .section-head { align-self: start; margin-bottom: 0; }
.latest-grid > .embed { min-height: 0; }
@media (max-width: 1023px) {
  .latest-grid { grid-template-rows: auto minmax(0, 1fr); row-gap: var(--s-6); }
  .latest-grid > .embed { min-height: 520px; }
}
@media (max-width: 639px) {
  .latest-grid > .embed { min-height: 380px; }
  #journal { --hm: 2; }
  #journal .counter-row { margin-top: 0; }
}

/* ---------------------------------------------------------------- home: journal information, archive and search */
.info-rows > li { padding-block: 14px; }
.info-rows .rows__name { font-weight: 400; color: var(--muted); }
.info-rows .rows__value { font-family: var(--font-mono); font-size: 15px; color: var(--ink); }
.info-group + .info-group { margin-top: var(--s-6); }
.info-group > .t-label { color: var(--muted); display: block; margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.counter-row { margin-top: auto; padding-top: var(--s-7); }
.counter-row .t-stat { color: var(--ink); }
.counter-row .t-small { margin-top: var(--s-2); }
.link-rows > li { padding: 0; }
.link-rows > li > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-5); padding-block: 14px; align-items: center; }
.link-rows > li:first-child > a { padding-top: 0; }
.link-rows .rows__name { grid-column: 1; }
.link-rows .rows__note { grid-column: 1; color: var(--muted); font-size: var(--t-small); }
.link-rows .arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.link-rows a:hover .arrow, .link-rows a:focus-visible .arrow { transform: translateX(3px); color: var(--accent); }
.link-rows a:hover .rows__name { color: var(--accent); }
.card.vol-card .panel { --p-h: 260px; }
.menu-card .vol-card { --p-h: 0px; }
.vol-card .panel, .panel.vol-card { display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); padding: var(--s-6); }
.vol-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); position: relative; z-index: 1; }
.vol-grid span { display: grid; place-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 500 14px/1 var(--font-mono); background: color-mix(in oklab, var(--p-bg) 70%, transparent); }
.vol-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; font: 500 14px/1.2 var(--font-mono); color: var(--muted); }
.vol-head b { color: var(--ink); font-weight: 500; font-size: 18px; }

/* ---------------------------------------------------------------- inner pages: a compact head, then the content at its own height */
html[data-page="inner"] main > :is(section, .section),
html[data-page="inner"] footer.closing { height: auto; min-height: 0; }
html[data-page="inner"] main > .page-head { padding: calc(var(--nav) + 72px) 0 56px; position: relative; }
html[data-page="inner"] main > .page-body { padding: 56px 0 112px; }
html[data-page="inner"] main > .page-body + .page-body { padding-top: 0; }
html[data-page="inner"] footer.closing { padding: 96px 0 calc(32px + var(--bar)); border-top: 1px solid var(--line); }
html[data-page="inner"] footer.closing .close__word { font-size: clamp(64px, 11vw, 168px); margin-top: var(--s-7); }
@media (max-width: 639px) {
  html[data-page="inner"] main > .page-head { padding: calc(var(--nav) + 40px) 0 32px; }
  html[data-page="inner"] main > .page-body { padding: 32px 0 72px; }
  html[data-page="inner"] footer.closing { padding-top: 72px; }
}
.page-head h1 { font-size: clamp(36px, 2.6vw + 22px, 60px); line-height: 1.05; letter-spacing: var(--display-tracking-xl); max-width: 20ch; }
.page-head .lead { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
.page-head .meta { display: block; margin-bottom: var(--s-5); }
.page-head .btn-row { margin-top: var(--s-6); }
.prose { max-width: 68ch; display: grid; gap: var(--s-5); font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: var(--t-h3); line-height: 1.2; margin-top: var(--s-5); }
.prose h2:first-child { margin-top: 0; }
.prose ul { display: grid; gap: var(--s-3); }
.prose ul > li { position: relative; padding-left: 28px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: var(--accent); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-7); align-items: start; }
.split > .main { grid-column: 1 / span 7; }
.split > .side { grid-column: 9 / span 4; }
@media (max-width: 1023px) { .split > .main, .split > .side { grid-column: 1 / -1; } }
.side-card { background: var(--p-surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-4); }
.side-card h2, .side-card h3 { font-family: var(--font-text); font-size: var(--t-card); font-weight: 500; letter-spacing: -0.01em; }
.side-card p { color: var(--ink); }
.side-card .btn { justify-self: start; }
@media (max-width: 639px) { .side-card { padding: var(--s-5); } .side-card .btn { justify-self: stretch; } }

/* policy and about sections: numbered blocks on hairlines */
.blocks { display: grid; gap: 0; }
.block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--s-7) 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block > .block__head { grid-column: 1 / span 4; display: grid; gap: var(--s-3); align-content: start; }
.block > .block__head h2 { font-size: var(--t-h3); line-height: 1.2; }
.block > .block__body { grid-column: 6 / span 7; }
@media (max-width: 1023px) { .block > .block__head, .block > .block__body { grid-column: 1 / -1; } .block > .block__body { margin-top: var(--s-5); } }

/* the guidelines checklist */
.checklist { display: grid; gap: 0; counter-reset: rule; }
.checklist > li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-4); align-items: baseline; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); counter-increment: rule; }
.checklist > li::before { content: counter(rule, decimal-leading-zero); font: 500 14px/1 var(--font-mono); color: var(--accent); }
.checklist > li:first-child { padding-top: 0; }
.checklist .rule { font-size: 17px; line-height: 1.55; }
.checklist .rule small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.checklist .spec { font: 500 14px/1.3 var(--font-mono); color: var(--ink); white-space: nowrap; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 6px 10px; }
@media (max-width: 639px) {
  .checklist > li { grid-template-columns: 40px minmax(0, 1fr); }
  .checklist .spec { grid-column: 2; justify-self: start; }
}
.confirm { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-6); border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
  border-radius: var(--r-lg); background: color-mix(in oklab, var(--accent) 7%, var(--p-bg)); }
.confirm__box { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--accent); display: grid; place-items: center; }
.confirm__box svg { width: 16px; height: 16px; stroke: var(--p-accent-ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.confirm p { font-size: 18px; line-height: 1.5; }
.confirm .t-small { color: var(--muted); margin-top: var(--s-2); font-size: var(--t-small); }

/* the editorial board */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--card-gap); }
.board > .person-card { grid-column: span 4; }
.board > .person-card--lead { grid-column: span 12; }
@media (max-width: 1023px) { .board > .person-card { grid-column: span 6; } .board > .person-card--lead { grid-column: span 12; } }
@media (max-width: 639px) { .board > .person-card, .board > .person-card--lead { grid-column: 1 / -1; } }
.person-card { background: var(--p-surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); display: grid; gap: var(--s-2); align-content: start; }
.person-card .role { font: 500 13px/1.3 var(--font-mono); color: var(--accent); }
.person-card .name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.person-card .aff { color: var(--muted); font-size: var(--t-small); }
.person-card--lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.person-card--lead .name { font-size: var(--t-h3); }

/* contact details */
.contact-list { display: grid; gap: 0; }
.contact-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { padding-top: 0; }
.contact-list dt { color: var(--muted); font: 500 13px/1.6 var(--font-mono); }
.contact-list dd { margin: 0; font-size: 17px; }
.contact-list a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (max-width: 639px) { .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* the archive: one row a year, twelve issue chips */
.archive { display: grid; gap: 0; }
.year { display: grid; grid-template-columns: 120px 140px minmax(0, 1fr); column-gap: var(--gutter); align-items: center; padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.year:last-child { border-bottom: 1px solid var(--line); }
.year__y { font: var(--display-weight) 28px/1 var(--font-display); letter-spacing: var(--display-tracking); }
.year__v { font: 500 14px/1.3 var(--font-mono); color: var(--muted); }
.year__v small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--font-text); font-weight: 400; }
.issues { display: grid; grid-template-columns: repeat(12, minmax(44px, 1fr)); gap: var(--s-2); }
.issue { display: grid; place-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 500 15px/1 var(--font-mono); color: var(--ink);
  font-variant-numeric: tabular-nums; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.issue:hover, .issue:focus-visible { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.issue--tracker { border-style: dashed; }
.year--current { border-top-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.year--current + .year { border-top-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.year--current .year__y { color: var(--accent); }
.year--current .issue { border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-bottom: var(--s-6); color: var(--muted); font-size: var(--t-small); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend i { display: inline-block; width: 22px; height: 16px; border: 1px solid var(--line-strong); border-radius: 3px; }
.legend i.dash { border-style: dashed; }
@media (max-width: 1023px) {
  .year { grid-template-columns: 96px minmax(0, 1fr); row-gap: var(--s-4); }
  .year .issues { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .year { grid-template-columns: minmax(0, 1fr) auto; }
  .issues { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .year__y { font-size: 24px; }
}
@media (max-width: 359px) { .issues { gap: 6px; } .issue { font-size: 14px; } }

/* the name across the close: room for its cap height inside the clip */
.close__word { line-height: 1.02; padding-top: .04em; }

/* the bar: a small laptop keeps one line (the logo is the way home there), a phone keeps the name and the menu */
.nav__logo { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav--centre .nav__links > .nav__item:first-child { display: none; }
  .nav__link { font-size: 14px; }
  .nav__actions .btn { font-size: 14px; padding-inline: var(--s-4); }
  .nav__logo { font-size: 20px; }
}
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__toggle, .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
  .hero .hero__meta { display: none; }
}

/* the statement footer keeps the page's one filled action in amber */
.footer--statement { --action: var(--p-action); --action-ink: var(--p-action-ink); }

/* footer columns on every page */
.closing__links .footer__col ul { gap: var(--s-2); }
.footer__contact { color: var(--muted); font-size: var(--t-small); line-height: 1.6; }

/* a short window: sections locked to one screen let photographs and lists cover the next section */
@media (min-width: 1024px) {
  main > section.section:not([data-moment="pinned-chapters"]) {
    height: auto;
    min-height: calc(var(--h, 1) * 100svh);
  }
  main > section.section:not([data-moment="pinned-chapters"]) > :is(.wrap, .container) { height: auto; min-height: 0; }
  main > section.section:not([data-moment="pinned-chapters"]) > :is(.wrap, .container) > :is(.fill, .grid) {
    flex: 1 0 auto; min-height: auto; overflow: visible;
  }
}

/* The review steps' own stylesheet is added by a script. Opening the page as a file never runs
   that script, so the step panels stay inside a section locked to two screens and cover the
   sections after them. These rules are the at-rest layout, and they turn off once the script goes live. */
main > section[data-moment="pinned-chapters"]:not(.is-live) {
  height: auto;
  min-height: 100svh;
}
main > section[data-moment="pinned-chapters"]:not(.is-live) > .mo-pc__grid { height: auto; }
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visuals { display: none; }
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual { margin: 0; overflow: hidden; }
@media (min-width: 640px) {
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter);
    align-items: center; border-left: 0; border-top: 1px solid var(--line); padding: var(--s-6) 0 0;
  }
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step h3,
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step p { grid-column: 1; }
  [data-moment="pinned-chapters"]:not(.is-live) .mo-pc__step .mo-pc__visual { grid-column: 2; grid-row: 1 / span 2; }
}
[data-moment="pinned-chapters"].is-live > .mo-pc__grid { background: var(--bg); }
@media (min-width: 640px) and (max-width: 1279px) {
  main > [data-moment="pinned-chapters"].is-live > .mo-pc__grid { flex: 0 0 auto; height: 100svh; }
}

/* the closing band is locked to one screen; on a short window the submit button covers the columns */
@media (min-width: 1280px) {
  footer.footer.closing {
    height: auto;
    min-height: calc(var(--h, 1) * 100svh);
    display: flex;
    flex-direction: column;
  }
  footer.footer.closing > .wrap {
    flex: 1 0 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--s-8);
  }
  footer.footer.closing :is(.closing__cta, .closing__links) { flex: 0 0 auto; min-height: auto; }
}
