/* A school administrator's desk: ballpoint-blue ink on white paper, set in a serif that reads like a printed form.
   Fonts are system fonts on purpose: nothing is fetched from a third party except Google's own sign-in script. */
:root {
  --ink: #12203f;
  --quiet: #4b5876;
  --pen: #1d3fbf;
  --pen-deep: #152f94;
  --pen-wash: #e9eefc;
  --paper: #fff;
  --desk: #f1f3f8;
  --rule: #d5dbe7;
  --rule-strong: #9aa6bf;
  --ok: #14693f;
  --ok-wash: #e5f4ec;
  --warn: #7a4300;
  --warn-wash: #fff2d9;
  --bad: #a32020;
  --bad-wash: #fdeaea;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 15px/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
main:focus { outline: none; }

/* ---- header ---- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--pen); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font: 600 1.25rem var(--serif); }
.who { display: flex; align-items: center; gap: 16px; color: var(--quiet); font-size: 0.9rem; min-width: 0; }
.who span { overflow-wrap: anywhere; }

main { max-width: 1240px; margin: 0 auto; padding: 40px 24px 72px; }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 0.95rem var(--sans); padding: 9px 18px; border-radius: 4px; border: 1px solid var(--pen); background: var(--pen); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--pen-deep); border-color: var(--pen-deep); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-quiet { background: var(--paper); color: var(--pen); border-color: var(--rule-strong); }
.btn-quiet:hover { background: var(--pen-wash); border-color: var(--pen); }
.btn-danger { background: var(--paper); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-wash); border-color: var(--bad); }

.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: var(--quiet); }
.field input, .field select, .field textarea { font: 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 8px 10px; min-width: 0; width: 100%; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--quiet); }
.field textarea { resize: vertical; }

/* ---- messages ---- */
.notice { padding: 10px 14px; border-radius: 4px; border-left: 4px solid; overflow-wrap: anywhere; }
.notice-bad { background: var(--bad-wash); border-color: var(--bad); color: #6d1414; }
.notice-ok { background: var(--ok-wash); border-color: var(--ok); color: #0d4a2b; }
.notice-warn { background: var(--warn-wash); border-color: var(--warn); color: var(--warn); }
noscript .notice { margin: 24px; }

/* ---- sign in ---- */
.signin { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 72px; align-items: center; min-height: 60vh; }
.signin-panel { display: flex; flex-direction: column; gap: 18px; }
.signin-panel .lede { font-size: 1.1rem; color: var(--quiet); max-width: 38ch; }
.gsi-slot { min-height: 44px; }
.fine { font-size: 0.88rem; color: var(--quiet); }

.slip { background: var(--paper); border: 1px solid var(--rule); padding: 36px 40px 28px; max-width: 480px; justify-self: center; box-shadow: 0 1px 0 var(--rule), 0 14px 30px -18px rgba(18, 32, 63, 0.35); }
.slip h2 { font-size: 1.5rem; margin-bottom: 10px; }
.slip p { color: var(--quiet); font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; }
.slip-sign { margin-top: 26px; border-bottom: 1.5px solid var(--ink); height: 78px; display: flex; align-items: flex-end; padding-left: 8px; }
.slip-label { margin-top: 6px; font-size: 0.82rem; color: var(--quiet); font-family: var(--sans); }
.slip-stamp { margin-top: 18px; font: 600 0.85rem var(--sans); color: var(--ok); }
.signature { width: 230px; height: 64px; overflow: visible; }
.signature path { fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sign 2.2s 0.5s cubic-bezier(0.45, 0, 0.3, 1) forwards; }
@keyframes sign { to { stroke-dashoffset: 0; } }
.slip-stamp { opacity: 0; animation: appear 0.4s 2.6s forwards; }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .signature path { animation: none; stroke-dashoffset: 0; }
  .slip-stamp { animation: none; opacity: 1; }
}

/* ---- no roster access ---- */
.plain { max-width: 560px; display: flex; flex-direction: column; gap: 12px; }

/* ---- roster ---- */
.roster-head { margin-bottom: 28px; }
.roster { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.roster.read-only { grid-template-columns: minmax(0, 1fr); }
.panel { border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 44px; display: flex; flex-direction: column; gap: 14px; }
.panel > p, .panel details { color: var(--quiet); font-size: 0.92rem; }
.panel details summary { cursor: pointer; color: var(--pen); }
.panel details p { margin-top: 8px; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; text-align: center; background: var(--paper); border: 2px dashed var(--rule-strong); border-radius: 6px; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--pen); background: var(--pen-wash); }
.drop:focus-within { outline: 3px solid var(--pen); outline-offset: 2px; }
.drop-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { font: 600 1.05rem var(--serif); }
.drop-hint { color: var(--quiet); font-size: 0.88rem; }
.drop .btn { pointer-events: none; }

.result { display: flex; flex-direction: column; gap: 12px; }
.problems { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; border: 1px solid var(--rule); background: var(--paper); }
.problems li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.problems li:last-child { border-bottom: 0; }
.problems .line { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--warn); }
.problems .message { overflow-wrap: anywhere; }

.add-form { display: flex; flex-direction: column; gap: 12px; }
.add-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-form fieldset { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.add-form legend { padding: 0 6px 0 0; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.add-form .btn { align-self: flex-start; }

.list-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.list-controls .field:first-child { width: 160px; }
.list-controls .field:nth-child(2) { flex: 1 1 220px; max-width: 360px; }
.list-count { margin-left: auto; color: var(--quiet); font-size: 0.9rem; padding-bottom: 8px; }

.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--quiet); padding: 10px 14px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7f8fc; }
td.name { font-weight: 600; }
td.year { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }
.settings-records details .table-wrap { margin-top: 10px; }
.muted { color: var(--quiet); }
.parent + .parent { margin-top: 6px; }
.parent-name { display: block; }
.parent-email { color: var(--quiet); }
.empty { padding: 32px 16px; text-align: center; color: var(--quiet); background: var(--paper); border: 1px solid var(--rule); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 960px) {
  .signin, .roster { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .signin { min-height: 0; }
  h1 { font-size: 1.75rem; }
  .slip { padding: 26px 24px 22px; }
}
@media (max-width: 520px) {
  main { padding: 28px 16px 56px; }
  .site-header-inner { padding: 10px 16px; }
  .add-form .pair { grid-template-columns: minmax(0, 1fr); }
}

/* ---- header navigation ---- */
.nav { display: flex; gap: 4px; margin-right: 8px; }
.nav a { padding: 6px 10px; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 4px; }
.nav a:hover { background: var(--pen-wash); }
.nav a[aria-current] { color: var(--pen); box-shadow: inset 0 -2px 0 var(--pen); border-radius: 4px 4px 0 0; }

/* ---- the documents list ---- */
.status { font-weight: 600; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--warn); }
.status-ready::before { background: var(--pen); }
.status-signed::before { background: var(--ok); }
.status-failed::before { background: var(--bad); }

/* ---- a send's status screen: one table, a row group per family headed by its student ---- */
.send-status { display: flex; flex-direction: column; gap: 16px; }
.send-status .roster-head { margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.send-family th { padding-top: 20px; color: var(--ink); font: 600 1.05rem var(--serif); white-space: normal; border-bottom: 1px solid var(--rule-strong); }
.send-family .btn { margin-left: 12px; padding: 4px 10px; font: 600 0.85rem var(--sans); }
.send-family .notice { margin-top: 8px; font: 400 0.88rem var(--sans); }
.send-status details { margin-top: 8px; }
.send-status summary { cursor: pointer; color: var(--pen); font-size: 0.88rem; }
.send-status details .add-form { margin-top: 8px; max-width: 320px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions .btn { padding: 6px 12px; font-size: 0.88rem; white-space: nowrap; }

/* Email settings: the domain's DNS records, each value with a copy button, and the sender form. */
.settings { max-width: 880px; }
.settings .add-form { max-width: 480px; }
.settings h2 .muted { font: 400 0.95rem var(--sans); }
.settings .panel > .btn { align-self: flex-start; }
.settings-connected { display: flex; flex-direction: column; gap: 12px; }
.settings-records { display: flex; flex-direction: column; gap: 10px; }
.record { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.record code { font: 0.85rem/1.5 ui-monospace, Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.record .btn { flex: none; padding: 3px 10px; font-size: 0.82rem; }
.tips { margin: 0; padding-left: 20px; color: var(--quiet); font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; }
.from-row { display: flex; align-items: center; gap: 8px; }
.from-row span { color: var(--ink); font-size: 1rem; white-space: nowrap; }
.field input:disabled { background: var(--desk); color: var(--quiet); cursor: not-allowed; }

/* ---- fill and sign ---- */
.sg-description { margin-top: 6px; max-width: 70ch; color: var(--quiet); overflow-wrap: anywhere; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* The agreement is the legal text of the page, so it is set like the printed form it stands in for. */
.sg-consent { display: flex; align-items: flex-start; gap: 10px; font: 1.02rem/1.55 var(--serif); cursor: pointer; }
.sg-consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--pen); }
.sg-end .btn { align-self: stretch; padding: 13px 18px; font-size: 1.02rem; }
.sg-end .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sg-end .muted:empty { display: none; }
.sg-done h2 { font-size: 1.5rem; }
.sg-done h2:focus { outline: none; }
.sg-done .btn-quiet { align-self: stretch; }

/* A box the signer fills in sits where the field is stored, which is where the stamp lands; one too small for a finger is grown to a minimum from its
   top-left corner (see placeField, and editor.css for where a box is positioned). Amber is a required box not yet done, blue an optional one,
   green one that is done. The count beside the page says the same in words, so colour is never the only signal. */
.sg .pg { container-type: inline-size; }
.sf { border: 1.5px solid var(--pen); border-radius: 2px; background: rgba(29, 63, 191, 0.1); transition: border-color 0.12s, background-color 0.12s; }
.sf.is-required { border-color: #b06a00; background: rgba(255, 183, 64, 0.2); }
.sf.is-filled { border-color: var(--ok); background: rgba(20, 105, 63, 0.07); }
.sf:focus-within { z-index: 2; outline: 3px solid var(--pen); outline-offset: 2px; background-color: rgba(255, 255, 255, 0.94); }
.sf-input { display: block; width: 100%; height: 100%; padding: 0 6px; border: 0; background: transparent; color: var(--ink); font: 500 clamp(16px, 2.1cqw, 22px)/1.2 var(--sans); }
.sf-input:focus-visible { outline: none; }
.sf-input::placeholder { color: var(--quiet); font-weight: 400; }
.sf-check { display: grid; place-items: center; cursor: pointer; }
.sf-tick { width: 20px; height: 20px; margin: 0; accent-color: var(--pen); cursor: pointer; }
.sf-tick:focus-visible { outline: none; }
.sf-image:hover { background-color: rgba(29, 63, 191, 0.18); }
.sf-sign { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 2px 4px; border: 0; background: transparent; color: var(--pen-deep); cursor: pointer; overflow: hidden; }
.sf-sign:focus-visible { outline: none; }
.sf-sign img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.sf-prompt { font: italic 600 clamp(13px, 1.9cqw, 18px)/1.2 var(--serif); white-space: nowrap; }
/* On a phone the page is small and a box over it smaller still, so the one being typed in grows into the room there is. */
@container (max-width: 640px) {
  .sf-text:focus-within { z-index: 3; width: max(var(--w), min(300px, 100%)); left: min(var(--x), calc(100% - min(300px, 100%))); min-height: 40px; }
}

/* The signature dialog */
.sd { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 22px 24px; overflow: auto; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 6px; box-shadow: 0 24px 60px -20px rgba(18, 32, 63, 0.55); }
.sd::backdrop { background: rgba(18, 32, 63, 0.45); }
.sd-form { display: flex; flex-direction: column; gap: 14px; }
.sd-modes { display: flex; margin: 0; padding: 0; border: 0; }
.sd-mode { display: flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid var(--rule-strong); cursor: pointer; }
.sd-mode + .sd-mode { margin-left: -1px; }
.sd-mode:has(input:checked) { background: var(--pen-wash); border-color: var(--pen); font-weight: 600; position: relative; }
.sd-mode:has(input:focus-visible) { outline: 3px solid var(--pen); outline-offset: 2px; position: relative; z-index: 1; }
.sd-mode input { accent-color: var(--pen); }
.sd-canvas { display: block; width: 100%; background: linear-gradient(to bottom, transparent calc(72% - 1px), rgba(18, 32, 63, 0.3) calc(72% - 1px), rgba(18, 32, 63, 0.3) 72%, transparent 72%) #fff; border: 1.5px solid var(--rule-strong); border-radius: 4px; cursor: crosshair; }
.sd-signature { aspect-ratio: 5 / 2; }
.sd-initials { aspect-ratio: 2 / 1; max-width: 320px; }
.sd-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; }
.sd-row p { flex: 1 1 220px; font-size: 0.88rem; }
.sd-type { display: flex; flex-direction: column; gap: 12px; }
.sd-type .muted { font-size: 0.88rem; }
.sd-sample { min-height: 112px; padding: 14px 16px 10px; overflow: hidden; background: #fff; border: 1px solid var(--rule); }
.sd-preview { font: italic 2.4rem/1.25 var(--serif); overflow-wrap: anywhere; }
.sd-caption { margin-top: 4px; font-size: 0.78rem; color: var(--quiet); }
.sd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-actions .btn:first-child { padding-inline: 22px; }

/* After signing: the boxes still show what was signed and can be read, but not changed. */
.sf.is-locked { cursor: default; }
.sf.is-locked .sf-sign, .sf.is-locked .sf-tick { cursor: default; }

@media (max-width: 960px) {
  /* The rail dissolves: progress rides along the top while the pages scroll, and the agreement and Sign come last, after the pages. */
  /* .sg prefixed: editor.css loads after this file and sets .ed-rail and .ed-block with the same weight as a bare class. */
  .sg .sg-rail { display: contents; }
  .sg .ed-main { order: 1; }
  .sg .sg-progress { position: sticky; top: 0; z-index: 4; order: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0; background: var(--desk); }
  .sg .sg-progress h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sg .sg-end { order: 2; }
}
@media (max-width: 520px) {
  .site-header-inner { flex-wrap: wrap; }
  .who { flex-wrap: wrap; row-gap: 4px; }
}
@media (forced-colors: active) {
  .sf { border-color: CanvasText; }
  .sf:focus-within { outline-color: Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  .sf { transition: none; }
}
.sg-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.plain > .btn { align-self: flex-start; }

/* ---- signing from a personal link, on a phone (design §9) ----
   One column a phone wide, even on a desk. Every control is full width with a thumb-sized target, and pages are as wide as the screen allows, so
   nothing needs a pinch. Selectors start with .gd where editor.css (loaded after this file) sets the same property on a bare class. */
.gd { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.gd-head h1 { font-size: 1.6rem; overflow-wrap: anywhere; }
.gd-who { margin-top: 6px; color: var(--quiet); overflow-wrap: anywhere; }
.gd-view, .gd-intro, .gd-step, .gd-review, .gd-done { display: flex; flex-direction: column; gap: 14px; }
.gd-intro { gap: 8px; }
.gd .btn { min-height: 48px; font-size: 1.02rem; }
.gd .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.gd [tabindex="-1"]:focus { outline: none; }
.gd-wide { width: 100%; }
.gd-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
/* The step's main button (Start, Next, Sign) stays pinned to the bottom of the screen, so on a phone it is always in reach without scrolling. */
.gd-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--desk); border-top: 1px solid var(--rule); box-shadow: 0 -8px 16px -12px rgba(18, 32, 63, 0.45); }
.gd-count { font: 600 1rem var(--sans); color: var(--quiet); }
.gd-step progress { width: 100%; height: 8px; accent-color: var(--pen); }
/* The field's page, scrolled to its box, so the box and the control under it fit on one screen. */
.gd-window { max-height: 26vh; overflow: auto; padding: 10px; background: #e3e7f1; border-radius: 6px; }
.gd .gd-box { z-index: 1; border: 2px solid #b06a00; background: rgba(255, 183, 64, 0.3); box-shadow: 0 0 0 4px rgba(176, 106, 0, 0.3); }
.gd-text > span, .gd-mark > legend { font: 600 1.05rem var(--sans); color: var(--ink); }
.gd-text input { min-height: 52px; padding: 12px; font-size: 1.1rem; }
.gd-optional { font-weight: 400; color: var(--quiet); }
.gd-check { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--paper); border: 1.5px solid var(--rule-strong); border-radius: 6px; font-size: 1.05rem; cursor: pointer; }
.gd-check:has(input:checked) { border-color: var(--ok); background: var(--ok-wash); }
.gd-check input { flex: none; width: 28px; height: 28px; margin: 0; accent-color: var(--pen); }
.gd-mark { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.gd-mark > legend { padding: 0; margin-bottom: 10px; }
.gd-mark .sd-mode { flex: 1; justify-content: center; min-height: 44px; }
.gd-made { padding: 12px; background: #fff; border: 1.5px solid var(--ok); border-radius: 4px; }
.gd-made img { display: block; max-width: 100%; max-height: 140px; margin: 0 auto; }
.gd-answers { margin: 0; border-top: 1px solid var(--rule); }
.gd-answer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.gd-answer dt { font-size: 0.88rem; color: var(--quiet); }
.gd-answer dd { margin: 0; overflow-wrap: anywhere; }
.gd-answer img { display: block; max-width: 100%; max-height: 64px; }
.gd-change { grid-column: 2; grid-row: 1 / span 2; }
.gd-consent input { width: 26px; height: 26px; margin-top: 0; }
.gd-review .muted:empty { display: none; }
.gd-signed { margin: 0; padding-left: 20px; }
@media (max-width: 520px) {
  /* The page is the one thing a phone is too narrow for, so it takes the whole width, gutters included. */
  .gd .gd-pages { margin-inline: -16px; padding: 12px 0 20px; gap: 16px; border-radius: 0; }
  .gd .gd-pages .pg-num { margin-left: 16px; }
  .gd-window { margin-inline: -16px; padding: 8px 0; border-radius: 0; }
  .gd-bar { margin-inline: -16px; padding-inline: 16px; }
  .gd-head h1 { font-size: 1.35rem; }
}

/* ---- public pages (web/site) and the footer every page shares ---- */
.site { max-width: 860px; display: flex; flex-direction: column; gap: 48px; }
.site-hero { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
.site-hero h1 { font-size: 2.6rem; max-width: 18ch; }
.site-hero .lede { font-size: 1.15rem; color: var(--quiet); max-width: 60ch; }
.site-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.site-cols > div, .site-band { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.site ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.site a:not(.btn) { color: var(--pen); }
.legal { gap: 14px; }
.legal h2 { margin-top: 18px; }
.legal p, .legal li { max-width: 70ch; }
.site-footer { max-width: 1240px; margin: 0 auto; padding: 24px 24px 40px; display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--rule); font-size: 0.88rem; }
.site-footer a { color: var(--quiet); }
@media (max-width: 700px) { .site-cols { grid-template-columns: 1fr; } .site-hero h1 { font-size: 2rem; } }
