/* DigiTrust Asia — editorial design system.
   Paper, ink and one ledger green. Source Serif 4 for headings and long-form reading, IBM Plex Sans for interface.
   The signature element is the exam blueprint strip (domain weightings), drawn as SVG by the _blueprint macro.
   Mobile-first. No inline styles (strict CSP). */

@font-face { font-family: "Source Serif 4"; src: url("/static/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap;
  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: "Source Serif 4"; src: url("/static/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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: "Source Serif 4"; src: url("/static/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap;
  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: "IBM Plex Sans"; src: url("/static/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap;
  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: "IBM Plex Sans"; src: url("/static/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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: "IBM Plex Sans"; src: url("/static/fonts/ibm-plex-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 700; font-style: italic; font-display: swap;
  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: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* paper & ink */
  --paper: #fbfbf9;
  --surface: #ffffff;
  --sunk: #f2f3ef;
  --ink: #17201d;
  --ink-2: #3a4541;
  --muted: #5a6661;
  --faint: #7d8883;
  --rule: #dfe3e0;
  --rule-2: #c7cdc9;
  /* ledger green: the one brand colour, with a tint ramp used for domain segments */
  --green: #1f5b4b;
  --green-dark: #154236;
  --green-tint: #e7efeb;
  --seg-1: #173f35; --seg-2: #1f5b4b; --seg-3: #33705e; --seg-4: #4c8673;
  --seg-5: #6a9c8a; --seg-6: #8cb3a3; --seg-7: #adc9bd; --seg-8: #cadcd4;
  /* signals — only for state, never decoration */
  --red: #a8322a; --red-tint: #fbeceb;
  --amber: #8a5a00; --amber-tint: #fbf3e2;
  --ok: #1f5b4b; --ok-tint: #e7efeb;

  --radius: 6px;
  --radius-lg: 10px;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --measure: 68ch;
  --tabbar: 64px;
  color-scheme: light;

  /* legacy aliases so older selectors keep working */
  --text: var(--ink); --line: var(--rule); --line-2: var(--rule-2); --bg: var(--paper); --bg-2: var(--sunk);
  --surface-2: var(--sunk); --display: var(--serif); --body: var(--sans);
  --accent: var(--green);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
  font-feature-settings: "kern"; text-rendering: optimizeLegibility;
}
body.has-tabbar { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, var(--green) 35%, transparent); }
a:hover { color: var(--green-dark); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em; font-optical-sizing: auto; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.num, .track-meta, .domain-weight, time { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
main { flex: 1; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tight { padding: 32px 0; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
/* Kept for templates that still use it: a quiet sentence-case kicker, not an all-caps label. */
.eyebrow { display: block; font: 500 .9rem/1.3 var(--sans); color: var(--muted); margin-bottom: 8px; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { font: 600 1.2rem/1 var(--serif); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--green); }
.brand-mark { width: 24px; height: 24px; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: 19px 0 17px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.header-actions .desktop-only { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .header-actions .desktop-only { display: inline-flex; } }

.menu-btn { display: inline-flex; background: none; border: 1px solid var(--rule-2); color: var(--ink); border-radius: var(--radius); width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-menu { display: none; border-top: 1px solid var(--rule); padding: 4px 20px 16px; background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* bottom tab bar (signed-in, mobile) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: .72rem; font-weight: 500; text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--green); }
.tabbar svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; font: 500 .95rem/1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .12s ease, border-color .12s ease; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--rule-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--rule); }
.btn-quiet:hover { color: var(--ink); background: var(--sunk); }
.btn-linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.btn-linkedin:hover { background: #004182; border-color: #004182; color: #fff; }
.li-mark { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 3px; background: #fff; color: #0a66c2; font-weight: 700; font-size: .8em; line-height: 1; margin-right: 2px; }
.btn-danger { background: var(--surface); border-color: color-mix(in srgb, var(--red) 40%, transparent); color: var(--red); }
.btn-danger:hover { background: var(--red-tint); color: var(--red); }
.btn-success { background: var(--ok-tint); border-color: color-mix(in srgb, var(--green) 35%, transparent); color: var(--green); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn svg { width: 1em; height: 1em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .12s ease; }
.card-link:hover { color: inherit; border-color: var(--ink-2); }
.card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; font: 500 .78rem/1.5 var(--sans); border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.badge-green { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: var(--green-tint); }
.badge-amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: var(--amber-tint); }
.badge-red { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); background: var(--red-tint); }
.badge-cyan { color: var(--ink); border-color: var(--rule-2); background: var(--sunk); }

/* track accents collapse to the one brand colour; kept so templates don't need to change */
.accent-indigo, .accent-cyan, .accent-violet, .accent-teal, .accent-green, .accent-amber { --accent: var(--green); }
.track-card { display: flex; flex-direction: column; }
.track-code { font: 600 .95rem/1.2 var(--sans); color: var(--green); letter-spacing: .01em; }
.track-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); margin-top: 12px; }

/* progress */
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--sunk); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--sunk); border-radius: 3px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 3px; }
progress.low::-webkit-progress-value { background: var(--amber); }
progress.low::-moz-progress-bar { background: var(--amber); }

/* ---------------------------------------------------------------- exam blueprint (signature element) */
.blueprint { margin: 0; }
.blueprint-bar { display: block; width: 100%; height: 14px; border-radius: 2px; overflow: hidden; }
.blueprint-bar rect { stroke: var(--surface); stroke-width: .35; vector-effect: non-scaling-stroke; }
.seg-1 { fill: var(--seg-1); } .seg-2 { fill: var(--seg-2); } .seg-3 { fill: var(--seg-3); } .seg-4 { fill: var(--seg-4); }
.seg-5 { fill: var(--seg-5); } .seg-6 { fill: var(--seg-6); } .seg-7 { fill: var(--seg-7); } .seg-8 { fill: var(--seg-8); }
.blueprint-key { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.blueprint-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.blueprint-key li svg { width: 12px; height: 12px; align-self: center; }
.blueprint-key .w { font-variant-numeric: tabular-nums; color: var(--muted); }
.blueprint-caption { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.blueprint-thin .blueprint-bar { height: 8px; }

/* ---------------------------------------------------------------- homepage */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); }
.hero-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .hero-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; } }
.hero h1 { max-width: 21ch; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.hero .lead { margin-top: 18px; }
.hero-cta { margin-top: 28px; }
.hero-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px 22px 18px; }
.hero-panel h2 { font-size: 1.1rem; margin-bottom: 2px; }
.hero-panel .sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.hero-panel .blueprint-switch { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-panel .blueprint-switch button { font: 500 .85rem/1 var(--sans); padding: 7px 10px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.hero-panel .blueprint-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero-panel [data-blueprint][hidden] { display: none; }
.hero-panel .foot { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 12px; font-size: .875rem; color: var(--muted); }

/* list of tracks as rows, not a card grid */
.track-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.track-row { border-bottom: 1px solid var(--rule); }
.track-row > a { display: grid; gap: 6px 32px; padding: 20px 0; color: inherit; text-decoration: none; }
@media (min-width: 820px) { .track-row > a { grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 18rem); align-items: start; } }
.track-row .code { font: 600 1rem/1.5 var(--sans); color: var(--green); }
.track-row h3 { font-size: 1.15rem; margin: 0 0 4px; }
.track-row p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 56ch; }
.track-row .facts-line { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.track-row > a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.track-row .blueprint { padding-top: 6px; }
.track-row .modules { font-size: .875rem; color: var(--muted); padding-top: 4px; }

.method { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 820px) { .method { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.method li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.method li::before { content: "Step " counter(step); display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.method h3 { font-size: 1.1rem; margin-bottom: 6px; }
.method p { color: var(--ink-2); font-size: .95rem; margin: 0; }

.post-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.post-rows li { border-bottom: 1px solid var(--rule); }
.post-rows a { display: grid; gap: 4px 24px; padding: 16px 0; color: inherit; text-decoration: none; }
@media (min-width: 820px) { .post-rows a { grid-template-columns: 8rem minmax(0, 1fr); } }
.post-rows time { font-size: .875rem; color: var(--muted); padding-top: 3px; }
.post-rows h3 { font-size: 1.08rem; margin: 0 0 2px; }
.post-rows p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-rows a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

.closing { display: grid; gap: 16px; align-items: center; }
@media (min-width: 820px) { .closing { grid-template-columns: minmax(0, 1fr) auto; } }
.closing h2 { margin-bottom: 4px; }
.closing p { margin: 0; color: var(--muted); }

/* retired decorative pieces, neutralised in case a template still references them */
.hero-grid, .hero-stats, .feature-icon { display: none; }
.cta-band { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px 24px; background: var(--surface); }
.stat strong { display: block; font: 600 1.6rem/1.1 var(--serif); }
.stat span { display: block; font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=file] { color: var(--muted); font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px; margin: 0; }
legend { padding: 0 6px; font-weight: 600; color: var(--ink-2); font-size: .9rem; }

/* ---------------------------------------------------------------- alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--rule-2); border-left-width: 3px; background: var(--surface); font-size: .95rem; color: var(--ink); }
.alert-error { border-color: color-mix(in srgb, var(--red) 35%, transparent); border-left-color: var(--red); background: var(--red-tint); }
.alert-success { border-color: color-mix(in srgb, var(--green) 30%, transparent); border-left-color: var(--green); background: var(--green-tint); }
.alert-info { border-left-color: var(--ink-2); background: var(--sunk); }
.flashes { display: grid; gap: 8px; margin: 16px auto 0; }

/* ---------------------------------------------------------------- auth */
.auth { display: grid; min-height: calc(100vh - 61px); }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.auth-aside { display: none; padding: 56px 48px; border-right: 1px solid var(--rule); background: var(--sunk); }
@media (min-width: 960px) { .auth-aside { display: flex; flex-direction: column; justify-content: center; gap: 28px; } }
.auth-aside .aside-inner { max-width: 400px; }
.auth-aside h2 { font-size: 1.5rem; line-height: 1.25; }
.auth-aside p { color: var(--ink-2); }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.auth-points li { padding-left: 22px; position: relative; }
.auth-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--green); border-radius: 1px; }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 56px 20px; }
@media (min-width: 960px) { .auth-main { align-items: center; } }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 2rem; }

