/* Nashville Expert Drywall, town pages and /service-areas/: "a local's notebook" (design-lead, 2026-11-25). Built by
   build-town.js and build-areas.js. A split hero on the pale rose ground with the town's photo running tall to the
   window edge; the story beside its held photo; houses as photo cards on the lit band; rules beside the form; services
   as small photo tiles; FAQ with its heading held left; nearby towns as large names along a taped line. */
body.calm.nx-town{--h1max:2.875rem}
body.calm.nx-areas{--h1max:2.875rem}

/* ---------- town hero: words left, photo tall to the right edge ---------- */
body.calm .nx-tw-hero{background:var(--foot);border-bottom:6px solid var(--ramp-600)}
body.calm .nx-tw-hero-grid{display:grid;grid-template-columns:minmax(0,1fr)}
body.calm .nx-tw-hero-text{padding:56px 20px 48px}
body.calm .nx-tw-hero h1 .nx-town-name{color:var(--ramp-700)}
body.calm .nx-tw-hero .lead{max-width:none;color:var(--muted)}
body.calm .nx-tw-photo{position:relative;margin:0}
body.calm .nx-tw-photo img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover}
body.calm .nx-tw-photo figcaption{position:absolute;left:0;bottom:0;display:flex;align-items:center;gap:8px;padding:10px 16px;background:var(--black);color:var(--on-dark);font-size:var(--t5);font-weight:600}
body.calm .nx-tw-photo figcaption .ic{width:18px;height:18px;color:var(--cta);flex:none}
@media(min-width:1000px){
  body.calm .nx-tw-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:600px}
  /* the text column lines up with the page's 1200 px wrap on its left */
  body.calm .nx-tw-hero-text{padding:88px 64px 80px max(24px,calc((100vw - 1200px) / 2 + 24px));align-self:center}
  body.calm .nx-tw-photo img{aspect-ratio:auto;position:absolute;inset:0}
}
/* on a phone the town's photo comes first, so the place is on the first screen */
@media(max-width:999px){body.calm .nx-tw-photo{order:-1}body.calm .nx-tw-hero-text{padding-top:36px}}
/* the facts: a ruled two-by-two legend, small labels over plain values */
body.calm .nx-legend{display:grid;grid-template-columns:minmax(0,1fr);margin:36px 0 0;border-top:2px solid var(--head)}
body.calm .nx-legend > div{padding:14px 0;border-bottom:1px solid rgba(var(--ramp-850-rgb),.18)}
body.calm .nx-legend dt{font-size:var(--t5);font-weight:700;color:var(--ramp-700);margin:0 0 2px}
body.calm .nx-legend dd{margin:0;font-size:var(--t4);line-height:1.5;color:var(--ink)}
@media(min-width:620px){body.calm .nx-legend{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}}

/* ---------- story: the column, its photo held beside it ---------- */
body.calm .nx-tw-story-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:48px;align-items:start}
body.calm .nx-tw-story-grid > .nx-copy{max-width:760px}
body.calm .nx-tw-story-photo img{width:100%;aspect-ratio:4/5;object-fit:cover;border-bottom:6px solid var(--ramp-600)}
@media(min-width:1000px){
  body.calm .nx-tw-story-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:72px}
  body.calm .nx-tw-story-photo{position:sticky;top:110px}
}
@media(max-width:999px){body.calm .nx-tw-story-photo img{aspect-ratio:4/3}}

/* ---------- houses: photo cards on the lit band ---------- */
body.calm .nx-tw-houses{--lx:100%;--gx:0%}
body.calm .nx-hcards{display:grid;grid-template-columns:minmax(0,1fr);gap:48px 36px}
@media(min-width:760px){body.calm .nx-hcards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){body.calm .nx-hcards.n3{grid-template-columns:repeat(3,minmax(0,1fr))}}
body.calm .nx-hcard figure{margin:0 0 22px;border-bottom:4px solid var(--cta)}
body.calm .nx-hcard img{width:100%;aspect-ratio:4/3;object-fit:cover}
@media(min-width:760px) and (max-width:1099px){body.calm .nx-hcards > :last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 36px;align-items:start}body.calm .nx-hcards > :last-child:nth-child(odd) figure{grid-row:1/span 4}}
@media(min-width:1100px){body.calm .nx-hcards:not(.n3) > :last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 36px;align-items:start}body.calm .nx-hcards:not(.n3) > :last-child:nth-child(odd) figure{grid-row:1/span 4}}
body.calm .nx-hcard h3{font-size:clamp(1.25rem,1.1rem + .4vw,1.5rem);margin:0 0 10px}

