/* ==========================================================================
   VPN LABS — Design System v2 (base.css)
   Clean consumer-security style: white pages, deep-navy hero bands, bright
   blue accent, large rounded cards, pill buttons, big confident headlines and
   flat illustrations (no photos). Modules: use the tokens below — never
   hard-code colours. Legacy token names (--c-ink, --c-mark, --rule-strong…)
   are kept as aliases so every module keeps working.
   ========================================================================== */

/* ----------------------------------------------------------------- fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ---------------------------------------------------------------- tokens */
:root {
  /* surfaces — pure white page, neutral greys */
  --c-paper: #ffffff;           /* page background */
  --c-surface: #ffffff;         /* cards */
  --c-surface-2: #f5f5f5;       /* soft fills, alternate sections */
  --c-surface-3: #ebebeb;
  /* text — pure black */
  --c-ink: #000000;             /* headings + body */
  --c-ink-2: #3d3d3d;           /* secondary text */
  --c-muted: #666666;           /* captions, metadata */
  /* lines */
  --c-rule: #e5e5e5;
  --c-rule-strong: #d4d4d4;
  /* brand — electric lime on black */
  --c-accent: #ccff00;          /* primary lime (buttons, dots, highlights) */
  --c-accent-hover: #b8e600;
  --c-accent-ink: #000000;      /* text on lime */
  --c-accent-soft: #f4ffd1;
  --c-accent-text: #4d7c0f;     /* lime-family text/links on white (AA) */
  --c-accent-line: #8fb300;     /* lime borders / rings visible on white */
  --c-teal: #12a594;
  --c-teal-soft: #e4f7f3;
  --c-amber: #f5a524;
  --c-amber-soft: #fff4dd;
  --c-amber-ink: #7a4d00;
  /* legacy "marker" — soft lime highlight */
  --c-mark: #ecffa3;
  --c-mark-ink: #2f4a00;
  /* pure black bands (hero, stats, footer) */
  --c-band: #000000;
  --c-band-fg: #ffffff;
  --c-band-muted: #a3a3a3;
  --c-band-rule: #262626;
  --c-band-surface: #111111;
  --c-band-surface-2: #1a1a1a;
  --c-glow: #ccff00;
  /* header mark (Lens): black disc, white ring, lime dot */
  --wm-disc: #000000;
  --wm-ring: #ffffff;
  --wm-dot: #ccff00;

  /* severity + state */
  --sev-critical: #c81e3c;
  --sev-high: #c43c12;
  --sev-medium: #e89a0c;
  --sev-low: #3e7bfa;
  --sev-info: #7a8296;
  --sev-pass: #14a073;
  --c-success: #12825e;
  --c-success-soft: #e3f6ee;
  --c-warning: #a35f00;
  --c-danger: #c8243b;
  --c-danger-soft: #fdecee;

  /* type */
  --f-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-display: var(--f-sans);
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  --fs-display: clamp(2.75rem, 1.5rem + 4.6vw, 4.75rem);
  --lh-tight: 1.08;
  --lh-snug: 1.2;
  --lh-body: 1.65;
  --tracking-display: -0.032em;
  --tracking-tight: -0.02em;
  --tracking-label: 0.04em;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4rem, 2.5rem + 5vw, 7.5rem);

  /* shape + depth */
  --radius: 12px;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);

  /* layout */
  --container: 1280px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --measure: 70ch;
  --rule: 1px solid var(--c-rule);
  --rule-strong: 1px solid var(--c-rule-strong);
  --header-h: 72px;
  --focus: 3px solid var(--c-accent-text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-paper: #000000;
    --c-surface: #0d0d0d;
    --c-surface-2: #141414;
    --c-surface-3: #1f1f1f;
    --c-ink: #ffffff;
    --c-ink-2: #d4d4d4;
    --c-muted: #a3a3a3;
    --c-rule: #262626;
    --c-rule-strong: #333333;
    --c-accent: #ccff00;
    --c-accent-hover: #d9ff4d;
    --c-accent-ink: #000000;
    --c-accent-soft: #1c2400;
    --c-accent-text: #ccff00;
    --c-accent-line: #ccff00;
    --c-teal-soft: #0f2f33;
    --c-amber-soft: #33270c;
    --c-amber-ink: #ffd27a;
    --c-mark: #2a3a00;
    --c-mark-ink: #e6ff99;
    --c-band: #000000;
    --c-band-surface: #111111;
    --c-band-surface-2: #1a1a1a;
    /* dark mode: a graphite disc keeps the mark's full size on the near-black header */
    --wm-disc: #262626;
    --wm-ring: #ffffff;
    --wm-dot: #ccff00;
    --sev-info: #8b93a8;
    --sev-low: #6b98ff;
    --c-success: #ccff00;
    --c-success-soft: #0e2e25;
    --c-warning: #f0b440;
    --c-danger: #ff6b80;
    --c-danger-soft: #3a1520;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

/* ------------------------------------------------- per-language type stacks */
/* CJK and Burmese use system fonts (too large to self-host); no negative tracking. */
html:lang(ja) {
  --f-sans: 'Inter', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
}
html:lang(zh-Hant) {
  --f-sans: 'Inter', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', 'Heiti TC', sans-serif;
}
html:lang(zh-Hans) {
  --f-sans: 'Inter', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'Heiti SC', sans-serif;
}
html:lang(my) {
  --f-sans: 'Inter', 'Noto Sans Myanmar', 'Myanmar Text', 'Myanmar MN', Padauk, sans-serif;
  --lh-body: 1.95;
  --lh-snug: 1.5;
  --lh-tight: 1.45;
}
html:lang(ja),
html:lang(zh-Hant),
html:lang(zh-Hans),
html:lang(my) {
  --tracking-display: 0;
  --tracking-tight: 0;
  --tracking-label: 0;
}
html:lang(ja) body,
html:lang(zh-Hant) body,
html:lang(zh-Hans) body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
html:lang(ja) :is(h1, h2, h3, h4, .display, .page-hero__title, .section-head__title),
html:lang(zh-Hant) :is(h1, h2, h3, h4, .display, .page-hero__title, .section-head__title),
html:lang(zh-Hans) :is(h1, h2, h3, h4, .display, .page-hero__title, .section-head__title),
html:lang(my) :is(h1, h2, h3, h4, .display, .page-hero__title, .section-head__title) {
  letter-spacing: 0;
}
html:lang(my) :is(h1, h2, h3, .display, .page-hero__title, .section-head__title) {
  line-height: 1.5;
}
html:lang(ru) :is(.display, .page-hero__title),
html:lang(de) :is(.display, .page-hero__title),
html:lang(vi) :is(.display, .page-hero__title) {
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* ----------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 2rem);
}
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* long tokens (CVSS vectors, hashes, German compounds) wrap instead of widening the page */
  overflow-wrap: break-word;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
