/* Home Sales front page in two sections: Just listed and Just sold (src/pages/homes-week.mjs) */
.hn-hero { padding-bottom: var(--sp-8); }
.hn-hero h1 { max-width: 16ch; }
.hn-sec { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(20px, 3vw, 36px); }
.hn-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-4) var(--sp-24); padding-top: var(--sp-16); margin-bottom: var(--sp-24); border-top: 2px solid var(--ink); }
.hn-head h2 { font-size: var(--h2-sec); margin: 0; }
.hn-head p { margin: 0; color: var(--ink-3); font-size: .9rem; }

/* One picture slot: an agent photo, or the overhead view until there is one */
.hn-shot { position: relative; margin: 0; }
.hn-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #d9d6c4; }
.hn-air img { aspect-ratio: 4 / 3; filter: brightness(1.14) contrast(1.05) saturate(1.1); }
.hn-car-air img { filter: brightness(1.14) contrast(1.05) saturate(1.1); }
.hn-shot figcaption { position: absolute; left: 10px; bottom: 10px; padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(14, 51, 67, .8); color: #fffaf2; font: 500 .75rem/1.2 var(--sans); }
/* Agent photos: one big strip per home that swipes (and arrows with JS); the caption sits on each photo */
.hn-car-track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: #d9d6c4; }
.hn-car-track::-webkit-scrollbar { display: none; }
.hn-car-track:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.hn-car-track li { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.hn-car-track img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hn-photo.hn-lead .hn-car-track img { aspect-ratio: 16 / 9; max-height: 78vh; }
.hn-car-cap { position: absolute; left: 12px; bottom: 12px; padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(14, 51, 67, .8); color: #fffaf2; font: 500 .82rem/1.2 var(--sans); }
.hn-car-bar { display: flex; align-items: center; gap: var(--sp-8); margin-top: var(--sp-8); min-height: 44px; }
.hn-car-b { flex: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font: 500 1.12rem/1 var(--sans); cursor: pointer; }
.hn-car-b:hover:not(:disabled) { border-color: var(--ink); }
.hn-car-b:disabled { opacity: .35; cursor: default; }
.hn-car-n { font: 600 .9rem var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 4.6em; text-align: center; }
.hn-credit { margin: 0 0 0 auto; font-size: .82rem; color: var(--ink-3); }

/* The lead home: picture and the short version on top, the long read and its numbers below */
.hn-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "pic top" "story side"; gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 56px); align-items: start; }
.hn-lead-pic { grid-area: pic; }
.hn-lead-top { grid-area: top; }
.hn-lead-story { grid-area: story; }
.hn-lead-side { grid-area: side; }
.hn-lead-top h3 { font: 400 clamp(1.9rem, 3.4vw, 2.75rem)/1.06 var(--serif); /* type-ok: display */ letter-spacing: -.015em; margin: 0 0 var(--sp-8); text-wrap: balance; }
.hn-price { margin: var(--sp-16) 0 0; font: 600 clamp(2.4rem, 4.6vw, 3.4rem)/1 var(--serif); /* type-ok: display */ color: var(--ink); font-variant-numeric: tabular-nums; }
.hn-price small { margin-left: var(--sp-8); font: 500 .9rem var(--sans); color: var(--ink-3); }
.hn-lead-top .hs-standout { margin-top: var(--sp-16); }
.hn-open { margin: var(--sp-12) 0 0; font: 600 .9rem/1.3 var(--sans); color: var(--sea); }

.hn-facts { margin: var(--sp-20) 0 0; border-top: 1.5px solid var(--line); }
.hn-facts div { display: flex; justify-content: space-between; gap: var(--sp-16); padding: var(--sp-8) 0; border-bottom: 1px solid var(--line); }
.hn-facts dt { color: var(--ink-3); font-size: .9rem; flex: none; }
.hn-facts dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }

/* The write-up */
.hn-story h4, .hn-lead-side h4, .hn-lead-pic h4 { margin: 0 0 var(--sp-8); font: 600 .82rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tile-deep); }
.hn-lead-side h4:not(:first-child), .hn-lead-pic h4 { margin-top: var(--sp-24); }
.hn-part + .hn-part { margin-top: var(--sp-24); }
/* A section that names a photo: the words run beside it, sides alternating down the page */
.hn-fig { margin: 0; }
.hn-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #d9d6c4; }
.hn-fig figcaption { margin-top: var(--sp-8); font-size: .82rem; color: var(--ink-3); }
.hn-pick .hn-part-fig .hn-fig { margin-top: var(--sp-16); }
/* With agent photos the lead home runs full width: photos on top, the short version and prices under, then the story */
.hn-photo.hn-lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "pic pic" "top side" "story story"; }
.hn-photo .hn-lead-story .hn-part-fig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hn-photo .hn-lead-story .hn-part-flip .hn-fig { order: -1; }
.hn-photo .hn-lead-story .hn-part + .hn-part { margin-top: clamp(32px, 5vw, 56px); }
.hn-photo.hn-pick { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hn-story p { margin: 0 0 var(--sp-16); max-width: 64ch; font-size: 1.12rem; line-height: 1.62; color: var(--ink); }
.hn-story p:last-child { margin-bottom: 0; }

/* Every price a home has carried, oldest first; the last line is where it stands now */
.hn-trail { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line); }
.hn-trail li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) auto; gap: var(--sp-12); align-items: baseline; padding: var(--sp-8) 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hn-td { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hn-tw { color: var(--ink-2); }
.hn-trail b { font: 600 1.12rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.hn-trail .hn-now .hn-tw { color: var(--ink); font-weight: 600; }
.hn-trail .hn-now b { color: var(--tile-deep); font-size: 1.3rem; }
.hn-comps { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line); }
.hn-comps li { display: flex; justify-content: space-between; gap: var(--sp-16); padding: var(--sp-8) 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hn-comps span { color: var(--ink-2); }
.hn-comps b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The week's other picks and sales: each written up in full, picture and numbers left, story right */
.hn-picks { list-style: none; margin: 0; padding: 0; }
.hn-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "pic body" "data body"; grid-template-rows: auto 1fr; gap: var(--sp-20) clamp(28px, 4vw, 56px); align-items: start; padding-block: clamp(28px, 4vw, 44px); border-top: 1.5px solid var(--line); }
.hn-pick:first-child { border-top: 0; padding-top: 0; }
.hn-pick:last-child { padding-bottom: 0; }
.hn-pick-pic { grid-area: pic; }
.hn-pick-body { grid-area: body; min-width: 0; }
.hn-pick-data { grid-area: data; display: grid; gap: var(--sp-16); }
.hn-pick-data .hn-facts { margin-top: 0; }
.hn-pick .hs-slot { margin: 0 0 var(--sp-8); }
.hn-pp { margin: 0 0 var(--sp-8); font: 600 clamp(2rem, 3.4vw, 2.6rem)/1 var(--serif); /* type-ok: display */ color: var(--ink); font-variant-numeric: tabular-nums; }
.hn-pp small { margin-left: var(--sp-8); font: 500 .9rem var(--sans); color: var(--ink-3); }
.hn-pick h3 { font: 400 var(--h3-card)/1.12 var(--serif); margin: var(--sp-8) 0 2px; }
.hn-pick .hs-standout { margin: var(--sp-12) 0 0; }
.hn-pick .hn-story { margin-top: var(--sp-24); }
.hn-pick .hn-story p { font-size: 1rem; }

/* Just sold: the price it got is the loudest thing */
.hn-soldlead { grid-template-areas: "top pic" "story pic"; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.hn-gotbig { font-size: clamp(3rem, 7vw, 5rem); /* type-ok: display */ color: var(--tile-deep); }
.hn-under { margin: var(--sp-8) 0 0; font: 600 1rem/1.3 var(--sans); color: var(--ink-2); }
.hn-solds { margin-top: clamp(28px, 4vw, 44px); border-top: 1.5px solid var(--line); }
.hn-solds .hn-pick:first-child { padding-top: clamp(28px, 4vw, 44px); }
.hn-got { color: var(--tile-deep); }

/* Name the price */

/* The full lists and the Record Book are a link away, not on this page */
.hn-ref-sec { padding-block: clamp(28px, 4vw, 48px); }
.hn-ref { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.hn-ref a { display: grid; gap: var(--sp-4); padding: var(--sp-16) var(--sp-24) var(--sp-16) 0; border-bottom: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.hn-ref b { font: 600 1.12rem/1.3 var(--sans); }
.hn-ref span { color: var(--ink-3); font-size: .9rem; }
.hn-ref a:hover b { color: var(--tile-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Name the price, the page's showpiece: a night band with a low sun, a big picture and a price board whose third row
   is the reader's own guess. Everything is scoped to .hn-play so the same game on /homes/ keeps its paper cards. */
.hn-play { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(24px, 3vw, 40px); padding-block: clamp(48px, 7vw, 96px); color: #fffaf2;
  background: radial-gradient(46% 42% at 100% 0%, rgba(239, 161, 58, .26), rgba(185, 71, 42, .12) 45%, transparent 72%), radial-gradient(90% 60% at 82% 112%, rgba(239, 161, 58, .5), rgba(185, 71, 42, .28) 38%, rgba(91, 76, 130, .2) 62%, transparent 78%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 58%, #2b2550 100%); }
.hn-play-head { max-width: 760px; margin: 0 0 clamp(24px, 3.4vw, 40px); }
.hn-play-head h2 { margin: 0 0 var(--sp-12); font: 400 clamp(2.9rem, 7.4vw, 5.4rem)/.98 var(--serif); /* type-ok: display */ color: #fffaf2; letter-spacing: -.01em; text-wrap: balance; }
.hn-play-sub { margin: 0; max-width: 56ch; font: 500 clamp(1.05rem, 1.5vw, 1.2rem)/1.5 var(--sans); /* type-ok: display */ color: rgba(255, 250, 242, .84); }
.hn-play .ou-list { display: block; }
.hn-play .hn-stage { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "pic body" "steps steps"; gap: clamp(22px, 3vw, 44px); align-items: start; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.hn-play .ou-list > .hn-stage.np-card.ou-card { max-width: none; }
.hn-play .ou-list > .hn-stage-bare.np-card.ou-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "steps"; max-width: 720px; }
.hn-play .hn-stage + .hn-stage { margin-top: clamp(40px, 6vw, 72px); }
.hn-stage-pic { grid-area: pic; position: relative; min-width: 0; }
.hn-stage-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #1a2740; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.hn-stage-air { margin: 0; }
.hn-stage-air img { filter: brightness(1.14) contrast(1.05) saturate(1.1); }
.hn-stage-air figcaption { margin-top: var(--sp-8); font: 500 .82rem/1.2 var(--sans); color: rgba(255, 250, 242, .6); }
.hn-stage-flag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: var(--sp-8) var(--sp-16); border-radius: var(--r-ctl); background: var(--tile); color: #fff; font: 700 .82rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.hn-play .hn-car-b { border-color: rgba(255, 250, 242, .35); color: #fffaf2; }
.hn-play .hn-car-n, .hn-play .hn-credit { color: rgba(255, 250, 242, .7); }
.hn-stage-body { grid-area: body; min-width: 0; display: flex; flex-direction: column; }
.hn-play .hn-stage .ou-tag { color: var(--sun-2); }
.hn-play .hn-stage h3 { margin: var(--sp-8) 0 2px; font: 400 clamp(1.9rem, 3.4vw, 2.7rem)/1.05 var(--serif); /* type-ok: display */ letter-spacing: -.015em; color: #fffaf2; }
.hn-stage-where { margin: 0; font: 500 1rem/1.3 var(--sans); color: rgba(255, 250, 242, .7); }
.hn-stage-hook { margin: var(--sp-16) 0 0; font: 600 1.12rem/1.4 var(--sans); color: #fffaf2; }
.hn-stage-desc { margin: var(--sp-8) 0 0; font-size: 1rem; line-height: 1.5; color: rgba(255, 250, 242, .72); }

/* the board */
.hn-board { margin: var(--sp-20) 0 var(--sp-8); padding: clamp(14px, 2vw, 20px); border-radius: var(--radius); background: rgba(4, 9, 18, .62); border: 1px solid rgba(255, 250, 242, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .3); }
.hn-row { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); align-items: center; gap: var(--sp-12); }
.hn-row + .hn-row { margin-top: var(--sp-8); }
.hn-row-k { font: 700 .75rem/1.15 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 250, 242, .62); }
.hn-tiles { --tw: clamp(19px, 2.35vw, 30px); display: flex; gap: var(--sp-4); justify-content: flex-end; min-width: 0; }
.hn-tiles i { flex: 0 0 var(--tw); display: grid; place-items: center; height: calc(var(--tw) * 1.5); border-radius: 5px; font: 700 calc(var(--tw) * .86)/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums;
  color: var(--sun-2); background: linear-gradient(180deg, #1c2a44 0 49%, #0c1526 49% 51%, #17233a 51% 100%); box-shadow: inset 0 0 0 1px rgba(255, 250, 242, .07); }
.hn-tiles i.hn-t-s { flex-basis: calc(var(--tw) * .5); background: none; box-shadow: none; color: rgba(255, 250, 242, .5); }
.hn-tiles-x i:not(.hn-t-s) { color: #fffaf2; background: linear-gradient(180deg, var(--tile-2) 0 49%, #7a2a15 49% 51%, var(--tile) 51% 100%); animation: hn-secret 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms); }
.hn-tiles-x i:nth-child(2) { --i: 1; } .hn-tiles-x i:nth-child(3) { --i: 2; } .hn-tiles-x i:nth-child(4) { --i: 3; } .hn-tiles-x i:nth-child(5) { --i: 4; } .hn-tiles-x i:nth-child(6) { --i: 5; }
.hn-tiles-x i:nth-child(7) { --i: 6; } .hn-tiles-x i:nth-child(8) { --i: 7; } .hn-tiles-x i:nth-child(9) { --i: 8; } .hn-tiles-x i:nth-child(10) { --i: 9; } .hn-tiles-x i:nth-child(11) { --i: 10; }
@keyframes hn-secret { 0%, 70%, 100% { transform: none; filter: none; } 80% { transform: translateY(-2px); filter: brightness(1.25); } }
.hn-row-you { margin-top: var(--sp-16); padding-top: var(--sp-16); border-top: 1px dashed rgba(255, 250, 242, .18); }
.hn-row-you .hn-row-k { color: var(--sun-2); }
.hn-tiles-you i:not(.hn-t-s) { color: rgba(24, 34, 46, .28); background: linear-gradient(180deg, #fffaf2 0 49%, #d9cdb8 49% 51%, #f6ecdb 51% 100%); }
.hn-tiles-you.is-set i:not(.hn-t-s) { color: var(--ink); }
.hn-tiles-you i.is-flip { animation: hn-flip .34s ease-out; }
@keyframes hn-flip { 0% { transform: rotateX(-88deg); } 100% { transform: none; } }
.hn-delta { margin: var(--sp-12) 0 0; min-height: 1.4em; font: 600 1rem/1.4 var(--sans); color: rgba(255, 250, 242, .78); text-align: right; }
.hn-delta b { color: var(--sun-2); }

/* the controls, on the night ground */
.hn-play .np-label { margin: var(--sp-16) 0 0; font: 600 1.12rem/1.3 var(--sans); color: #fffaf2; }
.hn-play .np-quick { gap: var(--sp-8); margin-top: var(--sp-8); }
.hn-play .np-q { padding: var(--sp-12) 0; min-height: 52px; border-color: rgba(255, 250, 242, .22); background: rgba(255, 250, 242, .06); color: #fffaf2; }
.hn-play .np-q small { color: rgba(255, 250, 242, .62); }
.hn-play .np-q:hover { border-color: var(--sun-2); }
.hn-play .np-q[aria-pressed="true"] { background: var(--sun-2); border-color: var(--sun-2); color: var(--ink); }
.hn-play .np-q[aria-pressed="true"] small { color: rgba(24, 34, 46, .75); }
.hn-play .np-slide { margin: var(--sp-16) 0 var(--sp-8); height: 28px; accent-color: var(--sun); }
.hn-play .np-field span { color: var(--ink-2); }
.hn-play .np-field .field { min-height: 52px; background: #fffaf2; border-color: transparent; color: var(--ink); }
.hn-play .np-when { margin-top: var(--sp-8); color: rgba(255, 250, 242, .7); }
.hn-left:not(:empty) { margin-left: var(--sp-8); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(247, 197, 111, .16); color: var(--sun-2); font-weight: 600; white-space: nowrap; }
.hn-play .np-clue { border-top-color: rgba(255, 250, 242, .16); color: rgba(255, 250, 242, .8); }
.hn-play .np-clue span { color: var(--sun-2); }
.hn-play .np-mine { margin-top: var(--sp-16); padding: var(--sp-16) var(--sp-16); border-radius: var(--radius); background: #fffaf2; color: var(--ink); font-size: 1rem; }
.hn-play .np-crowd { margin-top: var(--sp-12); padding: var(--sp-16) var(--sp-16); border-radius: var(--radius); border-top: 0; background: #fffaf2; color: var(--ink); }
.hn-play .ou-locked .np-field .field:disabled { background: rgba(255, 250, 242, .12); color: #fffaf2; }
.hn-play .ou-locked .np-field span { color: rgba(255, 250, 242, .7); }

/* how the sale has gone, left to right */
.hn-steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
.hn-step { position: relative; padding: var(--sp-24) var(--sp-16) 0 0; min-width: 0; }
.hn-step::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 2px solid rgba(255, 250, 242, .2); }
.hn-step::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--night-2); border: 2px solid rgba(255, 250, 242, .55); box-sizing: border-box; }
.hn-step-k { display: block; font: 700 .75rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 250, 242, .62); }
.hn-step b { display: block; margin: var(--sp-4) 0 2px; font: 600 1.12rem/1.2 var(--sans); color: #fffaf2; font-variant-numeric: tabular-nums; }
.hn-step-d { display: block; font-size: .82rem; color: rgba(255, 250, 242, .6); }
.hn-step-pending::after { background: var(--tile); border-color: var(--tile-2); box-shadow: 0 0 0 5px rgba(212, 100, 63, .25); }
.hn-step-pending .hn-step-k, .hn-step-next .hn-step-k { color: var(--sun-2); }
.hn-step-pending b, .hn-step-next b { font-style: italic; font-weight: 500; }
.hn-step-next::before { border-top-style: dashed; right: 40%; }
.hn-step-next::after { border-style: dashed; border-color: var(--sun-2); background: transparent; }

/* the email step, the folds and the small print */
.hn-play .ou-send { margin-top: clamp(24px, 3vw, 36px); max-width: 620px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius); background: #fffaf2; color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.hn-play .hs-fold { border-top-color: rgba(255, 250, 242, .16); margin-top: clamp(24px, 3vw, 36px); }
.hn-play .hs-fold + .hs-fold { margin-top: 0; }
.hn-play .hs-fold > summary { color: #fffaf2; }
.hn-play .hs-fold > summary:hover { color: var(--sun-2); }
.hn-play .hs-fold > summary::after { border-color: rgba(255, 250, 242, .6); }
.hn-play .hs-fold .ou-card { color: var(--ink); }
.hn-play .np-first, .hn-play .np-rule { color: rgba(255, 250, 242, .72); }
.hn-play .np-board li { color: #fffaf2; border-bottom-color: rgba(255, 250, 242, .16); }
.hn-play .np-board li::before, .hn-play .np-board li span { color: rgba(255, 250, 242, .62); }
.hn-play .ou-how { border-top-color: rgba(255, 250, 242, .16); color: rgba(255, 250, 242, .55); }
@media (prefers-reduced-motion: reduce) { .hn-tiles-x i:not(.hn-t-s), .hn-tiles-you i.is-flip { animation: none; } }

@media (max-width: 900px) {
  .hn-play .hn-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "body" "steps"; }
  .hn-steps { grid-auto-flow: row; grid-auto-columns: auto; }
  .hn-step { padding: 0 0 var(--sp-16) var(--sp-32); }
  .hn-step::before { left: 7px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid rgba(255, 250, 242, .2); }
  .hn-step-next::before { border-left-style: dashed; bottom: 60%; }
  .hn-step:last-child { padding-bottom: 0; }
  .hn-lead, .hn-soldlead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "top" "story" "side"; }
  .hn-soldlead { grid-template-areas: "top" "pic" "story"; }
  .hn-ref { grid-template-columns: minmax(0, 1fr); }
  .hn-photo.hn-lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "top" "story" "side"; }
  .hn-photo .hn-lead-story .hn-part-fig { grid-template-columns: minmax(0, 1fr); gap: var(--sp-16); }
  .hn-photo .hn-lead-story .hn-part-fig .hn-fig { order: -1; }
  .hn-photo.hn-lead .hn-car-track img { aspect-ratio: 3 / 2; }
  .hn-photo.hn-pick { grid-template-columns: minmax(0, 1fr); }
  .hn-pick { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic" "body" "data"; grid-template-rows: none; }
}
@media (max-width: 640px) {
  .hn-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
  .hn-tiles { --tw: clamp(18px, 6.6vw, 30px); justify-content: flex-start; }
  .hn-delta { text-align: left; }
  .hn-trail li { grid-template-columns: 4.8em minmax(0, 1fr) auto; gap: var(--sp-8); }
}

/* Photo viewer (js/homes-week.js): a home's photo as big as the window, on black */
.hn-zoom { cursor: zoom-in; }
.hn-lb { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fffaf2; overflow: hidden; }
.hn-lb::backdrop { background: #000; }
.hn-lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.hn-lb-cap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100vw - 160px); margin: 0; padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(0, 0, 0, .6); font: 500 .9rem/1.3 var(--sans); text-align: center; }
.hn-lb-cap:empty { display: none; }
.hn-lb-n { position: absolute; left: 16px; top: 18px; font: 600 .9rem var(--sans); font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hn-lb-x, .hn-lb-b { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fffaf2; font: 500 1.3rem/1 var(--sans); cursor: pointer; }
.hn-lb-x { right: 12px; top: 10px; font-size: 1.75rem; }
.hn-lb-b { top: 50%; transform: translateY(-50%); }
.hn-lb-b[data-dir="-1"] { left: 12px; }
.hn-lb-b[data-dir="1"] { right: 12px; }
.hn-lb-x:hover, .hn-lb-b:hover:not(:disabled) { background: rgba(0, 0, 0, .8); }
.hn-lb-b:disabled { opacity: .25; cursor: default; }
.hn-lb-x:focus-visible, .hn-lb-b:focus-visible { outline: 2px solid #fffaf2; outline-offset: 2px; }
@media (max-width: 640px) { .hn-lb-cap { max-width: calc(100vw - 32px); bottom: 76px; } .hn-lb-b { top: auto; bottom: 14px; transform: none; } }

/* ---------- The week at a glance: the first screen (flagship 2026-11-25) ---------- */
.hn-checked { margin: var(--sp-12) 0 0; font: 500 .82rem/1.4 var(--sans); color: var(--ink-3); max-width: 62ch; }
.hn-glance { padding-bottom: clamp(24px, 3vw, 40px); }
.hn-gl-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--sp-24) clamp(24px, 3vw, 40px); align-items: start; }
.hn-gl-lists { min-width: 0; }
.hn-gl-tabs { display: inline-flex; gap: var(--sp-4); padding: var(--sp-4); margin: 0 0 var(--sp-16); border-radius: calc(var(--r-ctl) + 3px); background: var(--paper-2); }
.hn-gl-tabs[hidden] { display: none; }
.hn-gl-tabs button { min-height: 40px; padding: var(--sp-8) var(--sp-16); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink-2); font: 600 .9rem/1 var(--sans); cursor: pointer; }
.hn-gl-tabs button span { margin-left: var(--sp-4); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hn-gl-tabs button[aria-selected="true"] { background: var(--ink); color: #fffaf2; }
.hn-gl-tabs button[aria-selected="true"] span { color: rgba(255, 250, 242, .7); }
.hn-gl-tabs button:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.hn-gl-h { margin: 0 0 var(--sp-12); font: 600 .82rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tile-deep); }
.hn-glance.is-tabbed .hn-gl-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hn-gl-panel + .hn-gl-panel { margin-top: var(--sp-24); }
.hn-glance.is-tabbed .hn-gl-panel + .hn-gl-panel { margin-top: 0; }
/* a row of cards that swipes; the next card peeks in so it reads as a row */
.hn-gl-rail { list-style: none; margin: 0; padding: 0 0 var(--sp-8); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, calc((100% - 2 * var(--sp-16)) / 2.6)); gap: var(--sp-16); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hn-gc { scroll-snap-align: start; min-width: 0; }
.hn-gc a { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hn-gc a:hover, .hn-gc.is-on a { border-color: var(--ink-3); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.hn-gc a:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.hn-gc-pic { position: relative; display: block; aspect-ratio: 3 / 2; background: #d9d6c4; }
.hn-gc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hn-gc-air img { filter: brightness(1.14) contrast(1.05) saturate(1.1); }
/* a sale with no picture: its price, large, on paper */
.hn-gc-none { display: grid; place-items: center; background: linear-gradient(160deg, var(--paper-2), var(--paper-3)); }
.hn-gc-big { font: 400 2.5rem/1 var(--serif); color: var(--tile-deep); font-variant-numeric: tabular-nums; }
.hn-gc-n { position: absolute; left: var(--sp-8); top: var(--sp-8); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tile); color: #fffaf2; font: 700 .82rem/1 var(--sans); box-shadow: 0 1px 4px rgba(14, 26, 36, .3); }
.hn-gc-sold .hn-gc-n { background: var(--sea-deep); }
.hn-gc-body { display: grid; gap: var(--sp-4); padding: var(--sp-12) var(--sp-16) var(--sp-16); }
.hn-gc-p { font: 600 1.5rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.hn-gc-p small { margin-left: var(--sp-8); font: 500 .75rem var(--sans); color: var(--ink-3); }
.hn-gc-got { color: var(--tile-deep); }
.hn-gc-a { margin-top: var(--sp-4); font: 600 1rem/1.25 var(--sans); }
.hn-gc-w { font-size: .82rem; color: var(--ink-3); }
.hn-gc .hn-st { margin-top: var(--sp-4); }
/* where a home stands now, from the tracker */
.hn-st { display: inline-flex; align-items: center; gap: var(--sp-4); justify-self: start; margin: var(--sp-8) 0 0; padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: var(--paper-2); color: var(--ink-2); font: 600 .75rem/1.25 var(--sans); }
.hn-st::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.hn-st small { font-weight: 500; color: var(--ink-3); }
.hn-st-sale::before { background: var(--sage); }
.hn-st-cut::before, .hn-st-escrow::before { background: var(--sun-2); }
.hn-st-sold::before { background: var(--tile); }
.hn-st-vs::before { display: none; }
.hn-lead-top .hn-st, .hn-pick-body .hn-st { font-size: .82rem; }
/* the map beside the cards on wide screens, under them on phones */
.hn-gl-mapbox[hidden] { display: none; }
.hn-gl-map { height: clamp(300px, 34vw, 420px); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.hn-gl-key { display: flex; gap: var(--sp-16); margin: var(--sp-8) 0 0; font-size: .82rem; color: var(--ink-3); }
.hn-gl-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: var(--sp-4); border-radius: 50%; vertical-align: -1px; }
.hn-k-l::before { background: var(--tile); }
.hn-k-s::before { background: var(--sea-deep); }
/* MapLibre places each pin with an inline transform (no transition on it, or pins lag the map), so the lit pin grows
   on its inner dot: `scale` on the button itself would scale that transform's translate too and throw the pin off */
.hn-pin { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.hn-pin-dot { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #fffaf2; border-radius: 50%; background: var(--tile); color: #fffaf2; font: 700 .82rem/1 var(--sans); box-shadow: 0 1px 5px rgba(14, 26, 36, .35); transition: transform .15s; }
.hn-pin-sold .hn-pin-dot { background: var(--sea-deep); }
.hn-pin.is-on, .hn-pin:hover { z-index: 2; }
.hn-pin.is-on .hn-pin-dot, .hn-pin:hover .hn-pin-dot { transform: scale(1.25); }
.hn-pin:focus-visible { outline: 0; }
.hn-pin:focus-visible .hn-pin-dot { outline: 2px solid var(--ink); outline-offset: 2px; }
.hn-pin[hidden] { display: none; }
@media (max-width: 760px) {
  .hn-gl-grid { grid-template-columns: minmax(0, 1fr); }
  .hn-gl-rail { grid-auto-columns: 76%; margin-inline: calc(-1 * var(--sp-24)); padding-inline: var(--sp-24); scroll-padding-inline: var(--sp-24); }
  .hn-gl-map { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .hn-gc a, .hn-pin-dot { transition: none; } .hn-gc a:hover, .hn-gc.is-on a { transform: none; } }
