/* IBM Plex Sans and Mono, self-hosted (SIL Open Font License, see assets/fonts/OFL.txt). Latin subsets only;
   Chinese and Hindi text uses system fonts. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-400-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-500-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: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/ibm-plex-mono-600-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: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-400-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: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-500-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: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-600-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: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/ibm-plex-sans-700-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; }

/* =====================================================================
   PassPup — design system
   Tokens first (light, then dark under both the OS preference and the
   manual [data-theme] toggle), then base, layout, components, pages.
   ===================================================================== */

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #fafaf9;
  --bg-subtle: #f5f5f4;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --surface-3: #e7e5e4;
  --overlay: rgba(255, 255, 255, 0.92);

  /* ink */
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --faint: #a8a29e;

  /* lines */
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --ring: rgba(194, 87, 12, 0.3);

  /* brand */
  --brand: #c2570c;
  --brand-hover: #9a4208;
  --brand-ink: #b4500a;
  --brand-soft: #fff4e6;
  --brand-soft-2: #ffe1c2;
  --on-brand: #ffffff;
  --brand-grad: #c2570c;
  --dark-btn: #1c1917;
  --dark-btn-hover: #292524;
  --on-dark-btn: #ffffff;

  /* hero band (dark in both themes) */
  --hero-bg: #1c1917;
  --hero-ink: #ffffff;
  --hero-muted: #d6d3d1;
  --hero-line: rgba(168, 162, 158, 0.08);
  --hero-chip: #292524;
  --hero-chip-line: #44403c;
  --hero-kicker: #fdba74;

  /* category dots */
  --cat-security: #7c3aed;
  --cat-cloud: #0891b2;
  --cat-networking: #059669;
  --cat-devops: #2563eb;
  --cat-pm: #db2777;
  --cat-finance: #ca8a04;
  --cat-other: #d97706;

  /* status (always paired with icon + label) */
  --good: #16a34a;
  --good-ink: #15803d;
  --good-soft: #f0fdf4;
  --good-line: #bbf7d0;
  --bad: #dc2626;
  --bad-ink: #b91c1c;
  --bad-soft: #fef2f2;
  --bad-line: #fecaca;
  --warn: #d97706;
  --warn-ink: #a8432f;
  --warn-soft: #fff7ed;
  --warn-line: #fed7aa;

  /* charts (single series = brand) */
  --series-1: #c2570c;
  --series-1-wash: rgba(194, 87, 12, 0.10);
  --grid: #f1f5f9;
  --axis: #d1d5db;
  --tick: #94a3b8;
  --seq-0: #f1f5f9;
  --seq-1: #fed7aa;
  --seq-2: #fb923c;
  --seq-3: #c2570c;
  --seq-4: #7c2d12;

  /* shape & depth: flat, thin borders */
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -8px rgba(15, 23, 42, 0.18);

  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 56px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0a09;
    --bg-subtle: #1c1917;
    --surface: #161311;
    --surface-2: #292524;
    --surface-3: #44403c;
    --overlay: rgba(15, 23, 42, 0.92);
    --ink: #fafaf9;
    --ink-2: #d6d3d1;
    --muted: #a8a29e;
    --faint: #78716c;
    --border: #292524;
    --border-strong: #44403c;
    --ring: rgba(244, 162, 89, 0.4);
    --brand: #f08a2c;
    --brand-hover: #f4a259;
    --brand-ink: #f4a259;
    --brand-soft: rgba(240, 138, 44, 0.14);
    --brand-soft-2: rgba(240, 138, 44, 0.26);
    --dark-btn: #f1f5f9;
    --dark-btn-hover: #ffffff;
    --on-dark-btn: #1c1917;
    --hero-bg: #0c0a09;
    --cat-security: #a78bfa;
    --cat-cloud: #22d3ee;
    --cat-networking: #34d399;
    --cat-devops: #60a5fa;
    --cat-pm: #f472b6;
    --cat-finance: #facc15;
    --cat-other: #fbbf24;
    --good: #22c55e;
    --good-ink: #4ade80;
    --good-soft: rgba(34, 197, 94, 0.10);
    --good-line: rgba(34, 197, 94, 0.30);
    --bad: #ef4444;
    --bad-ink: #f87171;
    --bad-soft: rgba(239, 68, 68, 0.10);
    --bad-line: rgba(239, 68, 68, 0.30);
    --warn: #f59e0b;
    --warn-ink: #fbbf24;
    --warn-soft: rgba(245, 158, 11, 0.10);
    --warn-line: rgba(245, 158, 11, 0.30);
    --series-1: #f4a259;
    --series-1-wash: rgba(244, 162, 89, 0.12);
    --grid: #292524;
    --axis: #44403c;
    --tick: #78716c;
    --seq-0: #292524;
    --seq-1: #7c2d12;
    --seq-2: #c2570c;
    --seq-3: #f08a2c;
    --seq-4: #fdba74;
    --shadow-md: 0 8px 20px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
    --on-brand: #1a0f05;
    --brand-grad: #f08a2c;
}
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-subtle: #1c1917;
  --surface: #161311;
  --surface-2: #292524;
  --surface-3: #44403c;
  --overlay: rgba(15, 23, 42, 0.92);
  --ink: #fafaf9;
  --ink-2: #d6d3d1;
  --muted: #a8a29e;
  --faint: #78716c;
  --border: #292524;
  --border-strong: #44403c;
  --ring: rgba(244, 162, 89, 0.4);
  --brand: #f08a2c;
  --brand-hover: #f4a259;
  --brand-ink: #f4a259;
  --brand-soft: rgba(240, 138, 44, 0.14);
  --brand-soft-2: rgba(240, 138, 44, 0.26);
  --dark-btn: #f1f5f9;
  --dark-btn-hover: #ffffff;
    --on-dark-btn: #1c1917;
  --hero-bg: #0c0a09;
  --cat-security: #a78bfa;
  --cat-cloud: #22d3ee;
  --cat-networking: #34d399;
  --cat-devops: #60a5fa;
  --cat-pm: #f472b6;
  --cat-finance: #facc15;
  --cat-other: #fbbf24;
  --good: #22c55e;
  --good-ink: #4ade80;
  --good-soft: rgba(34, 197, 94, 0.10);
  --good-line: rgba(34, 197, 94, 0.30);
  --bad: #ef4444;
  --bad-ink: #f87171;
  --bad-soft: rgba(239, 68, 68, 0.10);
  --bad-line: rgba(239, 68, 68, 0.30);
  --warn: #f59e0b;
  --warn-ink: #fbbf24;
  --warn-soft: rgba(245, 158, 11, 0.10);
  --warn-line: rgba(245, 158, 11, 0.30);
  --series-1: #f4a259;
  --series-1-wash: rgba(244, 162, 89, 0.12);
  --grid: #292524;
  --axis: #44403c;
  --tick: #78716c;
  --seq-0: #292524;
  --seq-1: #7c2d12;
  --seq-2: #c2570c;
  --seq-3: #f08a2c;
  --seq-4: #fdba74;
  --shadow-md: 0 8px 20px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  --on-brand: #1a0f05;
  --brand-grad: #f08a2c;
}

