/*
 * ingati.com — the whole stylesheet.
 *
 * Hand-written, no framework: the site used to load the Tailwind Play CDN,
 * which compiles styles in the browser and needs a CSP with unsafe-eval.
 * Tokens follow the redesign plan §8; the page follows the visitor's system
 * light/dark setting. No inline styles anywhere — the CSP has no
 * 'unsafe-inline' for styles either.
 */

/* ---- Fonts: self-hosted Latin subsets, variable weights ---------------- */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ----------------------------------------------------------- */

:root {
  --paper: #F6F6F9;
  --surface: #FFFFFF;
  --sunk: #EDEDF3;
  --ink: #16151F;
  --ink-2: #383647;
  --muted: #5B586C;
  --rule: #DFDEE8;
  --rule-strong: #C4C2D3;
  --accent: #635CDB;
  --accent-ink: #4A42C2;
  --accent-wash: #ECEBFB;
  --on-accent: #FFFFFF;
  --code-bg: #1C1B27;
  --code-ink: #E9E8F2;
  --code-dim: #9D9AB3;
  --critical: #B3261E; --critical-wash: #FBE8E6;
  --error: #AE440B;    --error-wash: #FCEDE3;
  --warning: #825600;  --warning-wash: #FAF0D9;
  --info: #1B5FBF;     --info-wash: #E6EFFB;
  --pass: #28704A;     --pass-wash: #E3F2E9;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111018;
    --surface: #1A1923;
    --sunk: #24232F;
    --ink: #ECEBF3;
    --ink-2: #CFCDDC;
    --muted: #A3A0B5;
    --rule: #2E2C3B;
    --rule-strong: #46445B;
    --accent: #8C86F2;
    --accent-ink: #ADA8FF;
    --accent-wash: #24223C;
    --on-accent: #12111A;
    --code-bg: #0B0A10;
    --code-ink: #E9E8F2;
    --code-dim: #8E8BA3;
    --critical: #FF8A80; --critical-wash: #3A1D1C;
    --error: #FFA469;    --error-wash: #3A2417;
    --warning: #F0C45A;  --warning-wash: #352B14;
    --info: #79AEFF;     --info-wash: #182A45;
    --pass: #74D39C;     --pass-wash: #15311F;
    color-scheme: dark;
  }
}

/* ---- Base ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.024em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.016em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
h4 { font-size: 1rem; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
strong { font-weight: 700; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--sunk);
  color: var(--ink-2);
  padding: 1px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 14px 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0;
}
pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
thead th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; background: var(--sunk);
}

/* ---- Utilities -------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.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;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.mono { font-family: var(--font-mono); }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 3px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---- Buttons and chips ------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 11px 18px; border-radius: 3px; border: 1px solid var(--rule-strong);
  color: var(--ink); background: transparent; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-sm { font-size: 13.5px; padding: 7px 12px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.sev {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px;
  white-space: nowrap; line-height: 1.5; vertical-align: 1px;
}
.sev-critical { color: var(--critical); background: var(--critical-wash); }
.sev-error    { color: var(--error);    background: var(--error-wash); }
.sev-warning  { color: var(--warning);  background: var(--warning-wash); }
.sev-info     { color: var(--info);     background: var(--info-wash); }
.sev-pass     { color: var(--pass);     background: var(--pass-wash); }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; padding: 1px 7px;
  border-radius: 3px; border: 1px solid var(--rule-strong); color: var(--ink-2); white-space: nowrap;
}

/* ---- Header ----------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.wordmark span { color: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.header-cta { display: flex; gap: 8px; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--rule-strong); border-radius: 3px;
  padding: 8px 10px; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header .bar { flex-wrap: wrap; }
  .nav { order: 3; flex-basis: 100%; display: none; padding-bottom: 14px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; padding: 8px 0; font-size: 17px; }
  .header-cta .btn:not(.btn-primary) { display: none; }
}

/* ---- Sections --------------------------------------------------------- */

.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { border-top: 1px solid var(--rule); }
.section.alt { background: var(--surface); }
.section-head { max-width: 70ch; margin-bottom: 28px; }
.section-head > * + * { margin-top: 10px; }
.section-head .sub { color: var(--ink-2); font-size: 1.07rem; }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

.page-head { padding-block: clamp(40px, 6vw, 72px) 8px; }
.page-head > * + * { margin-top: 14px; }

/* ---- Hero ------------------------------------------------------------- */

