:root {
  --bg: #faf9f5;
  --surface: #fff;
  --text: #1a1a18;
  --muted: #64635e;
  --border: #e4e2da;
  --accent: #1d6e56;
  --accent-bg: #e5f4ee;
  --danger: #9c3c35;
  --danger-bg: #faeeec;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a18;
    --surface: #242422;
    --text: #f1efe8;
    --muted: #aaa89f;
    --border: #3c3a34;
    --accent: #67d2ae;
    --accent-bg: #123e32;
    --danger: #ff9e94;
    --danger-bg: #442723;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
}
a { color: var(--accent); text-underline-offset: .16em; }
.skip { position: absolute; left: -10000px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 14px; }
.skip:focus { left: 8px; }
.article-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 34px; }
.breadcrumbs a { color: inherit; }
.article-head { max-width: 820px; margin-bottom: 42px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-size: clamp(34px, 6vw, 55px); line-height: 1.08; letter-spacing: -.035em; max-width: 19ch; margin: 0 0 22px; }
h2 { font-size: clamp(24px, 3.5vw, 31px); line-height: 1.2; letter-spacing: -.02em; margin: 58px 0 18px; }
h3 { line-height: 1.35; }
p, li { font-size: 16px; }
.answer { font-size: clamp(18px, 2.3vw, 21px); line-height: 1.62; color: var(--text); max-width: 74ch; margin: 0 0 18px; }
.byline { font-size: 13.5px; color: var(--muted); }
.byline a { font-weight: 700; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td { font-size: 14.5px; }
.status { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-yes { background: var(--accent-bg); color: var(--accent); }
.status-no { background: var(--danger-bg); color: var(--danger); }
.status-prep { background: #f4eed7; color: #775f15; }
@media (prefers-color-scheme: dark) { .status-prep { background: #463b1d; color: #f1d77e; } }
.workflow { list-style: none; padding: 0; counter-reset: workflow; display: grid; gap: 12px; }
.workflow li { counter-increment: workflow; position: relative; padding: 18px 20px 18px 58px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.workflow li::before { content: counter(workflow); position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; }
.evidence { margin: 52px 0 12px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.evidence img { width: 100%; height: auto; max-height: 520px; display: block; object-fit: contain; background: #fff; }
.evidence figcaption { padding: 12px 16px 14px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--border); }
section > p, section > ul { max-width: 76ch; color: var(--muted); }
section > ul { padding-left: 22px; }
.failure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.failure-grid article, .guide-card { padding: 19px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.failure-grid h3, .guide-card h3 { font-size: 16px; margin: 0 0 8px; }
.failure-grid p, .guide-card p { color: var(--muted); font-size: 14px; margin: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 18px; }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 15px 0; }
.faq-list p { margin: 0 0 18px; color: var(--muted); }
.cta-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 64px 0 18px; }
.cta-panel > div { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.cta-panel h2 { font-size: 21px; margin: 0 0 8px; }
.cta-panel p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.button { display: inline-block; border: 1.5px solid var(--accent); border-radius: 9px; padding: 11px 16px; font-size: 14px; font-weight: 750; text-decoration: none; }
.button.primary { background: var(--accent); color: #fff; }
.button.secondary { color: var(--accent); }
.references, .related { border-top: 1px solid var(--border); margin-top: 44px; }
.references h2, .related h2 { font-size: 20px; margin: 28px 0 12px; }
.references li, .related li { font-size: 14px; margin: 7px 0; }
.references span { color: var(--muted); }
.guide-search { width: 100%; max-width: 620px; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; padding: 10px 14px; margin: 7px 0 20px; }
.guide-search:focus { outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent); border-color: var(--accent); }
.search-label { display: block; font-size: 13px; font-weight: 750; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.guide-card span { display: block; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.guide-card h3 { font-size: 18px; }
.guide-card h3 a { color: var(--text); }
.guide-card[hidden] { display: none; }
.no-results { border: 1px dashed var(--border); border-radius: 10px; padding: 18px; color: var(--muted); }

@media (max-width: 760px) {
  .article-shell { width: min(100% - 32px, 920px); padding-top: 24px; }
  .breadcrumbs { margin-bottom: 25px; }
  h1 { font-size: clamp(31px, 10vw, 42px); }
  h2 { margin-top: 46px; }
  .failure-grid, .cta-panel, .guide-grid { grid-template-columns: 1fr; }
  .evidence { margin-top: 42px; }
}
