/* Omnia Languages — omnia-languages.com
   Field Guide token layer for the web. Spec: docs/design/field-guide.md.
   Every colour on the site comes from the custom properties below. */

/* Fonts are self-hosted, not loaded from Google.
   Requesting them from fonts.googleapis.com sends every visitor's IP address to Google,
   which needs a lawful basis under the GDPR and is what LG Munchen I penalised in
   3 O 17493/20 (20 Jan 2022) — the court's own reasoning being that the files can just as
   well be served locally. It would also contradict /privacy, which tells visitors the
   project has no third-party libraries and no server of its own.

   Both families are SIL OFL 1.1, which permits redistribution; the licence requires the
   copyright notice and licence text to travel with the files, so OFL-newsreader.txt and
   OFL-publicsans.txt sit beside the woff2 in assets/fonts/. Neither family reserves a
   Reserved Font Name and the files are unmodified, so no renaming is required.

   These are variable fonts: one file per family per subset covers every weight the site
   uses, which is why a 500 face is not a separate download. The latin-ext files are only
   fetched when a page actually uses a character in that range. Newsreader's italic has no
   wght axis upstream, so italic is 400 only — as it was with the Google-hosted CSS. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* Paper and ink */
  --paper: #FAF7F1;
  --sunk: #F1ECE2;
  --card: #FFFFFF;
  --rule: #D9D1C2;
  --track: #A79D8A;
  --track-soft: #C6BDAB;
  --answer-line: #9B917E;
  --ink3: #6E6A64;
  --ink2: #57544E;
  --ink: #15171B;

  /* System blue — chrome, identical in every language */
  --blue600: #1D4E86;
  --navy900: #12293F;
  --blue100: #E6EDF6;

  /* The only red in the system */
  --incorrect: #A33B2E;

  /* Language accents (accent / deep / tint) */
  --es: #A9583C; --es-deep: #8E4630; --es-tint: #F4E7E2;
  --ar: #836E20; --ar-deep: #715E14; --ar-tint: #ECE9DE;
  --it: #5D7838; --it-deep: #4E662C; --it-tint: #E6EBE1;
  --en: #2F7359; --en-deep: #22614A; --en-tint: #E2ECE7;
  --ko: #2A6F7C; --ko-deep: #1D5E69; --ko-tint: #E2EBED;
  --de: #3F6597; --de-deep: #325582; --de-tint: #E3EAF3;
  --fr: #6350A0; --fr-deep: #534189; --fr-tint: #E9E7F5;
  --ja: #96406A; --ja-deep: #87375E; --ja-tint: #F3E3EB;

  /* Spanish mastery ramp, used once in the hero mockup */
  --es-stable: #BC7154; --es-fragile: #D49B84; --es-learning: #EBC9BB;

  /* The one shadow in the system */
  --shadow: 0 1px 2px rgba(21, 23, 27, 0.04);

  /* Type */
  --serif: "Newsreader", "New York", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  /* Metrics */
  --r-mark: 2px; --r-tile: 6px; --r-button: 8px; --r-card: 10px; --r-pill: 18px; --r-pill-tall: 23px;
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-20: 20px; --s-26: 26px; --s-40: 40px;
  --measure: 62ch;
  --page: 1120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue600); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:hover { color: var(--navy900); }
:focus-visible { outline: 2px solid var(--blue600); outline-offset: 3px; border-radius: var(--r-mark); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Type roles */
.serif { font-family: var(--serif); }
.label {
  font-family: var(--sans);
  font-size: 0.6875rem;          /* 11 */
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink3);
  line-height: 1.3;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lede { font-size: 1.125rem; line-height: 1.5; color: var(--ink2); max-width: var(--measure); }
.body { font-size: 0.9375rem; line-height: 1.5; color: var(--ink2); }
.secondary { font-size: 0.8125rem; line-height: 1.45; color: var(--ink3); }
.pronunciation { font-family: var(--serif); font-style: italic; color: var(--ink3); }
.tabular { font-variant-numeric: tabular-nums; }
.nobr { white-space: nowrap; }

/* Skip link */
.skip {
  position: absolute; left: var(--s-20); top: -100px;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule);
  padding: var(--s-8) var(--s-12); border-radius: var(--r-button); z-index: 10;
}
.skip:focus { top: var(--s-12); }

