/* Static SEO pages (prices, calculator). Colours meet WCAG 2.1 AA in both themes. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #52525b;
  --border: #d4d4d8;
  --brand: #8c4a00;        /* 7.0:1 on white */
  --brand-bg: #8c4a00;
  --brand-on: #ffffff;
  --accent-soft: #fef3e2;
  --warn: #9a3412;
  --chart-line: #b45309;
  --grid: #e4e4e7;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121216;
  --surface: #1e1e24;
  --text: #f4f4f5;
  --muted: #b4b4bb;
  --border: #3f3f46;
  --brand: #fbbf5a;
  --brand-bg: #fbbf5a;
  --brand-on: #1a1206;
  --accent-soft: #2a2117;
  --warn: #fdba74;
  --chart-line: #fbbf5a;
  --grid: #34343b;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-header ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--brand); text-decoration: underline; }
main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 1.35rem; margin: 32px 0 10px; }
h3 { font-size: 1.05rem; margin: 18px 0 4px; }
.answer { font-size: 1.15rem; background: var(--accent-soft); border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 4px; }
.muted, .help, .small { color: var(--muted); }
.help { font-size: .875rem; margin: 2px 0 0; }
.crumbs { font-size: .9rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; }
.stat-label { font-size: .85rem; color: var(--muted); }
.stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-sub { font-size: .85rem; color: var(--muted); }
figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; }
.chart .line { stroke: var(--chart-line); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--chart-line); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { font-size: .85rem; color: var(--muted); }
details { margin: 12px 0; }
summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.link-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.btn { display: inline-block; background: var(--brand-bg); color: var(--brand-on); border: 2px solid var(--brand-bg); border-radius: 8px; padding: 10px 18px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 1rem; }
.btn-small { padding: 6px 12px; }
.site-header nav a.btn { color: var(--brand-on); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-icon { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 6px; width: 36px; height: 36px; font-size: 1.2rem; cursor: pointer; }
.calc fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px 16px; margin: 18px 0; background: var(--surface); }
.calc legend { font-weight: 700; padding: 0 6px; }
.calc label { display: block; font-weight: 600; margin-bottom: 4px; }
.calc input, .calc select { width: 100%; padding: 8px; border: 1px solid #71717a; border-radius: 6px; background: var(--surface); color: var(--text); font-size: 1rem; min-height: 40px; }
.ing-table input[name="name"] { min-width: 170px; }
.ing-table input[type="number"] { min-width: 80px; }
.ing-table select { min-width: 84px; }
.ing-table td { padding: 6px 4px; }
.line-cost { white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.calc .field { margin-bottom: 4px; }
.results { border: 2px solid var(--brand); border-radius: 10px; padding: 8px 16px 16px; background: var(--surface); }
.results h2 { margin-top: 8px; }
.results .big { font-size: 1.4rem; margin: 6px 0; }
.breakdown { max-width: 420px; }
.breakdown caption { text-align: left; font-weight: 600; padding: 6px 0; }
.breakdown td { text-align: right; font-variant-numeric: tabular-nums; }
.warn { color: var(--warn); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.cta-box { margin: 28px 0; padding: 16px 20px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--border); }
.cta-box h2 { margin-top: 4px; }
.faq h3 { margin-top: 20px; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 20px 0; font-size: .95rem; }
.site-footer ul { margin: 10px 0; }
@media (max-width: 640px) {
  .ing-table thead { display: none; }
  .ing-table, .ing-table tbody, .ing-table tr, .ing-table td { display: block; width: 100%; }
  .ing-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .ing-table td { border: 0; padding: 0; }
  .ing-table td:first-child { grid-column: 1 / -1; }
  .ing-table input[name="name"] { min-width: 0; }
}
@media print {
  .site-header nav, .site-footer, .cta-box, .actions, #add-ing, .btn-icon, .faq, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .calc fieldset, .results { border-color: #000; }
  a { color: #000; }
}