svg.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
table {
  border-collapse: collapse;
  width: 100%;
}
::selection {
  background: var(--c-accent);
  color: #000;
}
:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------ typography */
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  text-wrap: balance;
}
h1,
.h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}
h2,
.h2 {
  font-size: var(--fs-2xl);
  line-height: 1.12;
  letter-spacing: -0.028em;
}
h3,
.h3 {
  font-size: var(--fs-lg);
  font-weight: 650;
}
h4,
.h4 {
  font-size: var(--fs-md);
  font-weight: 650;
}
.display {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.036em;
  font-weight: 750;
  text-wrap: balance;
}
.display em,
h1 em,
h2 em {
  font-style: normal;
  color: var(--c-accent-text);
}
.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--c-accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
strong,
b {
  font-weight: 650;
}
small {
  font-size: var(--fs-sm);
}
code,
kbd,
samp,
pre,
.mono {
  font-family: var(--f-mono);
  font-size: 0.88em;
  font-feature-settings: 'zero';
}
.muted {
  color: var(--c-muted);
}
.tabular {
  font-variant-numeric: tabular-nums;
}

/* Small label above headings */
.kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5em;
  font-family: var(--f-sans);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-accent-text);
  margin-bottom: var(--s-4);
}
.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  margin-top: calc(0.5lh - 4px);
}

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: calc(900px + var(--gutter) * 2);
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}
.section--rule {
  border-top: var(--rule);
}
.section--surface,
.section--soft {
  background: var(--c-surface-2);
}
.section--ink,
.band {
  background: var(--c-band);
  color: var(--c-band-fg);
  --c-paper: var(--c-band);
  --c-ink: var(--c-band-fg);
  --c-ink-2: #d4d4d4;
  --c-muted: var(--c-band-muted);
  --c-rule: var(--c-band-rule);
  --c-rule-strong: #333333;
  --c-surface: var(--c-band-surface);
  --c-surface-2: var(--c-band-surface-2);
  --c-surface-3: #262626;
  --c-accent: #ccff00;
  --c-accent-hover: #d9ff4d;
  --c-accent-ink: #000000;
  --c-accent-soft: #1c2400;
  --c-accent-text: #ccff00;
  --c-accent-line: #ccff00;
  --c-mark: #2a3a00;
  --c-mark-ink: #e6ff99;
}
/* Hero-style black band with a faint lime glow */
.section--glow,
.band--glow {
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(204, 255, 0, 0.14), transparent 70%),
    radial-gradient(40% 60% at 10% 100%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--c-band);
}
.bg-grid {
  background-image: linear-gradient(var(--c-rule) 1px, transparent 1px), linear-gradient(90deg, var(--c-rule) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.grid {
  display: grid;
  gap: var(--s-5);
}
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-2,
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1080px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.with-sidebar {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) {
  .with-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--s-8);
  }
  .with-sidebar--left {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    align-self: start;
  }
}
.stack > * + * {
  margin-top: var(--s-4);
}
.stack-lg > * + * {
  margin-top: var(--s-6);
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Generic rounded card */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.card--soft {
  background: var(--c-surface-2);
  border-color: transparent;
}
.card--hover {
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.card--hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-rule-strong);
  transform: translateY(-2px);
}

