/* ===========================================================================
   report.css — the DOSSIER DESIGN-SYSTEM shared by every report page.
   Write a report by using these classes; never repeat CSS per report.

   Per-report identity: override just the accent (and optionally the hero bg)
   in a tiny <style> block on the page — see _template/report.html.

   Default palette below is a warm "paper dossier" with an espresso accent
   (which is exactly the Nothing Before Coffee look, so that report needs no
   overrides). Loaded AFTER base.css, only on report pages — plain selectors
   are safe (the hub is a separate page with its own stylesheet).
   =========================================================================== */

:root {
  --paper: #f7f3ec; --paper-2: #efe8dc; --card: #fffdf9; --ink: #211a14;
  --ink-2: #4c4034; --ink-3: #7a6c5b; --line: #e0d6c6; --line-2: #d0c3ad;
  --accent: #b9702e; --accent-deep: #8a4f1c; --hero-bg: #2a1c12;
  --good: #3f7d4e; --good-bg: #e4efe2; --warn: #b9822b; --warn-bg2: #f4ecd6;
  --risk: #b23b32; --risk-bg: #f3e0dd;
  --shadow: 0 1px 2px rgba(42,28,18,.06), 0 6px 24px rgba(42,28,18,.06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161210; --paper-2: #1e1813; --card: #211a15; --ink: #f2e9dc;
    --ink-2: #d3c4b1; --ink-3: #9c8b76; --line: #33291f; --line-2: #43362a;
    --accent: #e0964f; --accent-deep: #f0aa63; --hero-bg: #0f0b08;
    --good: #7bc088; --good-bg: #1b2e1f; --warn: #e0b25a; --warn-bg2: #2e2613;
    --risk: #e6867c; --risk-bg: #331c1a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="light"] {
  --paper: #f7f3ec; --paper-2: #efe8dc; --card: #fffdf9; --ink: #211a14;
  --ink-2: #4c4034; --ink-3: #7a6c5b; --line: #e0d6c6; --line-2: #d0c3ad;
  --accent: #b9702e; --accent-deep: #8a4f1c; --hero-bg: #2a1c12;
  --good: #3f7d4e; --good-bg: #e4efe2; --warn: #b9822b; --warn-bg2: #f4ecd6;
  --risk: #b23b32; --risk-bg: #f3e0dd;
  --shadow: 0 1px 2px rgba(42,28,18,.06), 0 6px 24px rgba(42,28,18,.06);
}
:root[data-theme="dark"] {
  --paper: #161210; --paper-2: #1e1813; --card: #211a15; --ink: #f2e9dc;
  --ink-2: #d3c4b1; --ink-3: #9c8b76; --line: #33291f; --line-2: #43362a;
  --accent: #e0964f; --accent-deep: #f0aa63; --hero-bg: #0f0b08;
  --good: #7bc088; --good-bg: #1b2e1f; --warn: #e0b25a; --warn-bg2: #2e2613;
  --risk: #e6867c; --risk-bg: #331c1a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
}

body { background: var(--paper); color: var(--ink); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 22px 90px; }
.serif { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; }

/* Back-to-hub bar */
.report-nav { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.report-nav .wrap { display: flex; align-items: center; gap: 14px; max-width: 960px; margin: 0 auto; padding: 12px 22px; }
.report-nav .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--accent-deep); text-decoration: none; }
.report-nav .back:hover .arw { transform: translateX(-3px); }
.report-nav .here { margin-left: auto; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.arw { display: inline-block; transition: transform .18s ease; }

/* Type */
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
h1 { font-family: Georgia, serif; font-weight: 700; line-height: 1.08; font-size: clamp(30px, 5.5vw, 52px); margin: 0 0 14px; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-family: Georgia, serif; font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 4px; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.005em; }
p { color: var(--ink-2); margin: 0 0 14px; }
a { color: var(--accent-deep); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 64ch; }

/* Hero */
header.hero {
  background: radial-gradient(120% 140% at 85% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
              linear-gradient(180deg, var(--hero-bg), color-mix(in srgb, var(--hero-bg) 78%, #6b4a30) 120%);
  color: #f4ebdf; padding: 62px 22px 54px; border-bottom: 3px solid var(--accent);
}
header.hero .wrap { padding-bottom: 0; }
header.hero h1 { color: #fdf6ec; }
header.hero p { color: #e6d6c2; }
header.hero .eyebrow { color: #f0c48a; }
.badge-verdict { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(240,196,138,.5); color: #f4d3a6; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-top: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(185,130,43,.25); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; margin-top: 34px; }
.kpi { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.28)); padding: 18px 16px; }
.kpi .n { font-family: Georgia, serif; font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: #fdf6ec; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #c3ac92; margin-top: 3px; }
@media (max-width: 620px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* Sections & blocks */
section { margin-top: 52px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sec-num { font-family: Georgia, serif; font-size: 15px; color: var(--accent); font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.kv dt, .kv dd { padding: 7px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 500px){ .kv { grid-template-columns: 120px 1fr; } }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--paper-2); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mark { color: var(--accent-deep); font-weight: 700; }

.timeline { position: relative; margin: 0; padding: 4px 0 0 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 20px 34px; }
.timeline li::before { content:""; position: absolute; left: 8px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.timeline li::after { content:""; position: absolute; left: 13px; top: 14px; bottom: -4px; width: 2px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline .yr { font-family: Georgia, serif; font-weight: 700; color: var(--ink); margin-right: 8px; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.p-good { background: var(--good-bg); color: var(--good); }
.p-warn { background: var(--warn-bg2); color: var(--warn); }
.p-risk { background: var(--risk-bg); color: var(--risk); }

.callout { border-left: 4px solid var(--accent); background: var(--paper-2); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 18px 0; }
.callout.warn { border-color: var(--warn); }
.callout.risk { border-color: var(--risk); }
.callout h3 { margin-bottom: 4px; }
.callout p:last-child { margin-bottom: 0; }

.score-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: none; }
.score-label { font-weight: 600; }
.score-label small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 22px; height: 9px; border-radius: 3px; background: var(--line-2); display: inline-block; }
.meter.s1 i:nth-child(-n+1), .meter.s2 i:nth-child(-n+2), .meter.s3 i:nth-child(-n+3), .meter.s4 i:nth-child(-n+4), .meter.s5 i:nth-child(-n+5) { background: var(--accent); }

ul.clean { padding-left: 20px; margin: 0; }
ul.clean li { margin-bottom: 9px; color: var(--ink-2); }
ul.clean.tight li { margin-bottom: 6px; }

.two-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px){ .two-list { grid-template-columns: 1fr; } }
.list-box { border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.list-box.pro { background: var(--good-bg); border-color: transparent; }
.list-box.con { background: var(--risk-bg); border-color: transparent; }
.list-box h3 { color: var(--ink); }
.list-box ul { padding-left: 18px; margin: 8px 0 0; }
.list-box li { margin-bottom: 8px; font-size: 14.5px; }

.stepper { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.stepper li { position: relative; padding: 14px 18px 14px 56px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.stepper li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

.src { font-size: 13px; columns: 2; column-gap: 30px; }
.src a { display: block; margin-bottom: 7px; color: var(--ink-2); text-decoration: none; break-inside: avoid; }
.src a:hover { color: var(--accent-deep); }
@media (max-width: 620px){ .src { columns: 1; } }

.note { font-size: 13px; color: var(--ink-3); font-style: italic; }
footer { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.disclaimer { background: var(--warn-bg2); border-radius: 12px; padding: 14px 18px; font-size: 13.5px; color: var(--ink-2); margin-top: 16px; }
