/* /areas/ hub and "Garden rooms in <town>" pages (generated by scripts/make-area-pages.py).
   Additive only: builds on style.css (.page-header, .section, .container, .btn). */

.areas-crumbs { font-size: 15px; margin-bottom: 14px; color: var(--color-ink-soft); }
.areas-crumbs a { color: var(--color-primary-text); text-decoration: underline; }
/* 44px tap targets with no change to the line (padding + matching negative margin) */
.areas-crumbs a { display: inline-block; padding: 13px 4px; margin: -13px -4px; }
.areas-crumbs span[aria-hidden] { margin-inline: 4px; }

.areas-lead { max-width: 34em; font-size: var(--fs-lead); line-height: 1.55; color: var(--color-secondary); }
.areas-text h2, .areas-cols h2,
main .section > .container > h2 { margin-bottom: 0.55em; font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.areas-group h2 { margin-bottom: 0.7em; font-size: 28px; font-weight: 600; line-height: 1.15; }
.areas-text h2 + p, .areas-text h2 { margin-top: 0; }
.areas-text p + h2, .areas-text ul + h2 { margin-top: 1.4em; }
main .section a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.areas-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.areas-split--flip .areas-photo { order: -1; }
.areas-photo { margin: 0; }
.areas-photo img { width: 100%; height: auto; border-radius: var(--radius-md); }

.areas-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 1.6em 0 0; padding: 24px 28px;
  background: var(--color-stone); border-radius: var(--radius-md); }
.areas-facts div { min-width: 0; }
.areas-facts dt { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--color-ink-soft); }
.areas-facts dd { margin: 2px 0 0; font-size: 18px; line-height: 1.4; color: var(--color-secondary); font-weight: 600; }

.areas-list { margin: 0 0 1em; }
.areas-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.areas-list li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 6px;
  border-left: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary); transform: rotate(-45deg); }

.areas-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }

/* the three steps: a real sequence, so still an ordered list; set as the green-bar text row with
   the number on the heading line (no cards) */
.areas-steps { list-style: none; counter-reset: step; margin: var(--space-head) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.areas-steps li { position: relative; counter-increment: step; padding-top: 28px; border-top: 1px solid rgba(50, 63, 70, 0.16); }
.areas-steps li::before { content: ""; position: absolute; left: 0; top: -2px; width: 48px; height: 3px; background: var(--color-primary); }
.areas-steps h3 { margin-bottom: 12px; font-size: 24px; line-height: 1.2; color: var(--color-secondary); }
.areas-steps h3::before { content: counter(step) ". "; }
.areas-steps p { margin: 0; font-size: 17px; }

.areas-near { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 32px; margin: 8px 0 1.4em; }
.areas-near li, .areas-towns li { max-width: none; }
.areas-near li span, .areas-towns li span { font-size: 15px; color: var(--color-ink-soft); white-space: nowrap; }
/* nearby towns: the distance sits under the name; the hub's long lists set it beside the name */
.areas-near li span { display: block; margin: -8px 0 6px; line-height: 1.3; }
.areas-towns li span { margin-left: 4px; }
/* 44px tap targets */
.areas-near a { display: inline-block; padding-block: 12px; line-height: 1.35; }
.areas-towns a { display: inline-block; padding-block: 11px; }

/* closing band: navy (set with .section--primary in style.css). First button light, second a white
   outline, the third action a text link: never three buttons in a row. */
.areas-cta { text-align: center; }
main .section--primary > .container > h2 { max-width: 20ch; margin: 0 auto 24px; font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
.areas-cta p { max-width: 36em; margin-inline: auto; font-size: clamp(18px, 1.6vw, 20px); }
.areas-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.areas-cta .areas-actions { justify-content: center; }
.areas-cta .btn.areas-btn--light { background-color: transparent; color: var(--color-white) !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8); }
.areas-cta .btn.areas-btn--light:hover, .areas-cta .btn.areas-btn--light:focus-visible { background-color: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1.5px var(--color-white); }
.areas-cta .btn.areas-btn--light:nth-child(n+3) { padding-inline: 8px; box-shadow: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.areas-cta .btn.areas-btn--light:nth-child(n+3):hover, .areas-cta .btn.areas-btn--light:nth-child(n+3):focus-visible { background-color: transparent; box-shadow: none; color: var(--color-sage) !important; }

.areas-groups { display: grid; gap: 56px; }
.areas-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; font-size: 17px; }
.areas-towns li { line-height: 1.35; }

@media (max-width: 1023px) {
  .areas-split, .areas-cols { gap: 40px; }
  .areas-steps { gap: 32px; }
}
@media (max-width: 767px) {
  .areas-split, .areas-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .areas-split--flip .areas-photo { order: 0; }
  .areas-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .areas-steps h3 { font-size: 22px; }
  .areas-steps p { font-size: 16px; }
  .areas-facts { grid-template-columns: 1fr; padding: 20px; }
  .areas-facts dd { font-size: 17px; }
  .areas-groups { gap: 40px; }
  .areas-group h2 { font-size: 24px; }
  .areas-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
  .areas-actions .btn { width: 100%; justify-content: center; }
}