/* ---------------------------------------------------------------- learning */
.page-head { padding: 40px 0 28px; border-bottom: 1px solid var(--rule); }
.page-head .lead { margin-bottom: 0; }
.page-head .blueprint { max-width: 640px; margin-top: 24px; }
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.domain { border-top: 1px solid var(--rule); }
.domain:last-of-type { border-bottom: 1px solid var(--rule); }
.domain summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; gap: 16px; align-items: baseline; }
.domain summary::-webkit-details-marker { display: none; }
.domain summary:hover .domain-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.domain summary::after { content: "+"; font: 400 1.2rem/1 var(--sans); color: var(--muted); width: 1em; text-align: center; }
.domain[open] summary::after { content: "−"; }
.domain-num { flex: none; min-width: 2.2rem; font: 600 .9rem/1.5 var(--sans); color: var(--green); }
.domain-title { flex: 1; font: 600 1.08rem/1.4 var(--serif); }
.domain-weight { font-size: .9rem; color: var(--muted); }
.lesson-list { list-style: none; margin: 0; padding: 0 0 14px; }
.lesson-list > li > a, .lesson-list > li > span { display: flex; gap: 12px; align-items: baseline; padding: 8px 0 8px 3.2rem; color: var(--ink); text-decoration: none; }
.lesson-list > li > a:hover > span:nth-child(2) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.lesson-list .done > a { color: var(--ink-2); }
.lesson-list .empty { color: var(--muted); font-size: .95rem; }
.lesson-list .locked > span { color: var(--muted); cursor: default; }
.lesson-list > li > a > span:nth-child(2), .lesson-list > li > span > span:nth-child(2) { flex: 1; }
@media (max-width: 639px) { .lesson-list > li > a, .lesson-list > li > span { padding-left: 0; } }
.tick { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rule-2); flex: none; display: inline-grid; place-items: center; font-size: .65rem; line-height: 1; color: var(--muted); align-self: center; }
.done .tick { background: var(--green); border-color: var(--green); color: #fff; }

.layout-sidebar { display: grid; gap: 40px; }
@media (min-width: 960px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.layout-sidebar > aside .card + .card { margin-top: 16px; }
.sticky { position: sticky; top: 80px; }

/* long-form reading: serif body, comfortable measure */
.prose { font: 400 1.125rem/1.72 var(--serif); color: var(--ink); max-width: var(--measure); }
.prose h2 { margin-top: 2em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--muted); }
.prose blockquote { margin: 1.5em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--green); color: var(--ink-2); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { background: var(--sunk); border: 1px solid var(--rule); padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: .85rem; line-height: 1.55; }
.prose :not(pre) > code { background: var(--sunk); padding: 1px 5px; border-radius: 3px; font-size: .85em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font: 400 .95rem/1.5 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 9px 12px 9px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose a { color: var(--green); }
.prose .admonition { border: 1px solid var(--rule); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 12px 16px; background: var(--surface); font-family: var(--sans); font-size: 1rem; }
.prose figure.fig { margin: 2em 0; }
.prose figure.fig img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.prose figure.fig figcaption { margin-top: 10px; font: 400 .9rem/1.5 var(--sans); color: var(--muted); }
.prose figure.fig figcaption b { color: var(--ink); margin-right: 6px; }
.prose .objectives { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 16px 20px; background: var(--surface); margin-bottom: 1.8em; font: 400 1rem/1.6 var(--sans); }
.prose .objectives p { margin: 0 0 .4em; }
.prose .objectives ul { margin: 0; }
.prose .callout { border-radius: var(--radius); padding: 16px 20px; margin: 1.8em 0; border: 1px solid var(--rule); background: var(--surface); font: 400 1rem/1.6 var(--sans); }
.prose .callout.example { border-left: 3px solid var(--green); }
.prose .callout h4 { margin-top: 0; font-size: 1.05rem; color: var(--green); }
.prose .callout > :last-child { margin-bottom: 0; }
@media (min-width: 900px) { .prose figure.fig + figure.fig { margin-top: 1em; } }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); flex-wrap: wrap; }

