:root {
  color-scheme: dark;
  --bg: #07100b;
  --surface: #0b1510;
  --raised: #102018;
  --line: #294233;
  --text: #e3ece6;
  --muted: #94a89b;
  --green: #55bd7b;
  --green-soft: #a9d7b7;
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: #79cf99; }
a:hover { color: #a7e2bc; }

.content-header {
  border-bottom: 1px solid var(--line);
  background: #09140e;
}

.content-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
}

.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand img { display: block; width: 156px; height: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links a { padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover,.nav-links a:focus-visible,.nav-links a[aria-current="page"] { background: var(--raised); color: var(--text); outline: none; }

.content-shell { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 64px 0 80px; }
.article-shell { width: min(820px, calc(100% - 40px)); }
.eyebrow { color: #70c58f; font-size: .74rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 900px; margin: 10px 0 16px; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
.article-shell .hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.dek { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.meta { margin-top: 18px; color: var(--muted); font-size: .82rem; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 38px; }
.content-card { display: block; min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, var(--raised), var(--surface)); color: var(--text); text-decoration: none; }
.content-card:hover,.content-card:focus-visible { border-color: var(--green); color: var(--text); outline: none; transform: translateY(-2px); }
.content-card h2 { margin: 8px 0 10px; font-size: 1.45rem; line-height: 1.25; }
.content-card p { color: var(--muted); }
.card-label { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.card-link { display: inline-block; margin-top: 8px; color: var(--green-soft); font-weight: 800; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.article-body { min-width: 0; }
.article-body h2 { margin: 56px 0 15px; padding-top: 4px; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.025em; }
.article-body h3 { margin: 36px 0 8px; font-size: 1.18rem; line-height: 1.35; }
.article-body p,.article-body li { color: #c7d4cb; }
.article-body strong { color: var(--text); }
.article-body ul,.article-body ol { padding-left: 22px; }
.article-body li + li { margin-top: 7px; }
.article-body code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: #b9dfc6; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .9rem; }
.article-body th,.article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { color: var(--muted); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.callout { margin: 28px 0; padding: 18px 20px; border: 1px solid #326044; border-left: 4px solid var(--green); border-radius: 8px; background: #0d1d14; }
.callout p { margin: 0; }
.draft-notice { border-color: #806a2a; border-left-color: #d5ad3e; background: #211b0c; }
.placeholder { padding: 2px 6px; border: 1px solid #806a2a; border-radius: 4px; background: #211b0c; color: #f1d989; font-weight: 800; }
.info-list { display: grid; grid-template-columns: minmax(120px, .35fr) 1fr; margin: 24px 0; border-top: 1px solid var(--line); }
.info-list dt,.info-list dd { margin: 0; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.info-list dd { color: #c7d4cb; }

.toc { position: sticky; top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.toc strong { display: block; margin-bottom: 9px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .82rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--text); }

.strategy-index { columns: 2; column-gap: 28px; padding: 18px 0 4px; }
.strategy-index a { display: block; break-inside: avoid; padding: 3px 0; color: var(--muted); font-size: .86rem; text-decoration: none; }
.strategy-index a:hover { color: var(--green-soft); }
.strategy-entry { scroll-margin-top: 20px; }
.strategy-entry .defaults { margin-top: 10px; color: var(--muted); font-size: .88rem; }

.step-list { padding: 0; list-style: none; counter-reset: steps; }
.step-list > li { position: relative; padding: 0 0 24px 48px; counter-increment: steps; }
.step-list > li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #041009; font-weight: 900; line-height: 30px; text-align: center; }
.step-list h3 { margin-top: 0; }

.content-footer { padding: 26px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .8rem; }
.content-footer p { margin: 0 0 8px; }
.content-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.content-footer a { color: var(--muted); text-decoration: none; }
.content-footer a:hover,.content-footer a:focus-visible { color: var(--text); outline: none; }

.status-shell { min-height: calc(100vh - 150px); display: grid; place-items: center; }
.status-card { width: min(680px, 100%); padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--raised), var(--surface)); text-align: center; }
.status-code { color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.status-card h1 { margin: 10px 0 14px; font-size: clamp(2rem, 6vw, 3.7rem); line-height: 1.05; letter-spacing: -.045em; }
.status-card p { max-width: 540px; margin: 0 auto 24px; color: var(--muted); }
.status-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.status-actions a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: #0d1d14; color: var(--text); font-weight: 750; text-decoration: none; }
.status-actions a:hover,.status-actions a:focus-visible { border-color: var(--green); color: var(--text); outline: none; }

@media (max-width: 760px) {
  .content-nav { align-items: flex-start; flex-direction: column; gap: 8px; padding: 16px 0; }
  .card-grid,.article-layout { grid-template-columns: 1fr; }
  .toc { position: static; grid-row: 1; }
  .content-shell { padding-top: 42px; }
  .brand img { width: 144px; }
}

@media (max-width: 480px) {
  .content-shell,.content-nav { width: min(100% - 28px, 1120px); }
  .strategy-index { columns: 1; }
  .article-body table { display: block; overflow-x: auto; }
}

body :focus-visible {
  outline: 3px solid #79cf99 !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