/* Layout */
.wrap { width: min(var(--page), 100% - 2 * var(--s-20)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section + .section { border-top: 1px solid var(--rule); }
.stack > * + * { margin-top: var(--s-12); }
.stack-l > * + * { margin-top: var(--s-20); }
.stack-xl > * + * { margin-top: var(--s-26); }
.prose { max-width: var(--measure); }
.prose p, .prose li { font-size: 1rem; line-height: 1.6; color: var(--ink2); }
.prose h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25; color: var(--ink); margin-top: var(--s-40); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: var(--s-26); }
.prose p + p, .prose ul, .prose ol, .prose h2 + p, .prose h3 + p, .prose ul + p, .prose ol + p { margin-top: var(--s-12); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s-8); }
.prose em { font-style: italic; }
.prose .note { background: var(--sunk); border-radius: var(--r-button); padding: 16px 18px; }
.prose .note p { color: var(--ink2); font-size: 0.9375rem; }
.prose .note .label { display: block; margin-bottom: var(--s-8); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  font-family: var(--serif); font-size: 1.3125rem; font-weight: 500; color: var(--ink);
  text-decoration: none; letter-spacing: -0.005em; display: inline-flex; align-items: center; gap: var(--s-8);
}
.wordmark:hover { color: var(--ink); }
.wordmark small { font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; color: var(--ink3); letter-spacing: 0; }
.nav { display: flex; gap: var(--s-20); align-items: center; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--ink2); text-decoration: none; padding: var(--s-8) 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  min-height: 52px; padding: 0 22px; border-radius: var(--r-button);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; text-decoration: none; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: background-color 120ms ease-out, color 120ms ease-out;
}
.btn-primary { background: var(--blue600); color: #FFFFFF; }
.btn-primary:hover, .btn-primary:active { background: var(--navy900); color: #FFFFFF; }
.btn-secondary { background: transparent; color: var(--ink2); border-color: var(--rule); }
.btn-secondary:hover { color: var(--ink); border-color: var(--track); }
.btn-quiet {
  min-height: 46px; padding: 0 18px; border-radius: var(--r-pill-tall);
  background: var(--blue100); color: var(--blue600); font-size: 0.875rem;
}
.btn-quiet:hover { color: var(--navy900); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-12); align-items: center; }
.btn-note { font-size: 0.8125rem; color: var(--ink3); }

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hero .wrap { display: grid; gap: var(--s-40); align-items: center; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 5vw, 5rem); }
}
.hero-copy > * + * { margin-top: var(--s-20); }
.hero-copy .label { margin-bottom: calc(-1 * var(--s-8)); }
.hero-copy .lede { margin-top: var(--s-20); }
.hero-copy .btn-row { margin-top: var(--s-26); }

