/* =====================================================================
   GTA6PC.download: "Tactical Hardware / Vice City Dark" design system
   ===================================================================== */
:root {
  /* Surfaces */
  --bg: #0b0d13;
  --bg-2: #0f121a;
  --surface: #131722;
  --surface-2: #181d2b;
  --border: #22283a;
  --border-2: #2e3650;
  /* Text */
  --text: #f3f4f6;
  --text-2: #9ca3af;
  --text-3: #8a93a3;
  /* Functional accents */
  --cyan: #00e5ff;      /* tools, technical links */
  --pink: #ff2a85;      /* Vice City highlights */
  --amber: #f59e0b;     /* not announced / warnings */
  --green: #10b981;     /* safety verifications */
  --red: #f43f5e;       /* high risk */
  --cyan-a: rgba(0, 229, 255, 0.1);
  --pink-a: rgba(255, 42, 133, 0.12);
  --amber-a: rgba(245, 158, 11, 0.12);
  --green-a: rgba(16, 185, 129, 0.12);
  --red-a: rgba(244, 63, 94, 0.12);
  --on-accent: #06080d;

  /* Type */
  --f-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Scale */
  --r-xs: 4px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --header-h: 64px;
  --ticker-h: 32px;
  --wrap: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--cyan); color: var(--on-accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--text-2); }
.i { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-s); background: var(--cyan); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- components: badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor;
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600; line-height: 1.5;
  letter-spacing: 0.02em; white-space: nowrap; vertical-align: middle;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--green); background: var(--green-a); border-color: rgba(16, 185, 129, 0.35); }
.badge-warn { color: var(--amber); background: var(--amber-a); border-color: rgba(245, 158, 11, 0.35); }
.badge-info { color: var(--cyan); background: var(--cyan-a); border-color: rgba(0, 229, 255, 0.3); }
.badge-vc { color: var(--pink); background: var(--pink-a); border-color: rgba(255, 42, 133, 0.35); }
.badge-risk { color: var(--red); background: var(--red-a); border-color: rgba(244, 63, 94, 0.35); }

/* ---------- components: buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 20px; border-radius: var(--r-s);
  border: 1px solid var(--cyan); background: var(--cyan); color: var(--on-accent);
  font-family: var(--f-display); font-weight: 700; font-size: 0.975rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  touch-action: manipulation;
}
.btn:hover { box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.18); }
.btn:active { transform: translateY(1px); }
.btn.ghost, .btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn.ghost:hover, .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: none; }
.btn-vc { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-vc:hover { box-shadow: 0 0 0 4px rgba(255, 42, 133, 0.22); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 0.9rem; }

.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2);
  font-family: var(--f-mono); font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.chip:hover { border-color: var(--cyan); color: var(--text); }
.chip[aria-pressed='true'] { border-color: var(--cyan); background: var(--cyan-a); color: var(--cyan); }

/* ---------- components: cards (subtle glass) ---------- */
.panel, .card, .tool-link, .status, .fact, .social-follow {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
}
.panel { padding: 24px; }

/* =====================================================================
   Ticker + header
   ===================================================================== */
.ticker {
  height: var(--ticker-h); background: #07090d; border-bottom: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-2);
}
.ticker .wrap { height: 100%; display: flex; align-items: center; gap: 18px; overflow: hidden; white-space: nowrap; }
.ticker b { color: var(--text); font-weight: 600; }
.ticker .t-live { color: var(--green); display: inline-flex; align-items: center; gap: 7px; }
.ticker .t-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
.ticker .t-warn b { color: var(--amber); }
@media (max-width: 640px) { .ticker .t-hide-s { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 13, 19, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-2); position: relative; overflow: hidden; }
.brand-mark::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--pink), var(--cyan)); }
.brand-mark span { font-family: var(--f-mono); font-weight: 800; font-size: 1rem; color: var(--text); }
.brand em { font-style: normal; color: var(--cyan); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 8px 10px; border-radius: var(--r-s);
  color: var(--text-2); font-size: 0.9rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current='page'] { color: var(--cyan); background: var(--cyan-a); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-s); border: 1px solid var(--border-2); background: var(--surface); }
.menu-btn .i { width: 22px; height: 22px; }
.menu-btn .ic-close { display: none; }
.menu-open .menu-btn .ic-open { display: none; }
.menu-open .menu-btn .ic-close { display: block; }

