/* Local hub (/local/, src/pages/local-hub.mjs), wow redesign 2026-11-23, rebuilt 2026-11-25: "This week around town"
   leads (lk- rules at the end); Neighborhoods, My SB and My Street are photo cards; /history/ reuses the lh- cards. What's changing is a photo band with live
   counts, the everyday pages are a ruled list (the /eat/ "Browse by kind" look) and Just for fun is a photo strip plus a
   ruled row. Class prefix lh-. */
.lh-sec { padding: var(--sp-48) 0; }
.lh-alt { background: color-mix(in srgb, var(--paper-2) 55%, var(--paper)); }
.lh-h { font-size: var(--h2-sec); line-height: 1.1; margin: 0 0 var(--sp-24); }

/* Shared photo card: photo, then a serif title and one line */
.lh-card, .lh-cc { position: relative; min-width: 0; }
.lh-card > a, .lh-cc > a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fffaf2; /* the card surface the other hubs use, a shade off the page */ box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.lh-card > a:hover, .lh-cc > a:hover { box-shadow: 0 0 0 1.5px var(--tile), var(--shadow-2); transform: translateY(-2px); }
.lh-ph { position: relative; display: block; overflow: hidden; background: var(--paper-3); }
.lh-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a:hover > .lh-ph img { transform: scale(1.03); }
.lh-t { display: grid; align-content: start; gap: var(--sp-4); padding: var(--sp-16) var(--sp-20) var(--sp-20); }
.lh-t b { font: 400 var(--h2-card)/1.15 var(--serif); }
.lh-t small { font-size: .9rem; line-height: 1.4; color: var(--ink-3); }
.lh-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-32) var(--sp-16) var(--sp-12); background: linear-gradient(to top, rgba(10, 18, 36, .72), rgba(10, 18, 36, 0)); color: #fff; font-size: .82rem; line-height: 1.35; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.lh-cap b { font-weight: 600; }
.lh-cap-c { display: block; margin-top: 2px; font-size: .75rem; opacity: .85; }
/* The credit button sits top right; its note opens across the card's own width, so a left-column card on a phone never
   pushes it off the screen (code review 2026-11-23) */
.lh-card .pcred, .lh-cc .pcred { top: 10px; left: 10px; right: 10px; bottom: auto; pointer-events: none; }
.lh-card .pcred summary, .lh-cc .pcred summary { margin-left: auto; pointer-events: auto; }
.lh-card .pcred-t, .lh-cc .pcred-t { top: 34px; bottom: auto; left: 0; right: 0; width: auto; max-width: none; pointer-events: auto; }

/* The lead: 1928 and 2024 from the air, with the action beside it */
.lh-lead { display: grid; gap: var(--sp-16); }
.lh-street { display: grid; border-radius: var(--radius); overflow: hidden; background: #fffaf2; box-shadow: var(--shadow-1); } /* resting hairline like every other card */
.lh-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); }
.lh-pair > .pcred { top: var(--sp-12); right: var(--sp-12); bottom: auto; }
.lh-pair > .pcred .pcred-t { top: 34px; bottom: auto; }
.lh-pair figure { position: relative; margin: 0; min-width: 0; overflow: hidden; }
.lh-pair img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-3); }
.lh-pair figcaption { position: absolute; left: var(--sp-12); bottom: var(--sp-12); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(10, 18, 36, .78); color: #fff; font: 600 .82rem/1 var(--sans); letter-spacing: .04em; }
.lh-street-t { display: grid; align-content: center; justify-items: start; gap: var(--sp-12); padding: var(--sp-20) var(--sp-16) var(--sp-24); }
.lh-street-t h2 { font-size: var(--h2-sec); line-height: 1.1; margin: 0; }
.lh-street-t p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.lh-k { font-size: .82rem; font-weight: 600; color: var(--tile) !important; }
.lh-street-t .btn { margin-top: var(--sp-4); }
.lh-cred { font-size: .75rem; line-height: 1.35; color: var(--ink-3) !important; }

/* Neighborhoods and My SB: wide photo cards with the words on the photo */
.lh-side { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-16); }
.lh-side .lh-card > a { position: relative; display: block; aspect-ratio: 16 / 9; }
.lh-side .lh-ph { position: absolute; inset: 0; }
.lh-side .lh-t { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-48) var(--sp-20) var(--sp-16); background: linear-gradient(to top, rgba(10, 18, 36, .8), rgba(10, 18, 36, 0)); color: #fff; }
.lh-side .lh-t b { font-size: var(--h3-card); }
.lh-side .lh-t small { color: rgba(255, 255, 255, .88); max-width: 34em; }
.lh-side .no-ph > a { aspect-ratio: auto; }
.lh-side .no-ph .lh-t { position: static; padding: var(--sp-20); background: none; color: var(--ink); }
.lh-side .no-ph .lh-t small { color: var(--ink-3); }

