
:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5a665f;
  --line: #d8ded8;
  --paper: #fbfcf8;
  --band: #eef4ea;
  --accent: #0f766e;
  --accent-2: #b7791f;
  --white: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.94);
  backdrop-filter: blur(12px);
}
.brand { font-weight: 800; text-decoration: none; }
nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
nav a { text-decoration: none; }
main { min-height: 75vh; }
.hero, .page-head, .band, .two-col {
  padding: clamp(36px, 6vw, 76px) clamp(18px, 5vw, 72px);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #eef4ea, #f8f4ea);
}
.page-head { background: var(--band); }
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
h1, h2, h3 { letter-spacing: 0; line-height: 1.08; }
h1 { max-width: 980px; margin: 0; font-size: clamp(34px, 5vw, 68px); }
h2 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 36px); }
h3 { margin: 0 0 10px; font-size: 20px; }
.lede { max-width: 820px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.actions, .mini-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.metric-panel, .side-panel, .card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.metric-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  padding: 22px;
}
.metric-panel strong, .big-number { font-size: 34px; color: var(--accent-2); }
.metric-panel span { align-self: center; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card { padding: 20px; min-height: 190px; }
.card p { color: var(--muted); line-height: 1.5; }
.card a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mini-actions { margin-top: 16px; font-size: 14px; color: var(--accent); font-weight: 750; }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: start;
}
article p, article li, .readable p { color: var(--muted); line-height: 1.65; }
.side-panel { padding: 22px; position: sticky; top: 88px; }
label { display: grid; gap: 8px; margin: 0 0 14px; font-weight: 750; }
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--ink);
}
.calc-result {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.calc-result strong { font-size: 32px; color: var(--accent-2); }
.source-note, .small-link { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f5f7f2; }
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.stack-items { margin-top: 18px; display: grid; gap: 10px; }
.stack-item { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
footer {
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 780px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero, .two-col { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}
