/* Phoenix Drywall & Insulation · the area pages, v7 (6 Nov 2026; website/redesign/ROLLOUT-V7.md). Loaded after
   system.css and inner.css on /areas and the three /areas/* pages (Area.astro and areas/index.astro pass it in `css`).
   Everything else on these pages is the shared system: IFold, the grounds (every .chap alternates ember / primed up
   from the copper close, inner.css), the caps heads (system.css .head), .split, .lead / .txt / .statement, .mrows,
   .grid2 + .tile, .posts, .voice, .faq, the home's region tiles (.reg), Close. This file is only what the area pages
   add: the towns line, the intro, the job log (the town on its photo; the home's tiles, three across, on desktop),
   What we did here (tiles), the other regions line, the hub's regions (round 8, 6 Nov). Every colour here reads the ground's tokens
   (--fg / --fg2 / --hair, or the older names inner.css re-binds); text on a photo reads --onph on a shade under the
   words only. No radius, no shadows, every :hover inside (hover: hover). The C version is in git (b069974). */

/* ---- the fold (IFold): its grid row was `auto`, so each photo drew at its own height and showed only its top, and
   pos / posD did nothing (a tall 4:5 at 1440 showed the ceiling). The row is the frame's height here; the shared
   fix belongs in inner.css (reported to the shared group), this only scopes it to the area pages until then. ---- */
.ifold__media { grid-template-rows: minmax(0, 1fr); }
.ifold__media img { min-height: 0; }

/* ---- the towns a caption names: names in Bitter (places are names), on one line that wraps between towns, never
   inside one, and never starts with a separator ("Barrie ·" stays together; the break falls after the dot). Its own
   class: system.css .towns is the home's moving copper band. ---- */
.area-towns { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--hair); font: 300 26px/1.4 var(--display); letter-spacing: -.005em; color: var(--fg); text-wrap: pretty; }
.area-towns li { display: inline; white-space: nowrap; }
.area-towns li:not(:last-child)::after { content: "\00a0\00b7"; color: var(--fg2); }

/* ---- the intro under the fold (no chapter name, as on a service page) ---- */
.area-intro .lead + .area-towns { margin-top: 24px; }
.area-intro__b { margin-top: 28px; }
.area-intro__b .lead + .txt { margin-top: 14px; }
/* the one review that names a region (Muskoka): a .voice on its own, the source as a spec line */
.area-review blockquote { margin: 0; }
.area-review figcaption { margin-top: 12px; }

/* ---- the job log (Area.astro): each job's top is its photo with the town and when on it (a shade under the words
   only), or its two photos with the town across them (a job with its own story), or the town alone over a hairline
   where no photo is theirs to show; their lines under it ---- */
.area-log { gap: 36px; }
.area-log__top { position: relative; }
.area-log__top--on > .mrow__h { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 64px 14px 14px; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--scrim), .86) 0%, rgba(var(--scrim), .55) 50%, rgba(var(--scrim), 0) 100%); }
.area-log__top--on .mrow__name { color: var(--onph); }
.area-log__top--on .spec { color: var(--onph); opacity: .85; }
.mrow__h { margin: 0; display: grid; gap: 4px; justify-items: start; font: inherit; letter-spacing: normal; }
.mrow__h .mrow__name { display: block; margin: 0; }
.area-log .mrow--bare .area-log__top { padding-top: 16px; border-top: 1px solid var(--hair); }
.area-log .mrow--bare .mrow__body { padding-top: 10px; border-top: 0; }
.area-log .mrow__q { font-size: 17px; line-height: 1.45; }
.area-log .mrow__q, .area-log .mrow__p { max-width: 62ch; }   /* a story's lines under its two photos stay a reading measure */
.area-log .mrow__q + .mrow__q, .area-log .mrow__p + .mrow__q { margin-top: 2px; }
.area-log .mrow__go { margin-top: -4px; }
.area-log__intro { color: var(--fg2); }

/* ---- Questions: a one-question band (Barrie) is shorter than the bar's chapter line (chapter-bar.js: the bar plus
   30% of the screen), so a jump to it from the menu showed "Free quote" in the bar. Only while it is the jump target
   (the menu's links set the hash) is it that tall; otherwise it is as tall as its question (fix round 1). ---- */
.area-faq:target { min-height: calc(32vh + 8px); }

/* ---- What we did here (round 8): one tile per line. Phones: a row each, the photo half the column at 4:5, the line
   and its service link(s) beside it. From 768px: three across, the photo at 4:5, the words under it. ---- */
.area-did { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.area-did__i { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; align-items: start; }
.area-did__img { aspect-ratio: 4 / 5; }
.area-did__body { display: grid; gap: 2px; align-content: start; justify-items: start; min-width: 0; }
.area-did__line { margin: 0; font: 300 19px/1.32 var(--display); color: var(--fg); text-wrap: pretty; }
.area-did__to { display: flex; flex-wrap: wrap; gap: 0 18px; }
.area-did__to .mrow__go { font-size: 15px; }

/* ---- the town over the top of the photo where the subject sits low in the frame (Area.astro `top`) ---- */
.area-log__top--on.area-log__top--hi > .mrow__h { top: 0; bottom: auto; padding: 14px 14px 56px;
  background: linear-gradient(to bottom, rgba(var(--scrim), .86) 0%, rgba(var(--scrim), .5) 55%, rgba(var(--scrim), 0) 100%); }

/* ---- the one inline ask after the jobs (InlineAsk.astro, inside the jobs section) ---- */
.area-log + .area-ask { margin-top: 36px; }

/* ---- Other regions: one line of links under Questions ---- */
.area-others { margin-top: 28px; }
.area-others__k { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--fg2); }
.area-others__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.area-others__list .mrow__go { padding: 10px 0; }

