/* Service area hub and the five city pages. Loaded through page(extra_css). Mobile first; breakpoints 768 and 1024. */

html:has(body.page-areas) { scroll-padding-top: calc(var(--header-h) + 64px); }

/* ------------------------------------------------ city pages: sticky section strip under the header */
.area-jump { position: sticky; top: var(--header-h); z-index: 40; background: var(--paper); border-block: 1px solid var(--hair); }
.area-jump .jump-nav { margin: 0; position: static; }
.area-jump .jump-title { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
.area-jump ol { display: flex; gap: 28px; border: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.area-jump ol::-webkit-scrollbar { display: none; }
.area-jump a { margin: 0; padding: 14px 0 12px; border-left: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; }
.area-jump a:hover { color: var(--pine); }
.area-jump a.is-active, .area-jump a[aria-current="true"] { color: var(--pine); border-left: 0; border-bottom-color: var(--pine); }

/* ------------------------------------------------ hub: map 7, intro 5 */
.area-intro h2 { font-size: var(--fs-h3); max-width: 22ch; margin-bottom: 20px; }
.area-intro .split-b p { max-width: 60ch; }
.area-intro .split-b p + p { margin-top: 16px; }
@media (min-width: 1024px) { .area-intro { align-items: center; } }

/* hub: city cards, the whole card is the link target */
.area-cards { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .area-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.area-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--paper-light); border-radius: var(--radius-card); }
.area-base { font-size: 14px; font-weight: 600; color: var(--pine); }
.area-base.is-drive { color: var(--muted); }
.area-card h3 { font-size: var(--fs-h4); }
.area-card h3 a { color: var(--ink); text-decoration: none; }
.area-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.area-card:hover h3 a { color: var(--pine); text-decoration: underline; text-underline-offset: 4px; }
.area-card-facts { border-top: 1px solid var(--hair); }
.area-card-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.area-card-facts dt { flex: 0 0 auto; color: var(--muted); font-weight: 500; }
.area-card-facts dd { font-weight: 600; text-align: right; }
.area-card > p:last-child { color: var(--muted); font-size: 15px; }
.area-cards-sec .note { margin-top: 32px; }

/* ------------------------------------------------ city: story 7 (sticky on desktop), local facts 5 */
.area-story h2 { max-width: 20ch; margin-bottom: 20px; }
.area-story p { max-width: 62ch; }
.area-story p + p { margin-top: 16px; }
.area-local .facts-panel dd { font-size: 16px; font-weight: 500; line-height: 1.5; }
@media (min-width: 1024px) {
  .area-story { position: sticky; top: calc(var(--header-h) + 88px); }
  .area-local .facts-panel dl { grid-template-columns: minmax(0, 1fr); }
}

/* city: common jobs, the "why" line stays visible on phones */
.page-areas .jobs-grid .card .card-body > p.card-line { display: block; }

/* ------------------------------------------------ partial hooks without a site.css rule yet */
.page-areas .page-hero-copy, .page-areas .cta-band-copy { min-width: 0; }
.area-map-figure figcaption { max-width: 60ch; }

/* PHONE PASS 2026-11-06. Phone-only (under 768px). */
@media (max-width: 767px) {
  .area-card { padding: 20px; gap: 10px; }
  .area-card-facts div { padding: 8px 0; }
  .area-card > p:last-child { display: none; }
  .page-areas .facts-panel dd { font-size: 16px; font-weight: 500; line-height: 1.5; }

  .area-jump { position: static; }
  html:has(body.page-areas) { scroll-padding-top: calc(var(--header-h) + 16px); }

  /* common jobs keep their local line: name, one line, link */
  .jobs-grid .card.text .card-body { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 18px; }
  .jobs-grid .card.text .card-line { display: block; font-size: 16px; line-height: 1.45; }
}