@media (max-width: 1099.98px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); margin: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 10px var(--gutter) 24px; background: rgba(11, 13, 19, 0.98); border-bottom: 1px solid var(--border);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0s 0.18s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s, transform 0.18s var(--ease); }
  .nav ul { flex-direction: column; }
  .nav a { padding: 13px 12px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--border); border-radius: 0; }
  .menu-open body { overflow: hidden; }
}

/* =====================================================================
   Page sections
   ===================================================================== */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-head { display: grid; gap: 14px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); font-weight: 700; }
.section-head p { color: var(--text-2); max-width: 44rem; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; } .section-head p { justify-self: end; } }
.kicker { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--cyan); }

/* =====================================================================
   HOME: hero + status monitor
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; border-bottom: 1px solid var(--border); isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(255, 42, 133, 0.16), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(0, 229, 255, 0.1), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent 75%);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 80px 0 88px; } .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.hero .eyebrow { font-family: var(--f-mono); font-size: 0.78rem; color: var(--text-2); display: inline-flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 7.5vw, 4.9rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero-sub { margin-top: 20px; max-width: 38rem; font-size: 1.125rem; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.monitor { border-radius: var(--r-l); overflow: hidden; background: #0d1018; border: 1px solid var(--border-2); box-shadow: 0 30px 80px -40px rgba(0, 229, 255, 0.35); font-family: var(--f-mono); font-size: 0.86rem; }
.monitor-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 0.75rem; }
.monitor-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.monitor-bar i:first-child { background: var(--pink); }
.monitor-bar span { margin-left: 6px; letter-spacing: 0.06em; }
.monitor-bar .m-live { margin-left: auto; color: var(--green); display: inline-flex; gap: 6px; align-items: center; }
.monitor-bar .m-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.monitor-rows { padding: 6px 16px 4px; }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.m-row:last-child { border-bottom: 0; }
.m-key { color: var(--text-2); }
.m-val { color: var(--text); font-weight: 600; text-align: right; }
.m-count { padding: 14px 16px 16px; border-top: 1px solid var(--border); background: var(--bg-2); }
.m-count-label { color: var(--text-2); font-size: 0.75rem; }
.m-digits { display: flex; gap: 6px; margin-top: 8px; }
.m-digits div { flex: 1; text-align: center; padding: 8px 0 6px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--border); }
.m-digits b { display: block; font-size: 1.55rem; line-height: 1.1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.m-digits small { font-size: 0.68rem; color: var(--text-2); }
.m-shield { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border); background: rgba(16, 185, 129, 0.06); }
.m-shield .i { width: 28px; height: 28px; color: var(--green); }
.m-shield b { display: block; color: var(--green); font-size: 0.95rem; }
.m-shield span { color: var(--text-2); font-size: 0.78rem; font-family: var(--f-body); }
.m-foot { padding: 8px 16px; color: var(--text-3); font-size: 0.72rem; border-top: 1px solid var(--border); }

/* Launch-day strip */
.launch-strip { border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(255, 42, 133, 0.1), rgba(0, 229, 255, 0.06)); }
.launch-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 14px; }
.launch-strip p { color: var(--text); font-weight: 500; }
.launch-strip a { color: var(--cyan); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(0, 229, 255, 0.4); }
.launch-strip a:hover { border-bottom-color: var(--cyan); }

/* Quick answer */
.quick { display: grid; gap: 18px; }
.answer { border-left: 4px solid var(--amber); padding: 28px; border-radius: var(--r-m); background: linear-gradient(90deg, rgba(245, 158, 11, 0.07), transparent 60%), var(--surface); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.answer h2 { margin-top: 10px; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.answer > p { margin-top: 12px; max-width: 46rem; font-size: 1.075rem; }
.answer .read { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--f-mono); font-size: 1.05rem; font-weight: 700; }
.fact span { color: var(--text-2); font-size: 0.875rem; }
.fact.is-ok b { color: var(--green); }
.fact.is-warn b { color: var(--amber); }
.fact.is-vc b { color: var(--pink); }
.shield-banner { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; border-radius: var(--r-m); border: 1px solid rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.07); }
.shield-banner .i { width: 30px; height: 30px; color: var(--green); margin-top: 2px; }
.shield-banner strong { color: var(--green); }

