@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/jost-400.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/jost-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #111114;
  --muted: #3f3f46;
  --line: #111114;
  --paper: #fbfbf8;
  --white: #ffffff;
  --red: #c9261c;
  --red-dark: #a51d15;
  --blue: #1d3f9e;
  --yellow: #f4c20d;
  --accent: #c9261c;
  --accent-dark: #111114;
  --grid: rgba(17, 17, 20, .075);
  --step: 24px;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.125rem/1.5 var(--sans);
  overflow-x: clip;
}
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--red-dark); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-transform: lowercase; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- header (all pages): a ruled bar on the worktable ---------- */
.site-header { border: 0; border-bottom: 3px solid var(--ink); background: var(--white); }
.header-inner { max-width: 1240px; margin: auto; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 1.0625rem; line-height: 1.15; letter-spacing: 0; text-transform: lowercase; }
.brand strong { display: block; font-size: 1.3125rem; font-weight: 700; letter-spacing: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--red); color: var(--white); font: 700 1.5rem/1 var(--sans); }
.header-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); white-space: nowrap; font-weight: 700; text-decoration: none; text-transform: lowercase; cursor: pointer; transition: transform .18s linear, background .18s linear, color .18s linear; }
.header-link:hover { background: var(--ink); color: var(--white); transform: translateX(4px); }

/* ---------- home stage ---------- */
.stage { max-width: 1240px; margin: auto; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 0 56px; align-items: start; background-image: linear-gradient(to bottom, var(--grid) 1px, transparent 1px); background-size: 100% var(--step); background-position: 0 0; }
.stage-copy { min-width: 0; }
.stage-art { padding: 48px 0 0; }
.pole-art { display: block; width: 100%; height: auto; border: 3px solid var(--ink); background: var(--white); }