/* quiz */
.q { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); }
.q + .q { margin-top: 16px; }
.q-stem { font: 500 1.1rem/1.55 var(--serif); margin-bottom: 16px; }
.q-num { font-size: .85rem; color: var(--muted); margin-bottom: 6px; display: block; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; margin: 0 0 8px; font-weight: 400; background: var(--surface); }
.opt:hover { border-color: var(--rule-2); background: var(--paper); }
.opt input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.opt:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.opt-letter { font-weight: 600; color: var(--muted); }
.opt.correct { border-color: var(--green); background: var(--green-tint); }
.opt.wrong { border-color: color-mix(in srgb, var(--red) 55%, transparent); background: var(--red-tint); }
.opt-skip { border-style: dashed; color: var(--muted); }
.explain { margin-top: 12px; padding: 12px 16px; border-left: 3px solid var(--rule-2); background: var(--paper); color: var(--ink-2); font-size: .95rem; }
.explain p { margin: 0 0 .5em; }
.explain p:last-child { margin-bottom: 0; }
.explain p:first-child { color: var(--ink); }
.explain .explain-tip { font-style: italic; color: var(--muted); }
.score-ring { font: 600 3.4rem/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }

/* chips (filters) */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 4px; border: 1px solid var(--rule); color: var(--ink-2); font-size: .9rem; text-decoration: none; background: var(--surface); }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* posts */
.post-card { display: flex; flex-direction: column; gap: 4px; }
.post-card time { margin-top: auto; padding-top: 8px; }
.post-card time, .meta { font-size: .875rem; color: var(--muted); }
.post-topic { font: 500 .875rem/1.3 var(--sans); color: var(--green); }
.post-card-big h3 { font-size: 1.45rem; }
.post-card-big { background: var(--surface); }
.article-head { padding: 48px 0 28px; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); max-width: 24ch; }
.topic-nav .faint { margin-left: 4px; font-size: .8rem; }
.blog-search { display: flex; gap: 8px; max-width: 520px; }
.blog-search input { flex: 1; margin: 0; }
.article-layout { display: grid; gap: 32px; }
.article-body { min-width: 0; max-width: 760px; }
@media (min-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 720px) 220px; justify-content: start; gap: 64px; }
  .article-toc { order: 2; }
}
.article-toc ol { list-style: none; margin: 10px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--rule); display: grid; gap: 8px; font-size: .9rem; }
.article-toc a { color: var(--ink-2); text-decoration: none; }
.article-toc a:hover { color: var(--ink); text-decoration: underline; }
/* Blog: definition box, practice prompt, sources (fundamentals articles). */
.definition { border-left: 3px solid var(--green); background: var(--green-tint); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 28px; max-width: var(--measure); }
.definition-label { font: 600 .82rem/1.3 var(--sans); color: var(--green-dark); margin: 0 0 4px; }
.definition p:last-child { margin: 0; font: 400 1.08rem/1.6 var(--serif); }
.definition dfn { font-style: normal; font-weight: 650; }
.practice-band { display: grid; gap: 14px; align-items: center; border-top: 2px solid var(--ink); padding: 18px 0 0; }
.practice-band h3 { margin-bottom: 4px; }
.practice-band p { margin: 0; }
@media (min-width: 640px) { .practice-band { grid-template-columns: minmax(0, 1fr) auto; } }
.article-sources h2 { font-size: 1.2rem; }
.article-sources ol { margin: 0; padding-left: 1.4em; font-size: .92rem; }
.article-sources li { margin: .35em 0; }
.prose .compare-table td:first-child, .prose .compare-table th:first-child { white-space: nowrap; }
.prose figure.fig img[src$=".svg"] { background: var(--surface); }
@media (max-width: 1079px) { .article-toc { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 14px 16px; background: var(--surface); } .article-toc .sticky { position: static; } }
@media (max-width: 639px) {
  .topic-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .topic-nav::-webkit-scrollbar { display: none; }
  .topic-nav .chip { white-space: nowrap; flex: none; }
}

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font: 600 .85rem/1.3 var(--sans); color: var(--ink-2); background: var(--paper); }
.table tr:last-child td { border-bottom: 0; }
.table td.actions { white-space: nowrap; text-align: right; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--rule); padding: 44px 0 32px; margin-top: 56px; color: var(--muted); font-size: .9rem; background: var(--sunk); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { font: 600 .9rem/1.3 var(--sans); color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .link-btn { font: inherit; color: var(--ink-2); padding: 0; text-decoration: none; }
.site-footer .legal-line { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 20px; font-size: .85rem; }

/* ---------------------------------------------------------------- admin */
.admin { display: grid; min-height: calc(100vh - 61px); }
@media (min-width: 900px) { .admin { grid-template-columns: 220px minmax(0, 1fr); } }
.admin-nav { border-bottom: 1px solid var(--rule); background: var(--sunk); padding: 12px; display: flex; gap: 2px; overflow-x: auto; }
@media (min-width: 900px) { .admin-nav { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--rule); padding: 20px 12px; } }
.admin-nav a { color: var(--ink-2); padding: 8px 12px; border-radius: var(--radius); white-space: nowrap; font-size: .92rem; text-decoration: none; }
.admin-nav a:hover { color: var(--ink); background: var(--surface); }
.admin-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 2px 0 0 var(--green); }
.admin-main { padding: 24px 20px 48px; min-width: 0; }
.admin-main h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
textarea[rows="2"], textarea[rows="3"] { min-height: 84px; }
@media (min-width: 900px) { .admin-main { padding: 32px 36px 64px; } }
.stat-card strong { display: block; font: 600 1.9rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stat-card span { color: var(--muted); font-size: .875rem; }
.editor { display: grid; gap: 16px; }
@media (min-width: 1100px) { .editor { grid-template-columns: 1fr 1fr; } }
.editor textarea { min-height: 520px; font-family: var(--mono); font-size: .9rem; line-height: 1.6; }
.preview { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 20px; background: var(--surface); min-height: 520px; max-height: 80vh; overflow-y: auto; }
.htmx-indicator { opacity: 0; transition: opacity .2s ease; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.option-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.option-row input[type=radio] { accent-color: var(--green); width: 18px; height: 18px; }
.email-frame { width: 100%; min-height: 560px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }

/* Admin → Growth */
.growth-period { display: flex; gap: 6px; flex-wrap: wrap; }
.growth-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.growth-kpis .stat-card { display: flex; flex-direction: column; gap: 2px; }
.growth-chart { padding: 16px; }
.growth-chart svg { width: 100%; height: auto; display: block; }
.growth-chart .bar-all { fill: var(--rule-2); }
.growth-chart .bar-confirmed { fill: var(--green); }
.growth-chart .bar-value { fill: var(--ink-2); font: 600 11px var(--sans); }
.growth-chart .bar-label { fill: var(--muted); font: 400 10px var(--sans); }
.growth-hint code { overflow-wrap: anywhere; }

/* install prompt */
.install { display: none; position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); z-index: 60; box-shadow: 0 6px 24px rgba(23, 32, 29, .12); }
.install.show { display: block; }
@media (min-width: 900px) { .install { left: auto; right: 24px; bottom: 24px; max-width: 340px; } }

.error-page { padding: 96px 0; text-align: center; }
.error-code { font: 600 4.5rem/1 var(--serif); color: var(--rule-2); }

/* "or" divider between provider sign-in and the email form */
.or-divider { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--muted); font-size: .875rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }

