/* sm-town.css: town pages only (design-lead, 2026-11-18). Dan's pick, deliver/boards/picked-town.html, B "Story band".
   Written by hand against build-town.js's markup; every rule is scoped to body.sm-page.town. Tokens and the shared parts
   (header, footer, buttons, the form frame, the FAQ) are in sm-site.css. The board's proportions are the 1240 px wrap at
   1440; below 1024 the bands stack. Amber (--cta) never appears here as text or a small mark on light: dots and the note's
   rule use --accent, the darker gold.

   Round 2 (2026-11-19, Dan's markup): no credentials row in the hero; the lead and the H1 use the wrap's full width (one
   line for the lead at 1024 and up); the close is stacked and centered (heading, lead, the steps in a row, then the form)
   so nothing sits beside the form; no rule here touches the form or its heading (the shared .form owns both: no box,
   22/24 px).

   Round 3 (2026-11-19): the story band's photo comes inside the wrap as a 3:2 crop with room above and below, at the rules
   band's padding; the step numerals are About's (.ab-num); headings of three or four words keep their last two together
   (build-town.js), so nothing wraps three and one.

   Layout pass (2026-11-19, check-layout): no max-width narrows a heading below its column (the houses head, a one-column
   rules band); a paragraph build-town.js marks .t-line (it fits one line in the wrap) drops its reading width.

   Sections, top to bottom: .t-hero (centered words, wide photo, facts tiles), .t-rules (the county's rules + a note card),
   .t-story (the brand band, text and a 3:2 photo side by side inside the wrap), .t-walks (house rows), .t-svc (pills), .t-near (one
   line), .t-close (inside the cta-bar: stacked, the form last). */

/* ---------- hero: centered ---------- */
.sm-page.town .t-hero { padding: 28px 0 0; text-align: center; }
.sm-page.town .t-hero h1 { font-size: var(--h1-inner); margin: 0 auto; }
.sm-page.town .t-lead { margin: 16px auto 0; font-size: 18px; }
.sm-page.town .t-wide { margin: 28px 0 0; }
.sm-page.town .t-wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 38%; border-radius: var(--r); }
/* one tile per row on a phone: a fact's joined last words ("Building and Safety") are wider than half of 375 and pushed
   the page sideways by 16 px (round 3) */