.minimal-shell { width: auto; min-height: 0; margin: 0; padding: 48px 0 56px; display: flex; flex-direction: column; }
.minimal-shell h1 { margin: 0 0 40px; max-width: 9ch; font-size: clamp(3.25rem, 8.4vw, 7.25rem); line-height: .94; letter-spacing: -.025em; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 3px solid var(--ink); background: var(--white); }
.choice-grid a { position: relative; min-height: 148px; margin: 0 -3px -3px 0; padding: 22px 22px 20px; display: flex; flex-direction: column; align-items: flex-start !important; justify-content: flex-end !important; text-align: left !important; border: 3px solid var(--ink); border-width: 0 3px 3px 0; border-radius: 0; background: var(--white); color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.12; letter-spacing: 0; text-decoration: none; text-transform: lowercase; transition: background .18s linear, color .18s linear; }
.choice-grid a::before { content: ""; position: absolute; top: 20px; left: 22px; width: 30px; height: 30px; background: var(--ink); transition: transform .22s linear, background .18s linear; }
.choice-grid a:nth-child(3n+1)::before { border-radius: 50%; }
.choice-grid a:nth-child(3n+3)::before { background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.choice-grid a:nth-child(1)::before { background: var(--red); }
.choice-grid a:nth-child(2) { background: var(--blue); color: var(--white); }
.choice-grid a:nth-child(2)::before { background: var(--white); }
.choice-grid a:nth-child(4) { background: var(--yellow); }
.choice-grid a:nth-child(4)::before { border-radius: 50%; }
.choice-grid a:nth-child(5)::before { background: var(--blue); }
.choice-grid a:nth-child(6) { background: var(--ink); color: var(--white); }
.choice-grid a:nth-child(6)::before { background: var(--yellow); }
.choice-grid a:hover { background: var(--ink); color: var(--white); }
.choice-grid a:hover::before { transform: translateX(14px); background: var(--red); }
.choice-grid a:nth-child(6):hover { background: var(--red-dark); }
.choice-grid a:nth-child(6):hover::before { background: var(--white); }
.choice-grid a:nth-child(2):hover { background: var(--ink); }
.choice-grid a:nth-child(4):hover::before { background: var(--yellow); }
.agency-line { margin: 28px 0 0; padding: 12px 0 0; border-top: 3px solid var(--ink); color: var(--muted); font-size: 1rem; font-weight: 700; }
.agency-line a { color: var(--ink); }

@media (min-width: 851px) {
  .home-shell { min-height: 0; padding-bottom: 40px; }
  .home-shell .agency-line { margin: 28px 0 0; padding-top: 12px; }
  .home-shell + .local-board .local-wrap { padding-top: 40px; }
}

/* ---------- local board (filled at runtime): exercise sheets on the grid ---------- */
.local-board { border-top: 3px solid var(--ink); background-color: var(--paper); background-image: linear-gradient(to bottom, var(--grid) 1px, transparent 1px); background-size: 100% var(--step); color: var(--ink); }
.local-wrap { max-width: 1240px; margin: auto; padding: 72px 28px 96px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 0 0 32px; border-bottom: 3px solid var(--ink); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--red-dark); font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; }
.local-kicker { margin: 0 0 16px; }
.local-kicker span { padding: 0 6px; }
.local-intro h2 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); line-height: .96; letter-spacing: -.02em; }
.local-intro > div > p:last-child { max-width: 36rem; margin: 18px 0 0; color: var(--muted); font-size: 1.125rem; }
.local-generated { flex: none; margin: 0 0 3px; color: var(--muted); font-size: .875rem; font-weight: 700; }
.local-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 60px 0 20px; padding-top: 14px; border-top: 3px solid var(--ink); }
.local-section-heading h3 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1; letter-spacing: -.015em; }
.local-section-heading > span { display: inline-flex; align-items: center; gap: 12px; min-height: 28px; color: var(--ink); }
.local-section-heading > span::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--red); border-radius: 50%; }
.local-wrap > .local-section-heading:nth-child(6) > span::before { background: var(--blue); border-radius: 0; }
.local-wrap > .local-section-heading:nth-child(8) > span::before { background: var(--ink); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.local-wrap > .local-section-heading:nth-child(10) > span::before { background: var(--yellow); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--ink); }
.local-wrap > .local-section-heading:nth-child(12) > span::before { background: var(--red); border-radius: 0; }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.local-card { min-width: 0; padding: 26px 26px 24px; border: 3px solid var(--ink); border-radius: 0; background: var(--white); box-shadow: none; }
.local-card h4 { margin: 6px 0 18px; font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.05; letter-spacing: -.01em; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; color: var(--ink); }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: .9375rem; }
.local-source { margin: 24px 0 0; padding-top: 14px; border-top: 2px solid var(--ink); color: var(--muted); font-size: .875rem; font-weight: 700; letter-spacing: 0; }
.local-link { display: inline-block; margin-top: 10px; min-height: 28px; color: var(--blue); font-size: 1rem; font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.local-link:hover { color: var(--red-dark); }
.local-wide { grid-column: 1 / -1; }
.local-weather-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; padding: 12px 0 24px; border-bottom: 2px solid var(--ink); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; }
.local-big-temp { color: var(--red-dark); font: 700 clamp(5rem, 11vw, 8.5rem)/.82 var(--sans); letter-spacing: -.05em; }
.local-weather-condition { max-width: 12rem; color: var(--ink); font-size: 1.1875rem; }
.local-weather-note { padding-bottom: 6px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 1rem; }
.local-weather-note strong { color: var(--ink); font-size: 1.1875rem; }
.local-day-strip, .local-hour-strip { display: flex; overflow-x: auto; scrollbar-width: thin; }
.local-day-strip { gap: 0; padding: 20px 0; border-bottom: 2px solid var(--ink); }
.local-day { flex: 0 0 150px; padding: 0 14px; border-left: 2px solid var(--ink); display: flex; flex-direction: column; gap: 4px; font-size: .9375rem; color: var(--muted); line-height: 1.3; }
.local-day:first-child { padding-left: 14px; }
.local-day strong { color: var(--ink); font-size: 1rem; }
.local-day-temp { color: var(--red-dark); font-size: 1.375rem; font-weight: 700; }
.local-small-label { margin: 22px 0 12px; }
.local-hour-strip { gap: 8px; }
.local-hour { flex: 0 0 96px; padding: 10px 10px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); display: flex; flex-direction: column; gap: 3px; font-size: .875rem; color: var(--muted); }
.local-hour strong { color: var(--ink); font-size: 1.3125rem; }
.local-big-number { margin: 14px 0 8px; color: var(--blue); font: 700 4.75rem/.95 var(--sans); letter-spacing: -.04em; }
.local-radar { margin: 18px 0 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 0; background: var(--white); }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 6px 10px; border-top: 2px solid var(--ink); color: var(--muted); font-size: .8125rem; font-weight: 700; }
.local-alert, .local-advisory { display: flex; gap: 18px; padding: 22px 26px; margin-top: 20px; border: 3px solid var(--ink); border-radius: 0; background: var(--yellow); color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: end center; width: 44px; height: 40px; padding-bottom: 2px; background: var(--ink); color: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); font-weight: 700; font-size: 1.125rem; line-height: 1.1; }
.local-alert .local-card-kicker, .local-alert .local-subtle { color: var(--ink); }
.local-alert .local-link { color: var(--ink); }
.local-alert h3, .local-advisory h3 { margin: 6px 0 8px; font-size: 1.375rem; line-height: 1.2; text-transform: none; }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; background: var(--white); border-left-width: 14px; border-left-color: var(--blue); }
.local-advisory-mark { flex: none; color: var(--blue); font-size: 2.5rem; line-height: 1; }
.local-advisory h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); line-height: 1.12; text-transform: lowercase; }
.local-advisory-alert { background: var(--yellow); border-left-color: var(--red); }
.local-advisory-alert .local-advisory-mark { color: var(--ink); }
.local-advisory .local-card-kicker, .local-advisory .local-subtle, .local-advisory .local-source { color: var(--muted); }
.local-advisory-alert .local-card-kicker, .local-advisory-alert .local-subtle, .local-advisory-alert .local-source { color: var(--ink); }
.local-advisory .local-source { border-top-color: var(--ink); }
.local-row { padding: 12px 0; border-bottom: 2px solid var(--ink); }
.local-row:first-of-type { padding-top: 0; }
.local-row:last-of-type { border-bottom: 0; }
.local-row-title { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.local-row-title:hover { color: var(--red-dark); }
.local-row-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.local-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.local-market-name { display: block; font-size: 1.1875rem; }
.local-lottery { padding: 12px 0; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 4px; }
.local-lottery strong { font-size: 1.375rem; letter-spacing: .03em; }

/* ---------- quote and question pages ---------- */
.page-shell { max-width: 1240px; margin: auto; padding: 56px 28px 88px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--ink); font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; }
.eyebrow::before { content: ""; width: 20px; height: 20px; background: var(--red); border-radius: 50%; }
.intro h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.025em; max-width: 12ch; }
.intro-copy { margin: 22px 0 0; max-width: 40rem; padding-left: 18px; border-left: 6px solid var(--blue); color: var(--muted); font-size: clamp(1.125rem, 2vw, 1.3125rem); }

