/* LegendScripts - shared base styles for all four sites. */
:root {
  --bg: #07090e;
  --bg-2: #0a0d14;
  --surface: #0e131c;
  --surface-2: #131a26;
  --surface-3: #1b2333;
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #e9eef6;
  --muted: #a0aabb;
  --accent: #3b82f6;
  --accent-2: #6366f1;
  --accent-3: #22d3ee;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --link: #8ab8ff;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --header-h: 68px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --a11y-scale: 1;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--a11y-scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b4d1ff; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; color: #fff; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
code, kbd, pre { font-family: var(--mono); font-size: 0.92em; }
code { background: rgba(148, 163, 184, 0.12); border: 1px solid var(--border); padding: 0.08em 0.38em; border-radius: 6px; color: #dbe7ff; overflow-wrap: anywhere; }
kbd { display: inline-block; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0 0.4em; font-size: 0.8em; color: var(--muted); background: var(--surface-2); line-height: 1.6; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

.icon { flex-shrink: 0; vertical-align: middle; }
.icon.flip { transform: rotate(180deg); }
.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; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn-row.center { justify-content: center; }

/* Focus: always visible for keyboard users. */
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: #fff; color: #0b1020; padding: 0.75rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------------------------ logo --- */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.logo-mark { flex-shrink: 0; filter: drop-shadow(0 6px 18px rgba(59, 130, 246, 0.45)); }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo-text span { color: #8ab8ff; }
.logo-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #dbeafe; background: var(--accent-soft); border: 1px solid rgba(59, 130, 246, 0.4); padding: 0.1rem 0.5rem; border-radius: 999px; }

/* --------------------------------------------------------------------------------- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.6rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s; white-space: nowrap; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-ghost { color: var(--text); background: rgba(148, 163, 184, 0.08); border-color: var(--border-strong); }
.btn-ghost:hover { color: #fff; background: rgba(148, 163, 184, 0.16); border-color: rgba(148, 163, 184, 0.4); }
.btn-light { color: #0b1020; background: #fff; }
.btn-light:hover { color: #0b1020; transform: translateY(-1px); background: #eef3ff; }
.btn-discord { color: #fff; background: #5865f2; }
.btn-discord:hover { color: #fff; background: #4752c4; }
.btn-sm { min-height: 38px; padding: 0.4rem 0.85rem; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 0.8rem 1.5rem; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { min-width: 44px; min-height: 44px; padding: 0.5rem; background: transparent; border-color: var(--border); color: var(--text); border-radius: var(--radius-sm); }
.btn-icon:hover { background: rgba(148, 163, 184, 0.12); }
.btn-icon.danger, .danger { color: #fca5a5; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; display: inline-flex; gap: 0.35rem; align-items: center; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------------------------------------------------------------------------------- badges --- */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid; }
.tone-blue { color: #bfdbfe; background: rgba(59, 130, 246, 0.18); border-color: rgba(96, 165, 250, 0.45); }
.tone-green { color: #a7f3d0; background: rgba(16, 185, 129, 0.18); border-color: rgba(52, 211, 153, 0.45); }
.tone-red { color: #fecaca; background: rgba(239, 68, 68, 0.18); border-color: rgba(248, 113, 113, 0.45); }
.tone-amber { color: #fde68a; background: rgba(245, 158, 11, 0.18); border-color: rgba(251, 191, 36, 0.45); }
.tone-violet { color: #ddd6fe; background: rgba(139, 92, 246, 0.2); border-color: rgba(167, 139, 250, 0.45); }
.tone-gray { color: #e2e8f0; background: rgba(148, 163, 184, 0.16); border-color: rgba(148, 163, 184, 0.4); }

/* ----------------------------------------------------------------------------------- forms --- */
label { display: block; font-weight: 600; font-size: 0.92rem; margin: 0.9rem 0 0.35rem; color: #dbe3ef; }
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="number"], input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #8892a4; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); outline: none; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; margin: 0.75rem 0; }
.check input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--accent); flex-shrink: 0; }
.check label { margin: 0; font-weight: 500; }
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.input-group { display: flex; gap: 0.5rem; }
.input-group input { flex: 1; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem 1rem; margin: 1rem 0; }
legend { font-weight: 700; padding: 0 0.35rem; }

.alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid; margin: 0 0 1rem; }
.alert-success { background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.4); color: #d1fae5; }
.alert-error { background: rgba(239, 68, 68, 0.12); border-color: rgba(248, 113, 113, 0.45); color: #fee2e2; }
.alert-info { background: rgba(59, 130, 246, 0.12); border-color: rgba(96, 165, 250, 0.4); color: #dbeafe; }

/* ---------------------------------------------------------------------------------- header --- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(7, 9, 14, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(7, 9, 14, 0.9); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.brand { text-decoration: none; flex-shrink: 0; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 0.5rem 0.8rem; border-radius: 8px; color: #cdd5e2; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s, background 0.2s; }
.main-nav a:hover { color: #fff; background: rgba(148, 163, 184, 0.1); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(59, 130, 246, 0.16); }
.header-actions { display: flex; gap: 0.5rem; align-items: center; }
.nav-toggle { display: none; }
.cart-btn { position: relative; }
.cart-count { min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: #fff; color: #1d4ed8; font-size: 0.75rem; font-weight: 800; display: inline-grid; place-items: center; }
.cart-count[hidden] { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; z-index: 2; inset: var(--header-h) 0 auto 0; background: var(--bg, #07090e); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); border-bottom: 1px solid var(--border); padding: 0.75rem 1.25rem 1.25rem; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 0.8rem 0.9rem; font-size: 1.05rem; }
  .hide-sm { display: none !important; }
  .header-actions .btn span:not(.cart-count) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

@media (max-width: 480px) {
  .header-inner { gap: 0.6rem; }
  .header-actions { gap: 0.35rem; margin-left: auto; }
  .brand .logo { gap: 0.45rem; }
  .brand .logo-label { display: none; }
  .brand .logo-text { font-size: 1.05rem; }
  .brand .logo-mark { width: 30px; height: 30px; }
  .header-actions .btn-sm { padding-left: 0.6rem; padding-right: 0.6rem; }
}

/* ------------------------------------------------------------------------- promo banner --- */
.promo-banner { position: relative; z-index: 51; display: flex; align-items: center; min-height: 40px; color: #fff; overflow: hidden; font-size: 0.9rem; font-weight: 700; }
.promo-banner.tone-blue { background: linear-gradient(90deg, #1d4ed8, #4f46e5, #1d4ed8); }
.promo-banner.tone-violet { background: linear-gradient(90deg, #6d28d9, #a21caf, #6d28d9); }
.promo-banner.tone-green { background: linear-gradient(90deg, #047857, #0d9488, #047857); }
.promo-banner.tone-red { background: linear-gradient(90deg, #b91c1c, #be185d, #b91c1c); }
.promo-banner.tone-amber { background: linear-gradient(90deg, #b45309, #c2410c, #b45309); }
.promo-banner.tone-rainbow { background: linear-gradient(90deg, #1d4ed8, #7c3aed, #be185d, #c2410c, #047857, #1d4ed8); background-size: 300% 100%; animation: hue-slide 12s linear infinite; }
.promo-banner, .promo-banner .badge { border: 0; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: inline-flex; gap: 3rem; padding: 0.55rem 0; white-space: nowrap; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.promo-banner:hover .marquee-track, .promo-banner:focus-within .marquee-track, .promo-banner.paused .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.promo-actions { display: flex; align-items: center; gap: 0.4rem; padding: 0 0.75rem; background: inherit; }
.marquee-link { color: #fff; background: rgba(255, 255, 255, 0.18); padding: 0.25rem 0.75rem; border-radius: 999px; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 0.3rem; align-items: center; }
.marquee-link:hover { color: #fff; background: rgba(255, 255, 255, 0.3); }
.marquee-pause { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; cursor: pointer; }
.marquee-pause[aria-pressed="true"] { background: #fff; color: #1d4ed8; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes hue-slide { to { background-position: 300% 0; } }

.site-notice { display: flex; gap: 0.6rem; align-items: center; justify-content: center; padding: 0.65rem 1rem; font-weight: 600; text-align: center; }
.notice-info { background: #13254a; color: #dbeafe; }
.notice-success { background: #0f3b2e; color: #d1fae5; }
.notice-warning { background: #4a3410; color: #fef3c7; }

/* ---------------------------------------------------------------------------------- footer --- */
.site-footer { margin-top: 5rem; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg) 0%, #05070b 100%); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: minmax(240px, 1.1fr) 2.4fr; gap: 3rem; }
.footer-brand .logo { margin-bottom: 0.5rem; }
.powered { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); margin: 0 0 1rem; }
.powered a { display: inline-flex; align-items: center; gap: 0.2rem; color: #e2e8f0; font-weight: 800; text-decoration: none; letter-spacing: 0.02em; }
.footer-tagline { color: #c9d2e0; max-width: 34ch; }
.secure-note { display: flex; gap: 0.5rem; align-items: center; color: var(--success); font-size: 0.88rem; font-weight: 600; }
.footer-socials { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #cbd5e1; background: var(--surface-2); border: 1px solid var(--border); transition: color 0.2s, transform 0.2s; }
.footer-socials a:hover { color: #fff; transform: translateY(-2px); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-title { font-size: 0.95rem; font-weight: 800; color: #fff; margin: 0 0 0.9rem; letter-spacing: 0; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-cols a { color: #aab4c5; text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: #98a2b4; font-size: 0.83rem; display: grid; gap: 0.5rem; }
.footer-bottom p { margin: 0; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.5rem !important; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------------------- cookie consent --- */
.consent { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-inner { pointer-events: auto; width: min(980px, 100%); display: flex; gap: 1.25rem; align-items: center; background: rgba(14, 19, 28, 0.97); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.consent h2 { font-size: 1.05rem; display: flex; gap: 0.5rem; align-items: center; margin: 0 0 0.3rem; }
.consent p { margin: 0; color: #c7d0de; font-size: 0.92rem; }
.consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
@media (max-width: 760px) { .consent-inner { flex-direction: column; align-items: stretch; } .consent-actions { flex-direction: column; } }

/* ---------------------------------------------------------------------- accessibility menu --- */
.a11y-fab { position: fixed; z-index: 80; left: 1rem; bottom: 1rem; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #1d4ed8; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(29, 78, 216, 0.5); transition: transform 0.2s var(--ease); }
.a11y-fab:hover { transform: scale(1.06); }
body:has(.consent:not([hidden])) .a11y-fab { bottom: 7.5rem; }
.a11y-panel { position: fixed; z-index: 100; left: 1rem; bottom: 1rem; width: min(400px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; background: #0f1522; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #0f1522; }
.a11y-head h2 { margin: 0; font-size: 1.15rem; display: flex; gap: 0.5rem; align-items: center; }
.a11y-body { padding: 1rem; }
.a11y-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.4rem 0 0.9rem; font-weight: 700; }
.a11y-stepper { display: flex; align-items: center; gap: 0.5rem; }
.a11y-stepper output { min-width: 3.5rem; text-align: center; font-weight: 800; }
.a11y-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.a11y-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; min-height: 78px; padding: 0.6rem; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.88rem; cursor: pointer; text-align: center; transition: border-color 0.2s, background 0.2s; }
.a11y-opt:hover { border-color: rgba(96, 165, 250, 0.6); }
.a11y-opt[aria-pressed="true"] { background: rgba(37, 99, 235, 0.28); border-color: #60a5fa; color: #fff; box-shadow: inset 0 0 0 1px #60a5fa; }
.a11y-foot { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }
.reading-guide { position: fixed; left: 0; right: 0; height: 12px; background: rgba(250, 204, 21, 0.35); border-top: 2px solid #facc15; border-bottom: 2px solid #facc15; pointer-events: none; z-index: 120; display: none; }
html.a11y-guide .reading-guide { display: block; }

/* Accessibility modes (set by a11y.js on <html>). */
html.a11y-contrast { --bg: #000; --bg-2: #000; --surface: #000; --surface-2: #0a0a0a; --surface-3: #141414; --text: #fff; --muted: #f1f5f9; --border: #fff; --border-strong: #fff; --link: #ffeb3b; }
html.a11y-contrast body { background: #000; }
html.a11y-contrast * { text-shadow: none !important; box-shadow: none !important; }
html.a11y-contrast a { color: #ffeb3b !important; }
html.a11y-contrast .btn-primary { background: #ffeb3b !important; color: #000 !important; }
html.a11y-contrast .hero-canvas, html.a11y-contrast .hero-glow, html.a11y-contrast .gradient-text { background: none !important; -webkit-text-fill-color: currentColor !important; }
html.a11y-light { --bg: #f8fafc; --bg-2: #fff; --surface: #fff; --surface-2: #f1f5f9; --surface-3: #e2e8f0; --text: #0f172a; --muted: #334155; --border: rgba(15, 23, 42, 0.2); --border-strong: rgba(15, 23, 42, 0.35); --link: #1d4ed8; color-scheme: light; }
html.a11y-light body { background: #f8fafc; color: #0f172a; }
html.a11y-light body *:not(svg, svg *, img, .btn-primary, .btn-primary *, .cart-count, .promo-banner, .promo-banner *, .cta-inner, .cta-inner *, .toast, .toast *, .a11y-fab, .a11y-fab *, .chip-link[aria-current], .chip-link[aria-current] *, .bar-chart *) { color: #0f172a !important; text-shadow: none !important; }
html.a11y-light body :is(div, section, header, footer, aside, nav, article, pre, code, kbd, table, thead, th, td, details, summary, ul, ol, li, dl, form, fieldset, input, select, textarea, button, a, span, p, label):not(.btn-primary, .cart-count, .promo-banner, .promo-banner *, .cta-inner, .cta-inner *, .toast, .toast *, .a11y-fab, .product-media, .product-media *, .gallery-main, .thumb, .bar-chart, .bar-chart *, .chip-link[aria-current], .skip-link, .reading-guide) { background-color: transparent !important; background-image: none !important; box-shadow: none !important; }
html.a11y-light :is(.site-header, .a11y-panel, .consent-inner, .card, .panel, .product-card, .feature, .buy-box, .cart-summary, .product-facts, .code-block, .docs-sidebar, .admin-side, .search-dialog-box, .faq-item, .review-card, .stat, .step, input, select, textarea, .btn-ghost, .btn-icon, .chip, .chip-link, .tags li, .badge) { background-color: #fff !important; border-color: rgba(15, 23, 42, 0.35) !important; }
html.a11y-light :is(.site-header, .docs-sidebar, .admin-side) { border-bottom: 1px solid rgba(15, 23, 42, 0.2); }
html.a11y-light a:not(.btn, .brand, .chip-link, .product-link, .admin-side nav a, .docs-nav a), html.a11y-light :is(.eyebrow, .doc-eyebrow, .product-cta, .logo-text span) { color: #1d4ed8 !important; }
html.a11y-light .btn-primary { background: #1d4ed8 !important; color: #fff !important; border-color: #1d4ed8 !important; }
html.a11y-light .chip-link[aria-current], html.a11y-light .admin-side nav a[aria-current="page"], html.a11y-light .docs-nav a[aria-current="page"] { background: #dbeafe !important; color: #1e3a8a !important; }
html.a11y-light .gradient-text { background: none !important; -webkit-text-fill-color: currentColor !important; }
html.a11y-light .hero-canvas, html.a11y-light .hero-glow, html.a11y-light .orbit { opacity: 0.12; }
html.a11y-light .secure-note, html.a11y-light .secure-note * { color: #166534 !important; }
html.a11y-light .save, html.a11y-light .discount { color: #92400e !important; }
html.a11y-mono { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: rgba(250, 204, 21, 0.18); outline: 1px solid rgba(250, 204, 21, 0.5); }
html.a11y-readable body, html.a11y-readable * { font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; letter-spacing: 0.01em !important; }
html.a11y-readable code, html.a11y-readable pre { font-family: var(--mono) !important; }
html.a11y-spacing body { line-height: 1.9 !important; word-spacing: 0.16em; letter-spacing: 0.06em; }
html.a11y-spacing p { margin-bottom: 1.5em; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l14 9-6.5 1.5L15 20l-3 1.5-3.5-7.5L4 18z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-focus :focus, html.a11y-focus :focus-visible { outline: 4px solid #facc15 !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.35) !important; }
html.a11y-noimg img:not(.keep), html.a11y-noimg .product-media, html.a11y-noimg .hero-visual, html.a11y-noimg canvas { visibility: hidden !important; }
html.a11y-headings h1, html.a11y-headings h2, html.a11y-headings h3, html.a11y-headings h4 { outline: 2px dashed #60a5fa; outline-offset: 4px; background: rgba(59, 130, 246, 0.12); }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------------- shared bits --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 1rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); color: #fff; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.stars { display: inline-flex; gap: 2px; color: #475569; }
.stars .on { color: #fbbf24; }
.stars .on .icon { fill: currentColor; }
.empty-panel { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); }
.empty-panel .icon { color: #93c5fd; margin-bottom: 0.75rem; }
.empty-panel h2, .empty-panel h3 { color: #fff; }
.error-page { padding: 6rem 0 4rem; text-align: center; }
.error-page .btn-row { justify-content: center; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 1rem 0 1.5rem; }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .details { grid-template-columns: 1fr; } .details dd { margin-bottom: 0.6rem; } }
