/* BRAND: Subtrail. Calm petrol teal on cool paper, document-like type, small radius.
   Fonts are self-hosted in /fonts (regenerate with: just fonts "https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@500..700&family=Public+Sans:wght@400..600&family=IBM+Plex+Mono:wght@400;500&display=swap"). */
:root {
  --hue: 205; --chroma: 0.085;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 6px;
}
h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.hero h1 { letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(2.4rem, 5.4vw, 4rem); }
body::before { display: none; } /* no grain: a compliance tool should look flat and legible */
.mark::before { box-shadow: none; border-radius: 3px; }

/* hero example alert */
.alert-ex { display: grid; gap: 14px; font-size: .94rem; }
.alert-ex .subj { font: 600 1.02rem/1.35 var(--font-display); }
.alert-ex dl { margin: 0; display: grid; gap: 12px; }
.alert-ex dt { font: 500 .78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.alert-ex dd { margin: 0; display: grid; gap: 4px; }
.alert-ex .add, .alert-ex .rem { padding: 6px 10px; border-radius: var(--r-sm); background: var(--paper); border-left: 3px solid var(--ok); }
.alert-ex .rem { border-left-color: var(--bad); }
.alert-ex .caption { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 12px; }

/* landing sections */
.statement { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.statement h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
.statement p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 62ch; margin-top: 18px; }
.statement p strong { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips a { display: inline-block; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface); text-decoration: none; font-size: .92rem; }
.chips a:hover { background: var(--accent-soft); }
.lib-more { margin-top: 22px; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); padding-block: 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: 16px; font: 600 1.05rem/1.35 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 60ch; }
.start-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: .92rem; max-width: 44ch; }

/* app */
.app-sub { color: var(--muted); font-size: .94rem; margin-top: 6px; }
.app-actions { display: grid; justify-items: end; gap: 6px; }
.app-actions .err { margin: 0; }
.app-cols { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .app-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.stack { display: grid; gap: 24px; min-width: 0; }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); min-width: 0; }
.vrow:first-child { border-top: 0; }
.vrow .name { min-width: 0; display: grid; gap: 2px; }
.vrow .name a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.vrow .name a:hover { text-decoration: underline; }
.vrow .meta { color: var(--muted); font-size: .84rem; }
.vrow .meta.bad { color: var(--bad); }
.vrow .btn { flex: none; min-width: 84px; }
.filters { display: grid; gap: 12px; margin-bottom: 8px; }
@media (min-width: 560px) { .filters { grid-template-columns: 1fr 12rem; } }
.filters .field { margin: 0; }
.vlist { max-height: 560px; overflow: auto; margin-inline: -6px; padding-inline: 6px; }
.change { padding-block: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.change:first-child { border-top: 0; padding-top: 4px; }
.change header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.change header a { font-weight: 600; }
.change time { color: var(--muted); font-size: .84rem; }
.change .add, .change .rem { font-size: .9rem; padding-left: 10px; border-left: 3px solid var(--ok); overflow-wrap: anywhere; }
.change .rem { border-left-color: var(--bad); }
.change .lbl { font-weight: 600; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: .92rem; }
.retry { margin-top: 10px; }
@media (min-width: 920px) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.5rem); } }
@media (max-width: 560px) { .acct .hide-sm { display: none; } .acct { gap: 8px; } .app-actions { justify-items: start; } }
.acct .link { white-space: nowrap; }
@media (max-width: 560px) { .acct .tag { display: none; } .site-header .wrap { gap: 12px; } .mark { font-size: 1rem; } }
.site-header nav a, .site-header nav .btn { white-space: nowrap; }

/* Vendor pages: subprocessor tables can be wider than the text column, and scroll sideways on phones. */
.legal > .table-wrap { max-width: none; overflow-x: auto; }
.table-wrap td { vertical-align: top; }
.legal .lede a { overflow-wrap: anywhere; }