/* ------------------------------------------------------ skip / top bars */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--s-2);
}
/* Slim dark announcement bar (above the header) */
.topbar,
.prelaunch-bar {
  background: var(--c-band);
  color: var(--c-band-muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 38px;
  padding-block: 0.4rem;
}
.topbar__note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  overflow: hidden;
}
.topbar a,
.prelaunch-bar a {
  color: #fff;
  font-weight: 600;
}
.topbar__links {
  margin-left: auto;
  display: flex;
  gap: var(--s-5);
  flex-shrink: 0;
}
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 500;
  color: var(--c-band-fg);
}
.prelaunch-bar {
  padding-block: 0.5rem;
}
.prelaunch-bar__tag,
.topbar__tag {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--c-band);
  background: var(--c-amber);
  border-radius: var(--r-pill);
  padding: 0.15em 0.65em;
  flex-shrink: 0;
}
.registry-bar {
  display: none;
}
@media (max-width: 720px) {
  .topbar__links a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .topbar__links a {
    min-width: 28px;
    min-height: 28px;
    justify-content: center;
  }
  .topbar__note-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 12px;
  background: color-mix(in srgb, var(--c-paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
/* the header (and the notice bar above it) may run a little wider than the content column */
.site-header > .container,
.topbar > .container {
  max-width: calc(1400px + var(--gutter) * 2);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 64px;
  padding: 0 10px 0 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-ink);
  flex-shrink: 0;
}
.wordmark:hover {
  color: var(--c-ink);
  text-decoration: none;
}
.wordmark__mark {
  display: block;
  width: 34px;
  height: 34px;
}
.wordmark__mark svg {
  width: 34px;
  height: 34px;
}
.wordmark__mark .wm-disc {
  fill: var(--wm-disc);
}
.wordmark__mark .wm-ring {
  fill: none;
  stroke: var(--wm-ring);
  stroke-width: 4;
}
.wordmark__mark .wm-dot {
  fill: var(--wm-dot);
}
.wordmark__mark .wm-line {
  stroke: var(--wm-fg);
  stroke-width: 2.7;
}
.wordmark__mark .wm-handle {
  stroke: var(--wm-accent);
  stroke-width: 3.6;
}
.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark__name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.wordmark__sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: 0.25rem;
  letter-spacing: 0;
}
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.site-nav__list {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  margin-inline: auto;
}
.site-nav__link {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-pill);
  color: var(--c-ink);
  font-weight: 550;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav__link:hover {
  background: var(--c-surface-2);
  color: var(--c-ink);
  text-decoration: none;
}
/* desktop header: the switcher shows the short code, the open list shows full names */
.lang-switch__current-code {
  display: none;
}
@media (min-width: 1301px) {
  .lang-switch__current {
    display: none;
  }
  .lang-switch__current-code {
    display: inline;
    font-weight: 650;
    font-size: 0.875rem;
  }
}
/* desktop header: never wrap (beats the generic .btn rule further down) */
@media (min-width: 1301px) {
  .site-header .site-nav .site-nav__link,
  .site-header .site-nav .site-nav__cta {
    white-space: nowrap;
  }
}
.site-nav__link.is-active {
  color: var(--c-accent-text);
  background: var(--c-accent-soft);
}
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.site-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--c-ink);
}
.site-nav__icon:hover {
  background: var(--c-surface-2);
  color: var(--c-ink);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-surface-2);
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 1300px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--c-surface);
    border: 1px solid var(--c-rule);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4);
    gap: var(--s-4);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav__list {
    flex-direction: column;
    margin: 0;
  }
  .site-nav__link {
    font-size: var(--fs-md);
    padding: 0.75rem 1rem;
    border-radius: var(--r-md);
  }
  .site-nav__actions {
    flex-wrap: wrap;
  }
  .site-nav__cta {
    flex: 1;
  }
}
@media (max-width: 520px) {
  .site-header__inner {
    padding-left: 14px;
    gap: var(--s-3);
  }
  .wordmark {
    min-width: 0;
  }
  .wordmark__sub {
    display: none;
  }
}
@media (max-width: 360px) {
  .nav-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .nav-toggle {
    padding: 0.6rem;
  }
}