/* ---------------------------------------------------------------- onboarding & study profile */
.onboard { padding: 40px 0 64px; }
.onboard-wrap { max-width: 680px; }
.onboard h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 8px 0 6px; }
.onboard-card { margin-top: 20px; gap: 22px; }
.steps { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); margin: 0; }
.steps .step { width: 28px; height: 3px; border-radius: 2px; background: var(--rule-2); }
.steps .step.on { background: var(--green); }
.steps span:last-child { margin-left: 6px; }
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { font-weight: 500; color: var(--ink); margin-bottom: 8px; padding: 0; }
.choice-group .hint { margin: -2px 0 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; font-weight: 400; margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice span { padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--rule-2); color: var(--ink-2); font-size: .92rem; line-height: 1.2; background: var(--surface); }
.choice:hover span { border-color: var(--ink-2); color: var(--ink); }
.choice input:checked + span { border-color: var(--green); background: var(--green-tint); color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green); }
.choice input[type=checkbox]:checked + span::before { content: "✓ "; }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.phone-row { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 8px; }
[data-show-when][hidden] { display: none; }
.profile-nudge { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.profile-nudge p { margin: 4px 0 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

/* ---------------------------------------------------------------- final exam */
.exam-rules { padding-left: 1.2em; line-height: 1.65; }
.exam-rules li { margin: .45em 0; }
.exam-cert { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.exam-bar { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--rule); }
.exam-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.exam-status { display: flex; gap: 14px; align-items: center; }
.exam-timer { font: 600 1.15rem/1 var(--sans); font-variant-numeric: tabular-nums; padding: 8px 12px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule-2); }
.exam-timer.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, transparent); background: var(--amber-tint); }
.exam-timer.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); background: var(--red-tint); }
.exam-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.exam-nav { display: none; }
@media (min-width: 1000px) {
  .exam-layout { grid-template-columns: 220px 1fr; }
  .exam-nav { display: block; position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 90px); overflow-y: auto; padding-right: 6px; }
}
.exam-nav-title { font: 600 .85rem/1.3 var(--sans); color: var(--ink-2); margin: 14px 0 8px; }
.exam-nav-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.exam-dot { display: grid; place-items: center; height: 28px; border-radius: 4px; border: 1px solid var(--rule); font: 500 .75rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); text-decoration: none; background: var(--surface); }
.exam-dot:hover { border-color: var(--ink-2); color: var(--ink); }
.exam-dot.answered { background: var(--green); border-color: var(--green); color: #fff; }
.exam-section { font-size: 1.25rem; margin: 28px 0 14px; }
.exam-section:first-child { margin-top: 0; }
.exam .q { scroll-margin-top: 80px; }
.w-40 { width: 40%; }

/* ---------------------------------------------------------------- certificates */
.cert-verify { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.cert-verify h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.cert-facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 20px 0 0; }
.cert-facts dt { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.cert-facts dd { margin: 0; font-weight: 600; }
.cert-list { display: grid; gap: 12px; }

/* ---------------------------------------------------------------- account security */
.qr { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px; }
.mono { font-family: var(--mono); letter-spacing: .04em; word-break: break-all; }
.recovery-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recovery-codes code { display: block; padding: 8px 10px; border-radius: var(--radius); background: var(--sunk); font-family: var(--mono); text-align: center; }

/* ---------------------------------------------------------------- diagnostic + study plan */
.plan-week.current { border-color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.plan-dates { display: block; font-variant-numeric: tabular-nums; margin-top: 2px; }
.plan-scores { display: grid; gap: 14px; }
.plan-score .spread { gap: 8px; flex-wrap: nowrap; }
.plan-score .spread span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-score progress { margin: 6px 0 4px; }
.plan-note > span, .plan-note > a { color: var(--muted); font-style: italic; }

/* Cookie consent banner: bottom of the screen, never blocks the page. Accept and Reject look the same. */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; padding: 16px 18px; box-shadow: 0 6px 24px rgba(23, 32, 29, .12); }
.consent[hidden] { display: none; }
.has-tabbar .consent { bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); }
.consent-title { font-size: 1rem; margin-bottom: .35em; }
.consent p { margin: 0 0 .6em; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 120px; }
@media (min-width: 900px) { .consent { left: 24px; right: auto; bottom: 24px; max-width: 460px; } .has-tabbar .consent { bottom: 24px; } }

/* Certification guide on CRISC / CISM / CISSP / CCSP track pages (content/certifications/*.json). */
.guide-jump { margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.guide-jump a { font-weight: 600; }
.guide { border-top: 1px solid var(--rule); }
.guide-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .guide-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; } }
.guide-toc { display: none; }
@media (min-width: 960px) { .guide-toc { display: block; position: sticky; top: 88px; align-self: start; } }
.guide-toc-title { font: 600 .85rem/1.4 var(--sans); color: var(--muted); margin-bottom: 10px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.guide-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.guide-toc a:hover { color: var(--green); border-left-color: var(--green); }
.guide-body { max-width: 760px; }
.guide-head h2 { margin-bottom: .4em; }
.guide-updated { font-size: .9rem; color: var(--muted); margin: 0; }
.guide-part { padding-top: 40px; scroll-margin-top: 80px; }
.guide-part > h3 { font-size: 1.4rem; padding-top: 14px; border-top: 2px solid var(--ink); }
.guide-part h4 { margin: 1.6em 0 .6em; font-size: 1.05rem; }
.guide-lede { font: 400 1.125rem/1.7 var(--serif); color: var(--ink); }
.guide-list { margin: 0 0 1em; padding-left: 1.2em; }
.guide-list li { margin: .45em 0; color: var(--ink-2); }
.guide-list li::marker { color: var(--green); }
.guide-aside { font-size: .9rem; color: var(--muted); margin: 1em 0 0; }
.glance { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .glance { grid-template-columns: repeat(3, 1fr); column-gap: 24px; } }
.glance > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.glance dt { font-size: .82rem; color: var(--muted); }
.glance dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; line-height: 1.45; }
.guide-facts { margin: 0; }
.guide-facts > div { display: grid; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.guide-facts > div:first-child { border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .guide-facts > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.guide-facts dt { font-weight: 600; font-size: .95rem; }
.guide-facts dd { margin: 0; color: var(--ink-2); }
.roles { display: grid; gap: 0 32px; margin: 0; }
@media (min-width: 640px) { .roles { grid-template-columns: repeat(2, 1fr); } }
.roles > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.roles dt { font: 600 1.02rem/1.35 var(--serif); }
.roles dd { margin: 4px 0 0; font-size: .92rem; color: var(--ink-2); }
.table-scroll { overflow-x: auto; }
.salary { width: 100%; border-collapse: collapse; font-size: .92rem; }
.salary th, .salary td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.salary thead th { font-weight: 600; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.salary tbody th { font-weight: 600; }
.salary td { font-variant-numeric: tabular-nums; }
.salary th span, .salary td span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.reasons { list-style: none; counter-reset: reason; margin: 0; padding: 0; display: grid; gap: 4px 32px; }
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
.reasons li { counter-increment: reason; padding: 14px 0; border-top: 1px solid var(--rule); }
.reasons li::before { content: counter(reason, decimal-leading-zero); display: block; font: 600 .82rem/1 var(--sans); color: var(--green); margin-bottom: 8px; }
.reasons h4 { margin: 0 0 6px; font-size: 1.02rem; }
.reasons p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.timeline, .plan-steps { list-style: none; margin: 0; padding: 0; }
.timeline li, .plan-steps li { display: grid; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.timeline li:first-child, .plan-steps li:first-child { border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .timeline li, .plan-steps li { grid-template-columns: 11rem minmax(0, 1fr); } }
.timeline-when, .plan-when { font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.timeline li > span:last-child, .plan-steps li > span:last-child { color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 32px 14px 0; position: relative; font: 600 1.02rem/1.4 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font: 400 1.2rem/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); max-width: 68ch; }
.compare { list-style: none; margin: 0; padding: 0; }
.compare li { display: grid; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.compare li:first-child { border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .compare li { grid-template-columns: 11rem minmax(0, 1fr); } }
.compare a { font-weight: 600; }
.compare span { color: var(--ink-2); }
.sources { margin: 0; padding-left: 1.4em; font-size: .9rem; }
.sources li { margin: .3em 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  .site-header, .site-footer, .tabbar, .install, .consent, .pager { display: none !important; }
  body { background: #fff; }
}