/* What's changing: Real Estate leads, three photo cards and one number card */
.lh-change { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
.lh-cc.is-lead { grid-column: 1 / -1; }
.lh-cc .lh-ph { aspect-ratio: 4 / 3; }
.lh-cc.is-lead .lh-ph { aspect-ratio: 3 / 2; }
.lh-cc .lh-t { padding: var(--sp-12) var(--sp-12) var(--sp-16); }
.lh-cc .lh-t b { font-size: 1.12rem; }
.lh-cc .lh-t small { font-size: .82rem; }
.lh-cc.is-lead .lh-t b { font-size: var(--h3-card); }
.lh-cc.is-num > a { background: var(--sea-deep); color: #fff; }
.lh-num { display: grid; align-content: end; gap: var(--sp-4); flex: 1; padding: var(--sp-16) var(--sp-12) 0; }
.lh-num b { font: 400 clamp(2.5rem, 6vw, 3.6rem)/1 var(--serif); color: var(--sun-2); } /* type-ok: display */
.lh-num small { font-size: .82rem; line-height: 1.35; color: rgba(255, 255, 255, .82); max-width: 18em; }
.lh-cc.is-num .lh-t small { color: rgba(255, 255, 255, .72); }

/* Everyday: a ruled list, no icons */
.lh-ledger { list-style: none; margin: 0; padding: 0; display: grid; column-gap: var(--sp-48); border-top: 1px solid var(--line); }
.lh-ledger a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--sp-4) var(--sp-12); height: 100%; padding: var(--sp-16) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lh-lh { font: 600 1rem/1.25 var(--sans); transition: color .2s; }
.lh-ls { grid-column: 1; font-size: .82rem; line-height: 1.35; color: var(--ink-3); }
.lh-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-3); transition: transform .2s, color .2s; }
.lh-ledger a:hover .lh-lh, .lh-ledger a:hover .lh-go { color: var(--tile); }
.lh-ledger a:hover .lh-go { transform: translateX(3px); }

