/* SAVk foundation: page CSS on the shared architecture grid. */
   white panels, one cobalt accent, square corners. */

html[data-radius="sharp"] { --r-sm: 0px; --r-md: 0px; --r-lg: 0px; --r-btn: 0px; }
:root { --font-text: "Inter", system-ui, sans-serif; --line-hard: var(--p-ink); }
:focus-visible { border-radius: 0; }

/* display type: tight, slightly wide Archivo */
h1, h2, h3, .t-h1, .t-h2, .footer__mark, .nav__logo { font-stretch: var(--display-stretch, 100%); }
.nav__logo { font-family: var(--font-display); letter-spacing: -0.02em; }
@media (min-width: 640px) { .nav__logo { font-size: 20px; gap: 10px; } }
.nav__logo .mark { color: var(--p-accent); }

/* the hero: the words in a white box on the photograph */
@media (min-width: 1024px) { .hero--photo:not([data-box="none"]) .hero__text { background: var(--p-surface); } }
.hero--photo .hero-notice { font-size: var(--t-label); letter-spacing: 0.01em; color: var(--muted); margin-bottom: var(--s-5); }
.hero--photo > picture.hero__bg img { object-position: var(--ly-pos, 60% 50%); }

/* the 1024-1279 laptop: six nav words do not fit beside the name and the button, so the bar keeps the
   button and the menu button, and the words open in the full-screen sheet as on a tablet */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav--centre .nav__bar { display: flex; align-items: center; gap: var(--s-3); }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn);
    border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; flex: none;
  }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0;
    padding: var(--s-4) var(--gut) var(--s-9); background: var(--bg); overflow-y: auto; gap: 0;
  }
  .nav.is-open .nav__item { display: grid; height: auto; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__link { height: 56px; padding: 0; font-size: 20px; }
  .nav.is-open .nav__link::before { display: none; }
  .nav.is-open .nav__link[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: 10px; }
  body.nav-locked { overflow: hidden; }
}
@media (min-width: 1280px) {
  .nav__links { gap: 0; }
  .nav__link { padding: 0 10px; font-size: 14px; }
  .nav__link::before, .nav__link[aria-current="page"]::after { left: 10px; right: 10px; }
}

/* ruled rows that link (scope, services, archive tools) */
.rows--link > li { padding: 0; }
.rows--link > li > a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-5);
  width: 100%; min-height: 56px; padding: var(--s-3) 0; color: var(--ink); }
.rows--link .rows__name { font-weight: 500; }
.rows--link .rows__value { color: var(--muted); text-align: right; }
.rows--link > li > a .rows__name { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease); }
.rows--link > li > a:hover .rows__name, .rows--link > li > a:focus-visible .rows__name { text-decoration-color: currentColor; }
.rows--link > li > a:hover .rows__value { color: var(--action); }
.rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }

/* the journal panel: the volume number set huge */
.vol { display: grid; align-content: start; gap: var(--s-4); }
.vol__num { font: var(--display-weight) clamp(140px, 15vw, 224px)/.8 var(--font-display); letter-spacing: -0.06em;
  font-stretch: 108%; font-variant-numeric: tabular-nums; color: var(--ink); max-width: 100%; overflow: clip; }
.journal-col { display: flex; flex-direction: column; gap: var(--s-6); align-self: stretch; }
.journal-col > .journal-photo { flex: 1 1 0; min-height: 200px; }
@media (max-width: 1023px) { .journal-col > .journal-photo { flex: none; height: auto; --ratio: 56%; } }
.vol__meta { font-size: var(--t-lead); line-height: 1.5; max-width: 30ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); margin: 0; border-top: 1px solid var(--line-hard); }
.facts > div { display: grid; align-content: start; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: var(--t-small); padding-top: 2px; }
.facts dd { margin: 0; }
.facts dd ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
[data-client] { font-variant-numeric: tabular-nums; }

/* a backend page in a frame: a white panel on a black rule, a bar with its name, the legacy page inside */
.bframe { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--p-surface);
  border: 1px solid var(--line-hard); }
.bframe__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 48px;
  padding: 0 var(--s-4); border-bottom: 1px solid var(--line-hard); background: var(--p-surface); }
