/* PKB Civils – location pages (tools/areas.py). Loaded only on the area pages and /areas-we-cover/, so the rest of
   the site's CSS (and its fingerprinted link) is untouched. Same tokens and look as site.css. */

/* Byline under the H1 */
.byline { margin: -4px 0 14px; font-size: .95rem; color: var(--pearl); }
.byline a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.byline a:hover { text-decoration-color: var(--orange); }

/* Article: copy on the left, "At a glance" beside it (first on a phone) */
.area-article__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.area-article__grid > .area-glance { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
.area-article__grid > .area-prose { grid-column: 1; grid-row: 1; }
@media (max-width: 900px) {
  .area-article__grid { grid-template-columns: minmax(0, 1fr); }
  .area-article__grid > .area-glance, .area-article__grid > .area-prose { grid-column: 1; grid-row: auto; position: static; }
}
.area-prose { max-width: 70ch; }
.area-prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 1.8em 0 .55em; }
.area-prose h2:first-child { margin-top: 0; }
.area-prose strong { color: #fff; font-weight: 700; }
.area-prose a { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.area-prose a:hover { color: var(--orange); }

/* "At a glance": a table of sourced facts on a raised panel */
.area-glance { min-width: 0; background: var(--navy-2); border-radius: var(--radius-lg); padding: 24px 24px 12px; }
.area-glance h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 0 0 8px; }
.glance { width: 100%; border-collapse: collapse; font-size: .95rem; overflow-wrap: anywhere; }
.glance th, .glance td { display: block; text-align: left; padding: 0; }
.glance tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance tr:last-child { border-bottom: 0; }
.glance th { color: var(--muted); font-weight: 700; font-size: .85rem; margin-bottom: 3px; }
.glance td { color: #fff; line-height: 1.5; }
.glance td strong { font-weight: 700; }
.glance__src { display: inline-block; margin-left: 4px; font-size: .8rem; color: var(--muted); }
a.glance__src { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 2px; }
a.glance__src:hover { color: var(--orange); }

/* Mid-page call to action: solid orange */
.area-cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.area-cta__row h2 { margin-bottom: .25em; text-wrap: balance; }
.area-cta__row p { margin: 0; max-width: 60ch; }

/* City hub: one card per service in the city (navy cards on orange, like "What we do") */
.area-services__head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 36px); }
.area-services__head p { color: #fff; }
.area-services__head a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.area-services__grid, .area-index { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.area-svc, .area-city { flex: 0 1 calc((100% - 32px) / 3); min-width: 260px; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.area-svc:hover, .area-city:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 13, 40, .4); }
.area-svc__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.area-svc__icon svg { width: 24px; height: 24px; }
.area-svc h3, .area-city h3 { color: #fff; font-size: 1.2rem; margin: 0 0 8px; }
.area-svc p { color: var(--pearl); font-size: .98rem; line-height: 1.55; margin: 0 0 18px; }
.area-svc .link-arrow { margin-top: auto; color: var(--orange); }
.area-svc .link-arrow svg { color: var(--orange); }
@media (max-width: 640px) { .area-svc, .area-city { flex-basis: 100%; min-width: 0; } }

/* "Other services in {City}" and "{Service} nearby", over a photo */
.area-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px clamp(28px, 5vw, 64px); }
.area-links h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 16px; }
.area-links__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-links__list .btn { white-space: normal; text-align: left; }

/* Author block */
.author-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; background: var(--navy-2); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); max-width: 860px; margin: 0 auto; }
.author-card__photo img { width: 120px; height: 120px; object-fit: cover; object-position: 50% 15%; border-radius: 50%; background: var(--navy-3); }
.author-card h2 { font-size: 1.3rem; margin: 0 0 2px; }
.author-card h2 a { text-decoration: none; }
.author-card h2 a:hover { color: var(--orange); }
.author-card__role { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.author-card p { color: var(--pearl); }
.author-card__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
@media (max-width: 560px) { .author-card { grid-template-columns: 1fr; } .author-card__photo img { width: 96px; height: 96px; } }

/* /areas-we-cover/: one card per city */
.area-city ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.area-city a { color: var(--pearl); text-decoration: none; }
.area-city a:hover { color: var(--orange); }
