/* HPCXS marketing site. Tokens mirror the product (hpcxs-tokens.css); see brand/identity.md.
   Dark is the default (owner request 2026-11-17); light only when the visitor picks it with the toggle.
   The OS prefers-color-scheme is deliberately not followed. */
:root {
  color-scheme: dark;
  --bg: #0b1120; --surface-1: #111a2e; --surface-2: #18233b; --border: #24314d;
  --text: #e8eef8; --text-muted: #93a3bd; --accent: #2dd4bf; --accent-contrast: #04201c;
  --run: #38bdf8; --wait: #fbbf24; --ok: #34d399; --fail: #f87171;
  --dot: rgba(147, 163, 189, .16); --glow: rgba(45, 212, 191, .18);
  --shadow: 0 24px 60px rgba(2, 6, 23, .55), 0 2px 6px rgba(2, 6, 23, .4);
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px; --wrap: 1180px; --gutter: 16px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb; --surface-1: #ffffff; --surface-2: #f0f3f8; --border: #dfe5ee;
  --text: #0f172a; --text-muted: #5b6b84; --accent: #0f766e; --accent-contrast: #ffffff;
  --run: #0284c7; --wait: #b45309; --ok: #059669; --fail: #dc2626;
  --dot: rgba(15, 23, 42, .10); --glow: rgba(15, 118, 110, .12);
  --shadow: 0 24px 60px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .08);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font-sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.125rem, 6vw, 3.75rem); font-weight: 750; }
h2 { font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: .05em .35em; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
/* the skip link: off screen by clipping (not by position, which made RTL pages wider than the screen) */
.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--accent); color: var(--accent-contrast); padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.preview-bar { background: var(--wait); color: #1c1302; text-align: center; padding: 8px 16px; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand img { height: 32px; width: auto; }
.brand-on-light { display: none; }
:root[data-theme="light"] .brand-on-dark { display: none; }
:root[data-theme="light"] .brand-on-light { display: block; }
.nav-toggle { background: var(--surface-1); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; font: inherit; min-height: 44px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 20px; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 44px; height: 44px; font-size: 1.125rem; cursor: pointer; margin-inline-end: 8px; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; align-items: center; gap: 8px; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 2px; margin: 0 8px 0 0; }
  .site-nav li a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 0.9375rem; }
  .site-nav li a:hover { background: var(--surface-1); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 650; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: 600 1rem/1 var(--font-sans); transition: transform .15s ease, box-shadow .15s ease; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 0 0 0 var(--glow); }
.btn-primary:hover { box-shadow: 0 0 0 6px var(--glow); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface-1); }
.btn-ghost:hover { border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
.sec { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .sec { padding: 96px 0; } }
.sec-alt { background: linear-gradient(180deg, transparent, var(--surface-1) 12%, var(--surface-1) 88%, transparent); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.eyebrow { font: 600 0.8125rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: clamp(1.0625rem, 2.1vw, 1.25rem); color: var(--text-muted); }
.lead strong, .prose strong { color: var(--text); }
.badge { display: inline-block; vertical-align: middle; font: 600 0.75rem/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; color: var(--wait); border: 1px solid currentColor; }

/* Rank grid motif: a dot field with a few lit, connected nodes */
.rank-grid { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); }
.rank-grid::after { content: ""; position: absolute; inset-inline-end: 6%; top: 10%; width: 340px; height: 220px; opacity: .9;
  background: url("../img/rank-motif.svg") no-repeat center / contain; }
@media (max-width: 999px) { .rank-grid::after { display: none; } }
.theme-toggle svg { width: 20px; height: 20px; vertical-align: middle; }

/* Hero */
.sec-hero { padding-top: 56px; overflow: hidden; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 8% -4% -6% 8%; background: var(--glow); filter: blur(60px); border-radius: 50%; z-index: -1; }

/* Screenshot window */
.window { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1); overflow: hidden; box-shadow: var(--shadow); }
.window-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.window img { width: 100%; }

/* Chips (software we run) */
.chips { list-style: none; padding: 0; margin: 16px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; }
.chips li { font: 500 0.9375rem/1 var(--font-mono); padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-1); color: var(--text); }
.sec-logos { padding: 40px 0; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards:not(.cards-media) { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--border); background: var(--surface-1); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.sec-alt .card { background: var(--bg); }
.card .window { margin: -8px -8px 20px; box-shadow: none; }
.card-text { color: var(--text-muted); flex: 1; }
.card-text p:last-child { margin-bottom: 0; }
.card .social-link { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 8px 0 -10px -10px; color: var(--text-muted); border-radius: 8px; }
[dir="rtl"] .card .social-link { margin: 8px -10px -10px 0; }
.card .social-link:hover, .card .social-link:focus-visible { color: var(--accent); }
.more { margin-top: 14px; font-weight: 600; text-decoration: none; }
.quote blockquote { margin: 0 0 12px; font-size: 1.125rem; }

/* Split rows */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.25fr; gap: 64px; } .split-rev .split-copy { order: 2; } }
.prose ul { padding-inline-start: 1.2em; } .prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose h2 { margin-top: 1.4em; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 0.875rem var(--font-mono); color: var(--accent); display: block; margin-bottom: 8px; }
.steps li div { color: var(--text-muted); }