/* ============================ Base ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14.5px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.0625rem; letter-spacing: -0.01em; }
h3 { font-size: 0.975rem; letter-spacing: -0.005em; }
p { margin: 0 0 0.75rem; }
code, kbd { font: 0.8125em var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0.1em 0.4em; }
kbd { border-bottom-width: 2px; color: var(--ink-2); }
.icon { flex: none; display: inline-block; vertical-align: -0.2em; }
::selection { background: var(--brand-soft-2); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
#app:focus { outline: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
main.container { flex: 1; padding-top: 24px; padding-bottom: 56px; }
main.container.is-landing { max-width: none; padding: 0 0 0; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.loading { padding: 5rem 0; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: var(--r); }
.skip-link:focus { left: 8px; }

/* ============================ Header ============================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; font-size: 0.975rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__pup { color: #c2610f; }
:root[data-theme="dark"] .brand__pup { color: #f4a259; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__pup { color: #f4a259; } }
.brand__img { display: block; width: 26px; height: 26px; image-rendering: pixelated; }
.brand__mark {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
  background: var(--brand); color: #fff;
}
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav a { color: var(--muted); font-size: 0.875rem; font-weight: 500; padding: 6px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.site-nav a.active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
@media (max-width: 560px) {
  .site-header__inner { gap: 8px; }
  .site-nav a { padding: 6px 8px; }
  .hide-xs { display: none !important; }
}
/* Language menu */
.lang-menu { position: relative; }
.lang-menu__btn { width: auto; gap: 6px; padding: 0 10px; grid-auto-flow: column; font-size: 0.8125rem; font-weight: 600; list-style: none; }
.lang-menu__btn::-webkit-details-marker { display: none; }
.lang-menu[open] .lang-menu__btn { background: var(--surface-2); color: var(--ink); }
.lang-menu__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 168px; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lang-menu__list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 0.875rem; }
.lang-menu__list a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu__list a[aria-current] { color: var(--brand); font-weight: 600; }
@media (max-width: 420px) {
  .brand > span:last-child { display: none; }
  .lang-menu__btn span { display: none; }
  .lang-menu__btn { width: 36px; padding: 0; }
}

