/* County pages (counties/<slug>.html, generated by src/generators/counties.py).
   Builds on area.css: the hero, "Living in" grid and "Known for" list are shared. */

.county-hero,
.county-guides,
.county-towns,
.county-commute { --note: #8A847B; }

/* ---------- Hero: aligned to the page column, slightly deeper scrim ---------- */
.county-hero::before {
  background: linear-gradient(180deg, rgba(20, 20, 18, .45) 0%, rgba(20, 20, 18, 0) 30%, rgba(20, 20, 18, .78) 100%);
}
.county-hero .area-hero-inner { max-width: none; padding: 0 var(--edge) clamp(56px, 7vw, 88px); }
.county-hero h1 { text-wrap: balance; }
.county-hero p { max-width: 640px; }

/* County seat / schools facts under the intro */
.county-facts {
  margin: 12px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
  border-top: 1px solid var(--ink); padding-top: 24px;
}
.county-facts > div { display: flex; flex-direction: column; gap: 4px; }
.county-facts dt { font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.county-facts dd { margin: 0; font-family: var(--serif); font-size: 24px; }

/* Shared section heading: eyebrow over a serif title */
.county-head-copy { display: flex; flex-direction: column; gap: 14px; }
.county-head-copy .eyebrow { color: var(--link); }
.county-head-copy h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.015em;
}
.county-count { color: var(--ink-muted); }

/* ---------- Neighborhood guides (Howard, Anne Arundel) ---------- */
.county-guides {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: clamp(72px, 9vw, 128px);
  --strip-min-height: clamp(120px, 12vw, 180px);
  --strip-name-size: clamp(30px, 3.8vw, 54px);
}
.county-guides-head {
  padding: 0 var(--edge) 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px;
}

/* ---------- Communities ---------- */
.county-towns { background: #F7F4EF; padding: clamp(72px, 9vw, 128px) var(--edge); }
.county-towns-inner,
.county-commute-inner { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.county-towns-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.county-ask { font-size: 14px; color: var(--ink-muted); }
.county-ask a { font-weight: 600; }
.county-town-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  column-gap: clamp(24px, 3vw, 48px);
}
.county-town-list li { border-top: 1px solid #D9D3C9; }
.county-town-list li > span { display: block; padding: 20px 0; font-family: var(--serif); font-size: 26px; color: var(--ink-soft); }
.county-town-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 0; color: var(--ink); }
.county-town-list a:hover { color: var(--link); }
.county-town-list a > span:first-child { font-family: var(--serif); font-size: 26px; }
.county-town-list .arrow { font-size: 20px; color: var(--link); }

/* ---------- Getting around ---------- */
.county-commute { padding: clamp(72px, 9vw, 128px) var(--edge); }
.county-commute-grid {
  margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.county-commute-grid > div { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--ink); padding-top: 20px; }
.county-commute-grid dt { font-size: 15px; color: var(--ink-muted); order: 2; }
.county-commute-grid dd { margin: 0; font-family: var(--serif); font-size: clamp(36px, 3.6vw, 48px); line-height: 1; }
.county-note { font-size: 13px; color: var(--note); }

/* ---------- Booking band: left-aligned to the page column ---------- */
.county-cta { padding-left: var(--edge); padding-right: var(--edge); }
.county-cta .cta-band-inner { margin: 0; }