/* Guide grid */
.guide-grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.g-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease), background-color 0.2s; }
.g-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.g-card:hover .g-icon { color: var(--cyan); border-color: rgba(0, 229, 255, 0.4); }
.g-card .g-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); transition: color 0.2s, border-color 0.2s; }
.g-icon .i { width: 22px; height: 22px; }
.g-tag { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; }
.g-card h3 { font-size: 1.2rem; font-weight: 700; }
.g-card p { color: var(--text-2); font-size: 0.95rem; flex: 1; }
.g-card .read { margin-top: 4px; }
.g-card.is-featured { border-color: rgba(255, 42, 133, 0.5); background: linear-gradient(160deg, rgba(255, 42, 133, 0.1), transparent 50%), var(--surface); }
.g-card.is-featured .g-icon { color: var(--pink); border-color: rgba(255, 42, 133, 0.45); }
.g-card .stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

/* Tool showcase */
.tool-show { display: grid; gap: 14px; }
@media (min-width: 760px) { .tool-show { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tool-show { grid-template-columns: repeat(4, 1fr); } }
.t-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); }
.t-card:hover { border-color: rgba(0, 229, 255, 0.5); transform: translateY(-3px); }
.t-prev { height: 132px; padding: 16px; border-bottom: 1px solid var(--border); background: #0d1018; font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-2); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.t-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.t-body h3 { font-size: 1.1rem; }
.t-body p { color: var(--text-2); font-size: 0.92rem; flex: 1; }
.t-open { margin-top: 8px; color: var(--cyan); font-weight: 600; font-size: 0.92rem; }
.pv-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pv-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #7af3ff); border-radius: 4px; }
.pv-big { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.pv-digits { display: flex; gap: 5px; }
.pv-digits b { flex: 1; text-align: center; padding: 6px 0; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--cyan); font-size: 1.1rem; }
.pv-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pv-risk { color: var(--red); font-weight: 700; }
.pv-meter { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; }
.tool-note-wide { margin-top: 18px; color: var(--text-2); font-size: 0.9rem; }

/* PC players should know */
.know { display: grid; gap: 14px; }
@media (min-width: 900px) { .know { grid-template-columns: repeat(3, 1fr); } }
.know .card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.know h3 { font-size: 1.15rem; }
.know p { color: var(--text-2); flex: 1; }

/* Social follow */
.social-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; margin: 28px 0; border-color: rgba(255, 42, 133, 0.35); background: linear-gradient(90deg, rgba(255, 42, 133, 0.08), transparent 70%), var(--surface); }
.social-follow strong { font-family: var(--f-display); font-size: 1.15rem; }
.social-follow p { color: var(--text-2); margin-top: 2px !important; }

/* =====================================================================
   FAQ accordion
   ===================================================================== */
.faq-wrap { max-width: 860px; }
.faq-wrap h2 { margin: 8px 0 24px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: inherit; font-family: var(--f-body); letter-spacing: 0; }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 2px; border: 0; background: none; text-align: left;
  font-size: 1.06rem; font-weight: 600; line-height: 1.4;
}
.faq-item button:hover { color: var(--cyan); }
.faq-item .chev { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-2); color: var(--cyan); transition: transform 0.25s var(--ease); }
.faq-item.is-open .chev { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 2px 20px; color: var(--text-2); max-width: 46rem; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item:not(.is-open) .faq-a > div { visibility: hidden; transition: visibility 0s 0.3s; }
@media (prefers-reduced-motion: reduce) { .faq-a, .faq-item .chev { transition: none; } }

/* =====================================================================
   Article pages
   ===================================================================== */
.crumbs { padding: 22px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 0.8rem; color: var(--text-2); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: '/'; color: var(--border-2); }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--text); }

.page-grid { display: grid; gap: 28px; padding: 22px 0 80px; }
@media (min-width: 1100px) { .page-grid.has-toc { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; } }