/* Scripts without Latin word spacing wrap anywhere; Devanagari needs extra line height. */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { word-break: normal; line-break: strict; }
:lang(hi) body, :lang(hi) { line-height: 1.75; }
:lang(hi) h1, :lang(hi) h2 { line-height: 1.35; }


/* ============================ Footer ============================ */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.75rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 28px 0 20px; }
.footer-grid h4 { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; line-height: 1.45; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { max-width: 36ch; margin-top: 8px; }
.footer-notes { border-top: 1px solid var(--border); margin: 0; padding: 14px 0 12px; font-size: 0.75rem; line-height: 1.6; color: var(--muted); }
.footer-notes > span { display: block; max-width: 900px; }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 12px 0 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============================ Buttons ============================ */
.btn {
  --btn-h: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.05s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600;
}
.btn-dark { background: var(--dark-btn); border-color: var(--dark-btn); color: var(--on-dark-btn); font-weight: 600; }
.btn-dark:hover { background: var(--dark-btn-hover); border-color: var(--dark-btn-hover); }
.btn-outline-brand { color: var(--brand-ink); font-weight: 600; }
.btn-outline-brand:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { color: var(--bad-ink); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad-line); }
.btn-sm { --btn-h: 32px; padding: 0 12px; font-size: 0.8125rem; }
.btn-lg { --btn-h: 44px; padding: 0 20px; font-size: 0.9375rem; border-radius: var(--r); }
.btn-block { width: 100%; }
.link-btn { border: 0; background: none; color: var(--brand-ink); font: inherit; font-size: 0.8125rem; font-weight: 550; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions--center { justify-content: center; }

/* ============================ Forms ============================ */
input[type="number"], select {
  font: inherit; font-size: 0.875rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 0 12px; height: 38px; width: 100%; box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
input[type="number"]:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; font-weight: 550; color: var(--ink-2); }
.field-hint { font-weight: 400; color: var(--muted); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch__text { display: flex; flex-direction: column; font-size: 0.9375rem; font-weight: 500; }
.switch__text small { font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); transition: background 0.15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--brand); outline-offset: 2px; }

.checkbox { display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: 0.875rem; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; margin: 0; }

/* ============================ Surfaces ============================ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 16px; min-width: 0;
}
.card--flush { padding: 0; }
.card-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.8125rem; }
.card-section { padding: 16px 20px; border-top: 1px solid var(--border); }
.card-section:first-child { border-top: 0; }
.card-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg-subtle); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.empty { text-align: center; padding: 64px 24px; }
.empty__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px; }
.empty p { max-width: 44ch; margin: 8px auto 20px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2 > .card, .grid-2 > div > .card:last-child { margin-bottom: 0; }
.grid-2--even { grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
@media (max-width: 880px) { .grid-2, .grid-2--even { grid-template-columns: minmax(0, 1fr); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; max-width: 100%; padding: 2px 10px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 0.75rem; font-weight: 550; line-height: 1.3; color: var(--ink-2); white-space: nowrap;
}
/* Long labels (e.g. translated domain names) wrap instead of overflowing on phones */
@media (max-width: 640px) { .chip { white-space: normal; overflow-wrap: anywhere; } }
.chip--brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.chip--mono { font-family: var(--mono); font-weight: 500; border-radius: 4px; }
.chip--quiet { background: var(--surface-2); border-color: transparent; color: var(--muted); }

.callout {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between;
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 20px; font-size: 0.875rem;
}
.callout__body { display: flex; gap: 12px; align-items: center; }
.callout__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-xs); flex: none; }
.callout__body div { display: flex; flex-direction: column; }
.callout--compact { margin: 20px 0 0; padding: 10px 12px; }
.storage-notice { padding-top: 16px; }
.storage-notice .callout { margin-bottom: 0; }