/* ---- the hub: one chapter per region. Phones: the region's photo across the column with its name on it (the
   home's region tile), its towns and line, then the story and the jobs as two photo tiles. Desktop: the region's
   photo on the left, its words and the two tiles on the right. ---- */
.hub-reg__tile { display: block; }
.hub-reg__name { margin: 0; font-size: 26px; line-height: 1.12; padding: 72px 16px 16px; }
.hub-reg__k { margin-top: 22px; }
.hub-reg__towns { margin-top: 8px; padding-top: 0; border-top: 0; font-size: 23px; }
.hub-reg__line { margin-top: 12px; }
.hub-reg__go { margin-top: 22px; }
.hub-reg__go .frame { display: block; }
.hub-reg__go .tile__name .arw { display: inline-block; margin-left: 6px; vertical-align: middle; }
.hub-reg .after { margin-top: 20px; }
.hub-intro .lead { max-width: 34ch; }
.hub-reg__more { display: grid; gap: 0; justify-items: start; }

/* ---- tablets: a story's two photos take both columns of the log ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .area-log .mrow--story { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .area-did { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .area-did__i { grid-template-columns: minmax(0, 1fr); }
  .area-did__body { padding-top: 14px; }
}

/* ---- desktop: a re-composition of the phone, not its source ---- */
@media (min-width: 1024px) {
  .area-towns { font-size: 34px; padding-top: 22px; }
  .area-intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 0 88px; align-items: start; }
  .area-intro__b { margin-top: 0; }
  /* no page lines beside it (Georgian Bay): the lede on the left, the towns on the right */
  .area-intro__a:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: 0 88px; align-items: start; }
  .area-intro__a:only-child > .area-towns { margin-top: 0; }

  /* the log as the home's tiles: a 6-column grid; Area.astro places each job (--gc, --gr). A job with a photo is a
     tile, a third, its photo at 4:5 with the town on it; a story spans two thirds with its two photos at the tiles'
     width (the pair's gap is the grid's, so every frame lines up). The jobs with no photo are a text list: two
     across under full rows of tiles, or in the columns the last tile row leaves free, a tight column there: the
     tiles beside it span one more row, a 1fr row (--rows) that takes what they need beyond the list. No unveil on
     these frames: the clip held their lazy photos back until it opened, so they showed empty first. */
  .mrows.area-log { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: var(--rows, none); gap: 56px 24px; }
  .area-log > li { grid-column: var(--gc, auto / span 2); grid-row: var(--gr, auto); }
  .area-log .mrow__img { aspect-ratio: 4 / 5; }
  .area-log .mrow__img img { height: 100%; max-height: none; }
  .area-log__top--on > .mrow__h { padding: 112px 22px 20px; gap: 6px; }
  .area-log .mrow__name { font-size: 30px; }
  .area-log .mrow--bare .mrow__name { font-size: 26px; }
  .area-log .mrow__q { font-size: 19px; }
  .area-log .mrow--bare .area-log__top { padding-top: 20px; }

  .area-did { gap: 24px; }
  .area-did__line { font-size: 22px; }
  .area-did__to .mrow__go { font-size: 16px; }
  .area-log__top--on.area-log__top--hi > .mrow__h { padding: 20px 22px 96px; }
  .area-log + .area-ask { margin-top: 56px; }
  /* Questions (.chap--qs: head left, list right): the other regions under the list */
  .chap--qs .area-others { grid-column: 2; margin-top: 36px; }

  /* round 8 fix pass: the region photo spans the whole right column, top to bottom (the 3:2 frame ended 120px above
     the tiles at 1440, and the Georgian Bay tiles started below it at 1024). The row is as tall as the words and tiles;
     the photo adds no height of its own (absolute in its frame), only a floor so a short column never squashes it. */
  .hub-reg__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 0 56px; align-items: stretch; }
  .hub-reg__tile { display: flex; flex-direction: column; min-height: 360px; }
  .inner .hub-reg__tile .reg__media { position: relative; flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
  .hub-reg__tile .reg__media img { position: absolute; inset: 0; }
  .hub-reg__go .frame.r45 { aspect-ratio: 3 / 2; }   /* the two job tiles at 3:2 */
  .hub-reg__more { grid-column: 2; }                 /* the last region's two links, under its tiles */
  .hub-reg__name { font-size: 40px; padding: 120px 28px 26px; }
  .hub-reg__side { padding-top: 4px; }
  .hub-reg__k { margin-top: 0; }
  .hub-reg__towns { font-size: 30px; }
  .hub-reg__line { margin-top: 16px; }
  .hub-reg__go { margin-top: 32px; }
}