/* Phone mockup — a static rendering of the Home screen, built from the same tokens as the app */
.phone { display: flex; justify-content: center; }
.screen {
  width: 100%; max-width: 360px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 28px;
  padding: 44px 20px 30px; position: relative; font-size: 14px; line-height: 1.45;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.screen .mark { display: inline-flex; align-items: center; gap: var(--s-12); font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }
/* The OL mark at its 34px header step; the ink box comes from `tools/brand_mark.py --metrics` */
.screen .mark img { display: block; width: 29.57px; height: 42.4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px;
  border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--rule);
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--track)); flex: none; }
.rail-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.rail-label .day { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; color: var(--ink); }
.rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 26px; }
.rail span { display: block; height: 5px; border-radius: 3px; background: var(--track-soft); }
.rail span.done { background: var(--es); }
.rail span.today { background: var(--es-fragile); }
.mock-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: 20px; box-shadow: var(--shadow);
}
.mock-card .label { margin-bottom: 8px; }
.mock-card .title { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; color: var(--ink); }
.mock-card .meta { font-size: 13px; color: var(--ink3); margin-top: 6px; }
.mock-card .phrase { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.mock-card .target { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--ink); }
.mock-card .gloss { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.mock-card .btn { width: 100%; margin-top: 18px; font-size: 15px; min-height: 48px; }
.mock-tomorrow { margin-top: 12px; border: 1px solid var(--rule); border-radius: var(--r-card); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mock-tomorrow .t { font-size: 14px; color: var(--ink); font-weight: 500; }
.mock-tomorrow .c { font-size: 13px; color: var(--ink3); white-space: nowrap; }
.mock-stat { margin-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.mock-stat .label { margin-bottom: 4px; }
.mock-stat .num { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-stat .num small { font-size: 14px; color: var(--ink3); font-family: var(--sans); }
.mock-stat .sub { font-size: 12px; color: var(--ink3); text-align: right; max-width: 190px; line-height: 1.35; }

/* Section headers */
.section-head { display: grid; gap: var(--s-12); max-width: 720px; }
.section-head .label { display: block; }
.section-head .lede { font-size: 1.0625rem; }

/* Facts strip */
.facts { display: grid; gap: var(--s-20); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-40); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { border-top: 1px solid var(--rule); padding-top: var(--s-12); }
.fact .n { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact .d { font-size: 0.875rem; color: var(--ink2); margin-top: var(--s-4); }

/* Language grid */
.langs { display: grid; gap: var(--s-12); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-40); }
@media (min-width: 720px) { .langs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lang {
  border: 1px solid var(--rule); border-radius: var(--r-card); padding: 16px 18px;
  display: grid; gap: 6px; background: transparent;
}
.lang .name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; color: var(--ink); }
.lang .native { font-size: 1.0625rem; color: var(--ink2); }
.lang .native[lang="ja"], .lang .native[lang="ko"], .lang .native[lang="ar"] { font-family: var(--sans); }
.lang .detail { font-size: 0.8125rem; color: var(--ink3); line-height: 1.4; }

/* Day steps */
.steps { display: grid; gap: var(--s-20); margin-top: var(--s-40); counter-reset: step; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-20); } }
.step { border-top: 1px solid var(--rule); padding-top: var(--s-12); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 0.875rem; color: var(--ink3); font-variant-numeric: tabular-nums; margin-bottom: var(--s-8); }
.step h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.2; color: var(--ink); }
.step p { font-size: 0.9375rem; color: var(--ink2); margin-top: var(--s-8); }

/* Incorrect-state sample */
.two-col { display: grid; gap: var(--s-40); margin-top: var(--s-40); align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.state {
  border-radius: var(--r-mark) var(--r-mark) var(--r-card) var(--r-card);
  border-top: 2px solid var(--incorrect); padding: 18px 20px; background: var(--paper);
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: 14px; max-width: 420px;
}
.state .state-label { color: var(--incorrect); font-weight: 700; font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.state .built { margin-top: 12px; color: var(--ink2); }
.state .built b { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--incorrect); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.state .answer { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--ink); margin-top: 12px; }
.state .why { margin-top: 10px; color: var(--ink2); }
.state .tomorrow { margin-top: 12px; font-size: 13px; color: var(--ink3); }
.state-correct {
  background: var(--es-tint); border-radius: var(--r-card); padding: 18px 20px; font-size: 14px; max-width: 420px; margin-top: var(--s-12);
}
.state-correct .state-label { color: var(--es-deep); font-weight: 700; font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; }
.state-correct .answer { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--ink); margin-top: 10px; }
.state-correct .pron { font-family: var(--serif); font-style: italic; color: var(--es-deep); margin-top: 4px; font-size: 15px; }

/* Blocks (course map) */
.blocks { margin-top: var(--s-40); border-top: 1px solid var(--rule); }
.block { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--s-12); padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
@media (min-width: 720px) { .block { grid-template-columns: 3.5rem 15rem minmax(0, 1fr); } }
.block .n { font-family: var(--serif); font-size: 1.125rem; color: var(--ink3); font-variant-numeric: tabular-nums; }
.block .t { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); line-height: 1.2; }
.block .s { font-size: 0.9375rem; color: var(--ink2); grid-column: 2; }
@media (min-width: 720px) { .block .s { grid-column: 3; } }
.block .free { display: inline-block; margin-left: 10px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink3); vertical-align: middle; }

