/* Cathedral City Insurance: a book bound with its structure showing. Walnut boards, linen chain-stitch down the spine, pumice rag-paper leaves. */
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/jost-500.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"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-400.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --walnut: #2a1e17;
  --walnut-hi: #3a2a20;
  --walnut-line: #54402f;
  --linen: #e0d3b6;
  --linen-dim: #a89873;
  --pumice: #ebe8e1;
  --pumice-hi: #f7f5f0;
  --rule: #cdc4b2;
  --ink: #221c17;
  --muted: #4f463d;
  --cobalt: #1d4a96;
  --cobalt-deep: #143a78;
  --marigold: #e3a62d;
  --alarm: #8f2d14;
  --accent: #1d4a96;
  --accent-dark: #143a78;
  --line: #cdc4b2;
  --spine: 72px;
  --gutter: clamp(22px, 4vw, 52px);
  --display: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --stitch: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='56' viewBox='0 0 72 56'><rect width='72' height='56' fill='%233a2a20'/><rect x='66' width='6' height='56' fill='%232a1e17'/><path d='M12 1H60' stroke='%23e0d3b6' stroke-width='2.4' stroke-linecap='round'/><circle cx='12' cy='1' r='3' fill='%2317100b'/><circle cx='60' cy='1' r='3' fill='%2317100b'/><g fill='none' stroke='%23e0d3b6' stroke-width='2.6'><ellipse cx='36' cy='14' rx='8' ry='15'/><ellipse cx='36' cy='42' rx='8' ry='15'/></g></svg>");
  --fibre: repeating-linear-gradient(0deg, rgba(70, 52, 34, .035) 0 1px, transparent 1px 5px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: var(--walnut-line) var(--walnut); }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  background-color: var(--walnut);
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, rgba(255, 235, 200, .025) 0 1px, transparent 1px 23px);
  overflow-x: clip;
}
::selection { background: var(--cobalt-deep); color: var(--pumice-hi); }
a { color: var(--cobalt-deep); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); }