/* -------------------------------------------------------- language switch */
.lang-switch {
  position: relative;
}
.lang-switch > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  white-space: nowrap;
}
.lang-switch > summary::-webkit-details-marker {
  display: none;
}
.lang-switch > summary:hover,
.lang-switch[open] > summary {
  background: var(--c-surface-2);
}
.lang-switch__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 220px;
  list-style: none;
  padding: 0.4rem;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
}
.lang-switch__list a {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 550;
  text-decoration: none;
}
.lang-switch__list a:hover {
  background: var(--c-surface-2);
  text-decoration: none;
}
.lang-switch__list a[aria-current='true'] {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.lang-switch__code {
  font-size: var(--fs-2xs);
  color: var(--c-muted);
  text-transform: uppercase;
}
@media (max-width: 1300px) {
  .lang-switch__list {
    position: static;
    box-shadow: none;
    margin-top: 0.4rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Russian, Vietnamese and Burmese nav labels are longer: collapse the header earlier */
@media (min-width: 1301px) and (max-width: 1440px) {
  html:is(:lang(ru), :lang(vi), :lang(my)) .nav-toggle {
    display: inline-flex;
  }
  html:is(:lang(ru), :lang(vi), :lang(my)) .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--c-surface);
    border: 1px solid var(--c-rule);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4);
    gap: var(--s-4);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  html:is(:lang(ru), :lang(vi), :lang(my)) .site-nav.is-open {
    display: flex;
  }
  html:is(:lang(ru), :lang(vi), :lang(my)) .site-nav__list {
    flex-direction: column;
    margin: 0;
  }
  html:is(:lang(ru), :lang(vi), :lang(my)) .site-nav__link {
    font-size: var(--fs-md);
    padding: 0.75rem 1rem;
    border-radius: var(--r-md);
  }
  html:is(:lang(ru), :lang(vi), :lang(my)) .site-nav__actions {
    flex-wrap: wrap;
  }
  html:is(:lang(ru), :lang(vi), :lang(my)) .site-nav__cta {
    flex: 1;
  }

  html:is(:lang(ru), :lang(vi), :lang(my)) .lang-switch__list {
    position: static;
    box-shadow: none;
    margin-top: 0.4rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  html:is(:lang(ru), :lang(vi), :lang(my)) .lang-switch__current {
    display: inline;
  }
  html:is(:lang(ru), :lang(vi), :lang(my)) .lang-switch__current-code {
    display: none;
  }
}

/* small-screen safety */
@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* ----------------------------------------------------------- breadcrumbs */
.breadcrumbs-wrap {
  padding-top: var(--s-4);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.4rem;
  color: var(--c-muted);
}
.breadcrumbs a {
  color: var(--c-ink-2);
}
.breadcrumbs [aria-current] {
  color: var(--c-muted);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.75rem 1.6rem;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
  max-width: 100%;
}
.btn:hover {
  text-decoration: none;
}
.btn .icon {
  transition: transform 0.15s;
}
.btn:hover .icon {
  transform: translateX(2px);
}
.btn--primary,
.btn--accent {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.btn--primary:hover,
.btn--accent:hover {
  background: var(--c-accent-hover);
  color: var(--c-accent-ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--c-accent) 30%, transparent);
}
.btn--secondary {
  background: var(--c-surface);
  border-color: var(--c-rule-strong);
  color: var(--c-ink);
}
.btn--secondary:hover {
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.btn--mark {
  background: #fff;
  color: #000000;
}
.btn--mark:hover {
  background: #ebebeb;
  color: #000000;
}
.btn--ghost {
  background: transparent;
  color: var(--c-accent-text);
  padding-inline: 0.75rem;
}
.btn--ghost:hover {
  background: var(--c-accent-soft);
}
.btn--sm {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}
.btn--lg {
  min-height: 60px;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  color: var(--c-accent-text);
  text-decoration: none;
}
.arrow-link:hover {
  text-decoration: none;
}
.arrow-link .icon {
  transition: transform 0.15s;
}
.arrow-link:hover .icon {
  transform: translateX(3px);
}

/* ------------------------------------------------------- section header */
.section-head {
  display: grid;
  gap: var(--s-4) var(--s-6);
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--s-7);
}
@media (min-width: 960px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .section-head--center {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
  }
}
.section-head__meta {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-accent-text);
  margin-bottom: calc(var(--s-3) * -1);
}
.section-head__index {
  display: none;
}
.section-head__kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5em;
}
.section-head__kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  margin-top: calc(0.5lh - 4px);
}
.section-head__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 22ch;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (min-width: 960px) {
  .section-head--center .section-head__title {
    margin-inline: auto;
  }
}
.section-head__lead {
  margin-top: var(--s-4);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 62ch;
}
.section-head__action {
  align-self: end;
}

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--f-sans);
  font-size: var(--fs-2xs);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1;
  padding: 0.42em 0.75em;
  border: 0;
  border-radius: var(--r-pill);
  white-space: nowrap;
  background: var(--c-surface-2);
  color: var(--c-ink-2);
}
.badge--type {
  background: var(--c-surface-3);
  color: var(--c-ink);
}
.badge--demo {
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
}
.badge--status-published {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.badge--status-updated {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.badge--status-retracted {
  background: var(--c-danger);
  color: #fff;
}
.badge--status-draft {
  background: transparent;
  border: 1px dashed var(--c-rule-strong);
  color: var(--c-muted);
}
.badge--engagement-independent {
  background: var(--c-ink);
  color: var(--c-paper);
}
.badge--engagement-commissioned {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.badge--sev-critical {
  background: var(--sev-critical);
  color: #fff;
}
.badge--sev-high {
  background: var(--sev-high);
  color: #fff;
}
.badge--sev-medium {
  background: #fdf0d2;
  color: #7a4a00;
}
.badge--sev-low {
  background: #e3ecff;
  color: #1f4bb8;
}
.badge--sev-info {
  background: var(--c-surface-3);
  color: var(--c-ink-2);
}
.badge--sev-pass {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.badge--finding-open {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}
.badge--finding-fixed,
.badge--finding-mitigated {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.badge--finding-accepted,
.badge--finding-disputed {
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
}
@media (prefers-color-scheme: dark) {
  .badge--sev-medium {
    background: #3a2c0b;
    color: #ffd27a;
  }
  .badge--sev-low {
    background: #182a5a;
    color: #b5c9ff;
  }
}

/* Record ID chip */
.record-id {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.38em 0.7em;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-ink-2);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
a.record-id:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  text-decoration: none;
}
.record-id--lg {
  font-size: var(--fs-sm);
  padding: 0.45em 0.85em;
  border-radius: var(--r-md);
}

/* ------------------------------------------------------------ record card */
.record-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.record-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-rule-strong);
  transform: translateY(-2px);
}
.record-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.record-card__badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.record-card__title {
  font-size: var(--fs-lg);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.record-card__title a {
  color: var(--c-ink);
  text-decoration: none;
}
.record-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.record-card:hover .record-card__title a {
  color: var(--c-accent-text);
}
.record-card__summary {
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.record-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: var(--rule);
  font-size: var(--fs-xs);
}
.record-card__meta dt {
  font-size: var(--fs-2xs);
  color: var(--c-muted);
}
.record-card__meta dd {
  font-weight: 600;
  color: var(--c-ink);
}
.record-card.is-retracted .record-card__title {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: var(--c-muted);
}

/* severity distribution bar */
.sev-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  width: 100%;
  border-radius: var(--r-pill);
  overflow: hidden;
}
.sev-bar__seg {
  display: block;
  min-width: 8px;
  height: 100%;
}
.sev-bar__seg--critical {
  background: var(--sev-critical);
}
.sev-bar__seg--high {
  background: var(--sev-high);
}
.sev-bar__seg--medium {
  background: var(--sev-medium);
}
.sev-bar__seg--low {
  background: var(--sev-low);
}
.sev-bar__seg--info {
  background: var(--sev-info);
}
.sev-bar__seg--pass {
  background: var(--sev-pass);
}
.sev-bar--empty {
  height: auto;
  overflow: visible;
  font-size: var(--fs-2xs);
  color: var(--c-muted);
  border-radius: 0;
}

/* score meter */
.score-meter {
  display: grid;
  gap: var(--s-2);
}
.score-meter__value {
  font-size: var(--fs-2xl);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-meter__value small {
  font-size: 0.42em;
  color: var(--c-muted);
  font-weight: 550;
  letter-spacing: 0;
  margin-left: 0.15em;
}
.score-meter__track {
  display: block;
  height: 10px;
  background: var(--c-surface-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.score-meter__fill {
  display: block;
  height: 100%;
  background: var(--c-accent);
  border-radius: var(--r-pill);
}

/* stat */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
}
.stat__value {
  font-size: var(--fs-3xl);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
}
.stat__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-2);
}
.stat__note {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* meta grid (dl) */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: var(--c-rule);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.meta-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.meta-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.meta-grid__item {
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  min-width: 0;
}
.meta-grid dt {
  font-size: var(--fs-2xs);
  font-weight: 550;
  color: var(--c-muted);
  margin-bottom: 0.3rem;
}
.meta-grid dd {
  font-weight: 600;
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

/* key findings */
.key-findings {
  background: var(--c-accent-soft);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
}
.key-findings__title {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
}
.key-findings__list {
  list-style: none;
  counter-reset: kf;
  display: grid;
  gap: var(--s-4);
}
.key-findings__list li {
  counter-increment: kf;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--s-3);
  font-size: var(--fs-base);
  line-height: 1.55;
}
.key-findings__list li::before {
  content: counter(kf);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* hash */
.hash {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 100%;
}
.hash code {
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  word-break: break-all;
  background: var(--c-surface-2);
  border-radius: var(--r-xs);
  padding: 0.2em 0.45em;
  line-height: 1.5;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  cursor: pointer;
  color: var(--c-ink-2);
}
.copy-btn:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}
.copy-btn.is-copied {
  background: var(--c-success-soft);
  color: var(--c-success);
  border-color: var(--c-success);
}

/* notices */
.notice {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.notice .icon {
  margin-top: 0.1rem;
}
.notice__title {
  display: block;
  margin-bottom: 0.15rem;
  font-size: var(--fs-base);
}
.notice--demo {
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
}
.notice--demo a {
  color: inherit;
  text-decoration: underline;
}
.notice--warning {
  background: var(--c-amber-soft);
}
.notice--warning .icon {
  color: var(--c-warning);
}
.notice--danger {
  background: var(--c-danger-soft);
}
.notice--danger .icon {
  color: var(--c-danger);
}
.notice--success {
  background: var(--c-success-soft);
}
.notice--success .icon {
  color: var(--c-success);
}
.notice--info {
  background: var(--c-accent-soft);
}
.notice--info .icon {
  color: var(--c-accent-text);
}

/* empty state */
.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  padding: var(--s-7) var(--s-4);
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  color: var(--c-muted);
}
.empty-state .illustration {
  width: 220px;
}

/* table of contents */
.toc {
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.toc__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--s-3);
}
.toc ol {
  list-style: none;
  display: grid;
  gap: 0.1rem;
}
.toc a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.35;
}
.toc a:hover {
  background: var(--c-surface);
  color: var(--c-ink);
}
.toc a.is-active {
  background: var(--c-surface);
  color: var(--c-accent-text);
  font-weight: 600;
}
.toc__item--sub a {
  padding-left: 1.5rem;
  font-size: var(--fs-xs);
}

/* pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-7);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.pagination ol {
  list-style: none;
  display: flex;
  gap: 0.35rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding-inline: 0.8rem;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-pill);
  color: var(--c-ink);
  text-decoration: none;
}
.pagination a:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}
.pagination [aria-current] {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-color: var(--c-accent-line);
}

/* ---------------------------------------------------------------- tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
}
.data-table {
  width: 100%;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.data-table caption {
  text-align: left;
  padding: var(--s-4) var(--s-5) var(--s-2);
  font-weight: 650;
  color: var(--c-ink);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: var(--rule);
  vertical-align: top;
}
.data-table tr:last-child td,
.data-table tr:last-child th {
  border-bottom: 0;
}
.data-table thead th {
  font-size: var(--fs-2xs);
  font-weight: 650;
  color: var(--c-muted);
  background: var(--c-surface-2);
  border-bottom: var(--rule);
  white-space: normal;
  min-width: 6ch;
}
.data-table tbody tr:hover {
  background: var(--c-surface-2);
}
.data-table td.num,
.data-table th.num {
  text-align: right;
}
.data-table a {
  font-weight: 600;
}

/* ----------------------------------------------------------------- forms */
.form {
  display: grid;
  gap: var(--s-5);
  max-width: 760px;
}
.form-row {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--s-2);
}
.field label {
  font-weight: 600;
  font-size: var(--fs-sm);
}
.field__req {
  color: var(--c-danger);
  margin-left: 0.2em;
}
.field__hint {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-rule-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--c-muted);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent-line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 18%, transparent);
}
.field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--s-3);
}
.field--checkbox input {
  width: 22px;
  height: 22px;
  margin: 0.1rem 0 0;
  accent-color: var(--c-accent);
}
.field--checkbox label {
  font-weight: 450;
}
.field--checkbox .field__error {
  grid-column: 2;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--c-danger);
}
.field__error {
  color: var(--c-danger);
  font-size: var(--fs-sm);
  font-weight: 550;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----------------------------------------------------------------- prose */
.prose {
  max-width: var(--measure);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--c-ink-2);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2,
.prose h3,
.prose h4,
.prose strong {
  color: var(--c-ink);
}
.prose h2 {
  font-size: var(--fs-xl);
  line-height: 1.2;
  margin-top: 2em;
  letter-spacing: -0.025em;
}
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: 1.7em;
}
.prose h4 {
  font-size: var(--fs-md);
  margin-top: 1.5em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose ul li::marker {
  color: var(--c-accent-text);
}
.prose blockquote {
  border-left: 4px solid var(--c-accent-line);
  background: var(--c-surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-md);
  color: var(--c-ink);
}
.prose code {
  background: var(--c-surface-2);
  border-radius: var(--r-xs);
  padding: 0.1em 0.35em;
  font-size: 0.85em;
  color: var(--c-ink);
}
.prose pre {
  background: #000000;
  color: #f5f5f5;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.prose table {
  font-size: var(--fs-sm);
}
.prose th,
.prose td {
  border-bottom: var(--rule);
  padding: 0.65rem 0.8rem 0.65rem 0;
  text-align: left;
  vertical-align: top;
}
.prose th {
  color: var(--c-ink);
  font-size: var(--fs-xs);
  font-weight: 650;
}
.prose figure figcaption {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-top: var(--s-2);
}
.prose a {
  color: var(--c-accent-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.prose hr {
  border: 0;
  border-top: var(--rule);
  margin-block: 2.5em;
}

/* --------------------------------------------------------- illustrations */
/* Flat SVG illustrations ship with their own soft background plate. */
.illustration {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
}
.figure-plate {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface-2);
}

/* ------------------------------------------------------------ page hero */
/* Inner-page hero: soft panel with big headline; .page-hero--dark = navy glow. */
.page-hero {
  padding-block: var(--s-8) var(--s-8);
  background: var(--c-surface-2);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  margin-bottom: var(--s-4);
}
.page-hero--dark {
  background:
    radial-gradient(55% 75% at 88% 0%, rgba(204, 255, 0, 0.15), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--c-band);
  color: var(--c-band-fg);
  --c-ink: var(--c-band-fg);
  --c-ink-2: #d4d4d4;
  --c-muted: var(--c-band-muted);
  --c-rule: var(--c-band-rule);
  --c-surface: var(--c-band-surface);
  --c-surface-2: var(--c-band-surface-2);
  --c-accent: #ccff00;
  --c-accent-ink: #000000;
  --c-accent-text: #ccff00;
  --c-accent-line: #ccff00;
}
.page-hero__grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 1080px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}
.page-hero__title {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 750;
  max-width: 18ch;
}
.page-hero__lead {
  margin-top: var(--s-5);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 56ch;
}

/* ------------------------------------------------------------- FAQ (details) */
.faq {
  display: grid;
  gap: var(--s-3);
}
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  padding: 0 var(--s-5);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  font-weight: 650;
  font-size: var(--fs-md);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.25rem;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details > :not(summary) {
  padding-bottom: var(--s-5);
  color: var(--c-ink-2);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--c-band);
  color: var(--c-band-muted);
  padding-block: var(--s-9) var(--s-6);
  margin-top: var(--s-9);
  --c-rule: var(--c-band-rule);
}
.site-footer a {
  color: #d4d4d4;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer__statement {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--c-band-rule);
}
@media (min-width: 1080px) {
  .site-footer__statement {
    grid-template-columns: 6fr 6fr;
    align-items: end;
  }
}
.site-footer__claim {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: #fff;
}
.site-footer__claim span {
  color: #ccff00;
}
.site-footer__about {
  font-size: var(--fs-sm);
  display: grid;
  gap: var(--s-4);
}
.site-footer__about strong {
  color: #fff;
}
.site-footer__principles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.site-footer__principles span {
  font-size: var(--fs-2xs);
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--c-band-surface);
  padding: 0.45em 0.9em;
  color: #d4d4d4;
}
.site-footer__cols {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: var(--s-7);
}
@media (min-width: 960px) {
  .site-footer__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.site-footer__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-4);
}
.site-footer__col ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: var(--fs-sm);
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-band-rule);
  font-size: var(--fs-xs);
  color: var(--c-band-muted);
}