/* Pricing */
.plans { display: grid; gap: var(--s-20); margin-top: var(--s-40); }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { border: 1px solid var(--rule); border-radius: var(--r-card); padding: 26px; display: grid; gap: var(--s-12); align-content: start; }
.plan .price { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--sans); font-size: 0.875rem; color: var(--ink3); }
.plan ul { list-style: none; display: grid; gap: var(--s-8); }
.plan li { font-size: 0.9375rem; color: var(--ink2); padding-left: 1.25rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--track); border-radius: 1px; }
.plan .fine { font-size: 0.8125rem; color: var(--ink3); line-height: 1.45; }
.terms { margin-top: var(--s-26); font-size: 0.8125rem; color: var(--ink3); max-width: var(--measure); line-height: 1.5; }

/* Privacy strip */
.privacy-points { display: grid; gap: var(--s-12); margin-top: var(--s-40); }
@media (min-width: 720px) { .privacy-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-20); } }
.point { background: var(--sunk); border-radius: var(--r-button); padding: 16px 18px; }
.point .label { display: block; margin-bottom: var(--s-8); }
.point p { font-size: 0.9375rem; color: var(--ink2); }

/* Closing */
.closing { text-align: left; }
.closing .btn-row { margin-top: var(--s-26); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s-40); }
.site-footer .wrap { display: grid; gap: var(--s-20); }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.site-footer .links { display: flex; flex-wrap: wrap; gap: var(--s-20); }
.site-footer .links a { font-size: 0.875rem; color: var(--ink2); text-decoration: none; }
.site-footer .links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { font-size: 0.8125rem; color: var(--ink3); line-height: 1.5; max-width: 60ch; }

/* Document pages */
.doc-header { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--s-26); border-bottom: 1px solid var(--rule); }
.doc-header .label { display: block; margin-bottom: var(--s-12); }
.doc-header .lede { margin-top: var(--s-12); }
.doc-body { padding-block: var(--s-40) clamp(3rem, 2rem + 4vw, 6rem); }
.doc-body .wrap { display: grid; gap: var(--s-40); }
@media (min-width: 900px) { .doc-body .wrap { grid-template-columns: 14rem minmax(0, 1fr); } }
.toc { position: sticky; top: var(--s-20); align-self: start; display: none; }
@media (min-width: 900px) { .toc { display: block; } }
.toc .label { display: block; margin-bottom: var(--s-12); }
.toc ol { list-style: none; display: grid; gap: var(--s-8); }
.toc a { font-size: 0.875rem; color: var(--ink2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 1.0625rem; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: var(--s-12); align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); color: var(--ink3); font-size: 1.25rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 20px; }
.faq .a p { font-size: 1rem; line-height: 1.6; color: var(--ink2); }
.faq .a p + p { margin-top: var(--s-8); }
.contact { background: var(--sunk); border-radius: var(--r-button); padding: 20px 22px; }
.contact .label { display: block; margin-bottom: var(--s-8); }
.contact a.mail { font-family: var(--serif); font-size: 1.375rem; color: var(--ink); text-decoration: none; }
.contact a.mail:hover { text-decoration: underline; }
.contact p { font-size: 0.9375rem; color: var(--ink2); margin-top: var(--s-8); }

/* 404 */
.notfound { padding-block: clamp(4rem, 3rem + 6vw, 9rem); }
.notfound .display { margin-top: var(--s-12); }
.notfound .btn-row { margin-top: var(--s-26); }

/* Print */
@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #FFFFFF; }
}

/* Header nav: anchor links only from 640px up; Support and Privacy always */
.nav .anchor { display: none; }
@media (min-width: 640px) { .nav .anchor { display: inline; } }