.bframe__bar .t-label { display: inline-flex; align-items: center; gap: var(--s-2); }
.bframe__bar .t-label::before { content: ""; width: 8px; height: 8px; background: var(--p-accent); }
.bframe__bar .link { font-size: var(--t-small); min-height: 44px; }
.bframe__body { position: relative; flex: 1 1 auto; min-height: var(--bf-h, 640px); }
.bframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #ffffff; }
.bframe__status { margin-left: auto; font-size: var(--t-small); color: var(--muted); }
.bframe.is-loaded .bframe__status { display: none; }
.bframe.frame { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0;
  background: var(--p-surface); border: 1px solid var(--line-hard); border-radius: 0; overflow: clip; }
.bframe.frame::before { display: none; }
.bframe.frame > * { width: 100%; }
.fill > .bframe, .bframe.fill { height: 100%; }
.fill > .bframe .bframe__body { min-height: 0; }

/* inner pages: a header block and sections of natural height on the same .wrap lines */
main > section.pg-hero { height: auto; min-height: 0; padding: calc(var(--nav) + var(--s-9)) 0 var(--s-9); }
main > section.pg-hero--tall { min-height: min(100svh, 860px); }
main > section.pg-hero > .wrap { height: auto; display: block; }
.pg-hero .hero-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-7); align-items: start; }
.pg-hero .hero-text > * { grid-column: 1 / -1; min-width: 0; }
.pg-hero .crumb { font-size: var(--t-label); font-weight: 500; color: var(--muted); margin-bottom: var(--s-5); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pg-hero .crumb a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.pg-hero .crumb a:hover { text-decoration-color: currentColor; }
.pg-hero h1 { font-size: clamp(44px, 4.6vw + 16px, 96px); line-height: .98; letter-spacing: -0.035em; max-width: 13ch; }
.pg-hero .t-lead { margin-top: var(--s-5); max-width: 52ch; }
.pg-hero .btn-row { margin-top: var(--s-6); }
.pg-hero__media { position: relative; overflow: clip; background: var(--p-surface); aspect-ratio: 4 / 3; }
.pg-hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-hero__num { font: var(--display-weight) clamp(120px, 16vw, 240px)/.8 var(--font-display); letter-spacing: -0.06em; font-stretch: 112%; color: var(--ink); }
@media (min-width: 1024px) {
  .pg-hero .hero-text > .pg-hero__copy { grid-column: 1 / span 7; }
  .pg-hero .hero-text > .pg-hero__media { grid-column: 8 / -1; }
  .pg-hero .hero-text > .pg-hero__side { grid-column: 9 / -1; align-self: end; }
}

main > section.pg { height: auto; min-height: 0; padding: var(--s-9) 0; }
main > section.pg > .wrap { height: auto; display: block; }
main > section.pg > .wrap.pg-grid { display: grid; }
main > section.pg + section.pg:not(.ground-surface):not(.ground-inverse) { padding-top: 0; }
.pg .section-head { margin-bottom: var(--s-7); }
.pg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-7); }
.pg-grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) {
  .pg-grid > .c-4 { grid-column: auto / span 4; } .pg-grid > .c-5 { grid-column: auto / span 5; } .pg-grid > .c-6 { grid-column: auto / span 6; }
  .pg-grid > .c-7 { grid-column: auto / span 7; } .pg-grid > .c-8 { grid-column: auto / span 8; }
  .pg-grid > .s-5 { grid-column-start: 5; } .pg-grid > .s-6 { grid-column-start: 6; } .pg-grid > .s-7 { grid-column-start: 7; } .pg-grid > .s-8 { grid-column-start: 8; } .pg-grid > .s-9 { grid-column-start: 9; }
  .pg-grid > .c-3 { grid-column: auto / span 3; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .pg-grid > .t-6 { grid-column: auto / span 6; }
}
.prose { display: grid; gap: var(--s-5); max-width: 66ch; }
.prose p { font-size: 17px; line-height: 1.7; }
.prose h3 { font-size: var(--t-h3); margin-top: var(--s-5); }
.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: currentColor; }
.label-rule { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-label); font-weight: 500; color: var(--muted); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line-hard); margin-bottom: var(--s-5); }
.label-rule b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* white panels: one card look for inner pages (square, a hairline, white) */
.panel-w { background: var(--p-surface); border: 1px solid var(--line); padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
.panel-w h3 { font-size: var(--t-card); font-family: var(--font-text); font-weight: 500; letter-spacing: -0.01em; }
.panel-w p { color: var(--ink); }
.panel-w .t-label { color: var(--muted); }
a.panel-w { color: var(--ink); transition: border-color var(--dur) var(--ease); }
a.panel-w:hover { border-color: var(--line-hard); }

/* the checklist (guide.html) */
.checklist { counter-reset: rule; display: grid; border-top: 1px solid var(--line-hard); }
.checklist > li { counter-increment: rule; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.checklist > li::before { content: counter(rule, decimal-leading-zero); font: var(--display-weight) 28px/1 var(--font-display); letter-spacing: -0.03em; color: var(--p-accent); font-variant-numeric: tabular-nums; }
.checklist strong { display: block; font-weight: 500; font-size: var(--t-lead); line-height: 1.35; }
.checklist p { color: var(--muted); margin-top: var(--s-1); }
.confirm { background: var(--p-surface); border: 1px solid var(--line-hard); padding: var(--s-6); display: grid; gap: var(--s-5); }
.confirm__check { display: flex; align-items: flex-start; gap: var(--s-4); font-size: var(--t-lead); line-height: 1.45; cursor: pointer; }
.confirm__check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--p-accent); cursor: pointer; }

