/* San Rafael Insurance Policies: the Boyd Gate House in its park, rebuilt from a few flat planes on a quiet grid. */
@font-face { font-family: "Red Hat Display"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/red-hat-display-800.woff2) format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-weight: 900; font-style: normal; font-display: swap; src: url(/fonts/red-hat-display-900.woff2) format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/red-hat-text-400.woff2) format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/red-hat-text-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --fog: #dfe6e4;
  --haze: #cbd9d5;
  --paper: #f4f7f6;
  --ink: #0a2132;
  --muted: #34495a;
  --navy: #0f2f46;
  --navy-lift: #174563;
  --girder: #3f6258;
  --tang: #e8590c;
  --tang-text: #a83c05;
  --amber: #f0b43c;
  --on-navy: #e8eeed;
  --link: #0b4a73;
  --accent: #0f2f46;
  --accent-dark: #0f2f46;
  --line: #0f2f46;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Red Hat Display", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --text: "Red Hat Text", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --col: min(100% - 40px, 1180px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--fog); font: 400 1.0625rem/1.62 var(--text); overflow-x: clip; }
::selection { background: var(--amber); color: var(--ink); }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { color: var(--tang-text); text-decoration-thickness: 3px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 4px solid var(--tang); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; }

/* ---------- the navy plane at the top of every page ---------- */
.site-header { border: 0; background: var(--navy); color: var(--on-navy); }
.header-inner { width: var(--col); max-width: none; margin: auto; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: #fff; text-decoration: none; font-size: 1rem; line-height: 1.2; letter-spacing: 0; }
.brand strong { display: block; font: 800 1.2rem/1.15 var(--display); letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 0; background: var(--tang); color: var(--ink); font: 900 1.6rem/1 var(--display); }
.brand:hover { color: var(--amber); }
.header-link { display: inline-flex; align-items: center; min-height: 48px; border: 0; padding: 0; background: transparent; color: var(--on-navy); white-space: nowrap; font-weight: 700; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: .25em; cursor: pointer; }
.header-link:hover { color: var(--amber); }
.header-link span { color: var(--amber); }

/* ---------- home stage: the gate house, with the six choices laid over the lawn ---------- */
.stage { position: relative; }
.stage-art { line-height: 0; overflow: hidden; }
.span-svg { display: block; width: 100%; height: clamp(250px, 37vw, 560px); }
.sun { transform: translateY(var(--rise, 0px)); transition: transform .9s var(--ease); }
.stage:has(.choice-grid a:nth-child(1):is(:hover, :focus-visible)) { --rise: -14px; }
.stage:has(.choice-grid a:nth-child(2):is(:hover, :focus-visible)) { --rise: -28px; }
.stage:has(.choice-grid a:nth-child(3):is(:hover, :focus-visible)) { --rise: -42px; }
.stage:has(.choice-grid a:nth-child(4):is(:hover, :focus-visible)) { --rise: -56px; }
.stage:has(.choice-grid a:nth-child(5):is(:hover, :focus-visible)) { --rise: -70px; }
.stage:has(.choice-grid a:nth-child(6):is(:hover, :focus-visible)) { --rise: 18px; }

.stage-panel { position: relative; width: var(--col); margin: calc(-1 * clamp(72px, 9vw, 150px)) auto 0; }
.minimal-shell { width: auto; min-height: 0; margin: 0; padding: clamp(26px, 3.4vw, 46px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "title grid" "agency grid"; column-gap: clamp(28px, 4vw, 56px); align-content: start; background: var(--paper); }
.minimal-shell h1 { grid-area: title; margin: 0; font: 900 clamp(2.5rem, 5.2vw, 4.6rem)/.96 var(--display); letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.choice-grid { grid-area: grid; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice-grid a { position: relative; overflow: hidden; min-width: 0; min-height: 132px; padding: 18px; display: flex; align-items: flex-end; border: 0; border-radius: 0; background: var(--navy); color: #fff; font: 800 clamp(1.1rem, 1.7vw, 1.35rem)/1.18 var(--display); letter-spacing: 0; text-decoration: none; transition: transform .45s var(--ease), background-color .3s; }
.choice-grid a::after { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 17px; border-radius: 0 0 34px 34px; background: var(--tang); transform-origin: 50% 0; transition: transform .45s var(--ease); }
.choice-grid a:nth-child(1) { background: var(--navy); }
.choice-grid a:nth-child(2) { background: var(--girder); }
.choice-grid a:nth-child(3) { background: var(--tang); color: var(--ink); }
.choice-grid a:nth-child(3)::after { background: var(--ink); }
.choice-grid a:nth-child(4) { background: var(--amber); color: var(--ink); }
.choice-grid a:nth-child(4)::after { background: var(--navy); }
.choice-grid a:nth-child(5) { background: var(--haze); color: var(--ink); }
.choice-grid a:nth-child(5)::after { background: var(--girder); }
.choice-grid a:nth-child(6) { background: #fff; color: var(--ink); box-shadow: inset 0 -10px 0 var(--navy); padding-bottom: 28px; }
.choice-grid a:nth-child(6)::after { background: var(--tang); }
.choice-grid a:hover, .choice-grid a:focus-visible { transform: translateY(-6px); color: inherit; box-shadow: none; }
.choice-grid a:nth-child(1):hover, .choice-grid a:nth-child(2):hover { color: #fff; }
.choice-grid a:nth-child(6):hover { box-shadow: inset 0 -10px 0 var(--navy); }
.choice-grid a:hover::after, .choice-grid a:focus-visible::after { transform: scale(1.5); }
.choice-grid a:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
.choice-grid a:active { transform: translateY(0); }
.agency-line { grid-area: agency; align-self: end; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 1rem; font-weight: 700; line-height: 1.5; }
.agency-line a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); }
.agency-line a:hover { color: var(--tang-text); }

.shore { line-height: 0; overflow: hidden; }
.fence-svg { display: block; width: 100%; height: clamp(54px, 7vw, 100px); }

/* ---------- local board (filled at runtime) ---------- */
.local-board { position: relative; isolation: isolate; overflow-x: clip; border: 0; background: none; color: var(--ink); }
.local-wrap { width: var(--col); max-width: none; margin: auto; padding: 88px 0 72px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 40px; padding: 0 0 30px; border-bottom: 10px solid var(--navy); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--muted); font: 700 .95rem/1.3 var(--text); letter-spacing: 0; text-transform: none; }
.local-intro > div { display: flex; flex-direction: column; align-items: flex-start; }
.local-intro h2 { order: 1; }
.local-kicker { order: 2; margin: 14px 0 0; }
.local-intro > div > p:last-child { order: 3; }
.local-kicker span { padding: 0 7px; color: var(--tang-text); }
.local-intro h2 { font: 900 2.9rem/.96 var(--display); letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.local-intro > div > p:last-child { max-width: 46ch; margin: 18px 0 0; color: var(--ink); font-size: 1.15rem; }
.local-generated { flex: none; margin: 0; color: var(--muted); font-size: .95rem; font-weight: 700; text-align: right; }
.local-section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 76px 0 28px; }
.local-section-heading h3 { order: 1; font: 800 2.2rem/1.02 var(--display); letter-spacing: -.01em; color: var(--navy); }
.local-section-heading > span { order: 2; position: relative; padding-left: 40px; color: var(--tang-text); }
.local-section-heading > span::before { content: ""; position: absolute; left: 0; top: 50%; width: 28px; height: 14px; margin-top: -7px; border-radius: 28px 28px 0 0; background: var(--tang); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.local-grid:empty { display: none; }
.local-card { min-width: 0; padding: 30px 30px 26px; border: 0; border-radius: 0; background: var(--paper); box-shadow: inset 0 10px 0 var(--navy); }
.local-grid > .local-card:nth-child(4n+2) { box-shadow: inset 0 10px 0 var(--girder); }
.local-grid > .local-card:nth-child(4n+3) { box-shadow: inset 0 10px 0 var(--tang); }
.local-grid > .local-card:nth-child(4n+4) { box-shadow: inset 0 10px 0 var(--amber); }
.local-card h4 { margin: 14px 0 20px; font: 800 1.65rem/1.1 var(--display); letter-spacing: 0; color: var(--navy); }
.local-card-kicker { margin: 10px 0 0; }
.local-card .local-copy { margin: 10px 0; max-width: 62ch; color: var(--ink); }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: 1rem; }
.local-source { margin: 22px 0 0; padding-top: 14px; border-top: 3px solid var(--haze); color: var(--muted); font-size: .9rem; font-weight: 700; letter-spacing: 0; }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--link); font-size: 1rem; font-weight: 700; text-underline-offset: .22em; }
.local-link:hover { color: var(--tang-text); }
.local-wide { grid-column: 1 / -1; }

/* weather: the forecast plane beside rain and UV on wide screens */
#local-now { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
#local-now > .local-wide { grid-column: 1; grid-row: 1 / span 2; }
.local-weather-lead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 44px; padding: 8px 0 28px; border: 0; }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; }
.local-big-temp { font: 900 clamp(5rem, 9vw, 7.4rem)/.88 var(--display); letter-spacing: -.04em; color: var(--tang-text); }
.local-weather-condition { max-width: 230px; color: var(--navy); font-size: 1.25rem; font-weight: 700; }
.local-weather-note { max-width: 38ch; padding: 0; display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-size: 1.05rem; }
.local-weather-note strong { color: var(--navy); font-size: 1.15rem; }
.local-day-strip, .local-hour-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--navy) var(--haze); padding-bottom: 8px; }
.local-day-strip { margin-bottom: 14px; }
.local-day, .local-hour { flex: 0 0 142px; padding: 14px 14px 12px; border: 0; border-radius: 0; background: var(--fog); display: flex; flex-direction: column; gap: 4px; font-size: .95rem; line-height: 1.3; color: var(--muted); }
.local-hour { flex-basis: 98px; }
.local-day:first-child { padding-left: 14px; }
.local-day strong { color: var(--ink); font-size: 1rem; }
.local-day-temp { color: var(--tang-text); font: 800 1.6rem/1.1 var(--display); }
.local-hour strong { color: var(--navy); font: 800 1.5rem/1.1 var(--display); }
.local-small-label { margin: 18px 0 10px; color: var(--navy); }
.local-big-number { margin: 12px 0 8px; color: var(--navy); font: 900 4.4rem/.95 var(--display); letter-spacing: -.03em; }
.local-radar { margin: 18px 0 0; padding: 8px 8px 0; overflow: hidden; border: 0; border-radius: 0; background: var(--navy); }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 9px 4px 10px; color: var(--on-navy); font-size: .9rem; }