/* ------------------------------------------------------------ error page */
.error-page {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-9);
  align-items: center;
}
@media (min-width: 960px) {
  .error-page {
    grid-template-columns: 7fr 5fr;
  }
}
.error-page .lead {
  margin-top: var(--s-5);
}

/* ----------------------------------------------------------------- print */
@media print {
  .topbar,
  .registry-bar,
  .prelaunch-bar,
  .site-header,
  .site-footer,
  .skip-link,
  .copy-btn,
  .btn-row,
  .nav-toggle,
  .toc,
  .no-print {
    display: none !important;
  }
  :root,
  .section--ink,
  .band,
  .page-hero--dark {
    --c-paper: #fff;
    --c-surface: #fff;
    --c-surface-2: #f5f5f5;
    --c-surface-3: #ebebeb;
    --c-ink: #000;
    --c-ink-2: #222;
    --c-muted: #555;
    --c-rule: #ccc;
    --c-rule-strong: #999;
    --c-accent: #000000;
    --c-accent-text: #3f6212;
    --c-accent-soft: #f4ffd1;
    --c-band: #fff;
    --c-band-fg: #000;
    --c-band-muted: #555;
    --c-band-rule: #ccc;
    --c-band-surface: #fff;
    --c-band-surface-2: #f3f4f7;
  }
  body {
    font-size: 11pt;
    background: #fff;
    color: #000;
  }
  .section--ink,
  .band,
  .page-hero,
  .page-hero--dark {
    background: #fff !important;
    color: #000 !important;
  }
  .record-card,
  .card,
  .stat {
    box-shadow: none !important;
    transform: none !important;
  }
  a[href^='/']::after {
    content: ' (https://vpn.com.de' attr(href) ')';
    font-size: 8pt;
    color: #555;
  }
  .record-card__title a::after {
    content: none;
  }
  .section {
    padding-block: 1.5rem;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  table,
  figure,
  .key-findings {
    break-inside: avoid;
  }
}

/* severity bar legend (text alternative to colour) */
.sev-bar-wrap {
  display: grid;
  gap: 0.4rem;
}
.sev-bar__legend {
  font-size: var(--fs-2xs);
  color: var(--c-muted);
  font-weight: 550;
}

/* footer language list + fallback notice */
.site-footer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-6);
  font-size: var(--fs-sm);
}
.site-footer__langs a {
  color: var(--c-band-muted);
}
.i18n-fallback {
  margin-top: var(--s-4);
}
