:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e2ddd6;
  --accent: #0f6b5c;
  --accent-soft: #e6f3f0;
  --warn-bg: #fff6e5;
  --warn-border: #e6b84d;
  --danger-bg: #fdeceb;
  --official-bg: #eef6ff;
  --estimate-bg: #fff8e8;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1080px;
  --ad-slot-h: 90px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; font-size: 16px;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.banner-unofficial {
  background: #1a1a1a; color: #f5f5f5; font-size: 0.85rem; padding: 0.55rem 0; text-align: center;
}
.banner-unofficial strong { color: #ffd666; }
.hero { padding: 2.25rem 0 1.5rem; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin: 1rem 0;
}
.card h2, .card h3 { margin-top: 0; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1.2fr 0.8fr; } }
label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0.6rem 0 0.25rem; }
input, select, button, textarea {
  font: inherit; border-radius: 8px; border: 1px solid var(--border); padding: 0.55rem 0.7rem; width: 100%;
}
button, .btn {
  background: var(--accent); color: #fff; border: none; cursor: pointer; font-weight: 600;
  display: inline-block; text-align: center; text-decoration: none; width: auto; padding: 0.65rem 1.1rem;
}
button.secondary, .btn.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
button:hover, .btn:hover { filter: brightness(1.05); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { border: 1px solid var(--border); padding: 0.45rem 0.55rem; text-align: left; }
table.data th { background: #f0ebe4; font-size: 0.8rem; }
table.data td.mono { font-family: var(--mono); font-size: 0.85rem; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.2rem 0.45rem; border-radius: 999px;
}
.badge-official { background: var(--official-bg); color: #1a4a7a; }
.badge-estimate { background: var(--estimate-bg); color: #7a5a00; border: 1px solid var(--warn-border); }
.badge-current { background: var(--accent-soft); color: var(--accent); }
.badge-not { background: var(--danger-bg); color: #8a1f11; }
.callout {
  border-left: 4px solid var(--warn-border); background: var(--warn-bg); padding: 0.9rem 1rem;
  border-radius: 0 8px 8px 0; margin: 1rem 0;
}
.callout.official { border-left-color: #3a7bd5; background: var(--official-bg); }
.callout.estimate { border-left-color: var(--warn-border); background: var(--estimate-bg); }
.muted { color: var(--muted); font-size: 0.92rem; }
.tiny { font-size: 0.8rem; color: var(--muted); }
.site-footer {
  margin-top: 3rem; padding: 2rem 0; border-top: 1px solid var(--border); background: var(--surface);
  font-size: 0.85rem; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.ad-slot {
  border: 1px dashed #cfc8be; background: #faf8f5; color: #9a948a; min-height: var(--ad-slot-h);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; margin: 1rem 0;
  border-radius: 8px;
}
.ad-slot[data-enabled="false"] { display: none; }
.chart-svg { width: 100%; height: auto; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.status-pill { font-weight: 700; }
.form-row { display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .form-row.cols-3 { grid-template-columns: repeat(3, 1fr); } .form-row.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.skip-link { position:absolute; left:-999px; top:0; background:#000; color:#fff; padding:0.5rem; z-index:50; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
ul.clean { padding-left: 1.1rem; }
.premium-flag { opacity: 0.55; pointer-events: none; position: relative; }
.premium-flag::after {
  content: "Premium (payments off)"; position: absolute; right: 0.5rem; top: 0.5rem;
  font-size: 0.7rem; background: #eee; padding: 0.15rem 0.4rem; border-radius: 4px;
}
.history-details { margin-top: 0.75rem; }
.history-details summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.chart-svg { min-height: 280px; }

.banner-preview {
  background: #7a3b00; color: #fff8e8; font-size: 0.9rem; padding: 0.65rem 1rem; text-align: center;
}
.banner-preview strong { color: #ffd666; }