/* ---------- permits beside the form (town and service areas) ---------- */
body.calm .nx-tw-permits-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:56px;align-items:start}
@media(min-width:1024px){
  body.calm .nx-tw-permits-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:80px}
  body.calm .nx-tw-permits-grid .nx-form{position:sticky;top:100px}
  body.calm .nx-tw-permits-grid.stack{grid-template-columns:minmax(0,1fr);max-width:820px}
  body.calm .nx-tw-permits-grid.stack .nx-form{position:static}
}

/* ---------- services: small photo tiles ---------- */
body.calm .nx-svc-tiles{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
@media(min-width:620px){body.calm .nx-svc-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){body.calm .nx-svc-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}}
body.calm .nx-svc-tiles a{display:grid;grid-template-columns:96px minmax(0,1fr) 22px;align-items:center;gap:16px;padding:10px 14px 10px 10px;background:var(--white);border-left:4px solid var(--ramp-600);text-decoration:none;color:var(--head);font-family:var(--display);font-weight:700;line-height:1.3}
body.calm .nx-svc-tiles img{width:96px;aspect-ratio:1/1;object-fit:cover}
body.calm .nx-svc-tiles .ic{width:20px;height:20px;color:var(--ramp-600);transition:transform .15s}
body.calm .nx-svc-tiles a:hover .nm{text-decoration:underline;text-underline-offset:4px}
body.calm .nx-svc-tiles a:hover .ic{transform:translateX(3px)}
@media(min-width:1024px){body.calm .nx-svc-tiles a{grid-template-columns:minmax(0,1fr) 22px;padding:0 14px 16px 0;border-left:0;border-bottom:4px solid var(--ramp-600);background:none}body.calm .nx-svc-tiles .cimg{grid-column:1/-1}body.calm .nx-svc-tiles img{width:100%;aspect-ratio:3/2}}

/* ---------- FAQ: heading held left ---------- */
body.calm .nx-tw-faq-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
@media(min-width:1000px){
  body.calm .nx-tw-faq-grid{grid-template-columns:minmax(0,.75fr) minmax(0,1.6fr);gap:72px;align-items:start}
  body.calm .nx-tw-faq-head{position:sticky;top:110px}   /* the FAQ look: calm-home.css .nx-faq */
}

/* ---------- nearby: large names along a taped line ---------- */
body.calm .nx-tw-nearby{--lx:50%;--gx:0%}
body.calm .nx-near{display:flex;flex-wrap:wrap;justify-content:center;gap:18px 0;padding-top:34px;border-top:4px solid var(--ramp-300);max-width:1000px;margin:0 auto}
body.calm .nx-near li{display:flex;align-items:center}
body.calm .nx-near li + li::before{content:"";width:10px;height:10px;background:var(--cta);margin:0 26px}
body.calm .nx-near a{font-family:var(--display);font-weight:800;font-size:clamp(1.375rem,1.1rem + 1vw,2rem);line-height:1.2;color:var(--on-dark);text-decoration:none}
body.calm .nx-near a:hover{text-decoration:underline;text-decoration-color:var(--cta);text-underline-offset:6px}

/* ========== /service-areas/ ========== */
body.calm .nx-ar-hero{--lx:0%;--gx:100%}
body.calm .nx-ar-hero .lead{max-width:none}
body.calm .nx-ar-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
@media(min-width:960px){body.calm .nx-ar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 40px}body.calm .nx-ar-grid > :last-child:nth-child(odd){grid-column:1/-1;max-width:calc(50% - 20px)}}
body.calm .nx-ar-row{display:grid;grid-template-columns:minmax(0,1fr);gap:0;text-decoration:none;color:var(--ink);border-bottom:4px solid var(--line);transition:border-color .15s;position:relative}
body.calm .nx-ar-row:hover{border-bottom-color:var(--ramp-600)}
body.calm .nx-ar-row img{width:100%;aspect-ratio:3/2;object-fit:cover}
body.calm .nx-ar-row .tx{padding:20px 44px 22px 0}
body.calm .nx-ar-row h3{font-size:clamp(1.375rem,1.2rem + .6vw,1.75rem);margin:0 0 6px;color:var(--head)}
body.calm .nx-ar-row p{margin:0;color:var(--muted)}
body.calm .nx-ar-row .go{position:absolute;right:0;bottom:24px;color:var(--ramp-600)}
body.calm .nx-ar-row .go .ic{width:26px;height:26px}
body.calm .nx-ar-row:hover h3{text-decoration:underline;text-underline-offset:4px}
@media(min-width:600px){body.calm .nx-ar-row{grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:24px;align-items:center}body.calm .nx-ar-row img{aspect-ratio:4/3}}
body.calm .nx-ar-table{margin:0}
body.calm .nx-ar-table td,body.calm .nx-ar-table tbody th{background:var(--white)}
body.calm .nx-ar-table tbody tr:nth-child(even) :is(td,th){background:var(--mist)}
body.calm .nx-ar-note{margin:22px 0 0;color:var(--muted)}