/* Just for fun: photo strip, then a ruled row for the rest */
.lh-fun { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
.lh-fun .lh-ph { aspect-ratio: 4 / 3; }
.lh-fun .lh-t { padding: var(--sp-12) var(--sp-12) var(--sp-16); }
.lh-fun .lh-t b { font-size: 1.12rem; }
.lh-fun .lh-t small { font-size: .82rem; }
.lh-fun .lh-ph img[src^="/what-year/"] { filter: sepia(.15); }
.lh-towns { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: var(--sp-4); padding: var(--sp-8); background: radial-gradient(70% 60% at 30% 30%, rgba(156, 197, 187, .45), transparent 70%), radial-gradient(60% 60% at 80% 80%, rgba(239, 161, 58, .22), transparent 70%), var(--paper-2); }
.lh-towns i { max-width: 100%; font: 400 .75rem/1.1 var(--serif); text-align: center; font-style: normal; padding: var(--sp-4) var(--sp-4); /* phone: five towns fit the small card with air at the foot */ border-radius: var(--r-tag); color: var(--ti); background: color-mix(in srgb, var(--tf) 38%, #fff); box-shadow: 0 1px 0 rgba(24, 34, 46, .08); }
.lh-towns i:nth-child(2n) { transform: rotate(-2deg); }
.lh-towns i:nth-child(3n) { transform: rotate(2deg); }
.lh-more { list-style: none; margin: var(--sp-16) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-16); border-top: 1px solid var(--line); }
.lh-more li { display: flex; border-bottom: 1px solid var(--line); }
.lh-more a { flex: 1; padding: var(--sp-12) 0; }
.lh-more a { font: 600 .9rem/1.6 var(--sans); color: var(--ink); text-decoration: none; transition: color .2s; }
.lh-more a:hover { color: var(--tile); }

@media (min-width: 700px) {
  .lh-ledger { grid-template-columns: 1fr 1fr; }
  .lh-side { grid-template-columns: 1fr 1fr; }
  .lh-side .lh-card > a { aspect-ratio: 16 / 10; }
}
@media (min-width: 900px) {
  .lh-more { display: flex; flex-wrap: wrap; gap: 0 var(--sp-32); margin-top: var(--sp-24); padding: var(--sp-8) 0; border-block: 1px solid var(--line); }
  .lh-more li { border-bottom: 0; }
  .lh-more a { flex: none; padding: var(--sp-4) 0; }
  .lh-towns { gap: var(--sp-8); padding: var(--sp-16); }
  .lh-towns i { font-size: 1rem; padding: var(--sp-4) var(--sp-8); }
  .lh-sec { padding: var(--sp-64) 0; }
  .lh-h { margin-bottom: var(--sp-32); }
  .lh-street-t { padding: var(--sp-32); }
  .lh-pair img { aspect-ratio: 4 / 3; }
  .lh-side .lh-card > a { aspect-ratio: 21 / 10; }
  .lh-change { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; gap: var(--sp-16); }
  .lh-cc.is-lead { grid-column: 1; grid-row: 1 / span 2; }
  .lh-cc.is-lead .lh-ph { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .lh-cc .lh-ph { aspect-ratio: 16 / 10; }
  .lh-cc .lh-t { padding: var(--sp-16) var(--sp-20) var(--sp-20); }
  .lh-cc .lh-t b { font-size: var(--h2-card); }
  .lh-cc .lh-t small { font-size: .9rem; }
  .lh-cc.is-lead .lh-t b { font-size: var(--h3-card); }
  .lh-cc.is-lead .lh-cap { padding: var(--sp-48) var(--sp-20) var(--sp-16); font-size: .9rem; }
  .lh-num { padding: var(--sp-20) var(--sp-20) 0; }
  .lh-ledger { grid-template-columns: repeat(3, 1fr); }
  .lh-fun { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--sp-16); }
  .lh-fun .lh-t { padding: var(--sp-16) var(--sp-16) var(--sp-20); }
  .lh-fun .lh-t b { font-size: var(--h2-card); }
}
/* The pair sits beside its words only where both stay near square (900-1100 px squeezed them into tall slits) */
@media (min-width: 1100px) {
  .lh-street { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
  .lh-pair img { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lh-card > a, .lh-cc > a, .lh-ph img, .lh-go { transition: none; }
  a:hover > .lh-ph img { transform: none; }
}
@media (max-width: 899px) { .lh-cc:not(.is-lead) .lh-cap { display: none; } }
.lh-src { margin: var(--sp-16) 0 0; }
.lh-all { margin: var(--sp-16) 0 0; font: 600 1rem var(--sans); }
.lh-all a { color: var(--tile); text-decoration: none; }
.lh-all a:hover { text-decoration: underline; }

/* ---- /local/ rebuild 2026-11-25: "This week around town" leads (src/pages/local-hub.mjs, js/local-hub.js). Class
   prefix lk-. Three panels: markets (a day strip stands in for a photo we don't have), just opened, and the week's
   homes with the top listing's photo. Phone: one column, markets first; wide: homes photo left, the lists right. */
.lk-head .lede { max-width: 38em; }
.lk-checked { margin: var(--sp-8) 0 0; font-size: .82rem; color: var(--ink-3); }
.ph + .lk.lh-sec { padding-top: var(--sp-8); } /* beats pages.css .ph + .sec */
.lk-towns { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: 0 0 var(--sp-16); }
.lk-towns button { min-height: 40px; padding: var(--sp-8) var(--sp-16); border: 1px solid var(--line); border-radius: 999px; background: #fffaf2; color: var(--ink-2); font: 600 .9rem/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lk-towns button:hover { border-color: var(--tile); color: var(--tile); }
.lk-towns button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lk-towns button:focus-visible { outline: 2px solid var(--tile); outline-offset: 2px; }
.lk-board { display: grid; gap: var(--sp-16); }
.lk-panel { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); overflow: hidden; background: #fffaf2; box-shadow: var(--shadow-1); }
.lk-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-4) var(--sp-12); padding: var(--sp-16) var(--sp-20) var(--sp-8); }
.lk-ph h3 { margin: 0; font: 400 var(--h2-card)/1.15 var(--serif); }
.lk-all { font: 600 .82rem/1.3 var(--sans); color: var(--tile); text-decoration: none; }
.lk-all:hover { text-decoration: underline; }
.lk-list { list-style: none; margin: 0; padding: 0 var(--sp-20) var(--sp-12); }
.lk-row { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: var(--sp-12); padding: var(--sp-12) 0; border-top: 1px solid var(--line); }
.lk-row:first-child { border-top: 0; }
.lk-when { display: grid; align-content: start; gap: 2px; }
.lk-when b { font: 600 .9rem/1.25 var(--sans); color: var(--ink); }
.lk-when small, .lk-what small { font-size: .82rem; line-height: 1.35; color: var(--ink-3); }
.lk-what { display: grid; align-content: start; gap: 2px; min-width: 0; }
.lk-what a { font: 600 1rem/1.3 var(--sans); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.lk-what a:hover { color: var(--tile); }
.lk-hol { color: var(--tile); font-weight: 600; }
.lk-row.is-today .lk-when b { color: var(--tile); }
.lk-off { display: none !important; }
.lk-none { margin: 0; padding: 0 var(--sp-20) var(--sp-20); font-size: .9rem; color: var(--ink-3); }
.lk-days { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-4); margin: 0; padding: var(--sp-4) var(--sp-20) var(--sp-12); }
.lk-day { display: grid; justify-items: center; gap: 2px; padding: var(--sp-8) 0; border-radius: var(--r-tag); background: var(--paper-2); color: var(--ink-3); }
.lk-day span { font: 600 .75rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.lk-day b { font: 400 1.12rem/1 var(--serif); }
.lk-day.has { background: color-mix(in srgb, var(--sea) 22%, #fff); color: var(--sea-deep); }
.lk-day.is-today { box-shadow: inset 0 0 0 1.5px var(--tile); }
.lk-hero { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.lk-hero img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.lk-hero:hover img { transform: scale(1.03); }
.lk-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-32) var(--sp-16) var(--sp-12); background: linear-gradient(to top, rgba(10, 18, 36, .72), rgba(10, 18, 36, 0)); color: #fff; font-size: .82rem; line-height: 1.35; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.lk-cap b { font-weight: 600; }
.lk-area .lh-side { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .lk-area .lh-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lk-area .lh-side .lh-card > a { aspect-ratio: 4 / 5; }
}
@media (min-width: 900px) {
  .lk-board.n3 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "h m" "h o"; align-items: start; }
  .lk-board.n3 .lk-markets { grid-area: m; }
  .lk-board.n3 .lk-opened { grid-area: o; }
  .lk-board.n3 .lk-homes { grid-area: h; align-self: stretch; }
  .lk-board.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .lk-homes .lk-hero { aspect-ratio: 4 / 3; }
  .lk-ph { padding: var(--sp-20) var(--sp-24) var(--sp-8); }
  .lk-list { padding: 0 var(--sp-24) var(--sp-16); }
  .lk-days { padding: var(--sp-4) var(--sp-24) var(--sp-12); }
  .lk-none { padding: 0 var(--sp-24) var(--sp-20); }
  .lk-area .lh-side .lh-card > a { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .lk-hero img, .lk-towns button { transition: none; } .lk-hero:hover img { transform: none; } }