.options { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 3px solid var(--ink); }
.option { min-width: 0; min-height: 247px; margin: 0 -3px -3px 0; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 3px solid var(--ink); border-width: 0 3px 3px 0; border-radius: 0; background: var(--white); transition: background .18s linear; }
.option:hover { background: var(--paper); }
.option-number { color: var(--red-dark); font-size: .875rem; font-weight: 700; text-transform: lowercase; letter-spacing: .04em; }
.option h2 { margin: 18px 0 8px; font-size: clamp(1.625rem, 2.7vw, 2rem); line-height: 1.08; }
.option p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 30ch; }
.option .option-action { margin-top: auto; padding: 12px 16px; min-height: 48px; width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 0; color: var(--white); background: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--red-dark); color: var(--white); }
.option-action span { font-size: 1.25rem; line-height: 1; }
.option .option-note { margin-top: 8px; font-size: .875rem; color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 56px; padding: 40px; border: 3px solid var(--ink); border-radius: 0; background: var(--white); }
.question-heading h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; }
.question-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.question-form { margin-top: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 1rem; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 2px solid var(--ink); border-radius: 0; padding: 12px 14px; color: var(--ink); background: var(--paper); font-weight: 400; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 4px solid var(--blue); outline-offset: 0; background: var(--white); }
.form-grid input, .form-grid select { min-height: 50px; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid .message-field { grid-column: 1 / -1; }
.form-grid .checkbox-row, .quote-form > fieldset > .checkbox-row { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; min-height: 44px; }
.form-grid .checkbox-row { grid-column: 1 / -1; }
.form-grid .checkbox-row input, .quote-form > fieldset > .checkbox-row input { width: 24px; min-width: 24px; height: 24px; min-height: 24px; margin: 2px 0 0; accent-color: var(--red); }
.quote-form > fieldset > .checkbox-row { margin-top: 22px; }
.honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-bottom { margin-top: 26px; }
.form-bottom button, .quote-submit button, .quote-results button { min-height: 52px; display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 0; padding: 12px 22px; color: var(--white); background: var(--ink); font-weight: 700; font-size: 1.125rem; text-transform: lowercase; cursor: pointer; transition: background .18s linear, transform .18s linear; }
.form-bottom button:hover, .quote-submit button:hover, .quote-results button:hover { background: var(--red-dark); transform: translateX(4px); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .6; transform: none; }
.submit-note { max-width: 40rem; margin: 16px 0 0; color: var(--muted); font-size: 1rem; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--ink); font-weight: 700; font-size: 1rem; }

