:root{
  --brand: #054C6D;
  --brand-dark: #033950;
  --brand-light: #E2EEF5;
  --brand-2: #2E7396;
  --accent: #B8770F;
  --accent-dark: #96610C;
  --paper: #FAFBFC;
  --surface: #FFFFFF;
  --ink: #1B1E24;
  --ink-soft: #454A52;
  --muted: #84898F;
  --rule: #E3E6EA;
  --ok: #2F6F4A;
  --warn: #B07D08;
  --error: #B33124;
  --font-heading: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: Georgia, Charter, 'Times New Roman', serif;
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; text-wrap: balance; }

/* Editable-content markers, consistent site-wide:
   *text*  -> em     : brand colour in headings, italic in running text
   **text** -> strong: accent colour in headings, bold in running text     */
h1 em, h2 em, h3 em { font-style: normal; color: var(--brand); }
h1 strong, h2 strong, h3 strong { font-weight: inherit; color: var(--accent); }

/* ============ header / nav ============ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
/* brand ink bar — the logo's petrol with an amber signature, echoing the mark */
.site-header::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 82%, var(--accent) 82%, var(--accent) 100%);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 26px;
  min-height: 84px;
}
.brand-mark {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 20px; letter-spacing: -.02em;
  color: var(--brand); text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: 12px;
}
.brand-mark b { color: var(--accent); }
.brand-mark img { display: block; height: 64px; width: auto; }
.brand-tagline {
  font-family: var(--font-heading);
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted); max-width: 150px; line-height: 1.35;
  border-left: 2px solid var(--rule-strong, var(--rule)); padding-left: 12px;
  display: none;
}
@media (min-width: 1000px) { .brand-tagline { display: block; } }
@media (max-width: 820px) {
  .site-header .wrap { min-height: 66px; }
  .brand-mark img { height: 48px; }
}

/* footer brand block */
.site-footer .footer-logo { display: block; height: 52px; width: auto; margin-bottom: 12px; }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a {
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a.nav-cta {
  background: var(--brand); color: var(--surface);
  padding: 9px 18px; border-radius: 6px; font-weight: 700;
}
.site-nav a.nav-cta:hover { background: var(--brand-dark); color: var(--surface); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule); border-radius: 6px;
  padding: 8px 12px; font-size: 18px; line-height: 1; color: var(--ink);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule);
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 24px; border-top: 1px solid var(--rule); }
  .site-nav a.nav-cta { margin: 10px 22px 8px; text-align: center; border-radius: 6px; }
}