.sm-page.town .t-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 10px 0 0; text-align: left; }
@media (min-width: 480px) { .sm-page.town .t-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sm-page.town .t-facts div { background: var(--alt); border-radius: var(--r); padding: 14px 16px; }
.sm-page.town .t-facts dt { font-size: 14px; color: var(--muted); }
.sm-page.town .t-facts dd { margin: 2px 0 0; font: 600 17px/1.3 var(--head); color: var(--brand); }
@media (min-width: 768px) {
  .sm-page.town .t-hero { padding-top: 44px; }
  .sm-page.town .t-lead { font-size: 19px; margin-top: 20px; }
  .sm-page.town .t-wide { margin-top: 36px; }
  .sm-page.town .t-wide img { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
  .sm-page.town .t-facts { gap: 14px; margin-top: 14px; }
  .sm-page.town .t-facts div { padding: 18px 24px; }
  .sm-page.town .t-facts dd { font-size: 19px; }
}
@media (min-width: 1024px) {
  .sm-page.town .t-hero { padding-top: 60px; }
  .sm-page.town .t-wide { margin-top: 44px; }
  .sm-page.town .t-wide img { aspect-ratio: 3 / 1; }   /* the band standard (DESIGN-DIRECTION.md "Photo slot sizes") */
  .sm-page.town .t-facts { grid-template-columns: repeat(4, 1fr); }
  .sm-page.town .t-facts dd { font-size: 20px; }
}

/* ---------- rules band: the county's rule, a note card beside it ---------- */
.sm-page.town .t-rules { padding: 56px 0; }
.sm-page.town .t-rules .wrap { display: grid; gap: 28px; align-items: start; }
.sm-page.town .t-rules h2 { font-size: 30px; margin-bottom: 18px; }
.sm-page.town .t-rules p + p { margin-top: 16px; }
.sm-page.town .t-note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 22px 24px; }
.sm-page.town .t-note p { font-size: 18px; }
.sm-page.town .t-note p + p { margin-top: 12px; }
.sm-page.town .t-note strong { color: var(--brand); }
@media (min-width: 768px) {
  .sm-page.town .t-rules { padding: 72px 0; }
  .sm-page.town .t-rules h2 { font-size: 36px; }
  .sm-page.town .t-note { padding: 26px 30px; }
}
@media (min-width: 1024px) {
  .sm-page.town .t-rules { padding: 96px 0; }
  .sm-page.town .t-rules .wrap { grid-template-columns: 1fr 1fr; gap: 72px; }
  /* one column, no note card: the heading and a one-line paragraph (.t-line, marked by build-town.js) use the whole wrap;
     the rest keep the 760 px reading width (layout pass, 2026-11-19; REWRITE-STANDARD 7, 13.3) */
  .sm-page.town .t-rules .wrap.t-one { grid-template-columns: minmax(0, 1fr); }
  .sm-page.town .t-rules .t-one .t-rules-text > :not(h2):not(.t-line) { max-width: 760px; }
  .sm-page.town .t-note { margin-top: 62px; }
}

/* ---------- story: the brand band. Round 3 (Dan, 2026-11-19: "TOO TIGHT... Make the picture more horizontal"; REWRITE-
   STANDARD 13.14): the photo sits inside the wrap, never off the edge, a 3:2 crop centered against the text, so it has room
   above and below; the band's padding is the rules band's (56 / 72 / 96), one rhythm down the page. ---------- */
.sm-page.town .t-story { background: var(--brand); color: var(--on-brand-muted); --accent: var(--cta); --link: var(--on-brand); padding: 56px 0; }
.sm-page.town .t-story .wrap { display: grid; gap: 32px; }
.sm-page.town .t-story h2 { color: var(--on-brand); font-size: 32px; margin-bottom: 20px; }
.sm-page.town .t-story p { font-size: 17px; }
.sm-page.town .t-story p + p { margin-top: 16px; }
.sm-page.town .t-story strong { color: var(--on-brand); }
.sm-page.town .t-story-pic { margin: 0; }
.sm-page.town .t-story-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
@media (min-width: 768px) {
  .sm-page.town .t-story { padding: 72px 0; }
  .sm-page.town .t-story .wrap { gap: 40px; }
  .sm-page.town .t-story h2 { font-size: 40px; }
  .sm-page.town .t-story p { font-size: 18px; }
  .sm-page.town .t-story-pic img { border-radius: var(--r-lg); }
}
@media (min-width: 1024px) {
  .sm-page.town .t-story { padding: 96px 0; }
  .sm-page.town .t-story .wrap { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .sm-page.town .t-story .wrap.t-one { grid-template-columns: minmax(0, 1fr); }
  .sm-page.town .t-story .t-one .t-story-text > :not(h2):not(.t-line) { max-width: 760px; }
  .sm-page.town .t-story h2 { font-size: 46px; margin-bottom: 24px; }
}
@media (min-width: 1280px) {
  .sm-page.town .t-story .wrap { gap: 64px; }
}
/* NAMED EXCEPTION to the photo slot standard (DESIGN-DIRECTION.md "Photo slot sizes"): 16:10 from 1024, because the photo
   runs off the page edge. The frame is the 3:2 story standard; this crop takes a little off its top and bottom.
   Dan, 2026-11-19 (round 4, his markup): the photo runs off the right edge of the page, as in round 2, but in a wider
   16:10 crop centered against the text with room above and below: "You can pull the photo all the way off the page like
   before". Only the left corners are rounded; the right side meets the page edge. */
@media (min-width: 1024px) {
  .sm-page.town .t-story-pic { margin-right: calc((min(100vw, var(--wrap)) - 100vw) / 2 - var(--gutter)); }
  .sm-page.town .t-story-pic img { aspect-ratio: 16 / 10; border-radius: var(--r-lg) 0 0 var(--r-lg); }
}

/* ---------- houses: house rows ---------- */
.sm-page.town .t-walks { padding: 64px 0 16px; }
/* the heading uses the wrap; the lead keeps 820 px unless it fits on one line (.t-line) (layout pass, 2026-11-19) */
.sm-page.town .t-walks-head { text-align: center; margin: 0 0 36px; }
.sm-page.town .t-walks-head h2 { font-size: 30px; }
.sm-page.town .t-walks-head p { max-width: 820px; margin: 14px auto 0; font-size: 18px; color: var(--muted); }
.sm-page.town .t-walks-head p.t-line { max-width: none; }
.sm-page.town .t-walk { display: grid; gap: 22px; margin-bottom: 48px; }
.sm-page.town .t-walk figure { margin: 0; }
.sm-page.town .t-walk img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.sm-page.town .t-walk h3 { font-size: 24px; margin-bottom: 12px; }
.sm-page.town .t-walk p { font-size: 17px; }
.sm-page.town .t-walk p + p { margin-top: 14px; }
@media (min-width: 768px) {
  .sm-page.town .t-walks { padding: 88px 0 24px; }
  .sm-page.town .t-walks-head { margin-bottom: 48px; }
  .sm-page.town .t-walks-head h2 { font-size: 38px; }
  .sm-page.town .t-walk img { border-radius: var(--r-lg); }
  .sm-page.town .t-walk h3 { font-size: 28px; margin-bottom: 14px; }
  .sm-page.town .t-walk p { font-size: 18px; }
}
@media (min-width: 900px) {
  .sm-page.town .t-walk { grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; margin-bottom: 64px; }
  .sm-page.town .t-walk.t-flip figure { order: 2; }
  .sm-page.town .t-walk.t-nopic { grid-template-columns: minmax(0, 720px); justify-content: center; }
}
@media (min-width: 1024px) {
  .sm-page.town .t-walks { padding: 104px 0 40px; }
  .sm-page.town .t-walk { gap: 64px; }
}

/* ---------- services: pills ---------- */
.sm-page.town .t-svc { padding: 24px 0 56px; text-align: center; }
.sm-page.town .t-svc h2 { font-size: 30px; margin-bottom: 12px; }
.sm-page.town .t-svc .wrap > p { max-width: 640px; margin: 0 auto 26px; }
.sm-page.town .t-svc .wrap > p.t-line { max-width: none; }
.sm-page.town .t-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.sm-page.town .t-pills a { display: block; padding: 12px 20px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line);
  font: 600 17px/1.2 var(--head); color: var(--brand); text-decoration: none; }
.sm-page.town .t-pills a:hover { border-color: var(--brand); }
@media (min-width: 768px) {
  .sm-page.town .t-svc { padding: 32px 0 72px; }
  .sm-page.town .t-svc h2 { font-size: 36px; }
  .sm-page.town .t-svc .wrap > p { margin-bottom: 30px; }
  .sm-page.town .t-pills { gap: 12px; }
  .sm-page.town .t-pills a { padding: 16px 28px; font-size: 20px; }
}
@media (min-width: 1024px) { .sm-page.town .t-svc { padding: 40px 0 88px; } }

/* ---------- faq (only when a sheet has one) ---------- */
.sm-page.town .t-faq { padding: 0 0 var(--band-pad); }
.sm-page.town .t-faq .wrap { max-width: 860px; }
.sm-page.town .t-faq h2 { margin-bottom: 24px; text-align: center; }

/* ---------- nearby: one line ---------- */
.sm-page.town .t-near { border-top: 1px solid var(--line); padding: 28px 0; text-align: center; font-size: 17px; }
.sm-page.town .t-near .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 10px; }
.sm-page.town .t-near p strong { color: var(--brand); }
.sm-page.town .t-near ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.sm-page.town .t-near a { display: inline-block; padding: 4px 10px; color: var(--link); font-weight: 700; }
@media (min-width: 768px) { .sm-page.town .t-near { padding: 34px 0; } }