.hero { display: grid; gap: 36px; align-items: center; padding-block: clamp(36px, 6vw, 80px); }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero-copy > * + * { margin-top: 18px; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.028em; }

.report { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.report-head {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--rule); font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.report ul { list-style: none; margin: 0; padding: 0; }
.frow { border-bottom: 1px solid var(--rule); }
.frow a, .frow > div {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 3px 12px; padding: 10px 14px;
  color: var(--ink); text-decoration: none; align-items: baseline;
}
.frow a:hover { background: var(--accent-wash); }
.frow .sev { justify-self: start; }
.frow .title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.frow code { grid-column: 2; font-size: 11.5px; background: transparent; padding: 0; color: var(--muted); justify-self: start; }
.report-foot { padding: 10px 14px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* The one piece of motion: report rows arrive most severe first. */
@media (prefers-reduced-motion: no-preference) {
  .report.arrive .frow { opacity: 0; transform: translateY(6px); animation: arrive .45s ease-out forwards; }
  .report.arrive .frow:nth-child(1) { animation-delay: .10s; }
  .report.arrive .frow:nth-child(2) { animation-delay: .25s; }
  .report.arrive .frow:nth-child(3) { animation-delay: .40s; }
  .report.arrive .frow:nth-child(4) { animation-delay: .55s; }
  .report.arrive .frow:nth-child(5) { animation-delay: .70s; }
  .report.arrive .frow:nth-child(n+6) { animation-delay: .85s; }
}
@keyframes arrive { to { opacity: 1; transform: none; } }

.proof {
  list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; gap: 10px 28px;
  border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2);
}
.proof b { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-right: 5px; }

/* ---- Cards, pillars, steps -------------------------------------------- */

.grid-3 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 22px;
}
.card > * + * { margin-top: 10px; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li + li { margin-top: 4px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 14px; }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 6px;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--pass); font-weight: 700; }
.not-list li::before { content: "–"; color: var(--muted); }

/* ---- Category grids and finding lists --------------------------------- */

.hub-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hub-grid a {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.hub-grid a:hover { border-color: var(--accent); }

.finding-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.finding-list li { border-bottom: 1px solid var(--rule); }
.finding-list a {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 2px 12px; padding: 11px 4px;
  color: var(--ink); text-decoration: none; align-items: baseline;
}
.finding-list a:hover { background: var(--accent-wash); }
.finding-list .title { font-weight: 700; }
.finding-list code { grid-column: 2; font-size: 11.5px; background: transparent; padding: 0; color: var(--muted); justify-self: start; }
.finding-list .sev { justify-self: start; }

/* ---- Pricing ---------------------------------------------------------- */

.currency { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.currency legend { float: left; margin-right: 10px; }
.currency button {
  font-family: var(--font-mono); font-size: 13px; padding: 6px 11px; border-radius: 3px;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); cursor: pointer;
}
.currency button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.plans { display: grid; gap: 18px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.plan.recommended { border: 2px solid var(--accent); }
.plan .badge { align-self: flex-start; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -0.02em; }
.price small { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; }
.plan .btn { margin-top: auto; justify-content: center; }
[data-currency]:not(.show) { display: none; }

/* ---- FAQ -------------------------------------------------------------- */

.faq { max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-family: var(--font-mono); font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .answer-text { padding: 0 0 18px; color: var(--ink-2); max-width: 72ch; }
.faq-topic + .faq-topic { margin-top: 44px; }

/* ---- Finding pages ---------------------------------------------------- */

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule-strong); }
.crumbs a { color: var(--muted); }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; color: var(--muted); }

.finding-layout { display: grid; gap: 36px; padding-block: 28px 72px; }
@media (min-width: 1000px) { .finding-layout { grid-template-columns: minmax(0, 1fr) 280px; } }
.finding-main { max-width: 72ch; min-width: 0; }
.finding-main > * + * { margin-top: 18px; }
.finding-main h2 { font-size: 1.35rem; margin-top: 34px; }
.finding-aside { display: grid; gap: 16px; align-content: start; font-size: 15px; min-width: 0; }
.finding-aside .card { padding: 16px 18px; }

.answer { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 6px; padding: 16px 18px; }
.answer > * + * { margin-top: 6px; }
.notice { background: var(--sunk); border-radius: 6px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); }

