:root {
  color-scheme: light;
  --ink: #16242a;
  --muted: #53666d;
  --paper: #f7f5ef;
  --card: #ffffff;
  --line: #d5dfdb;
  --teal: #145f64;
  --teal-dark: #0e484c;
  --gold: #edbd55;
  --red: #9f3028;
  --red-bg: #fff0ee;
  --amber-bg: #fff1d3;
  --amber-ink: #654710;
  --shadow: 0 12px 32px #153b4512;
}

* { box-sizing: border-box; }
html { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; }
body { margin: 0; min-width: 320px; }
.wrap { width: min(100%, 1088px); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 840px; }
.site-header { background: #103a40; color: #fff; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-size: .82rem; line-height: 1.12; letter-spacing: .04em; text-transform: uppercase; }
.brand strong { font-size: 1rem; letter-spacing: 0; }
.brand-mark { color: var(--gold); font-size: 2rem; }
.header-link { color: #e4f3f0; text-underline-offset: 3px; }
.hero { max-width: 800px; padding: 54px 0 28px; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.03; letter-spacing: -.04em; }
.lede { max-width: 720px; color: var(--muted); font-size: 1.15rem; }
.notice { margin: 20px 0; padding: 14px 17px; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 8px; background: #eef8f5; }
.notice-warm { border-left-color: var(--gold); background: #fff8e7; }
.notice-error { border-left-color: var(--red); background: var(--red-bg); }
.notice-error ul { margin: 8px 0 0; }
.card, .results { margin: 20px 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 23px; }
.section-heading h2, .results h2, .sources h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.section-heading p { margin: 3px 0; color: var(--muted); }
.step { padding-top: 4px; color: var(--teal); font-size: .85rem; font-weight: 900; letter-spacing: .1em; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: flex; min-width: 0; flex-direction: column; gap: 7px; font-size: .92rem; font-weight: 700; }
input, select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #9bacb0; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
input:focus, select:focus, button:focus, a:focus { outline: 3px solid #84d3cc; outline-offset: 2px; }
small { color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.4; }
.required { color: var(--teal); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.inline-choice { max-width: 340px; margin-bottom: 18px; }
.is-hidden { display: none !important; }
.is-muted { opacity: .68; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 44px; }
.button { min-height: 46px; padding: 12px 20px; border: 0; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.primary { background: var(--teal); color: #fff; }
.primary:hover { background: var(--teal-dark); }
.secondary { border: 1px solid var(--teal); background: transparent; color: var(--teal); }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.status-badge { display: inline-block; padding: 8px 13px; border-radius: 100px; font-size: .85rem; font-weight: 800; }
.status-flag { background: #ffe1d9; color: #84281e; }
.status-cannot-assess { background: #e9e9df; color: #4c5143; }
.status-no-number-overage-found { background: var(--amber-bg); color: var(--amber-ink); }
.result-summary { max-width: 760px; font-size: 1.08rem; }
.number-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 22px 0; }
.number-card { min-width: 0; padding: 14px; border-radius: 9px; background: #f1f6f3; overflow-wrap: anywhere; }
.number-card span { display: block; color: var(--muted); font-size: .78rem; }
.number-card strong { font-size: 1.35rem; }
.findings-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.findings-columns h3 { font-size: 1rem; }
.findings-columns ul { padding-left: 20px; }
.findings-columns li { margin: 8px 0; }
.result-footnote { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.sources { padding: 20px 0 55px; }
.sources p { color: var(--muted); }
.sources li { margin: 10px 0; overflow-wrap: anywhere; }
.sources a, .prose a { color: var(--teal-dark); font-weight: 700; text-underline-offset: 3px; }
.site-footer { padding: 22px 0; background: #e7ece8; color: var(--muted); font-size: .86rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--teal-dark); font-weight: 700; }
.prose { margin-bottom: 60px; }
.prose h2 { margin-top: 26px; font-family: Georgia, "Times New Roman", serif; }

@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-top: 38px; }
  .field-grid, .field-grid.two, .field-grid.three, .findings-columns { grid-template-columns: minmax(0, 1fr); }
  .card, .results { padding: 20px; border-radius: 12px; }
  .result-header { display: block; }
  .status-badge { margin-top: 14px; }
  .form-actions { margin-bottom: 28px; }
  .site-footer .wrap { display: block; }
  .site-footer a { display: inline-block; margin-top: 8px; }
}