.toc { font-size: 0.92rem; }
.toc details { border: 1px solid var(--border); border-radius: var(--r-m); background: var(--surface); }
.toc summary { cursor: pointer; padding: 14px 16px; font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; color: var(--text-2); list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; color: var(--cyan); }
.toc details[open] summary::after { content: '−'; }
.toc ol { margin: 0; padding: 0 8px 12px; list-style: none; counter-reset: toc; }
.toc a { display: block; padding: 7px 10px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a[aria-current='true'] { color: var(--cyan); border-left-color: var(--cyan); background: var(--cyan-a); }
@media (min-width: 1100px) {
  .toc { order: 2; }
  .toc-inner { position: sticky; top: calc(var(--header-h) + 24px); }
  .toc summary { pointer-events: none; }
  .toc summary::after { display: none; }
}

.article { min-width: 0; max-width: 780px; }
.article > .kicker { display: inline-block; margin-bottom: 14px; }
.article h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.article .lead { margin-top: 16px; font-size: 1.18rem; color: var(--text); opacity: 0.9; line-height: 1.6; }
.article .meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--f-mono); font-size: 0.8rem; color: var(--text-2); }
.article h2 { margin-top: 44px; margin-bottom: 12px; font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 700; scroll-margin-top: calc(var(--header-h) + 20px); }
.article h3 { margin-top: 26px; margin-bottom: 8px; font-size: 1.2rem; }
.article p { margin: 12px 0; color: #d6d9e0; }
.article ul, .article ol { margin: 14px 0; padding-left: 22px; color: #d6d9e0; }
.article li { margin: 7px 0; padding-left: 4px; }
.article li::marker { color: var(--cyan); font-family: var(--f-mono); }
.article strong { color: var(--text); }
.article a.inline, .article p a, .article li a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(0, 229, 255, 0.4); text-underline-offset: 3px; }
.article a.inline:hover { text-decoration-color: var(--cyan); }
.article .read, .read { display: inline-flex; color: var(--cyan); font-weight: 600; text-decoration: none; }
.article .read:hover, .read:hover { text-decoration: underline; text-underline-offset: 3px; }
.article table { width: 100%; margin: 18px 0; font-size: 0.95rem; display: block; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-m); }
.article table tbody, .article table tr { width: 100%; }
.article th, .article td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.article th { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.article tr:last-child td { border-bottom: 0; }
.article td:first-child { color: var(--text); font-weight: 500; }

.notice { position: relative; margin: 22px 0; padding: 16px 18px 16px 50px; border-radius: var(--r-m); border: 1px solid rgba(0, 229, 255, 0.28); background: rgba(0, 229, 255, 0.05); color: #d6d9e0; }
.notice::before { content: 'i'; position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan); color: var(--on-accent); font-family: var(--f-mono); font-weight: 800; font-size: 0.8rem; }
.notice strong { color: var(--cyan); }
.notice.is-warn { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.06); }
.notice.is-warn::before { content: '!'; background: var(--amber); }
.notice.is-warn strong { color: var(--amber); }
.notice.is-safe { border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.06); }
.notice.is-safe::before { content: '✓'; background: var(--green); }
.notice.is-safe strong { color: var(--green); }

/* legacy content components inside articles */
.article .grid { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 680px) { .article .grid { grid-template-columns: repeat(2, 1fr); } }
.card .cardbody { padding: 20px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.card .cardbody small { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; }
.card .cardbody h3 { margin: 0; font-size: 1.15rem; }
.card .cardbody p { margin: 0; color: var(--text-2); font-size: 0.95rem; flex: 1; }
.article .card { transition: border-color 0.2s, transform 0.2s var(--ease); }
.article .card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.tool-badge { align-self: flex-start; display: inline-flex; padding: 3px 9px; border-radius: 999px; font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; color: var(--amber); background: var(--amber-a); border: 1px solid rgba(245, 158, 11, 0.35); }
.tool-links, .tools-directory { display: grid; gap: 12px; margin: 18px 0; }
@media (min-width: 640px) { .tool-links, .tools-directory { grid-template-columns: repeat(2, 1fr); } }
.tool-link { display: flex; flex-direction: column; gap: 6px; padding: 18px; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); }
.tool-link:hover { border-color: rgba(0, 229, 255, 0.5); transform: translateY(-2px); }
.tool-link b { font-family: var(--f-display); font-size: 1.08rem; color: var(--text); }
.tool-link span:not(.tool-badge) { color: var(--text-2); font-size: 0.92rem; }
.tools-directory .tool-badge { color: var(--cyan); background: var(--cyan-a); border-color: rgba(0, 229, 255, 0.3); }
.tool-note { color: var(--text-2) !important; font-size: 0.9rem; }
.tool-list li { margin: 8px 0; }

/* =====================================================================
   Tools (shared)
   ===================================================================== */
.tool { margin: 28px 0 8px; padding: 0; overflow: hidden; border-color: var(--border-2); }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-family: var(--f-mono); font-size: 0.78rem; color: var(--text-2); }
.tool-body { padding: 20px 18px; display: grid; gap: 20px; }
@media (min-width: 720px) { .tool-body { padding: 24px; } }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.field .hint { color: var(--text-2); font-size: 0.82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inp-row { display: flex; gap: 8px; }
.inp, .sel, .txt {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-s);
  border: 1px solid var(--border-2); background: #0d1018; color: var(--text);
  font-family: var(--f-mono); font-size: 1rem;
}
.sel { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.inp-row .inp { flex: 1; }
.inp-row .sel { width: auto; flex: none; }
.txt { min-height: 96px; resize: vertical; line-height: 1.5; }
.inp:focus, .sel:focus, .txt:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2); }
.two { display: grid; gap: 20px; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }

.result { border-radius: var(--r-m); border: 1px solid var(--border); background: #0d1018; padding: 20px; }
.result-label { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; }
.result-big { margin-top: 6px; font-family: var(--f-mono); font-size: clamp(2rem, 7vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.result-sub { margin-top: 6px; color: var(--text-2); font-size: 0.92rem; }
.bars { display: grid; gap: 10px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 78px 1fr 92px; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 0.8rem; color: var(--text-2); }
.bar-row .track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 5px; background: var(--border-2); transform-origin: 0 50%; transition: transform 0.4s var(--ease); }
.bar-row.is-you { color: var(--text); }
.bar-row.is-you .fill { background: linear-gradient(90deg, var(--cyan), #7af3ff); }
.bar-row .t { text-align: right; color: var(--text); }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-status { font-size: 0.875rem; color: var(--green); }

/* countdown tool */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd div { padding: 14px 4px 10px; text-align: center; border-radius: var(--r-m); background: #0d1018; border: 1px solid var(--border); }
.cd b { display: block; font-family: var(--f-mono); font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.cd small { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--text-2); }
.kv { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #0d1018; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--text-2); font-size: 0.92rem; }
.kv b { font-family: var(--f-mono); font-size: 0.92rem; text-align: right; }

/* safety checker */
.risk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.risk-level { font-family: var(--f-mono); font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.risk-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; }
.risk-meter span { height: 8px; border-radius: 4px; background: var(--surface-2); }
.result[data-risk='low'] .risk-level { color: var(--green); }
.result[data-risk='low'] .risk-meter span:nth-child(1) { background: var(--green); }
.result[data-risk='medium'] .risk-level { color: var(--amber); }
.result[data-risk='medium'] .risk-meter span:nth-child(-n + 2) { background: var(--amber); }
.result[data-risk='high'] .risk-level { color: var(--red); }
.result[data-risk='high'] .risk-meter span { background: var(--red); }
.result[data-risk='high'] { border-color: rgba(244, 63, 94, 0.45); }
.findings { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.findings li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--border); font-size: 0.93rem; color: #d6d9e0; }
.findings .badge { flex: none; margin-top: 1px; }
.result-foot { margin-top: 14px; color: var(--text-2); font-size: 0.875rem; }

/* specs estimator */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 auto; min-height: 44px; padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--border-2); background: #0d1018; text-align: left; display: flex; flex-direction: column; gap: 1px; transition: border-color 0.15s, background-color 0.15s; }
.seg button b { font-size: 0.92rem; }
.seg button small { font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-2); }
.seg button:hover { border-color: var(--cyan); }
.seg button[aria-pressed='true'] { border-color: var(--cyan); background: var(--cyan-a); }
.seg button[aria-pressed='true'] b { color: var(--cyan); }
.ready { display: grid; gap: 10px; margin-top: 14px; }
.ready-row { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; }
.ready-row .res { font-family: var(--f-mono); font-weight: 700; }
.ready-row .track { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.ready-row .fill { display: block; height: 100%; border-radius: 6px; transform-origin: 0 50%; transition: transform 0.4s var(--ease), background-color 0.2s; }
.ready-row[data-level='ready'] .fill { background: var(--green); }
.ready-row[data-level='borderline'] .fill { background: var(--amber); }
.ready-row[data-level='limited'] .fill { background: var(--red); }
.advice { margin: 14px 0 0; padding-left: 20px; color: #d6d9e0; font-size: 0.93rem; }
.advice li { margin: 6px 0; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { border-top: 1px solid var(--border); background: #07090d; padding: 56px 0 28px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.foot-grid p { margin-top: 12px; color: var(--text-2); font-size: 0.92rem; max-width: 26rem; }
.foot-title { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; margin-bottom: 10px; }
.foot-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: #c9ced8; text-decoration: none; font-size: 0.93rem; }
.foot-links a:hover { color: var(--cyan); }
.disclaimer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.85rem; line-height: 1.7; }

/* Mobile sticky CTA (home) */
.mobile-cta { display: none; }
@media (max-width: 719.98px) {
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.8); }
  .has-mobile-cta .site-footer { padding-bottom: 90px; }
}

@media print {
  .ticker, .site-header, .toc, .mobile-cta, .share-actions { display: none !important; }
  body { background: #fff; color: #000; }
}