.code-tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: -1px; }
.code-tabs [role="tab"] {
  font-family: var(--font-mono); font-size: 12px; padding: 6px 11px; border: 1px solid var(--rule);
  border-bottom: 0; border-radius: 5px 5px 0 0; background: var(--surface); color: var(--muted); cursor: pointer;
}
.code-tabs [role="tab"][aria-selected="true"] { background: var(--code-bg); color: var(--code-ink); border-color: var(--code-bg); }
.code-tabs pre { border-top-left-radius: 0; }
.code-block { position: relative; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; font-family: var(--font-mono); font-size: 11.5px;
  padding: 4px 9px; border-radius: 3px; border: 1px solid var(--code-dim); background: var(--code-bg);
  color: var(--code-ink); cursor: pointer;
}

.prompt { border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-wash); padding: 16px 18px; }
.prompt > * + * { margin-top: 10px; }
.prompt .eyebrow { color: var(--accent-ink); }
.prompt blockquote { margin: 0; font-size: 15.5px; }

.cta-band {
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px;
}
.cta-band p { font-weight: 700; max-width: 60ch; }

/* ---- Long-form text --------------------------------------------------- */

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 38px; font-size: 1.45rem; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose img { border-radius: 6px; }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--rule-strong); color: var(--ink-2); }
.prose pre { margin-block: 18px; }
.legal { white-space: pre-line; }

/* ---- Forms ------------------------------------------------------------ */

.form { max-width: 620px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 4px; padding: 10px 12px; width: 100%;
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.hint { font-size: 14px; color: var(--muted); }
.form-error { color: var(--critical); font-size: 14.5px; }
.form-ok { background: var(--pass-wash); color: var(--ink); border-radius: 6px; padding: 16px 18px; }
/* SpamGuard's honeypot must stay out of sight and out of the tab order. */
.sg-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Blog ------------------------------------------------------------- */

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-list article { height: 100%; }
.post-list :is(h2, h3) { font-size: 1.2rem; }
.post-list :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.post-list :is(h2, h3) a:hover { text-decoration: underline; }
.pager { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 28px; align-items: baseline; }
.post-hero { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* ---- Footer ----------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--rule); background: var(--surface); padding-block: 48px 36px; margin-top: 0; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .footer-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer .hubs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); column-gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal-line { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---- 404 -------------------------------------------------------------- */

.not-found { padding-block: clamp(48px, 8vw, 96px); }
.not-found > * + * { margin-top: 18px; }

@media print {
  .site-header, .site-footer, .cta-band, .copy-btn, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- CVE pages -------------------------------------------------------- */

.cve-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cve-tiles li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; }
.cve-tiles b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.cve-tiles span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

.cve-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cve-list li { border-bottom: 1px solid var(--rule); }
.cve-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 4px;
  color: var(--ink); text-decoration: none; align-items: baseline;
}
.cve-list a:hover { background: var(--accent-wash); }
.cve-list .sev, .cve-list .sev + .small { margin-right: 6px; }
.cve-list .id { font-family: var(--font-mono); font-weight: 700; font-size: 14.5px; margin-left: 6px; }
.cve-list .when { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cve-list .line { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; }
.cve-list .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }

.cve-top-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: baseline; justify-content: space-between; }
.cve-toggle { display: flex; gap: 6px; }
.cve-toggle a {
  font-family: var(--font-mono); font-size: 13px; padding: 5px 10px; border-radius: 3px;
  border: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none;
}
.cve-toggle a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.cve-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: bar; }
.cve-bars li { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) minmax(120px, auto); gap: 12px; align-items: center; font-size: 14.5px; }
.cve-bars li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cve-bars li a:hover { color: var(--accent-ink); text-decoration: underline; }
.cve-bars svg { width: 100%; height: 14px; display: block; }
.cve-bars rect { fill: var(--accent); }
.cve-bars rect.crit { fill: var(--critical); }
.cve-bars .count { font-size: 13.5px; color: var(--ink-2); }
.cve-bars .count b { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
@media (max-width: 560px) { .cve-bars li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.cve-years svg { width: 100%; height: auto; display: block; max-width: 760px; }
.cve-years rect { fill: var(--accent); opacity: .72; }
.cve-years rect.current { opacity: 1; }
.cve-years text { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-2); }
.cve-years text.axis { fill: var(--muted); font-size: 11px; }

.cve-products, .cve-refs, .cve-inline-list { margin: 0; padding-left: 1.1em; }
.cve-products li + li, .cve-refs li + li { margin-top: 5px; }
.cve-refs a { word-break: break-all; }
.cve-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cve-tags .tag { text-decoration: none; }
.cve-tags .tag:hover { border-color: var(--accent); color: var(--ink); }