/* ---------- boards: header and footer sit on the walnut ---------- */
.site-header { border: 0; background: none; padding: 22px 0 8px; }
.header-inner { width: min(100% - 32px, 1120px); max-width: none; margin: auto; padding: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline-color: var(--marigold); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--linen); text-decoration: none; font: 500 1rem/1.2 var(--display); letter-spacing: .02em; }
.brand:hover { color: #fff; }
.brand strong { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 2px dashed var(--linen); border-radius: 50%; background: var(--walnut-hi); color: var(--linen); font: 700 1.35rem/1 var(--display); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--linen); font: 500 1rem/1.2 var(--display); letter-spacing: .03em; white-space: nowrap; text-decoration: underline dashed; text-decoration-thickness: 2px; text-underline-offset: 7px; cursor: pointer; }
.header-link:hover { color: #fff; }
.header-link span { color: var(--marigold); }

.site-footer { width: min(100% - 32px, 1120px); max-width: none; margin: 32px auto 0; padding: 26px 0 40px; border-top: 2px dashed var(--walnut-line); display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 26px; color: var(--linen); font: 500 1rem/1.5 var(--display); }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: #fff; font-weight: 700; }
.site-footer a { color: var(--linen); text-underline-offset: 4px; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-note { flex-basis: 100%; color: #d3c6a8; font: 400 .9375rem/1.5 var(--text); }

/* ---------- leaves: rag paper on the spine ---------- */
.book, .page-shell, .local-wrap {
  position: relative;
  width: min(100% - 32px, 1120px);
  max-width: none;
  margin: 22px auto 0;
  background-color: var(--pumice); background-image: var(--stitch), var(--fibre); background-position: left top, 0 0; background-size: var(--spine) auto, auto; background-repeat: repeat-y, repeat;
  border-radius: 0;
  border: 1px solid #0b0705; border-left: 0;
}
.book { padding: clamp(22px, 4vw, 40px) var(--gutter) clamp(34px, 5vw, 56px) calc(var(--spine) + var(--gutter)); }
.page-shell { padding: clamp(32px, 5vw, 60px) var(--gutter) clamp(44px, 6vw, 80px) calc(var(--spine) + var(--gutter)); }
.local-wrap { padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(48px, 7vw, 88px) calc(var(--spine) + var(--gutter)); margin-top: 0; }

/* ---------- home ---------- */
.plate { margin: 0 0 clamp(18px, 3vw, 32px); padding-bottom: 16px; border-bottom: 2px dashed var(--linen-dim); }
.plate svg { display: block; width: 100%; height: auto; max-height: 300px; }
.minimal-shell { width: auto; min-height: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.minimal-shell h1 { margin: 0 0 clamp(22px, 3vw, 34px); color: var(--ink); font: 700 clamp(2.6rem, 6.4vw, 5.1rem)/.98 var(--display); letter-spacing: -.025em; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.choice-grid a {
  position: relative;
  min-height: 132px;
  padding: 22px 22px 22px 34px;
  display: flex;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  text-align: left !important;
  border: 1px solid #b9ae98;
  border-radius: 2px 6px 6px 2px;
  background-color: var(--pumice-hi); background-image: var(--fibre);
  box-shadow: inset 0 0 0 4px var(--pumice-hi), inset 0 0 0 5px var(--rule);
  color: var(--ink);
  font: 700 clamp(1.2rem, 2vw, 1.5rem)/1.15 var(--display);
  letter-spacing: -.005em;
  text-decoration: none;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.choice-grid a::before { content: ""; position: absolute; left: 14px; top: 14px; bottom: 14px; width: 0; border-left: 3px dotted var(--linen-dim); }
.choice-grid a:hover, .choice-grid a:focus-visible { background: var(--cobalt-deep); color: var(--pumice-hi); box-shadow: inset 0 0 0 4px var(--cobalt-deep), inset 0 0 0 5px #8fa8d4; }
.choice-grid a:hover::before, .choice-grid a:focus-visible::before { border-left-color: var(--marigold); border-left-style: solid; }
.choice-grid a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.agency-line { margin: clamp(24px, 3vw, 34px) 0 0; padding-top: 16px; border-top: 2px dashed var(--linen-dim); color: var(--muted); font: 500 1rem/1.5 var(--display); letter-spacing: .02em; }
.agency-line a { color: var(--cobalt-deep); font-weight: 700; display: inline-block; padding: 8px 0; }

/* ---------- local board: further leaves ---------- */
.local-board { margin: 26px 0 0; border: 0; background: none; color: var(--ink); }
.local-board + .local-board { margin-top: 26px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 0 0 30px; border-bottom: 2px dashed var(--linen-dim); }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--muted); font: 500 1rem/1.3 var(--display); letter-spacing: 0; text-transform: none; }
.local-kicker { margin: 0 0 14px; }
.local-kicker span { padding: 0 6px; color: var(--cobalt-deep); }
.local-intro h2 { color: var(--ink); font: 700 clamp(2.4rem, 5.6vw, 4.4rem)/1 var(--display); letter-spacing: -.025em; }
.local-intro > div > p:last-child { max-width: 540px; margin: 18px 0 0; color: var(--muted); font-size: 1.125rem; }
.local-generated { flex: none; margin: 0 0 3px; color: var(--muted); font: 500 .9375rem/1.3 var(--display); }
.local-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px 20px; margin: clamp(44px, 6vw, 64px) 0 20px; padding-bottom: 12px; border-bottom: 2px dashed var(--linen-dim); }
.local-section-heading h3 { color: var(--ink); font: 700 clamp(1.7rem, 3.4vw, 2.5rem)/1.05 var(--display); letter-spacing: -.015em; }
.local-section-heading > span { order: 2; text-align: right; }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.local-card { min-width: 0; padding: 26px 28px 24px; border: 1px solid #b9ae98; border-radius: 0; background-color: var(--pumice-hi); background-image: var(--fibre); box-shadow: inset 0 0 0 4px var(--pumice-hi), inset 0 0 0 5px var(--rule); }
.local-card h4 { margin: 8px 0 18px; color: var(--ink); font: 700 clamp(1.5rem, 2.8vw, 2rem)/1.1 var(--display); letter-spacing: -.01em; }
.local-card-kicker { margin: 0; }
.local-card .local-copy { margin: 10px 0; color: #3b332b; max-width: 68ch; }
.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 dotted var(--linen-dim); color: var(--muted); font: 500 .875rem/1.4 var(--display); letter-spacing: .02em; }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--cobalt-deep); font: 700 1rem/1.2 var(--display); text-underline-offset: 4px; }
.local-wide { grid-column: 1 / -1; }
.local-weather-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; padding: 10px 0 24px; border-bottom: 2px dotted var(--linen-dim); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; }
.local-big-temp { color: var(--cobalt-deep); font: 700 clamp(5rem, 11vw, 8.5rem)/.85 var(--display); letter-spacing: -.05em; }
.local-weather-condition { max-width: 200px; color: var(--muted); font-size: 1.125rem; }
.local-weather-note { padding-bottom: 6px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 1rem; }
.local-weather-note strong { color: var(--ink); font: 700 1.125rem/1.3 var(--display); }
.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 dotted var(--linen-dim); }
.local-day { flex: 0 0 150px; padding: 0 14px; border-left: 2px dotted var(--linen-dim); display: flex; flex-direction: column; gap: 5px; font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.local-day:first-child { padding-left: 0; border-left: 0; }
.local-day strong { color: var(--ink); font: 700 1rem/1.3 var(--display); }
.local-day-temp { color: var(--cobalt-deep); font: 700 1.4rem/1.2 var(--display); }
.local-small-label { margin: 22px 0 12px; }
.local-hour-strip { gap: 9px; padding-bottom: 6px; }
.local-hour { flex: 0 0 96px; padding: 11px 10px; border: 1px solid var(--rule); border-radius: 0; background: var(--pumice); display: flex; flex-direction: column; gap: 3px; font-size: .9375rem; color: var(--muted); }
.local-hour strong { color: var(--ink); font: 700 1.3rem/1.2 var(--display); }
.local-big-number { margin: 14px 0 8px; color: var(--cobalt-deep); font: 700 4.6rem/.95 var(--display); letter-spacing: -.04em; }
.local-radar { margin: 18px 0 0; overflow: hidden; border: 2px solid var(--walnut-hi); border-radius: 2px; background: var(--walnut-hi); }
.local-radar img { display: block; width: 100%; height: auto; }
.local-radar figcaption { padding: 7px 10px; color: var(--linen); font: 500 .875rem/1.4 var(--display); }
.local-alert, .local-advisory { display: flex; gap: 18px; padding: 22px 26px; margin-top: 20px; border: 2px solid var(--alarm); border-radius: 0; background: #f8e7dd; }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--alarm); color: #fff; font: 700 1.2rem/1 var(--display); }
.local-alert h3, .local-advisory h3 { margin: 6px 0 8px; color: var(--ink); font: 700 1.25rem/1.3 var(--display); }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; border: 2px dashed #5a78a8; background: #e0e8f3; }
.local-advisory-mark { flex: none; color: var(--cobalt-deep); font-size: 2.4rem; line-height: 1; }
.local-advisory h3 { font: 700 clamp(1.2rem, 2.5vw, 1.7rem)/1.2 var(--display); }
.local-advisory-alert { border: 2px solid var(--alarm); background: #f8e7dd; }
.local-row { padding: 12px 0; border-bottom: 2px dotted var(--rule); }
.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: 700 1.0625rem/1.35 var(--display); text-decoration-color: var(--linen-dim); text-underline-offset: 4px; }
a.local-row-title:hover { color: var(--cobalt-deep); }
.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: 34px; }
.local-market-name { display: block; font: 700 1.1rem/1.3 var(--display); }
.local-lottery { padding: 12px 0; border-bottom: 2px dotted var(--rule); display: flex; flex-direction: column; gap: 5px; }
.local-lottery strong { font: 700 1.3rem/1.2 var(--display); letter-spacing: .04em; }

/* ---------- inner pages ---------- */
.eyebrow { margin: 0 0 8px; color: var(--muted); font: 500 1.125rem/1.3 var(--display); letter-spacing: 0; text-transform: none; }
.intro { padding-bottom: 26px; border-bottom: 2px dashed var(--linen-dim); }
.intro h1 { color: var(--ink); font: 700 clamp(2.5rem, 6vw, 4.8rem)/1 var(--display); letter-spacing: -.025em; }
.intro-copy { margin: 20px 0 0; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.25rem); max-width: 660px; }
.options { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.option { min-width: 0; min-height: 240px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #b9ae98; border-radius: 0; background: var(--pumice-hi); }
.option-number { color: var(--muted); font: 500 1rem/1.3 var(--display); }
.option h2 { margin: 18px 0 8px; font-size: clamp(1.5rem, 2.7vw, 1.9rem); line-height: 1.12; }
.option p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 30ch; }
.option .option-action { margin-top: auto; padding: 12px 15px; min-height: 48px; width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 2px; color: var(--pumice-hi); background: var(--cobalt-deep); font: 700 1rem/1.25 var(--display); text-decoration: none; text-align: left; cursor: pointer; }
.option-action:hover { background: var(--ink); }
.option .option-note { margin-top: 8px; font-size: .9375rem; color: var(--muted); }

.question-section { scroll-margin-top: 25px; margin-top: 36px; padding: clamp(22px, 4vw, 40px); border: 2px dashed var(--linen-dim); border-radius: 0; background: transparent; }
.question-heading h2 { color: var(--ink); font: 700 clamp(1.9rem, 4vw, 2.7rem)/1.1 var(--display); }
.question-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.question-form { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font: 500 1.0625rem/1.3 var(--display); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 1px solid #7d715f; border-radius: 2px; padding: 12px 14px; color: var(--ink); background: #fff; font: 400 1.0625rem/1.4 var(--text); }
.form-grid input, .form-grid select { min-height: 50px; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--cobalt); outline: 3px solid var(--cobalt); outline-offset: 1px; }
.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; color: var(--ink); font: 400 1.0625rem/1.45 var(--text); }
.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(--cobalt-deep); }
.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: 54px; display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 2px; padding: 13px 24px; color: var(--pumice-hi); background: var(--cobalt-deep); font: 700 1.125rem/1.2 var(--display); letter-spacing: .01em; cursor: pointer; transition: background-color .2s; }
.form-bottom button:hover, .quote-submit button:hover, .quote-results button:hover { background: var(--ink); }
.quote-submit button:disabled, .quote-results button:disabled { cursor: wait; opacity: .65; }
.submit-note { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: 1rem; }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--cobalt-deep); font: 700 1rem/1.4 var(--display); }