/* Status: color + icon + label, never color alone */
.status {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  font-size: 0.8125rem; font-weight: 600; border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.status--good { color: var(--good-ink); background: var(--good-soft); border-color: var(--good-line); }
.status--bad { color: var(--bad-ink); background: var(--bad-soft); border-color: var(--bad-line); }
.status--warn { color: var(--warn-ink); background: var(--warn-soft); border-color: var(--warn-line); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.status-dot.good { background: var(--good); }
.status-dot.bad { background: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 2px 8px; margin-left: auto; white-space: nowrap; }
.pill--good { color: var(--good-ink); background: var(--good-soft); }
.pill--bad { color: var(--bad-ink); background: var(--bad-soft); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; font-size: 0.75rem; font-weight: 550; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); white-space: nowrap; }
.table th:first-child { border-top-left-radius: 8px; }
.table th:last-child { border-top-right-radius: 8px; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); }
.table tbody tr:hover td { background: var(--bg-subtle); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ============================ Home: hero band ============================ */
.hero-band {
  position: relative; background: var(--hero-bg); color: var(--hero-ink); padding: 56px 0 64px;
  background-image: linear-gradient(var(--hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-band .container > * { max-width: 680px; }
.kicker-mono { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hero-kicker); margin: 0 0 14px; }
.hero-band h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin-bottom: 16px; }
.hero-band .grad-text { color: #f4a259; }
.hero-band__lede { color: var(--hero-muted); font-size: 1.0625rem; line-height: 1.6; margin: 0 0 24px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 0.8125rem; color: var(--hero-muted); }
.popular span { margin-right: 4px; }
.pop-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--hero-chip-line); border-radius: 5px; background: var(--hero-chip); color: #fff; font-size: 0.8125rem; }
.pop-chip:hover { border-color: #f08a2c; color: #fdba74; text-decoration: none; }

/* Search box (hero and exams page) */
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 14px; max-width: 560px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); color: var(--muted); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.975rem; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search__count { flex: none; font: 500 0.6875rem/1 var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 5px 7px; white-space: nowrap; }
.search--hero { height: 52px; max-width: none; background: #fff; border-color: #fff; color: #78716c; }
.search--hero input { color: #1c1917; }
.search--hero input::placeholder { color: #a8a29e; }
.search--hero .search__count { color: #78716c; border-color: #e7e5e4; }

/* ============================ Exam catalog ============================ */
.home-body { padding-top: 36px; padding-bottom: 24px; }
.catalog-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 32px; align-items: start; }
.cat-side { position: sticky; top: calc(var(--header-h) + 20px); }
.side-label { font: 600 0.6875rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px 10px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: inherit; font-size: 0.875rem; text-align: left; cursor: pointer; }
.cat-link span { flex: 1; min-width: 0; }
.cat-link em { font: 400 0.6875rem var(--mono); font-style: normal; color: var(--muted); }
.cat-link:hover { background: var(--surface-2); color: var(--ink); }
.cat-link.is-active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.cat-dot { flex: none; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--cat-other); }
.cat-dot--all { background: var(--ink); }
.cat-dot--security { background: var(--cat-security); }
.cat-dot--cloud { background: var(--cat-cloud); }
.cat-dot--networking { background: var(--cat-networking); }
.cat-dot--cybersecurity { background: var(--cat-security); }
.cat-dot--devops { background: var(--cat-devops); }
.cat-dot--project-management { background: var(--cat-pm); }
.cat-dot--investment { background: var(--cat-finance); }
.cat-side { max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.cat-dot--tba { background: none; box-shadow: inset 0 0 0 1px var(--muted); }
/* Industry groups: a hairline divider above each, with the industry name as a small clickable label. */
.cat-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cat-section .side-label { margin-bottom: 8px; }
.cat-group { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.cat-group:hover, .cat-group.is-active { color: var(--brand-ink); }
.soon-list { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 6px; font-size: 0.8125rem; color: var(--muted); }

.catalog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.catalog-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.catalog-title small { margin-left: 6px; font-size: 0.8125rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r); background: var(--surface-2); }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; font: inherit; font-size: 0.8125rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--border); }

.xt-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.xt { width: 100%; border-collapse: collapse; font-size: 0.875rem; table-layout: fixed; }
.xt__c-q { width: 112px; } .xt__c-d { width: 104px; } .xt__c-l { width: 118px; } .xt__c-a { width: 124px; }
.xt th { text-align: left; padding: 11px 16px; font: 600 0.6875rem/1.2 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.xt td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.xt tbody tr:last-child td { border-bottom: 0; }
.xt tbody tr:hover td { background: var(--bg-subtle); }
.xt__cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.xt__title { display: flex; flex-direction: column; min-width: 0; }
.xt__name { color: var(--ink); font-weight: 600; line-height: 1.35; }
.xt__meta { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt__meta .cat-dot { width: 6px; height: 6px; }
.xt__num { font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap; color: var(--ink-2); }
th.xt__num { font-family: var(--font); }
.xt__unit { display: none; }
.xt__last.is-good [data-last-value] { color: var(--good-ink); font-weight: 600; }
.xt__last.is-bad [data-last-value] { color: var(--bad-ink); font-weight: 600; }
.xt__act { text-align: right; }
.xt__act .btn { min-width: 86px; }
.xt__empty { margin: 0; padding: 28px 16px; text-align: center; }
.code-badge { flex: none; display: inline-grid; place-items: center; min-width: 68px; height: 26px; padding: 0 7px; border-radius: 4px; background: var(--surface-2); font: 600 0.6875rem/1 var(--mono); color: var(--ink); white-space: nowrap; }
.home-faq { max-width: 820px; margin: 48px 0 0 248px; }
.home-faq h2 { font-size: 1.125rem; margin-bottom: 12px; }
.page-intro { margin-bottom: 28px; }
.page-intro h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.025em; margin: 4px 0 8px; }
.page-intro .lede { margin-bottom: 18px; }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cat-side { position: static; }
  .side-label { display: none; }
  .cat-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .cat-list::-webkit-scrollbar { display: none; }
  .cat-link { width: auto; white-space: nowrap; border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; }
  .home-faq { margin-left: 0; }
}
@media (max-width: 720px) {
  .xt thead { display: none; }
  .xt, .xt tbody { display: block; }
  .xt colgroup { display: none; }
  .xt tr { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: center; gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .xt tbody tr:last-child { border-bottom: 0; }
  .xt td { display: block; padding: 0; border: 0; width: auto; }
  .xt tbody tr:hover td { background: none; }
  .xt__exam { grid-column: 1 / -1; min-width: 0; }
  .xt__cell { align-items: flex-start; }
  .code-badge { min-width: 0; margin-top: 1px; }
  .xt__unit { display: inline; font-family: var(--font); color: var(--muted); }
  .xt__last.is-empty { display: none; }
  .xt__act { grid-column: 4; grid-row: 2; justify-self: end; }
  .xt__act .btn { min-width: 0; }
  .search__count { display: none; }
}

/* Shared pieces used by exam pages */
.exam-card__vendor { display: block; font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.exam-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.meter { position: relative; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: visible; }
.meter__fill { height: 100%; border-radius: 999px; background: var(--brand); }
.meter__mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-2); border-radius: 1px; opacity: 0.5; }
.meter--lg { height: 10px; }

/* Header note */

/* ============================ Exam header & tabs ============================ */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: none; }
.crumbs .icon { color: var(--faint); }
.crumbs span { color: var(--ink-2); font-weight: 500; }
.exam-header { margin-bottom: 24px; }
.exam-header__main { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.exam-header__text { flex: 1 1 320px; min-width: 0; }
.exam-header h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 6px; }
.exam-header__sub { margin: 0; color: var(--ink-2); font-size: 1rem; }
.exam-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.875rem; margin-bottom: 18px; }
.back-link:hover { color: var(--ink); text-decoration: none; }
.kicker-mono--muted { color: var(--muted); margin-bottom: 8px; }
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
@media (max-width: 480px) {
  .tab-bar { gap: 0; }
  .tab-link { flex: 1 1 auto; justify-content: center; gap: 6px; padding: 10px 8px; font-size: 0.8125rem; }
}
@media (max-width: 380px) { .tab-link .icon { display: none; } }
.tab-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: -1px;
  color: var(--muted); font-size: 0.875rem; font-weight: 550; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-link:hover { color: var(--ink); text-decoration: none; }
.tab-link.is-active { color: var(--ink); border-bottom-color: var(--brand); }
.tab-link.is-active .icon { color: var(--brand-ink); }

.page-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

/* ============================ Session setup ============================ */
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.set-label { font-size: 0.8125rem; color: var(--muted); margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.set-list { display: grid; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.set-row input { position: absolute; opacity: 0; pointer-events: none; }
.set-row__radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); }
.set-row input:checked + .set-row__radio { border: 1.5px solid var(--ink); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 9px var(--ink); }
.set-row input:focus-visible + .set-row__radio { outline: 2px solid var(--brand); outline-offset: 2px; }
.set-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.set-row__text strong { font-weight: 500; font-size: 0.975rem; color: var(--ink); }
.set-row__text small { font-size: 0.8125rem; color: var(--muted); }
.set-row__meta { flex: none; font: 400 0.8125rem var(--mono); font-style: normal; color: var(--ink-2); white-space: nowrap; }
.set-row:hover .set-row__text strong { color: var(--brand-ink); }

.setup-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.setup-card { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); padding: 22px 24px; }
.setup-card__eyebrow { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.setup-card h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; margin: 2px 0 4px; }
.setup-card__meta { margin: 0 0 6px; font: 400 0.8125rem var(--mono); color: var(--ink-2); }
.setup-card__row { padding: 14px 0; border-top: 1px solid var(--border); }
.setup-card__row:first-of-type { margin-top: 12px; }
.setup-card .btn-block { margin-top: 18px; }
.setup-card .field { margin-bottom: 8px; }
.count-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.count-row input[type="number"] { width: 72px; height: 30px; padding: 0 8px; font-family: var(--mono); }
.kbd-note { margin: 12px 0 0; text-align: center; font-size: 0.75rem; color: var(--muted); }
@media (hover: none) { .kbd-note { display: none; } }
#pool-hint { margin-top: 10px; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; padding: 0 4px; }
.glance dt { font-size: 0.75rem; color: var(--muted); }
.glance dd { margin: 0; font-size: 0.8125rem; font-weight: 500; }
@media (max-width: 900px) {
  .setup-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .setup-side { position: static; }
}
.preset { height: 26px; padding: 0 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--muted); font: 500 0.75rem var(--mono); cursor: pointer; }
.preset:hover { color: var(--ink); border-color: var(--border-strong); }
.preset.is-active { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.form-hint { font-size: 0.8125rem; color: var(--muted); margin: 0; display: inline-flex; align-items: center; gap: 6px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin: 0; }
.facts div { background: var(--surface); padding: 12px 14px; }
.facts dt { font-size: 0.75rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 0.9375rem; }

.domain-rows { display: grid; gap: 14px; }
.domain-row { display: grid; gap: 6px; }
.domain-row__top { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; font-size: 0.8125rem; }
.domain-row__top a { color: var(--ink-2); font-weight: 500; }
.domain-row__top span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================ Quiz ============================ */
body.is-focus .site-footer { display: none; }
.quiz { max-width: none; }
.quiz-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 4px 0 14px; }
.quiz-bar__title { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; min-width: 0; }
.quiz-exit { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.quiz-exit .icon { color: var(--muted); align-self: center; }
.quiz-exit:hover { text-decoration: none; color: var(--brand-ink); }
.quiz-bar__mode { font-size: 0.8125rem; color: var(--muted); }
.quiz-bar__meta { display: flex; gap: 14px; align-items: center; }
.timer { display: inline-flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.timer strong { font: 600 1.0625rem var(--mono); color: var(--ink); }
.timer small { font-size: 0.75rem; color: var(--muted); }
.timer--low strong { color: var(--bad-ink); }
.quiz-progress { height: 3px; border-radius: 0; margin: 0 0 28px; }
.progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--ink); border-radius: 999px; transition: width 0.3s ease; }

.quiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.question { min-width: 0; }
.question__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.question__num { font: 500 0.8125rem var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.question__domain { font-size: 0.75rem; color: var(--faint); margin-top: 2px; }
.question__text { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 24px; }
.flag { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.flag:hover { color: var(--ink); border-color: var(--faint); }
.flag.on { color: var(--warn-ink); background: var(--warn-soft); border-color: var(--warn-line); }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  font: inherit; font-size: 0.975rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; cursor: pointer;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.option:hover:not(:disabled) { border-color: var(--faint); }
.option:disabled { cursor: default; }
.option__letter {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px;
  background: var(--surface-2); font: 600 0.75rem var(--mono); color: var(--ink-2);
}
.option__text { flex: 1; line-height: 1.5; }
.option__mark { flex: none; display: grid; place-items: center; }
.option.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.option.selected .option__letter { background: var(--ink); color: var(--surface); }
.option.correct { border-color: var(--good); background: var(--good-soft); box-shadow: 0 0 0 1px var(--good); }
.option.correct .option__letter { background: var(--good); color: #fff; }
.option.correct .option__mark { color: var(--good-ink); }
.option.incorrect { border-color: var(--bad); background: var(--bad-soft); box-shadow: 0 0 0 1px var(--bad); }
.option.incorrect .option__letter { background: var(--bad); color: #fff; }
.option.incorrect .option__mark { color: var(--bad-ink); }

.feedback { margin-top: 16px; border-radius: var(--r); padding: 14px 16px; border: 1px solid; }
.feedback strong { display: inline-flex; align-items: center; gap: 8px; }
.feedback p { margin: 8px 0 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.feedback--good { background: var(--good-soft); border-color: var(--good-line); color: var(--good-ink); }
.feedback--bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad-ink); }

.question__nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 28px; }
.question__nav .btn:disabled { opacity: 0.45; }

.navigator { position: sticky; top: calc(var(--header-h) + 16px); }
.nav-summary { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); margin-bottom: 10px; }
.nav-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; max-height: 60vh; overflow-y: auto; padding: 2px; }
.nav-cell {
  position: relative; height: 34px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-2); font: 600 0.75rem var(--mono); cursor: pointer;
}
.nav-cell:hover { border-color: var(--faint); color: var(--ink); }
.nav-cell.answered { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.nav-cell.wrong { background: var(--bad); border-color: var(--bad); color: #fff; }
.nav-cell.flagged::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.nav-cell.current { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.nav-legend { margin: 14px 0 0; display: flex; gap: 6px 16px; align-items: center; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); }
.nav-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nav-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.nav-key.answered { background: var(--ink); }
.nav-key.flagged { background: var(--warn); border-radius: 50%; }
.nav-key.wrong { background: var(--bad); }
.kbd-hint { margin: 16px 0 0; font-size: 0.75rem; color: var(--muted); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; line-height: 2; }
@media (hover: none) { .kbd-hint { display: none; } }
@media (max-width: 960px) {
  .quiz-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .navigator { position: static; }
  .nav-grid { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); max-height: none; }
}

/* ============================ Results & progress ============================ */
.score-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
@media (max-width: 800px) { .score-hero { grid-template-columns: 1fr; } }
.score-hero__label { font-size: 0.8125rem; color: var(--muted); font-weight: 550; margin-bottom: 6px; }
.score-hero__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-figure { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.hero-figure span { font-size: 0.45em; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: -0.02em; }
.score-hero__meter { display: grid; gap: 8px; max-width: 420px; }
.score-hero__meter .meter-legend { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 20px; }
.stats--inline { margin: 0; grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-xs); min-width: 0; }
.stats--inline .stat { background: var(--bg-subtle); box-shadow: none; }
.stat__head { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 8px; }
.stat__head dt { font-size: 0.8125rem; font-weight: 500; }
.stat dd { margin: 0; font-size: 1.625rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; }
.stat__sub { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

.readiness { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 40px; align-items: center; }
.readiness__figure { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.readiness__side { display: grid; gap: 12px; }
.readiness__side p { margin: 0; color: var(--muted); font-size: 0.875rem; max-width: 62ch; }
@media (max-width: 700px) { .readiness { grid-template-columns: 1fr; } }

.tabs { display: inline-flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 9px; }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.8125rem; font-weight: 550; padding: 5px 12px; border-radius: 7px; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab .count { font-size: 0.6875rem; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-variant-numeric: tabular-nums; }

.review { list-style: none; margin: 0; padding: 0; }
.review-item { border-top: 1px solid var(--border); padding: 24px 0; }
.review-item:first-child { border-top: 0; padding-top: 4px; }
.review-item__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.review-item__q { font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
.review-options { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.review-options li { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.875rem; border: 1px solid transparent; }
.review-options li.correct { background: var(--good-soft); border-color: var(--good-line); }
.review-options li.incorrect { background: var(--bad-soft); border-color: var(--bad-line); }
.review-options .option__letter { width: 22px; height: 22px; font-size: 0.6875rem; border-radius: 6px; }
.review details summary { cursor: pointer; color: var(--brand-ink); font-weight: 600; font-size: 0.8125rem; display: inline-flex; align-items: center; gap: 6px; }
.review details p { margin: 10px 0 0; color: var(--ink-2); font-size: 0.875rem; padding: 12px 14px; background: var(--bg-subtle); border-radius: var(--r-sm); }
.empty-row { padding: 24px 0; text-align: center; }

.data-card { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.data-card p { margin: 4px 0 0; }

/* ============================ Charts ============================ */
.chart { width: 100%; min-height: 40px; }
.chart-svg { display: block; overflow: visible; font-family: var(--font); }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart-svg .axis-base { stroke: var(--axis); stroke-width: 1; }
.chart-svg .tick { fill: var(--tick); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-svg .threshold { stroke: var(--good); stroke-width: 1.25; stroke-dasharray: 4 4; opacity: 0.8; }
.chart-svg .threshold-label { fill: var(--good-ink); font-weight: 600; }
.chart-svg .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .area { fill: url(#trend-grad); }
.chart-svg .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; transition: r 0.1s; }
.chart-svg .dot.active { r: 6; }
.chart-svg .crosshair { stroke: var(--axis); stroke-width: 1; pointer-events: none; }
.chart-svg .value-label { fill: var(--ink); font-size: 12px; font-weight: 650; }
.chart-svg .heat { stroke: none; }
.heat-0 { fill: var(--seq-0); background: var(--seq-0); }
.heat-1 { fill: var(--seq-1); background: var(--seq-1); }
.heat-2 { fill: var(--seq-2); background: var(--seq-2); }
.heat-3 { fill: var(--seq-3); background: var(--seq-3); }
.heat-4 { fill: var(--seq-4); background: var(--seq-4); }
.chart-svg .heat:hover { stroke: var(--ink); stroke-width: 1.5; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--tick); margin-top: 10px; }
.heat-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.heat-legend span:first-child { margin-right: 4px; }
.heat-legend span:last-child { margin-left: 4px; }

.bars { display: grid; gap: 2px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.1fr) 3.4rem; gap: 14px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; cursor: default; }
.bar-row:hover, .bar-row:focus-visible { background: var(--bg-subtle); }
.bar-label { font-size: 0.8125rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); }
.bar-track::before { display: none; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--series-1); border-radius: 999px; }
.bar-threshold { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--good); border-radius: 1px; opacity: 0.8; }
.bar-value { text-align: right; font-size: 0.8125rem; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .bar-row { grid-template-columns: 1fr 3.2rem; gap: 6px 12px; }
  .bar-label { grid-column: 1 / -1; white-space: normal; }
  .bar-track { grid-column: 1; }
}

.chart-tooltip {
  position: absolute; z-index: 60; display: none; pointer-events: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  font-size: 0.75rem; line-height: 1.5; padding: 8px 10px; border-radius: 8px;
  max-width: 240px; box-shadow: var(--shadow-md);
}
.chart-tooltip strong { font-size: 0.875rem; }

/* ============================ Prose ============================ */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { margin-bottom: 16px; }
.prose h2 { margin: 32px 0 10px; font-size: 1.125rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: 8px; }

@media (max-width: 640px) {
  .card { padding: 18px; }
  .card-section, .card-foot { padding-left: 18px; padding-right: 18px; }
  .card.setup { padding: 0; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .hero-figure { font-size: 48px; }
  h1 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================ Static (SEO) pages ============================ */
.narrow { max-width: 820px; }
.footer-grid--wide { grid-template-columns: 1.2fr repeat(4, 1fr); }
@media (max-width: 880px) { .footer-grid--wide { grid-template-columns: 1fr 1fr; } }

.page-head--hero { align-items: flex-end; margin-bottom: 28px; }
.page-head--hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; margin: 6px 0 10px; }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 70ch; margin: 0; }

.exam-hero { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.exam-hero h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin: 8px 0 10px; }
.exam-hero .lede { margin-bottom: 16px; }
@media (max-width: 640px) { .exam-hero { flex-direction: column; gap: 16px; } }

.grid-2--main { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 980px) { .grid-2--main { grid-template-columns: minmax(0, 1fr); } }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 980px) { .sticky-aside { position: static; } }
.card > h2 { margin-bottom: 12px; }
.card > p { color: var(--ink-2); }
.card .facts { margin-top: 16px; }
.stack { display: grid; gap: 8px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.link-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink-2); font-size: 0.875rem; }
.link-list a:hover { background: var(--bg-subtle); color: var(--ink); text-decoration: none; }
.link-list em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.link-list li.is-tba { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; margin: 0 -10px; color: var(--muted); font-size: 0.875rem; }
.link-list li.is-tba em { font-style: normal; font-size: 0.75rem; letter-spacing: 0.04em; }
.industry-section { margin-top: 40px; }
.industry-section > h2 { margin-bottom: 14px; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.industry-card h3 { font-size: 1rem; margin-bottom: 8px; }
.industry-card.is-tba h3 { color: var(--muted); }
.category-block h2 { display: flex; align-items: center; gap: 8px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }


.q-list { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: q; }
.q-item { padding: 22px 0; border-top: 1px solid var(--border); }
.q-item:first-child { border-top: 0; padding-top: 4px; }
.q-text { font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; margin-bottom: 12px; }
.q-num { color: var(--muted); font-weight: 600; margin-right: 4px; }
.q-options { margin: 0 0 12px; padding-left: 26px; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.9375rem; }
.q-options li::marker { font-weight: 600; color: var(--muted); }
.q-answer summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 600; font-size: 0.875rem; }
.q-answer[open] summary { margin-bottom: 10px; }
.q-answer p { margin: 0 0 6px; padding: 0 14px; font-size: 0.9rem; color: var(--ink-2); }
.q-answer p:first-of-type { padding-top: 12px; }
.q-answer p:last-child { padding-bottom: 12px; }
.q-answer[open] { background: var(--good-soft); border: 1px solid var(--good-line); border-radius: var(--r); padding-bottom: 2px; }
.q-answer[open] summary { padding: 10px 14px 0; }

.faq { display: grid; gap: 8px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 0.9375rem; margin: 0; }
.faq__item summary .icon { color: var(--muted); transition: transform 0.2s; flex: none; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 0 16px 16px; color: var(--ink-2); font-size: 0.9375rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 16px; }
.pager__link { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 16px 20px; color: var(--ink); }
.pager__link:hover { border-color: var(--border-strong); text-decoration: none; }
.pager__link small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.pager__link span { font-weight: 600; }
.pager__link--next { text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } }

/* Long button labels (common in translations) wrap instead of overflowing. */
.btn { max-width: 100%; }
@media (max-width: 640px) {
  .btn { height: auto; min-height: var(--btn-h); padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; line-height: 1.3; }
}

/* Category sidebar on small screens: one scrolling row of chips, no TBA placeholders. */
@media (max-width: 900px) {
  .cat-side { display: flex; gap: 6px; max-height: none; overflow-x: auto; overflow-y: visible; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .cat-side::-webkit-scrollbar { display: none; }
  .cat-side .cat-list, .cat-side .cat-section { display: contents; }
  .cat-side .side-label, .cat-section--soon { display: none; }
}