/* ============ hero ============ */
.hero { padding: 56px 0 48px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 40px; align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.08;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede {
  font-size: 17.5px; line-height: 1.6; color: var(--ink-soft);
  max-width: 46ch; margin: 0 0 24px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 700;
  padding: 13px 24px; border-radius: 6px;
  text-decoration: none; display: inline-block; border: 0; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn.ghost:hover { background: var(--brand-light); }

/* newsletter cover fan */
.covers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  transform: rotate(-1.5deg); max-width: 420px; justify-self: end;
}
.cover {
  aspect-ratio: 8.5 / 11; border-radius: 4px;
  box-shadow: 0 8px 22px -6px var(--brand-light), 0 4px 10px rgba(0,0,0,.14);
  display: flex; align-items: flex-end; padding: 12px;
  font-family: var(--font-heading); font-size: 12px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.cover.has-img { padding: 0; background: var(--surface); }
.cover.has-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .4s ease;
}
.cover.v1 { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 75%); }
.cover.v2 { background: linear-gradient(160deg, var(--accent-dark) 0%, var(--accent) 75%); margin-top: 22px; }
.cover.v3 { background: linear-gradient(160deg, #2E7D6B 0%, #57A896 75%); margin-top: -22px; }
.cover.v4 { background: linear-gradient(160deg, #7A4E9E 0%, #A47CC7 75%); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .covers { justify-self: center; max-width: 320px; }
}

/* ============ stat band ============ */
.statband {
  background: var(--surface);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.statband .wrap { display: flex; flex-wrap: wrap; padding: 0; }
.statband .stat {
  flex: 1 1 150px; padding: 22px 26px;
  border-right: 1px solid var(--rule);
}
.statband .stat:first-child { border-left: 1px solid var(--rule); }
.statband .stat b {
  display: block;
  font-family: var(--font-heading);
  font-size: 27px; font-weight: 800; letter-spacing: -.02em;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
.statband .stat span {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* ============ sections ============ */
.section { padding: 60px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px;
}
.section .sub {
  font-size: 16.5px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 30px;
}
.kicker {
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 10px;
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.section.alt .card { background: var(--paper); }
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.card .num {
  font-family: var(--font-heading);
  font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1;
}

/* county / coverage chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-heading);
  font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 99px;
  padding: 7px 15px; color: var(--ink-soft);
}
.chip b { color: var(--brand); font-variant-numeric: tabular-nums; }
.chip-btn { cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); }
.chip-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-btn.active b { color: #fff; }

/* coverage map */
.map-shell { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; }
#coverageMap { height: min(62vh, 560px); width: 100%; background: var(--surface-2, var(--surface)); }
.map-totals {
  position: absolute; left: 14px; bottom: 14px; z-index: 900;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 10px 16px;
  font-family: var(--font-heading); font-size: 14px; color: var(--ink-soft);
}
.map-totals b { color: var(--brand); font-variant-numeric: tabular-nums; }

/* about page quotes */
.quote-card blockquote { margin: 0 0 10px; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); font-style: italic; }
.quote-card figcaption { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--muted); }

/* newsletter reader */
.reader-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.reader-issues { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 20px; }
.reader-year { font-family: var(--font-heading); font-size: 13px; font-weight: 800; color: var(--ink); margin: 12px 0 4px; }
.reader-year:first-of-type { margin-top: 0; }
.reader-month { display: block; font-family: var(--font-heading); font-size: 14px; padding: 7px 10px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; }
.reader-month:hover { background: var(--brand-light); }
.reader-month.active { background: var(--brand); color: #fff; font-weight: 700; }
.reader-cover { display: flex; flex-direction: column; align-items: flex-start; }
.reader-cover-img { max-width: 340px; width: 100%; border-radius: 4px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.3); display: block; }
@media (max-width: 700px) { .reader-grid { grid-template-columns: 1fr; } .reader-issues { order: 2; } }

/* newsletter finder */
.nl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.nl-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  justify-content: space-between; flex-wrap: wrap;
}
.nl-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nl-card-body b { font-family: var(--font-heading); font-size: 15px; }
.nl-card-body span { font-family: var(--font-heading); font-size: 12.5px; color: var(--muted); }
.nl-print { font-family: var(--font-heading); font-size: 12px; color: var(--muted); font-style: italic; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* find-your-newsletter search */
.finder {
  display: flex; max-width: 540px;
  background: var(--surface); border: 2px solid var(--brand); border-radius: 8px;
  overflow: hidden;
}
.finder input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 14px 18px; font-size: 15.5px; font-family: var(--font-heading); color: var(--ink);
}
.finder input:focus { outline: none; }
.finder button {
  border: 0; background: var(--brand); color: var(--surface);
  font-family: var(--font-heading); font-weight: 700; font-size: 14.5px;
  padding: 0 24px; cursor: pointer;
}
.finder button:hover { background: var(--brand-dark); }

/* contact strip */
.contact-strip {
  background: var(--brand); color: var(--surface);
  padding: 48px 0;
}
.contact-strip h2 { color: var(--surface); font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 800; margin-bottom: 8px; }
.contact-strip p { color: var(--brand-light); font-size: 16px; margin: 0 0 22px; max-width: 56ch; }
.contact-strip .btn.primary { background: var(--accent); }
.contact-strip a.phone {
  font-family: var(--font-heading);
  color: var(--surface); font-weight: 800; font-size: 20px; text-decoration: none;
}

/* ============ footer ============ */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--rule);
  padding: 40px 0 32px;
  font-family: var(--font-heading); font-size: 14px; color: var(--ink-soft);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 60px; }
.site-footer h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer .legal {
  flex-basis: 100%; margin-top: 10px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}

/* ============ advertise page ============ */
.floor-badge {
  font-family: var(--font-heading);
  display: inline-block; margin: 0 0 22px;
  background: var(--brand-light); color: var(--brand-dark);
  border: 1px solid var(--brand); border-radius: 99px;
  padding: 8px 18px; font-size: 15px;
}
.floor-badge b { font-size: 17px; }

.size-diagram { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.size-row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 14px; align-items: center; }
.size-name { font-family: var(--font-heading); font-size: 14px; font-weight: 700; }
.size-bar {
  display: block; height: 26px; border-radius: 4px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%);
  min-width: 24px;
}
.size-pct { font-family: var(--font-heading); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) {
  .size-row { grid-template-columns: 100px 1fr; }
  .size-pct { display: none; }
}

/* community picker */
.picker {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  overflow: hidden; margin-bottom: 24px;
}
.picker-tools {
  display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.picker-tools input[type="search"] {
  flex: 1 1 220px; min-width: 0;
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 10px 14px; font-size: 15px; font-family: var(--font-heading);
  background: var(--paper); color: var(--ink);
}
.picker-tools select {
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 10px 12px; font-size: 14px; font-family: var(--font-heading);
  background: var(--paper); color: var(--ink);
}
.picker-list {
  max-height: 320px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2px; padding: 8px;
}
.pick-item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  font-family: var(--font-heading);
}
.pick-item:hover { background: var(--brand-light); }
.pick-item input { grid-row: 1 / span 2; width: 17px; height: 17px; accent-color: var(--brand); }
.pick-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.pick-meta { grid-column: 2; font-size: 12px; color: var(--muted); }
.pick-empty { padding: 22px; font-family: var(--font-heading); color: var(--muted); grid-column: 1 / -1; }
.picker-total {
  padding: 13px 16px; border-top: 1px solid var(--rule);
  font-family: var(--font-heading); font-size: 14.5px; color: var(--ink-soft);
  background: var(--paper);
}
.picker-total b { color: var(--brand); font-variant-numeric: tabular-nums; }

/* lead form */
.lead-form { max-width: 720px; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.lead-fields .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 11px 14px; font-size: 15px; font-family: var(--font-heading);
  background: var(--surface); color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
@media (max-width: 620px) { .lead-fields { grid-template-columns: 1fr; } }
.fine { font-family: var(--font-heading); font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

.notice {
  font-family: var(--font-heading); font-size: 15px; line-height: 1.5;
  border-radius: 8px; padding: 16px 20px; margin-bottom: 24px; max-width: 720px;
}
.notice.ok  { background: var(--brand-light); border: 1px solid var(--ok); color: var(--ink); }
.notice.err { background: var(--surface); border: 1.5px solid var(--error); color: var(--ink); }

/* ============ payment pages (minimal chrome) ============ */
.minimal-help { margin-left: auto; font-family: var(--font-heading); font-size: 13.5px; color: var(--muted); }
.minimal-help a { font-weight: 700; text-decoration: none; }
.site-footer.minimal { margin-top: 40px; padding: 20px 0; }

.pay-wrap { max-width: 560px; margin: 40px auto 0; padding: 0 18px; }
.pay-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 26px 28px;
}
.pay-kicker {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 6px;
}
.pay-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: 4px; }
.pay-sub { font-family: var(--font-heading); font-size: 14px; color: var(--muted); margin: 0 0 20px; }

.pay-opt {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--rule); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  font-family: var(--font-heading); font-size: 15px;
}
.pay-opt:hover { border-color: var(--brand); }
.pay-opt input { accent-color: var(--brand); width: 17px; height: 17px; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.pay-opt .amt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); }

.pay-btn {
  width: 100%; margin-top: 10px;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 15px; font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  cursor: pointer;
}
.pay-btn:hover { background: var(--accent-dark); }

.pay-ok {
  text-align: center; padding: 18px 0;
  font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--ok);
}
.pay-note { font-family: var(--font-heading); font-size: 13px; color: var(--muted); margin-top: 12px; }
.pay-err {
  text-align: center; padding: 26px 8px;
  font-family: var(--font-heading); font-size: 15.5px; color: var(--error);
}
.pay-meta { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.pay-meta .row {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-heading); font-size: 15px;
  border-bottom: 1px dotted var(--rule); padding-bottom: 8px;
}
.pay-meta .row b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