/* alerts and advisory */
.local-alert, .local-advisory { display: flex; gap: 18px; padding: 24px 28px; margin: 0 0 24px; border: 0; border-radius: 0; background: var(--amber); color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 700; }
.local-alert h3, .local-advisory h3 { margin: 4px 0 8px; font: 800 1.45rem/1.2 var(--display); color: var(--ink); }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; background: var(--haze); }
.local-advisory-mark { flex: none; color: var(--tang-text); font-size: 2.6rem; line-height: 1; }
.local-advisory-alert { background: var(--amber); }

/* rows, lists */
.local-row { padding: 12px 0; border-bottom: 3px solid var(--fog); }
.local-row:first-of-type { padding-top: 0; }
.local-row:last-of-type { border-bottom: 0; }
.local-row-title { display: block; padding-top: 2px; color: var(--link); font-size: 1.08rem; font-weight: 700; line-height: 1.35; text-decoration-color: currentColor; text-underline-offset: .22em; }
.local-row-title:hover { color: var(--tang-text); }
strong.local-row-title { color: var(--navy); text-decoration: none; }
.local-row-detail { display: block; margin-top: 3px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.local-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
.local-market-name { display: block; font-size: 1.1rem; }
.local-lottery { padding: 14px 0 10px; border-bottom: 3px solid var(--fog); display: flex; flex-direction: column; gap: 4px; }
.local-lottery a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.local-lottery strong { color: var(--navy); font: 800 1.6rem/1.15 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
#local-practical .local-card { max-width: 660px; }

/* the navy band: Closer to home reads as the bay itself */
.local-section-heading:has(+ #local-safety) { margin: 96px 0 0; padding: 56px 24px 29px 0; margin-bottom: -1px; background: var(--navy); box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(-1px -100vmax); }
.local-section-heading:has(+ #local-safety) h3 { color: #fff; }
.local-section-heading:has(+ #local-safety) > span { color: var(--amber); }
.local-section-heading:has(+ #local-safety) > span::before { background: var(--amber); }
#local-safety { margin: 0; padding: 0 0 70px; background: var(--navy); box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(-1px -100vmax); }
#local-safety .local-card { background: var(--navy-lift); box-shadow: inset 0 10px 0 var(--amber); color: var(--on-navy); }
#local-safety .local-grid > .local-card:nth-child(n), #local-safety > .local-card:nth-child(n) { box-shadow: inset 0 10px 0 var(--amber); }
#local-safety .local-card h4 { color: #fff; }
#local-safety .local-card-kicker, #local-safety .local-subtle, #local-safety .local-row-detail, #local-safety .local-source { color: #d3dfe3; }
#local-safety .local-source { border-top-color: var(--girder); }
#local-safety .local-copy { color: var(--on-navy); }
#local-safety a, #local-safety .local-row-title, #local-safety .local-link { color: #fff; }
#local-safety strong.local-row-title { color: #fff; }
#local-safety a:hover, #local-safety .local-row-title:hover { color: var(--amber); }
#local-safety .local-row, #local-safety .local-lottery { border-bottom-color: var(--girder); }
#local-safety .local-big-number, #local-safety .local-lottery strong { color: var(--amber); }

#city-notes .local-wrap { padding: 80px 0 72px; }
#city-notes .local-section-heading { margin-top: 0; }

/* ---------- inner pages: quote and question ---------- */
.page-shell { width: var(--col); max-width: none; margin: auto; padding: 56px 0 84px; }
.intro { display: flex; flex-direction: column; }
.intro h1 { order: 1; margin: 0; font: 900 clamp(2.6rem, 6vw, 5rem)/.96 var(--display); letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.eyebrow { order: 2; position: relative; margin: 18px 0 0; padding-left: 40px; color: var(--tang-text); font: 700 1rem/1.3 var(--text); letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 28px; height: 14px; margin-top: -7px; border-radius: 28px 28px 0 0; background: var(--tang); }
.intro-copy { order: 3; margin: 18px 0 0; max-width: 56ch; color: var(--ink); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

.options { margin-top: 55px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.option { min-width: 0; min-height: 247px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 0; border-radius: 0; background: var(--paper); box-shadow: inset 0 10px 0 var(--navy); transition: transform .4s var(--ease); }
.option:hover { transform: translateY(-5px); }
.option-number { color: var(--tang-text); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.option h2 { margin: 16px 0 7px; font: 800 clamp(1.5rem, 2.4vw, 1.9rem)/1.12 var(--display); color: var(--navy); }
.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: #fff; background: var(--navy); font-weight: 700; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--tang); color: var(--ink); }
.option-action span { font-size: 19px; line-height: 1; }
.option .option-note { margin-top: 7px; font-size: .95rem; color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 48px; padding: clamp(24px, 4vw, 46px); border: 0; border-radius: 0; background: var(--paper); box-shadow: inset 0 12px 0 var(--navy); padding-top: clamp(40px, 5vw, 58px); }
.question-heading h2 { font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1.08 var(--display); color: var(--navy); }
.question-heading > p:last-child { margin: 13px 0 0; color: var(--muted); }
.question-form { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--ink); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 2px solid var(--navy); border-radius: 0; padding: 12px 14px; color: var(--ink); background: #fff; font-weight: 400; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 4px solid var(--tang); outline-offset: 1px; }
.form-grid input, .form-grid select { min-height: 50px; }
.form-grid textarea { min-height: 136px; 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; }
.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: 1px 0 0; accent-color: var(--navy); }
.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: 30px; }
.form-bottom button, .quote-submit button, .quote-results button { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; border: 0; border-radius: 0; padding: 13px 24px; color: #fff; background: var(--navy); font: 800 1.1rem/1.2 var(--display); cursor: pointer; transition: transform .35s var(--ease), background-color .25s; }
.form-bottom button:hover, .quote-submit button:hover, .quote-results button:hover { background: var(--tang); color: var(--ink); transform: translateY(-3px); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .6; transform: none; }
.submit-note { max-width: 62ch; margin: 22px 0 0; color: var(--muted); font-size: 1rem; }
.form-status { min-height: 22px; margin: 13px 0 0; color: var(--navy); font-weight: 700; font-size: 1rem; }

.product-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 38px 0 28px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 0; border-radius: 0; padding: 8px 20px; background: var(--haze); color: var(--ink); font: 800 1.05rem/1.2 var(--display); text-decoration: none; }
.product-switch a:hover { background: var(--amber); color: var(--ink); }
.product-switch a[aria-current="page"] { background: var(--navy); color: #fff; box-shadow: inset 0 -6px 0 var(--tang); padding-bottom: 14px; }
.quote-form fieldset { min-width: 0; margin: 20px 0; padding: 40px 30px 30px; border: 0; border-radius: 0; background: var(--paper); box-shadow: inset 0 10px 0 var(--navy); }
.quote-form fieldset:nth-of-type(2n) { box-shadow: inset 0 10px 0 var(--girder); }
.quote-form fieldset:nth-of-type(3n) { box-shadow: inset 0 10px 0 var(--tang); }
.quote-form legend { padding: 0; float: left; width: 100%; margin: 0 0 14px; font: 800 1.6rem/1.15 var(--display); letter-spacing: 0; color: var(--navy); }
.quote-form legend + * { clear: both; }
.quote-form .form-grid { margin-top: 4px; }
.quote-submit { margin: 22px 0 55px; max-width: 760px; }
#quote-status { color: var(--navy); font-weight: 700; }
.quote-results { margin: 40px 0 70px; padding: 36px 28px 28px; border: 0; border-radius: 0; background: var(--paper); box-shadow: inset 0 10px 0 var(--tang); }
.quote-results h2 { margin: 0 0 16px; font: 800 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--display); color: var(--navy); }
.quote-results article { border-top: 3px solid var(--haze); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; font: 800 1.4rem/1.15 var(--display); color: var(--navy); }
.quote-results article p { margin: 4px 0 13px; }

.site-footer { border: 0; max-width: none; margin: 0; padding: 30px max(20px, calc((100% - 1180px) / 2)) 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 28px; background: var(--navy); color: var(--on-navy); font-size: 1rem; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: #fff; font-weight: 700; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-underline-offset: .22em; }
.site-footer a:hover { color: var(--amber); }
.site-footer .footer-note { flex-basis: 100%; }

@media (min-width: 961px) {
  .local-intro h2 { font-size: 5rem; }
  .local-section-heading h3 { font-size: 2.8rem; }
  .local-card h4 { font-size: 1.85rem; }
}

@media (max-width: 960px) {
  .minimal-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "grid" "agency"; row-gap: 26px; }
  .minimal-shell h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agency-line { margin-top: 4px; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-intro { align-items: flex-start; flex-direction: column; }
  .local-generated { text-align: left; }
  #local-now, .local-grid { grid-template-columns: minmax(0, 1fr); }
  #local-now > .local-wide { grid-column: 1; grid-row: auto; }
  .local-weather-lead, .local-news-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 590px) {
  body { font-size: 1.0625rem; }
  :root { --col: min(100% - 32px, 1180px); }
  .header-inner { padding: 8px 0; }
  .brand { font-size: .95rem; gap: 10px; }
  .brand strong { font-size: 1.1rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.4rem; }
  .header-link { white-space: normal; min-height: 44px; }
  .span-svg { height: 230px; }
  .stage-panel { margin-top: -46px; }
  .minimal-shell { padding: 24px 18px 22px; }
  .choice-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .choice-grid a { min-height: 84px; padding: 16px; }
  .choice-grid a:nth-child(6) { padding-bottom: 24px; }
  .page-shell { padding: 40px 0 64px; }
  .options { margin-top: 37px; grid-template-columns: 1fr; }
  .option { min-height: 0; padding: 23px; }
  .question-section { margin-top: 36px; padding: 40px 18px 26px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .quote-form fieldset { padding: 36px 18px 24px; }
  .local-wrap { padding: 60px 0 48px; }
  .local-section-heading { margin-top: 56px; }
  .local-section-heading:has(+ #local-safety) { margin-top: 64px; padding-top: 44px; }
  .local-card { padding: 26px 20px 22px; }
  .local-alert, .local-advisory { padding: 22px 18px; gap: 12px; }
  .local-day { flex-basis: 128px; }
  .site-footer { padding: 26px 16px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun, .choice-grid a, .choice-grid a::after, .option, .form-bottom button, .quote-submit button, .quote-results button { transition: none; }
  .choice-grid a:hover, .choice-grid a:focus-visible, .option:hover, .form-bottom button:hover, .quote-submit button:hover, .quote-results button:hover { transform: none; }
  .choice-grid a:hover::after, .choice-grid a:focus-visible::after { transform: none; }
  .stage { --rise: 0px !important; }
}