/* the editorial board */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
.board > * { grid-column: 1 / -1; }
@media (min-width: 640px) { .board > .person-card { grid-column: span 6; } }
@media (min-width: 1024px) { .board > .person-card { grid-column: span 4; } .board > .person-card--lead { grid-column: span 8; } }
.person-card { background: var(--p-surface); border: 1px solid var(--line); padding: var(--s-6); display: grid; gap: var(--s-2); align-content: start; min-height: 168px; }
.person-card .t-label { color: var(--muted); }
.person-card__name { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: -0.02em; font-stretch: 105%; }
.person-card--lead { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }
.person-card--lead .t-label { color: #b9b8b4; }
.person-card--lead .person-card__name { font-size: clamp(28px, 2.4vw + 8px, 44px); }

/* the archive: one row a year, twelve issue chips */
.arch { display: grid; border-top: 1px solid var(--line-hard); }
.arch__row { display: grid; grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.arch__year { display: flex; align-items: baseline; gap: var(--s-4); }
.arch__y { font: var(--display-weight) 40px/1 var(--font-display); letter-spacing: -0.035em; font-stretch: 108%; font-variant-numeric: tabular-nums; }
.arch__v { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.arch__issues { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.chip { display: grid; place-items: center; min-height: 48px; background: var(--p-surface); border: 1px solid var(--line);
  font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.chip:hover { border-color: var(--p-ink); background: var(--p-ink); color: var(--p-bg); }
.chip--pdf { background: transparent; }
.arch__row--current .arch__y { color: var(--p-accent); }
.arch__row--current .chip { border-color: color-mix(in oklab, var(--p-accent) 45%, transparent); }
.arch__row--current .chip:hover { background: var(--p-accent); border-color: var(--p-accent); color: #ffffff; }
.arch__tag { font-size: var(--t-label); font-weight: 500; color: #ffffff; background: var(--p-accent); padding: 3px 8px; }
@media (min-width: 640px) {
  .arch__issues { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .arch__row { grid-template-columns: 3fr 9fr; column-gap: var(--gutter); align-items: center; }
  .arch__issues { gap: 8px; }
  .chip { min-height: 52px; }
}
.legend { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); font-size: var(--t-small); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.legend i { width: 14px; height: 14px; border: 1px solid var(--line-strong); background: var(--p-surface); }
.legend i.cur { border-color: var(--p-accent); background: var(--p-accent); }
.legend i.old { background: transparent; }

/* months of a volume (freq.html) */
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 640px) { .months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .months { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.months > li { background: var(--p-surface); border: 1px solid var(--line); padding: var(--s-4) var(--s-3); display: grid; gap: var(--s-5); min-height: 120px; align-content: space-between; }
.months b { font: var(--display-weight) 36px/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.months span { font-size: var(--t-label); color: var(--muted); }

/* policies: numbered sections with an index */
.pol-index { display: grid; gap: 0; border-top: 1px solid var(--line-hard); }
.pol-index a { display: flex; gap: var(--s-3); align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 500; }
.pol-index a span { color: var(--p-accent); font-variant-numeric: tabular-nums; width: 2.2em; }
.pol-index a:hover { color: var(--p-accent); }
@media (min-width: 1024px) { .pol-index { position: sticky; top: calc(var(--nav) + var(--s-6)); } }
.pol { display: grid; gap: var(--s-9); }
.pol__sec { display: grid; gap: var(--s-5); scroll-margin-top: calc(var(--nav) + var(--s-6)); }
.pol__sec h2 { font-size: clamp(28px, 1.2vw + 20px, 40px); }
.pol__sec h2 span { color: var(--p-accent); margin-right: .35em; font-variant-numeric: tabular-nums; }
.pol__list { display: grid; border-top: 1px solid var(--line-hard); }
.pol__list li { padding: var(--s-4) 0 var(--s-4) var(--s-6); border-bottom: 1px solid var(--line); position: relative; font-size: 17px; line-height: 1.65; max-width: 70ch; }
.pol__list li::before { content: ""; position: absolute; left: 0; top: calc(var(--s-4) + 0.62em); width: 10px; height: 2px; background: var(--p-ink); }

/* contact */
.contact-line { font: var(--display-weight) clamp(24px, 1.4vw + 14px, 36px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.contact-line a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contact-line a:hover { text-decoration-color: currentColor; }
address { font-style: normal; }

/* the pinned review steps start on the line every section's heading starts on */
main > section#process[data-moment].is-live > .mo-pc__grid { align-content: start; padding-top: calc(var(--nav) + var(--hgap)); }
main > section#process[data-moment].is-live .mo-pc__visuals { aspect-ratio: auto; height: calc(100svh - var(--nav) - var(--hgap) - var(--padb)); max-height: none; }
@media (max-width: 639px) {
  #process[data-moment]:not(.is-live) .mo-pc__visual > img { aspect-ratio: 21 / 9; }
  #archive .grid > .frame--photo.frame--fill { --ratio: 100%; }
  #scope .grid > .frame--photo.frame--fill { --ratio: 125%; }
  main > section#process[data-moment]:not(.is-live) { min-height: calc(var(--hm, 1) * 100vh); min-height: calc(var(--hm, 1) * 100lvh); }
}

/* the statement moment: its link stands clear of the last line */
.statement .mo-wh__text + p { margin-top: var(--s-7); }
.statement .t-label { margin-bottom: var(--s-5); }

/* a split photograph keeps a 3:2 frame once the split stacks */
@media (max-width: 1023px) { .grid > .frame--photo.frame--fill { height: auto; --ratio: 66.6%; margin-top: var(--s-6); } }

/* the phone hero: a shorter photograph, the journal's full name left to the logo and the footer */
@media (max-width: 639px) {
  .hero--photo { --photo: 30svh; }
  .hero--photo .hero-notice { display: none; }
}

/* photographs that lead somewhere zoom in their frame */
.m-zoom { overflow: clip; }

/* a split whose picture runs to the foot of the screen (scope, journal, archive) */
@media (min-width: 1024px) {
  main > section > .wrap.grid.split-fill { grid-template-rows: minmax(0, 1fr); align-content: stretch; }
  main > section > .wrap.grid.split-fill > .frame--fill { height: 100%; align-self: stretch; }
}

/* the footer */
.closing .footer__mark { font-size: 36px; }
.closing .footer__mark .mark { color: var(--p-accent); }
.closing .footer__lede { color: var(--muted); font-family: var(--font-text); font-size: var(--t-body); letter-spacing: 0; max-width: 34ch; margin-top: var(--s-3); }
.closing .closing__cta .t-lead { color: var(--muted); max-width: 52ch; }

@media (max-width: 639px) {
  main > section.pg-hero { padding: calc(var(--nav) + var(--s-7)) 0 var(--s-7); }
  main > section.pg { padding: var(--s-8) 0; }
  .facts { grid-template-columns: 1fr; }
  .vol__num { font-size: clamp(120px, 40vw, 180px); }
  .arch__y { font-size: 32px; }
  .confirm, .panel-w, .person-card { padding: var(--s-5); }
  .rows--link > li > a { flex-direction: column; gap: 2px; }
  .rows--link .rows__value { text-align: left; }
}

/* a footer without the closing call (the submission and credits pages): only as tall as its links */
footer.closing.closing--bare { height: auto; min-height: 0; padding: var(--s-9) 0 var(--s-6); }
footer.closing.closing--bare > .wrap { display: block; height: auto; }
@media (max-width: 639px) { footer.closing.closing--bare { padding-bottom: calc(var(--s-6) + var(--bar)); } }


/* client-supplied placeholders (data-client) are deliberate: the kit's red alarm outline stays off them */
[data-client][data-placeholder] { outline: 0 !important; background: none !important; }

/* 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 photographs stay full size 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; }
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual > img {
  display: block; width: 100%; height: auto; max-height: 30svh; object-fit: cover; aspect-ratio: 4 / 3;
}
@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; }
}

