/* Warden article pages.
   Self-contained on purpose: these are text pages that need to rank, so they
   carry their own ~10 KB of CSS rather than the 96 KB the landing page needs.
   Tokens mirror warden/style.css so the two surfaces stay one product. */

:root {
    --bg: #070a0d;
    --bg-soft: #0b1014;
    --panel: #10171b;
    --panel-2: #151f23;
    --line: rgba(184, 212, 203, 0.13);
    --line-strong: rgba(184, 212, 203, 0.24);
    --text: #edf4f1;
    --muted: #98a9a4;
    --faint: #66746f;
    --mint: #48d4b1;
    --mint-soft: #8ae8d1;
    --mint-dark: #092a22;
    --gold: #d7b56a;
    --red: #ff5f68;
    --font: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --display: 'Manrope', system-ui, sans-serif;
    --mono: 'Space Mono', ui-monospace, monospace;
    --reading: min(720px, calc(100vw - 44px));

    /* Type scale, mirroring warden/style.css. */
    --fs-h2: clamp(2rem, 3.4vw, 3rem);
    --fs-h3: clamp(1.45rem, 1.95vw, 1.8rem);
    --fs-h4: 1.25rem;
    --fs-h5: 1.0625rem;
    --fs-lead: 1.0625rem;
    --fs-body: .9375rem;
    --fs-sm: .875rem;
    --fs-xs: .8125rem;
    --fs-label: .6875rem;
    --fs-micro: .5625rem;
}

* { 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(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

.reading { width: var(--reading); margin-inline: auto; }

a { color: var(--mint); text-decoration-color: rgba(72, 212, 177, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mint); }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    padding: 10px 16px; background: var(--mint); color: #04120e; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, summary):focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- nav ---------- */

.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 10, 13, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    width: min(1160px, calc(100vw - 44px)); margin-inline: auto;
    height: 62px; display: flex; align-items: center; gap: 18px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.nav-brand img { width: 24px; height: 24px; display: block; }
.nav-brand b { font-family: var(--display); font-weight: 800; letter-spacing: .14em; font-size: var(--fs-xs); }
.nav-brand span {
    font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .14em;
    color: var(--mint); border: 1px solid rgba(72, 212, 177, .34);
    border-radius: 4px; padding: 2px 5px;
}
.nav-studio { margin-left: 4px; font-size: var(--fs-xs); color: var(--faint); text-decoration: none; }
.nav-studio:hover { color: var(--muted); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: var(--fs-xs); color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    padding: 8px 15px; border-radius: 9px;
    background: var(--mint); color: #04120e !important; font-weight: 700; font-size: var(--fs-xs);
}
.nav-cta:hover { background: var(--mint-soft); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } .nav-studio { display: none; } }

/* ---------- header ---------- */

.article-header { padding: 62px 0 30px; }
.eyebrow {
    font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .17em; text-transform: uppercase;
    color: var(--mint); margin: 0 0 14px;
}
.article-title {
    font-family: var(--display); font-weight: 800; letter-spacing: -.024em;
    font-size: var(--fs-h2); line-height: 1.06; margin: 0 0 16px;
}
.article-sub { font-size: var(--fs-lead); color: var(--muted); margin: 0 0 22px; }
.byline {
    display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
    font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .06em;
    color: var(--faint); padding-top: 18px; border-top: 1px solid var(--line);
}
.byline a { color: var(--muted); }

/* ---------- body ---------- */

article { padding: 12px 0 22px; }
h2 {
    font-family: var(--display); font-weight: 700; letter-spacing: -.018em;
    font-size: var(--fs-h3); line-height: 1.2;
    margin: 46px 0 16px; scroll-margin-top: 80px;
}
h2 .num {
    font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .1em;
    color: var(--mint); margin-right: 11px; vertical-align: .28em;
}
h3 { font-family: var(--display); font-weight: 700; font-size: var(--fs-h4); margin: 26px 0 10px; }
p { margin: 0 0 17px; }
ul { margin: 0 0 17px; padding-left: 21px; }
li { margin-bottom: 8px; }
li::marker { color: var(--mint); }
strong { color: #fff; font-weight: 600; }
/* Direct quotes from source documents carry weight on the policy page,
   so they should read as quoted rather than blend into the prose. */
q { font-style: italic; color: var(--mint-soft); }

/* ---------- comparison table ---------- */

.compare-wrap {
    margin: 26px 0 22px; overflow-x: auto;
    border: 1px solid var(--line); border-radius: 13px; background: var(--panel);
}
table.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-body); min-width: 520px; }
table.compare th, table.compare td {
    text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.compare thead th {
    font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase;
    color: var(--faint); font-weight: 400; background: rgba(255, 255, 255, .015);
}
table.compare thead th.col-warden { color: var(--mint); }
table.compare tbody th { font-weight: 500; color: var(--muted); width: 33%; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td.yes { color: var(--mint-soft); }
table.compare td.no { color: var(--red); }
table.compare td.warn { color: var(--gold); }
/* Six-column roundup needs more room before it starts scrolling. */
table.compare-wide { min-width: 700px; font-size: var(--fs-body); }
table.compare-wide th, table.compare-wide td { padding: 11px 12px; }
table.compare-wide tbody th { width: 26%; }
.table-note { font-size: var(--fs-sm); color: var(--faint); margin: -8px 0 24px; }

/* ---------- callouts ---------- */

.verdict {
    margin: 30px 0; padding: 22px 24px;
    border: 1px solid var(--line-strong); border-left: 3px solid var(--mint);
    border-radius: 0 13px 13px 0; background: var(--panel-2);
}
.verdict h3 {
    margin: 0 0 11px; font-family: var(--mono); font-weight: 400;
    font-size: var(--fs-label); letter-spacing: .15em; text-transform: uppercase; color: var(--mint);
}
.verdict p:last-child { margin-bottom: 0; }

/* ---------- faq ---------- */

.faq { margin: 22px 0 6px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
    font-family: var(--display); font-weight: 600; font-size: var(--fs-h5);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
    border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
    transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 17px; color: var(--muted); }

/* ---------- related + cta ---------- */

.related { margin: 34px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.related li { margin: 0; }
.related a {
    display: block; padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px;
    background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .18s ease;
}
.related a:hover { border-color: var(--line-strong); }
.related b { display: block; font-family: var(--display); font-weight: 600; font-size: var(--fs-h5); }
.related span { display: block; font-size: var(--fs-sm); color: var(--faint); margin-top: 2px; }

.cta-block { margin: 44px 0 20px; padding: 30px 0 0; border-top: 1px solid var(--line); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 11px; margin: 18px 0 13px; }
.btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px;
    border-radius: 11px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--mint); color: #04120e; }
.btn-primary:hover { background: var(--mint-soft); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--mint); }
.cta-meta { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .05em; color: var(--faint); margin: 0; }

/* ---------- footer ---------- */

.site-footer { margin-top: 64px; padding: 34px 0 44px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 16px; }
.footer-brand img { width: 18px; height: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; }
.footer-links a { font-size: var(--fs-xs); color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal { font-size: var(--fs-xs); color: var(--faint); line-height: 1.6; margin: 0 0 9px; }
.footer-copy { font-family: var(--mono); font-size: var(--fs-label); color: var(--faint); margin: 0; }