.product-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 22px; }
.product-switch a { display: inline-flex; align-items: center; min-height: 48px; border: 1px solid #7d715f; border-radius: 2px 6px 6px 2px; padding: 8px 20px; background: var(--pumice-hi); color: var(--ink); font: 700 1.0625rem/1.2 var(--display); text-decoration: none; }
.product-switch a:hover { background: var(--pumice); border-color: var(--ink); }
.product-switch a[aria-current="page"] { border-color: var(--cobalt-deep); color: var(--pumice-hi); background: var(--cobalt-deep); }
.quote-form fieldset { min-width: 0; margin: 20px 0; padding: clamp(20px, 3vw, 30px); border: 2px dashed var(--linen-dim); border-radius: 0; background: transparent; }
.quote-form legend { padding: 0 10px; color: var(--ink); font: 700 1.4rem/1.2 var(--display); letter-spacing: -.005em; }
.quote-form .form-grid { margin-top: 4px; }
.quote-submit { margin: 24px 0 0; max-width: 720px; }
#quote-status { color: var(--cobalt-deep); font: 700 1rem/1.4 var(--display); }
.quote-results { margin: 30px 0 0; padding: clamp(20px, 3vw, 30px); border: 2px dashed var(--linen-dim); border-radius: 0; background: transparent; }
.quote-results h2 { margin: 0 0 16px; color: var(--ink); font-size: 1.8rem; }
.quote-results article { border-top: 2px dotted var(--linen-dim); padding: 20px 0; }
.quote-results article h3 { margin: 0 0 5px; color: var(--ink); font-size: 1.3rem; }
.quote-results article p { margin: 4px 0 13px; }

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

@media (max-width: 590px) {
  :root { --spine: 30px; --gutter: 18px; }
  .site-header { padding-top: 16px; }
  .header-inner { gap: 6px 16px; }
  .brand { font-size: .9375rem; gap: 10px; }
  .brand strong { font-size: 1.1rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.15rem; }
  .header-link { margin-left: 0; font-size: .9375rem; white-space: normal; }
  .options { margin-top: 34px; grid-template-columns: 1fr; gap: 12px; }
  .option { min-height: 0; padding: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .choice-grid { grid-template-columns: 1fr; gap: 12px; }
  .choice-grid a { min-height: 84px; padding: 18px 18px 18px 30px; }
  .local-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .local-section-heading > span { order: 0; text-align: left; }
  .local-grid, .local-weather-lead, .local-news-list { grid-template-columns: 1fr; }
  .local-card { padding: 22px 20px 20px; }
  .local-weather-lead { gap: 14px; }
  .local-alert, .local-advisory { padding: 20px 16px; gap: 12px; }
  .local-day { flex-basis: 128px; }
  .book { padding-right: 16px; }
  .page-shell { padding-right: 16px; }
  .local-wrap { padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choice-grid a, .form-bottom button, .quote-submit button { transition: none; }
}
