:root {
  --paper: #f3f2ee;
  --paper-2: #fcfbf8;
  --ink: #1c2630;
  --muted: #4d5963;
  --rule: #d5d2ca;
  --accent: #1f4e6b;
  --accent-ink: #ffffff;
  --accent-soft: #e6eef3;
  --focus: #1f4e6b;
}
/* Tool-sites base. Brand tokens are set on :root in each site's brand block. */
:root {
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --paper: #f6f3eb;
  --paper-2: #fffdf8;
  --ink: #1c2420;
  --muted: #4d5753;
  --rule: #d8d1c4;
  --accent: #0f5f52;
  --accent-ink: #ffffff;
  --accent-soft: #e4efe9;
  --warn-bg: #f8efe2;
  --warn-ink: #5a3b12;
  --error: #8b2e2e;
  --focus: #0f5f52;
  --max: 70rem;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(28, 36, 32, 0.04), 0 8px 24px rgba(28, 36, 32, 0.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--accent); }
nav.primary { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
nav.primary a:hover, nav.primary a[aria-current="page"] { text-decoration: underline; }
.hero { padding: 2rem 0 0.5rem; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}
.lede { font-size: 1.05rem; color: var(--muted); max-width: 42rem; margin: 0; }
main { flex: 1; padding-bottom: 3rem; }
.panel {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.3rem;
}
.grid-2 {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.grid-2 > * { min-width: 0; }
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .results-col { position: sticky; top: 1rem; }
}
fieldset {
  border: 0;
  margin: 0 0 1.15rem;
  padding: 0;
}
legend {
  font-weight: 650;
  font-size: 1.02rem;
  margin-bottom: 0.65rem;
  padding: 0;
}
.field { margin: 0 0 0.8rem; }
.field label, .check label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.hint { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 0.2rem; }
.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  max-width: 24rem;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid #b9b3a7;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.inline-fields { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.inline-fields .field { flex: 1 1 10rem; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.4rem 0; }
.check input { margin-top: 0.3rem; }
.weekdays { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.weekdays label { font-weight: 500; display: flex; gap: 0.3rem; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
button.primary, a.button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  padding: 0.65rem 1.05rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.primary:hover, a.button:hover { filter: brightness(1.05); }
button.ghost {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  font: inherit;
  padding: 0.65rem 1.05rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.errors {
  background: #f8eaea;
  color: var(--error);
  border: 1px solid #e3c4c4;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.errors[hidden], [hidden] { display: none !important; }
.figure {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.35rem;
}
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.breakdown th, .breakdown td { text-align: left; padding: 0.45rem 0.85rem 0.45rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.breakdown th:last-child, .breakdown td:last-child { padding-right: 0; }
.breakdown td.num, .breakdown th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 6.5rem; }

.note, .callout {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  margin: 1rem 0 0;
  font-size: 0.92rem;
}
.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 1rem 0 0;
  font-size: 0.92rem;
}
.prose { max-width: 44rem; padding-top: 1.5rem; }
.prose h1, .prose h2, .prose h3 { font-family: var(--font-serif); letter-spacing: -0.02em; line-height: 1.2; }
.prose h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 0.8rem; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.prose h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose code { font-size: 0.9em; }
.sources { font-size: 0.88rem; }
.sources li { margin: 0.35rem 0; }
.slot {
  border: 1px dashed #b7b1a4;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--muted);
  background: repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0,0,0,0.015) 6px, rgba(0,0,0,0.015) 12px);
  font-size: 0.9rem;
  margin: 1rem 0;
}
footer.site {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: auto;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.8rem; }
footer.site a { color: var(--ink); }
.rates-checked {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 550;
}
.hero .rates-checked {
  margin: 0.85rem 0 0;
  max-width: 42rem;
}
.disc { margin: 0 0 0.7rem; max-width: 50rem; }
.small { font-size: 0.82rem; }
@media print {
  header.site nav, .actions, .slot, footer.site nav { display: none; }
  body { background: #fff; }
  .panel { box-shadow: none; }
}

details { margin: 0.8rem 0 0; }
details summary { cursor: pointer; font-weight: 650; color: var(--ink); }
details .breakdown { margin-top: 0.6rem; }

.figures-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.1rem;
  margin: 0.2rem 0 0.7rem;
}
@media (max-width: 40rem) {
  .figures-pair { grid-template-columns: 1fr; }
}
.figure-block { margin: 0; }
.figure-block .kicker { margin-bottom: 0; }
.tag-gross, .tag-net {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 0.25rem;
}
aside.gross-net { margin-top: 1rem; }
aside.gross-net h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 0 0 0.45rem;
}
aside.gross-net p { margin: 0 0 0.45rem; }
aside.gross-net p:last-child { margin-bottom: 0; }