/* ---------- close: stacked and centered (inside the cta-bar). Heading and lead, the steps, then the form. Nothing sits
   beside the form, so no blank column (REWRITE-STANDARD 12.12 / 13.4). The form's own look is the shared .form. ---------- */
.sm-page.town .t-close { background: var(--alt); padding: 56px 0; }
.sm-page.town .t-close-head { text-align: center; }
.sm-page.town .t-close-head h2 { font-size: 32px; margin-bottom: 14px; }
.sm-page.town .t-close-lead { font-size: 18px; }
.sm-page.town .t-steps { list-style: none; margin: 32px 0 0; padding: 0; }
.sm-page.town .t-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
/* the 01 02 03 are About's numerals (.ab-num): same face, weight, size and color on every page (REWRITE-STANDARD 13.13) */
.sm-page.town .t-n { grid-row: 1 / 3; font: 600 44px/1 var(--head); color: var(--accent); }
.sm-page.town .t-steps h3 { font-size: 20px; }
.sm-page.town .t-steps p { color: var(--muted); font-size: 16px; }
.sm-page.town .t-close .form { max-width: 560px; margin: 36px auto 0; scroll-margin-top: calc(var(--hdr-h) + var(--hdr-top) + 16px); }
@media (min-width: 768px) {
  .sm-page.town .t-close { padding: 72px 0; }
  .sm-page.town .t-close-head h2 { font-size: 40px; }
  .sm-page.town .t-steps { margin-top: 40px; }
  .sm-page.town .t-steps li { padding: 22px 0; }
  .sm-page.town .t-close .form { margin-top: 44px; }
}
@media (min-width: 1024px) {
  .sm-page.town .t-close { padding: 96px 0; }
  .sm-page.town .t-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 48px; }
  .sm-page.town .t-steps li { display: block; padding: 26px 0 0; }
  .sm-page.town .t-n { display: block; font-size: 56px; margin-bottom: 18px; }
  .sm-page.town .t-steps h3 { margin-bottom: 6px; }
  .sm-page.town .t-close .form { margin-top: 56px; }
}

