/* Dark theme content pages */
:root {
  --bg:#0d0f16; --fg:#eceef3; --dim:#9aa0b4; --lime:#d9f85f; --cyan:#7dd3fc;
  --card:#171a24; --border:#2a2f3d; --ink:#0b0d12;
  /* aliases for shared header CSS */
  --fog: #eceef3; --line: #2a2f3d; --line2: #3a4155; --snow: #ffffff;
  --surf2: #1e2230;
}
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: 'Geist', sans-serif; margin: 0; line-height: 1.6; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -- Statusbar -- */
.statusbar { border-bottom: 1px solid var(--line); }
.statusbar .row { display: flex; justify-content: space-between; padding: 10px 24px; font-size: 11px; color: var(--dim); letter-spacing: 0.5px; max-width: 1200px; margin: 0 auto; }
.statusbar .items { display: flex; gap: 24px; }
.statusbar .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 6px; animation: sb-pulse 2s infinite; }
@keyframes sb-pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.statusbar .val { color: var(--fog); }
@media (max-width: 640px) { .statusbar { display: none; } }

/* -- Site header -- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); background: rgba(11,13,18,0.78); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header .top { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; max-width: 1200px; margin: 0 auto; border-bottom: none; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--fg); }
.logo .mark { width: 28px; height: 28px; background: var(--lime); border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.logo .mark i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.logo .mono { font-family: 'Geist Mono', monospace; }
.logo .ver { font-size: 11px; color: var(--dim); padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; margin-left: 4px; font-family: 'Geist Mono', monospace; }
.logo:hover { opacity: .85; text-decoration: none; }
.links { display: flex; gap: 32px; font-size: 14px; color: var(--dim); align-items: center; }
.links a { color: inherit; text-decoration: none; transition: color 0.2s; }
.links a:hover { color: var(--fog); text-decoration: none; }
.links a.active { color: var(--fog); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn { padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); color: var(--fog); background: transparent; font: 600 13px/1 'Geist', sans-serif; cursor: pointer; letter-spacing: -0.2px; transition: all 0.18s; text-decoration: none; display: inline-flex; align-items: center; }
.btn:hover { border-color: var(--line2); background: rgba(255,255,255,0.03); text-decoration: none; }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.primary:hover { background: #e4ff7a; transform: translateY(-1px); }
@media (max-width: 640px) { .links { display: none; } }

/* -- Mobile burger -- */
.burger { display: none; width: 44px; height: 44px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
@media (max-width: 640px) { .burger { display: flex; } }
.burger span { display: block; width: 18px; height: 2px; background: var(--fog); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.burger:hover { background: rgba(217,248,95,0.14); border-color: var(--lime); }
.burger:hover span { background: var(--lime); }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.m-drawer { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,0.55); display: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.m-drawer.open { display: block; }
.m-drawer-pane { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: linear-gradient(180deg,rgba(23,26,36,0.98),rgba(13,16,22,0.99)); border-left: 1px solid var(--line2); padding: 24px; display: flex; flex-direction: column; gap: 4px; box-shadow: -20px 0 60px rgba(0,0,0,0.5); animation: drawer-in 0.22s ease-out; }
@keyframes drawer-in { from{transform:translateX(100%)} to{transform:translateX(0)} }
.m-drawer-pane a { color: var(--fog); text-decoration: none; font-size: 18px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); min-height: 44px; display: flex; align-items: center; }
.m-drawer-pane a:hover { color: var(--lime); text-decoration: none; }
.m-drawer-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; color: var(--fog); font-size: 20px; cursor: pointer; }
.m-drawer-close:hover { background: rgba(217,248,95,0.18); border-color: var(--lime); color: var(--lime); }
.m-drawer-divider { height: 1px; background: var(--line); margin: 12px 0; }
.m-drawer-cta { margin-top: auto; min-height: 48px; width: 100%; justify-content: center; }

/* -- legacy nav (hidden) -- */
.nav, .nav-logo, .nav-links, .nav-link, .btn-primary { display: none !important; }
.container { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
h1 { font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 600; line-height: 1.1; margin: 0 0 16px; }
h2 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 600; margin: 40px 0 16px; }
h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
p { margin: 0 0 16px; color: var(--dim); }
p strong { color: var(--fg); }
.meta-line { font-size: 13px; color: var(--dim); margin: 0 0 32px; font-family: 'Geist Mono', monospace; }
.cta-block { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; margin: 48px 0; text-align: center; }
.cta-block h2 { margin-top: 0; }
.report-text { font-family: 'Geist Mono', monospace; font-size: 13px; line-height: 1.8; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; white-space: pre-wrap; overflow-x: auto; }
.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 32px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.card h3 { margin-top: 0; font-size: 16px; }
.card .tag { font-size: 11px; font-family: 'Geist Mono', monospace; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.5px; }
.breadcrumbs { font-size: 13px; font-family: 'Geist Mono', monospace; color: var(--dim); margin: 0 0 32px; }
.breadcrumbs a { color: var(--dim); }
.breadcrumbs a:hover { color: var(--fg); }
footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; font-size: 13px; color: var(--dim); margin-top: 80px; }
footer a { color: var(--dim); }
@media (max-width: 640px) { h1 { font-size: 32px; } .container { padding: 32px 16px; } }
.btn-cta { display: inline-block; background: var(--lime); color: #0d0f16; font-weight: 600; padding: 12px 24px; border-radius: 8px; font-size: 15px; text-decoration: none; margin-top: 8px; }
.btn-cta:hover { text-decoration: none; opacity: 0.9; }
.meta-line time { color: inherit; }
.footer-sections { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; justify-content: center; }
.footer-sections a { font-size: 14px; color: #888; text-decoration: none; }
.footer-sections a:hover { color: #fff; }
.card .tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; display: inline-block; }
@media (max-width: 640px) {
  .article-card p, .card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .subnav, .sub-nav { display: none; }
}
