@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
}
/* The topic and legal pages. Tokens, type and shapes follow the homepage (src/styles.css). */
:root {
  color-scheme: light dark;
  --canvas: #F3F3F0; --surface: #FFFFFF; --field: #F4F4F1; --ink: #0E0F12; --on-ink: #FFFFFF;
  --secondary: #6B6F76; --tertiary: #A3A7AE; --hairline: #E6E6E1;
  --sky: #BEE3F2; --sky-deep: #0F5269; --sky-solid: #4FA6CC;
  --display: "Bricolage Grotesque Variable", ui-rounded, system-ui, sans-serif;
  --body: "Instrument Sans Variable", ui-sans-serif, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0B0C0E; --surface: #16181B; --field: #202226; --ink: #F5F5F2; --on-ink: #0E0F12;
    --secondary: #9A9EA6; --tertiary: #60646B; --hairline: #26292E;
    --sky: #132F3A; --sky-deep: #9FD6EA; --sky-solid: #5FB4D6;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 6; transform: translateY(-140%); background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 999px; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }

/* Header: mirrors .site-nav, so it doesn't shift between the home page and these pages. */
.doc-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 22px; padding: 14px 28px; background: var(--canvas); border-bottom: 1px solid var(--hairline); font-size: 16px; line-height: 1.5; }
.doc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 650 18px/1 var(--display); letter-spacing: -0.03em; }
.doc-brand img { border-radius: 24%; }
.doc-nav nav { display: flex; gap: 20px; margin-left: 8px; }
.doc-nav nav a { color: var(--secondary); text-decoration: none; font-size: 15px; font-weight: 550; }
.doc-nav nav a:hover { color: var(--ink); }
.doc-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.doc-login { color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 999px; padding: 10px 14px; }
.doc-login:hover { background: var(--field); }
.doc-open { background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 600; border-radius: 999px; padding: 10px 16px; }

/* Page frame: the homepage's 1120px column. */
.doc { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* Hero */
.doc-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 0 44px; max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--secondary); font-size: 14px; font-weight: 550; margin-bottom: 20px; }
.crumbs a { color: var(--secondary); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-eyebrow { color: var(--sky-deep); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
h1 { font: 680 clamp(40px, 5.2vw, 64px)/1 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.lead { font-size: 19px; line-height: 1.6; max-width: 38em; }
.doc-hero h1 + .lead { margin-top: 6px; }
.doc-meta { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); color: var(--secondary); font-size: 13px; font-weight: 600; }

/* Body: the text in a readable measure, the contents list beside it. */
.doc-body { display: grid; grid-template-columns: minmax(0, 700px) 240px; justify-content: space-between; gap: 64px; align-items: start; }
.doc-text { display: flex; flex-direction: column; }
.doc-text section { padding: 28px 0 36px; border-top: 1px solid var(--hairline); }
h2 { font: 650 clamp(24px, 2.4vw, 30px)/1.12 var(--display); letter-spacing: -0.03em; margin-bottom: 12px; text-wrap: balance; }
.doc-text p + p { margin-top: 14px; }
.doc-text p + ul { margin-top: 16px; }
.doc-text ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-text ul li { position: relative; padding-left: 22px; }
.doc-text ul li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-solid); }
.doc-text a, .lead a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc-text a:hover, .lead a:hover { color: var(--sky-deep); text-decoration-color: currentColor; }

.doc-aside { position: sticky; top: 96px; padding-top: 28px; }
.doc-toc { display: flex; flex-direction: column; gap: 12px; }
.doc-toc-label { color: var(--secondary); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.doc-toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--hairline); }
.doc-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 550; line-height: 1.4; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--sky-solid); }

/* Questions: the homepage's rows. */
.faq details { border-top: 1px solid var(--hairline); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; }
.faq details p { margin-top: 8px; color: var(--secondary); }
.faq h2 { margin-bottom: 8px; }

/* Further reading as cards, like the homepage's fact tiles. */
.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.related h2 { margin-bottom: 18px; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related a { height: 100%; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid transparent; border-radius: 20px; padding: 20px 52px 20px 22px; position: relative; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.related a::after { content: "→"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--secondary); font-size: 20px; transition: transform 0.15s ease, color 0.15s ease; }
.related a:hover { border-color: var(--hairline); transform: translateY(-2px); }
.related a:hover::after { color: var(--ink); transform: translate(3px, -50%); }
.related-label { color: var(--sky-deep); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.related-title { font: 620 19px/1.25 var(--display); letter-spacing: -0.02em; }

/* Closing band: the homepage's dark call to action. */
.doc-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 72px; padding: 40px; border-radius: 32px; background: var(--ink); color: var(--on-ink); }
.doc-band > div:first-child { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.doc-band h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 0; }
.doc-band p { opacity: 0.75; }
.doc-band-actions { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.doc-band-open { background: var(--on-ink); color: var(--ink); text-decoration: none; font-weight: 650; border-radius: 999px; padding: 14px 24px; }
.doc-band-login { color: var(--on-ink); text-decoration: none; font-weight: 600; border-radius: 999px; padding: 13px 22px; border: 1px solid color-mix(in srgb, var(--on-ink) 30%, transparent); }
.doc-band-login:hover { background: color-mix(in srgb, var(--on-ink) 10%, transparent); }

/* Footer: topic columns as on the homepage, then the fine print. */
.doc-footer { width: min(1120px, calc(100% - 48px)); margin: 80px auto 0; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; font-size: 15px; line-height: 1.5; }
.doc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.doc-groups nav { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.doc-label { font: 620 17px/1.25 var(--display); letter-spacing: -0.02em; }
.doc-groups ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-footer a { color: var(--secondary); text-decoration: none; font-weight: 550; }
.doc-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-fine { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 1px solid var(--hairline); color: var(--secondary); font-size: 14px; }
.doc-fine nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }

@media (max-width: 960px) {
  .doc-body { grid-template-columns: minmax(0, 1fr); }
  .doc-aside { display: none; }
}
@media (max-width: 800px) {
  .doc-nav { padding-inline: 16px; gap: 12px; }
  .doc-nav nav { display: none; }
  .doc-login { padding-inline: 10px; }
  .doc, .doc-footer { width: calc(100% - 32px); }
  .doc-hero { padding: 28px 0 32px; }
  .lead { font-size: 18px; }
  .related ul, .doc-groups { grid-template-columns: minmax(0, 1fr); }
  .doc-band { flex-direction: column; align-items: flex-start; padding: 28px; margin-top: 56px; }
  .doc-footer { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .related a, .related a::after { transition: none; }
}
