/* theme_10 — Nordic Ice Decision Matrix */
:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --ink: #102a43;
  --accent: #0284c7;
  --muted: #486581;
  --line: #d9e2ec;
  --warn: #b45309;
  --fail: #b91c1c;
  --pass: #047857;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
code { background: var(--bg); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-size: 0.95rem; }
nav a:hover { color: var(--accent); }

.disclosure-banner { background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #7c2d12; font-size: 0.9rem; padding: 0.6rem 0; }
.disclosure-banner a { color: #9a3412; }

.hero { padding: 3rem 1.25rem 2rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.meta-line { font-size: 0.9rem; color: var(--muted); }

main section { padding-bottom: 2.5rem; }
section h2 { font-size: 1.5rem; margin: 2.2rem 0 0.5rem; border-top: 3px solid var(--accent); padding-top: 1rem; display: inline-block; }
section h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.section-note { color: var(--muted); max-width: 68ch; }

.workbench-grid { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr); gap: 1.25rem; margin-top: 1rem; }
@media (max-width: 860px) { .workbench-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; box-shadow: 0 1px 2px rgba(16,42,67,0.05); }
.panel h3 { margin-top: 0; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.field select, .field input[type="range"] { width: 100%; }
.field select { padding: 0.5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.field output { color: var(--accent); font-variant-numeric: tabular-nums; }

.verdict { font-size: 1.4rem; font-weight: 700; }
.verdict.pass { color: var(--pass); }
.verdict.warn { color: var(--warn); }
.verdict.fail { color: var(--fail); }
.findings { list-style: none; padding: 0; margin: 0.75rem 0; }
.findings li { padding: 0.45rem 0.7rem; border-left: 4px solid var(--line); margin-bottom: 0.4rem; background: var(--bg); border-radius: 0 6px 6px 0; font-size: 0.9rem; }
.findings li.warn { border-color: var(--warn); }
.findings li.fail { border-color: var(--fail); }
.findings li.pass { border-color: var(--pass); }
.recipe-summary { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; font-size: 0.9rem; }
.recipe-summary dt { color: var(--muted); }
.recipe-summary dd { margin: 0; font-variant-numeric: tabular-nums; }

#tradeoff-chart { width: 100%; height: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.chart-point { cursor: pointer; }
.chart-point circle { transition: opacity .15s; }
.chart-point:hover circle, .chart-point.active circle { stroke: var(--ink); stroke-width: 2; }
.chart-label { font-size: 11px; fill: var(--muted); }
.chart-axis { stroke: var(--line); }
.chart-title { font-size: 13px; fill: var(--ink); font-weight: 600; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 0.75rem; }
.data-table th, .data-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--bg); font-weight: 600; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.checklist label { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.95rem; }
.checklist input[type="checkbox"] { margin-top: 0.25rem; accent-color: var(--accent); }
.checklist label.done span { color: var(--muted); text-decoration: line-through; }
.checklist .req-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.3rem; margin-left: 0.4rem; }

.progress { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; height: 12px; overflow: hidden; margin-top: 0.6rem; }
.progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width .2s; }

.export-panel .export-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 0.6rem 1.1rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.receipt { background: var(--ink); color: #dbeafe; border-radius: 8px; padding: 1rem; font-size: 0.8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; min-height: 3rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 1.5rem 0; margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.site-footer nav a { margin-left: 1rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