.product-switch { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 36px 0 22px; width: fit-content; max-width: 100%; border: 3px solid var(--ink); background: var(--white); }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 0; color: var(--ink); font-weight: 700; text-decoration: none; text-transform: lowercase; transition: background .18s linear, color .18s linear; }
.product-switch a:hover { background: var(--yellow); color: var(--ink); }
.product-switch a[aria-current="page"] { color: var(--white); background: var(--blue); }
.quote-form fieldset { min-width: 0; margin: 22px 0; padding: 28px; border: 3px solid var(--ink); border-radius: 0; background: var(--white); }
.quote-form legend { display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 1.5rem; font-weight: 700; text-transform: lowercase; }
.quote-form legend::before { content: ""; width: 16px; height: 16px; background: var(--blue); }
.quote-form .form-grid { margin-top: 4px; }
.quote-submit { margin: 22px 0 55px; max-width: 720px; }
#quote-status { color: var(--ink); font-weight: 700; }
.quote-results { margin: 30px 0 70px; padding: 28px; border: 3px solid var(--ink); border-radius: 0; background: var(--white); }
.quote-results h2 { margin: 0 0 16px; font-size: 2rem; }
.quote-results article { border-top: 2px solid var(--ink); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; text-transform: none; }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { border-top: 3px solid var(--ink); background: var(--white); max-width: none; margin: 0; padding: 26px max(28px, calc((100% - 1184px) / 2)) 36px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 1rem; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: var(--ink); font-weight: 700; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; text-underline-offset: 4px; }
.site-footer .footer-note { flex-basis: 100%; }

@media (max-width: 899px) {
  .stage { grid-template-columns: 1fr; }
  .stage-art { order: -1; padding: 28px 0 0; }
  .pole-art { width: min(100%, 300px); }
  .minimal-shell { padding-top: 32px; }
}

@media (max-width: 850px) {
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-intro { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 590px) {
  .header-inner { padding: 12px 18px; gap: 8px 14px; }
  .brand { font-size: .9375rem; gap: 10px; }
  .brand strong { font-size: 1.125rem; }
  .brand-mark { width: 44px; height: 44px; font-size: 1.375rem; }
  .header-link { margin-left: auto; padding: 0 14px; white-space: normal; text-align: center; }
  .stage { padding: 0 18px; }
  .pole-art { width: min(100%, 240px); }
  .minimal-shell h1 { margin-bottom: 28px; font-size: clamp(3rem, 15vw, 4.25rem); }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid a { min-height: 104px; padding: 18px 18px 16px 70px; justify-content: center !important; }
  .choice-grid a::before { top: 50%; left: 20px; margin-top: -15px; }
  .page-shell { padding: 40px 18px 64px; }
  .options { margin-top: 36px; grid-template-columns: 1fr; }
  .option { min-height: 0; padding: 22px; }
  .option .option-action { margin-top: 20px; }
  .question-section { margin-top: 44px; padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .quote-form fieldset { padding: 20px 16px; }
  .product-switch a { padding: 0 14px; }
  .site-footer { padding: 24px 18px 34px; }
  .local-wrap { padding: 52px 18px 72px; }
  .local-section-heading { margin-top: 44px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .local-grid, .local-weather-lead, .local-news-list { grid-template-columns: 1fr; }
  .local-card { padding: 22px 18px; }
  .local-weather-lead { gap: 14px; }
  .local-alert, .local-advisory { padding: 20px 16px; gap: 12px; }
  .local-day { flex-basis: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-link, .choice-grid a, .choice-grid a::before, .option, .product-switch a, .form-bottom button, .quote-submit button { transition: none; }
  .header-link:hover, .choice-grid a:hover::before, .form-bottom button:hover, .quote-submit button:hover, .quote-results button:hover { transform: none; }
}