/* ==========================================================================================================================
   SERVICE AREAS INDEX (/service-areas/, build-areas.js; design-lead, 2026-11-19). Body "sm-page town areas": the town family's
   own page. The hero and the close are the town page's (.t-hero, .t-close above, unchanged); everything here is scoped to
   .sm-page.town.areas so no town page is touched.
     .a-towns  every place as a row in a two-column index (photo, name, blurb; the whole row one link). No card ground: the
               homepage's service cards are white cards on stone, and the two must not share a look (REWRITE-STANDARD 12.13)
     .a-rules  the permits table on the brand band (the town family's dark band); below 640 each row stacks with its heads
   ========================================================================================================================== */
.sm-page.town.areas .t-hero { padding-bottom: 0; }
.sm-page.town.areas .t-wide img { object-position: 50% 30%; }

/* ---------- towns: the index of places ---------- */
.sm-page.town.areas .a-towns { padding: 56px 0 48px; }
.sm-page.town.areas .a-head { text-align: center; margin: 0 0 28px; }
.sm-page.town.areas .a-head h2 { font-size: 30px; }
.sm-page.town.areas .a-head p { margin: 14px auto 0; max-width: 860px; font-size: 18px; color: var(--muted); }
.sm-page.town.areas .a-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sm-page.town.areas .a-list li { margin: 0; border-top: 1px solid var(--line); }
.sm-page.town.areas .a-list a { display: grid; gap: 16px; padding: 22px 0; color: var(--ink); text-decoration: none; }
.sm-page.town.areas .a-list figure { margin: 0; }
.sm-page.town.areas .a-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.sm-page.town.areas .a-list h3 { font-size: 24px; margin: 0 0 8px; color: var(--brand); }
.sm-page.town.areas .a-list h3::after { content: "\00a0\2192"; color: var(--accent); font-family: var(--body); font-weight: 600; }
.sm-page.town.areas .a-list p { font-size: 16.5px; line-height: 1.6; }
.sm-page.town.areas .a-list a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sm-page.town.areas .a-list a:focus-visible { outline-offset: 4px; }
@media (min-width: 560px) {
  .sm-page.town.areas .a-list a { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 22px; align-items: start; }
  .sm-page.town.areas .a-list img { aspect-ratio: 4 / 3; }
}
@media (min-width: 768px) {
  .sm-page.town.areas .a-towns { padding: 72px 0 64px; }
  .sm-page.town.areas .a-head { margin-bottom: 36px; }
  .sm-page.town.areas .a-head h2 { font-size: 38px; }
  .sm-page.town.areas .a-list a { padding: 26px 0; gap: 28px; }
  .sm-page.town.areas .a-list img { border-radius: var(--r-lg); }
}
@media (min-width: 1024px) {
  .sm-page.town.areas .a-towns { padding: 96px 0 80px; }
  .sm-page.town.areas .a-head { margin-bottom: 44px; }
  .sm-page.town.areas .a-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .sm-page.town.areas .a-list a { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 30px 0; }
  .sm-page.town.areas .a-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- rules: the permits table on the brand band ---------- */
.sm-page.town.areas .a-rules { background: var(--brand); color: var(--on-brand-muted); --link: var(--on-brand); --accent: var(--cta); padding: 56px 0; }
.sm-page.town.areas .a-rules .wrap { max-width: calc(980px + 2 * var(--gutter)); }
.sm-page.town.areas .a-rules h2 { color: var(--on-brand); font-size: 30px; text-align: center; margin-bottom: 28px; }
.sm-page.town.areas .a-rules-lead { text-align: center; margin: -14px 0 28px; font-size: 18px; }
.sm-page.town.areas .a-table table { width: 100%; border-collapse: collapse; font-size: 17px; }
.sm-page.town.areas .a-table thead th { text-align: left; font: 700 14px/1.3 var(--body); color: var(--on-brand-muted); padding: 0 16px 12px 0;
  border-bottom: 2px solid var(--cta); }
.sm-page.town.areas .a-table tbody th, .sm-page.town.areas .a-table td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-on-brand); }
.sm-page.town.areas .a-table tbody th { font: 600 19px/1.3 var(--head); }
.sm-page.town.areas .a-table tbody th a { color: var(--on-brand); text-decoration: none; }
.sm-page.town.areas .a-table tbody th a:hover { text-decoration: underline; }
.sm-page.town.areas .a-table td { color: var(--on-brand); }
.sm-page.town.areas .a-note { margin: 24px 0 0; font-size: 17px; }
/* phones: each row a block, each cell with its column head */
@media (max-width: 639px) {
  .sm-page.town.areas .a-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sm-page.town.areas .a-table table, .sm-page.town.areas .a-table tbody, .sm-page.town.areas .a-table tr,
  .sm-page.town.areas .a-table tbody th, .sm-page.town.areas .a-table td { display: block; }
  .sm-page.town.areas .a-table tr { padding: 16px 0; border-bottom: 1px solid var(--line-on-brand); }
  .sm-page.town.areas .a-table tr:first-child { border-top: 2px solid var(--cta); }
  .sm-page.town.areas .a-table tbody th, .sm-page.town.areas .a-table td { padding: 0; border: 0; }
  .sm-page.town.areas .a-table tbody th { margin-bottom: 6px; }
  .sm-page.town.areas .a-table td + td { margin-top: 4px; }
  .sm-page.town.areas .a-table td::before { content: attr(data-label) ": "; color: var(--on-brand-muted); font-weight: 700; font-size: 14px; }
}
@media (min-width: 768px) {
  .sm-page.town.areas .a-rules { padding: 72px 0; }
  .sm-page.town.areas .a-rules h2 { font-size: 36px; margin-bottom: 36px; }
  .sm-page.town.areas .a-table thead th { font-size: 15px; }
  .sm-page.town.areas .a-note { font-size: 18px; margin-top: 28px; }
}
@media (min-width: 1024px) {
  .sm-page.town.areas .a-rules { padding: 96px 0; }
  .sm-page.town.areas .a-rules h2 { font-size: 42px; margin-bottom: 44px; }
  .sm-page.town.areas .a-table tbody th { font-size: 20px; }
  .sm-page.town.areas .a-table tbody th, .sm-page.town.areas .a-table td { padding: 18px 20px 18px 0; }
}