/* FAQ */
.faq { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.125rem; list-style-position: outside; }
.faq div { color: var(--text-muted); padding-bottom: 12px; }

/* CTA */
.cta-box { position: relative; overflow: hidden; text-align: center; border: 1px solid var(--border); border-radius: 22px; padding: 56px 24px; background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 70%), var(--surface-1); }
.cta-box .actions { justify-content: center; }
.cta-box .lead { max-width: 640px; margin: 0 auto; }

/* Form */
.lead-form { display: grid; gap: 16px; margin-top: 24px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.field-row { display: grid; gap: 16px; align-items: start; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.lead-form input:not([type=checkbox]), .lead-form select, .lead-form textarea { font: 1rem var(--font-sans); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; min-height: 48px; width: 100%; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--glow); }
.lead-form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.lead-form .check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.req { color: var(--fail); }
.hp { position: absolute; inset-inline-start: -5000px; width: 1px; height: 1px; overflow: hidden; }   /* logical side: no sideways scroll in RTL */

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 32px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links a { color: var(--text-muted); text-decoration: none; line-height: 2; }
.footer-links a:hover { color: var(--accent); }
address { font-style: normal; }
.legal { margin-top: 32px; font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- Hebrew (RTL) ----------------------------------------------------------------------------- */
/* Heebo for Hebrew letters only (unicode-range); Latin text keeps the existing face. Self-hosted: no third-party
   requests (privacy policy, CSP). Heebo: SIL Open Font License 1.1 (assets/fonts/OFL.txt). */
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/heebo-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
html[lang="he"] { --font-sans: "Heebo", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
html[lang="he"] body { line-height: 1.7; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { letter-spacing: 0; }
html[lang="he"] .eyebrow { letter-spacing: .04em; font-family: var(--font-sans); font-weight: 700; }
/* code, commands, addresses and numbers with units stay left-to-right inside Hebrew text */
html[dir="rtl"] code, html[dir="rtl"] pre, html[dir="rtl"] kbd, html[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }
/* language: a globe button with a drop-down (owner 2026-11-18), same look as the accessibility popover */
.lang-switch { position: relative; margin-inline-start: auto; flex: none; }
.lang-btn { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px 0 10px;
  background: none; color: var(--text); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font: 600 0.875rem var(--font-sans); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.lang-btn svg { width: 18px; height: 18px; flex: none; }
.lang-btn .caret { width: 14px; height: 14px; opacity: .8; }
.lang-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }      /* without JavaScript: inline */
html.js .lang-menu { position: absolute; z-index: 41; top: calc(100% + 10px); inset-inline-end: 0; display: none;
  min-width: 180px; padding: 6px; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); }
html.js .lang-menu.open { display: flex; }
html:not(.js) .lang-btn { display: none; }
.lang-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
a.lang-item:hover, a.lang-item:focus-visible { background: var(--surface-2); color: var(--accent); }
.lang-item[aria-current="true"] { font-weight: 700; background: var(--surface-2); }
.lang-item .check { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- live demo (shown only while the demo service is configured) ---- */
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 var(--ok); animation: live-pulse 2s ease-out infinite; }
.btn-primary .live-dot { background: currentColor; box-shadow: 0 0 0 0 currentColor; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.btn-xl { min-height: 60px; padding: 0 32px; font-size: 1.1875rem; border-radius: 14px; }
.hero-note { margin-top: 12px; }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 0.8125rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
html[lang="he"] .demo-badge { letter-spacing: .02em; font-family: var(--font-sans); font-weight: 700; }
.sec-demo_form { position: relative; }
.demo-grid { position: relative; display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.demo-copy ul { padding-inline-start: 1.2em; }
.demo-copy li { margin: 6px 0; }
.demo-form { margin-top: 0; box-shadow: var(--shadow); }
.sec-demo-ready { position: relative; min-height: 100vh; }
.demo-ready { position: relative; }
.demo-open { margin: 28px 0; }
.demo-link { display: grid; gap: 6px; font-weight: 600; font-size: 0.9375rem; margin: 16px 0 8px; }
.demo-link input { font: 0.875rem var(--font-mono); color: var(--text-muted); background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%; direction: ltr; }
.site-nav li a, .site-nav .btn { white-space: nowrap; }
.site-nav .btn-live { gap: 10px; }
/* desktop header: room for one button next to the menu; the second one returns on wide screens (mobile menu: both) */
@media (min-width: 960px) and (max-width: 1499px) { .site-nav .hdr-book { display: none; } }
.brand { flex: none; }
.site-nav .btn-primary[aria-current="page"] { color: var(--accent-contrast); }
.demo-form label > span:first-child { display: inline; }

/* self-hosted product video (section type "video"): a responsive 16:9 box */
.narrow-wide { max-width: 960px; }
.video { margin: 0; }
.video-box { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-box video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video figcaption { margin-top: 10px; text-align: center; }
/* "HPC in plain words" (Product) and "HPCXS in plain words" (Home): compact cards, quick to scan on a phone */
#glossary .cards, #plain-words .cards { gap: 14px; }
#glossary .card, #plain-words .card { padding: 18px 20px; }
#glossary .card h3, #plain-words .card h3 { margin-bottom: 6px; }

/* ---- 320 px wide screens (WCAG 1.4.10 reflow; 400% zoom): the header row fits without sideways scrolling ---- */
@media (max-width: 400px) {
  .header-row { gap: 8px; }
  .brand img { height: 24px; }
  .nav-toggle { padding: 8px 10px; }
}

/* ---- video text version (WCAG 1.2.1 / 1.2.3: the product video has no sound; its captions are in the picture) ---- */
.transcript { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-1); }
.transcript summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.transcript > div { padding: 0 16px 8px; color: var(--text-muted); }
.faq summary:focus-visible, .transcript summary:focus-visible { outline-offset: 2px; }

/* ---- accessibility statement contact box ---- */
.a11y-contact { margin: 0; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1); }
.a11y-contact dt { font-weight: 600; } .a11y-contact dd { margin: 0 0 8px; }

/* ---- the accessibility button (header, next to the language switch) and its drop-down panel; owner 2026-11-18 ---- */
.a11y { position: relative; flex: none; }
.a11y-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; color: var(--text); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 0; }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
/* the small label under a header icon button, on hover and keyboard focus */
.lang-btn .tip, .a11y-btn .tip { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 30;
  white-space: nowrap; pointer-events: none; padding: 4px 8px; border-radius: 6px; font-size: 0.8125rem; font-weight: 600;
  background: var(--text); color: var(--bg); opacity: 0; visibility: hidden; }
.lang-btn:hover .tip, .lang-btn:focus-visible .tip, .a11y-btn:hover .tip, .a11y-btn:focus-visible .tip { opacity: 1; visibility: visible; }
.lang-btn[aria-expanded="true"] .tip, .a11y-btn[aria-expanded="true"] .tip { visibility: hidden; }
.a11y-panel { position: absolute; z-index: 41; top: calc(100% + 10px); inset-inline-end: 0;
  width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow-y: auto; padding: 16px; display: grid; gap: 8px;
  background: var(--surface-1); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: 0.9375rem; text-align: start; }
/* phones: the panel spans the screen under the header bar instead of hanging off the button */
@media (max-width: 700px) {
  .a11y { position: static; }
  .a11y-panel { position: fixed; top: 72px; inset-inline: 16px; width: auto; max-height: calc(100vh - 88px); }
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a11y-title { margin: 0; font-weight: 700; font-size: 1.0625rem; }
.a11y-panel button { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; min-height: 44px; padding: 8px 12px; cursor: pointer; text-align: start; }
.a11y-panel button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; }
.a11y-panel button[aria-pressed="true"]::after { content: " ✓"; }
.a11y-close { min-width: 44px; text-align: center !important; font-size: 1.25rem !important; line-height: 1; }
.a11y-label { display: block; font-weight: 600; margin-bottom: 4px; }
.a11y-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a11y-sizes button { text-align: center; }
.a11y-links, .a11y-note { margin: 4px 0 0; } .a11y-note { color: var(--text-muted); font-size: 0.8125rem; }
/* header row on small screens: brand, language, accessibility and the menu button fit in one row down to 320 px */
@media (max-width: 400px) { .a11y-btn { width: 40px; height: 40px; } .lang-btn { height: 40px; padding: 0 6px; } .lang-btn .caret { display: none; } }
@media (max-width: 359px) {
  .brand img { height: 20px; }
  .nav-toggle { padding: 8px 8px; }
  .header-row { gap: 6px; }
}

/* the settings themselves (classes and data-a11y-size on <html>, set before paint by theme.js) */
html[data-a11y-size="1"] { font-size: 118.75%; }
html[data-a11y-size="2"] { font-size: 137.5%; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-links a { outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font input, html.a11y-font select, html.a11y-font textarea, html.a11y-font button {
  font-family: Arial, Verdana, system-ui, sans-serif !important; }
html.a11y-font body { letter-spacing: .03em; word-spacing: .12em; line-height: 1.8; }
html.a11y-font p, html.a11y-font li { line-height: 1.9; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important;
  transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7 19 2.6-7.4L20 11z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 2 2, auto !important; }
html.a11y-contrast { --bg: #000; --surface-1: #000; --surface-2: #111; --border: #fff; --text: #fff;
  --text-muted: #fff; --accent: #ffeb3b; --accent-contrast: #000; --dot: transparent; --glow: transparent; }
html.a11y-contrast[data-theme="light"] { --bg: #fff; --surface-1: #fff; --surface-2: #eee; --border: #000;
  --text: #000; --text-muted: #000; --accent: #0000c8; --accent-contrast: #fff; }
html.a11y-contrast .rank-grid, html.a11y-contrast .hero-media::before { display: none; }
html.a11y-contrast .sec-alt { background: var(--bg); }
html.a11y-contrast .site-header { background: var(--bg); backdrop-filter: none; }
html.a11y-contrast a { text-decoration: underline; }
