/* A system-font fallback sized to the space Geist will take, so text does
   not jump when the web font arrives. The overrides in the @font-face below
   were measured for Geist 400 against Arial (2026-11-14: glyph widths and
   font bounding box, in Chromium and WebKit); re-measure if the swap shows. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 102%;
  ascent-override: 99%;
  descent-override: 28%;
  line-gap-override: 0%;
}

/* Gebran — shared chrome for the standalone desktop pages (guide, blog,
   search, listing, city). index.html's desktop gate carries its own copy of
   the nav/footer inside css/app.css's min-width:860px block, because there
   the whole page lives inside #desktop-gate; these pages are ordinary
   documents, so the same components are defined here unscoped.

   Component names mirror the sibling site (nav-b pill, ink footer, guide article
   layout from the Edmonton Property Assessment guides) in Gebran's brand. */

:root {
  /* Gebran palette: Tailwind blue. The dark blue is the wordmark and footer,
     the medium blue is the accent (buttons, links, active states), the light
     blue is glow and tints, the grey is surfaces. Older token names are kept
     as aliases so the diff against the source architecture stays readable.
     White text on #6AA18E measures 3.7:1 — under WCAG AA for small text; if
     that is a problem, move --orange/--orange-deep to #064031 (5.2:1). */
  --blue-900: #064031;
  --blue-500: #6AA18E;
  --blue-300: #6AA18E;
  --grey-100: #F3F4F6;
  --orange: var(--blue-500);
  --orange-deep: #064031;   /* buttons and any fill under white text: 5.2:1 */
  --orange-hover: #04291F;
  --red-text: #04291F;
  --orange-glow: var(--blue-300);
  --orange-soft: #EEF5F2;
  --ink: #1c1c1c;
  --ink-2: #555;
  --ink-3: #737373;
  --charcoal: #4e4f4f;
  --linen: var(--grey-100);
  --grid: #E5E7EB;
  --surface: #F9FAFB;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Geist", "Geist Fallback", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  /* No double-tap zoom, anywhere. iOS Safari zooms a double-tapped block to
     the width of the screen — tapping "next" twice in the photo viewer, or a
     card, or a form row, zoomed the page a few percent. Once zoomed, a
     position:fixed overlay is laid out against the (now wider) layout
     viewport, so the viewer's photo ran past the edges of the screen, and the
     whole page could be dragged sideways — which is what "page drift" was on
     the listing page and the evaluation form (2026-09-25; the sticky header
     in those screenshots was 6% larger than in an unzoomed one).
     manipulation is pan-x, pan-y and pinch-zoom: nothing directional, so it
     restricts no scroller below it. Never put pan-x or pan-y here — see
     css/app.css and feed/test_touch_scroll.py. */
  touch-action: manipulation;
}

img { max-width: 100%; }

/* ---------- nav (floating frosted pill) ---------- */

/* ONE page container, used by the nav, the footer and every page shell — the
   homepage included, via css/home.css which aliases these. Every page's left
   and right edges line up because they all resolve to this pair. */
:root { --page-max: 1560px; --page-gutter: 20px; }  /* gutter is per side */
@media (max-width: 900px) { :root { --page-gutter: 16px; } }
@media (max-width: 560px) { :root { --page-gutter: 16px; } }

.dgn-wrap { position: sticky; top: 0; z-index: 50; padding: 10px 0; background: #fff; }
.dgn {
  width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin-inline: auto;
  display: flex; align-items: center; gap: 30px;
  /* 11px, not 13px: the wordmark below is 142px wide and ~4px taller than it
     used to be, so the padding gives that back and the bar keeps its height */
  padding: 11px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid var(--grid);
  box-shadow: 0 10px 34px -18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.dgn-logo img { width: 142px; height: auto; display: block; }
/* Brokerage line under the logo (feed/build_nav.py). brand/wordmark.png carries
   transparent margin round the wordmark — 4.4% of its width on the left, about
   a fifth of its height below — so the line is pulled in by the same to sit
   on the lettering's left edge, just under it. Mirrored in css/app.css for
   the homepage, which does not load this file. */
.dgn-logo { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.dgn-powered { font-size: 10.5px; line-height: 1.2; color: #5b5b5b; letter-spacing: .01em; white-space: nowrap; margin: 5px 0 0 2px; }
@media (max-width: 859px) { .dgn-powered { font-size: 8.5px; margin: 4px 0 0 1px; } }
/* Gebran wordmark: plain text, Montserrat Bold, caps, dark blue (Eddie,
   2026-10-22). It replaces the image logo, so the width rules on
   .dgn-logo img above are inert and kept only for the diff. */
.dgn-wordmark {
  display: block; font-family: "Montserrat", "Geist", "Geist Fallback", -apple-system, sans-serif;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-900, #064031); white-space: nowrap;
  /* Typography pass (2026-10-22): capitals about 30px tall (was 46px, the
     height of the Show Me Homes button) and the tracking halved from 0.16em.
     Montserrat Bold's caps are 0.719em tall, so 41.7px gives 30px. Below
     ~1300px the size follows the free space down to 25px so the menu never
     wraps. line-height 0.7 makes the box the caps' own height, so it
     centres on the button. */
  font-size: clamp(25px, calc(6vw - 36px), 41.7px); line-height: 0.7;
}
/* RE/MAX Elite under the logo, lined up with EDDIE GEBRAN rather than the pin:
   the lettering starts 115px into the 873px-wide logo, 13.2% of its width */
.dgn-logo .dgn-powered { margin: 3px 0 0; padding-left: 13.2%; font-size: 12px; font-weight: 500;
  letter-spacing: .06em; color: var(--orange-deep, #064031); }
@media (max-width: 859px) { .dgn-logo .dgn-powered { font-size: 11px; margin-top: 2px; } }
.dg-footer-wordmark {
  display: block; font-family: "Montserrat", "Geist", "Geist Fallback", -apple-system, sans-serif;
  font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff;
}
@media (max-width: 859px) { .dgn-wordmark { font-size: 24px; letter-spacing: 0.07em; } }
/* The client's logo (2026-10-28) replaces the text wordmark. A long mark
   (about 7.3:1), so it is sized by height and follows the free space down so
   the menu never wraps: 20px tall at the burger breakpoint, 34px from about
   1400px. */
.dgn-logo img.dgn-wordmark { display: block; width: auto; height: clamp(20px, calc(4.3vw - 26px), 34px); object-fit: contain; object-position: left center; }
@media (max-width: 859px) { .dgn-logo img.dgn-wordmark { height: 24px; } }
@media (min-width: 860px) and (max-width: 959px) { .dgn-logo img.dgn-wordmark { height: 18px; } .dgn-links { gap: 10px; } }
.dg-footer-wordmark img { display: block; width: auto; height: 30px; }


.dgn-links { display: flex; gap: 32px; list-style: none; margin-left: auto; align-items: center; }
/* Seven items since Blog came back: tighter gaps between the burger breakpoint
   and the width where 32px fits, so the bar never scrolls sideways. */
@media (min-width: 860px) and (max-width: 1139px) { .dgn-links { gap: 18px; } }
@media (min-width: 860px) and (max-width: 899px) { .dgn-links { gap: 12px; } }
/* Hover is instant on purpose. These links used to carry
   `transition: color 0.2s ease`, and because the fade runs on the way OUT as
   well as in, sweeping the mouse along the nav left three or four links in
   different stages of orange at once — a wave travelling behind the cursor.
   Nobody asked for it and it read as an animation the nav was performing
   rather than as feedback about where the pointer is. A nav should answer
   "am I on this one" immediately; there is nothing to ease. */
.dgn-links a, .dgn-links > li > button {
  font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1.2; color: var(--charcoal);
  text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.dgn-links a:hover, .dgn-links > li > button:hover { color: var(--red-text); }
.dgn-drop { position: relative; }
.dgn-drop-btn { display: inline-flex; align-items: center; gap: 6px; }
/* inline-block, not the span default: in the mobile menu the button becomes a
   block, an inline span ignores width and height, and all that was left of
   the arrow was its right border — a stray "|" after Buy and Sell. */
.dgn-chev {
  display: inline-block;
  width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s ease; margin-top: -2px;
}
.dgn-drop.is-open .dgn-chev { transform: rotate(225deg); margin-top: 3px; }
.dgn-drop-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 200px; list-style: none; background: #fff; border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.3); border: 1px solid rgba(51, 51, 51, 0.1);
  padding: 8px; z-index: 45;
}
.dgn-drop.is-open .dgn-drop-menu { display: block; }
.dgn-drop-menu li a {
  display: block; padding: 10px 13px; border-radius: 12px;
  font-weight: 500; font-size: 14px; color: var(--charcoal);
  text-decoration: none; white-space: nowrap;
}
.dgn-drop-menu li a:hover { background: var(--orange-soft); color: var(--ink); }
.dgn-drop-right { left: auto; right: 0; transform: none; }
.dgn-drop-note { padding: 10px 13px; font-size: 12.5px; color: #666; line-height: 1.55; width: 230px; }
.dgn-drop-note strong { color: var(--red-text); }
.dgn-fav {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: var(--charcoal); background: none; border: 0; cursor: pointer;
  text-decoration: none;
}
.dgn-fav:hover { color: var(--red-text); }
.dgn-fav svg { width: 22px; height: 22px; }
#dg-fav-count {
  position: absolute; top: -3px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--orange-deep); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 16px; text-align: center;
}
.dgn-cta {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 15px; color: #fff;
  background: var(--orange-deep); border: 0; border-radius: 999px;
  padding: 8px 8px 8px 22px; min-height: 46px; cursor: pointer; text-decoration: none;
}
/* The 8px on the right is room for .dgn-orb, the circular arrow that sits
   inside most of these buttons. A .dgn-cta WITHOUT an orb inherits it anyway
   and renders visibly lopsided — 22px of space before the text, 8px after it.
   Restore a symmetric inset in that case. */
.dgn-cta:not(:has(.dgn-orb)) { padding-right: 22px; }
/* Was translateY(-2px) with a growing shadow over 0.25s — the button lifted
   off the bar, and the orb inside it rotated 45 degrees at the same time. Two
   moving parts in a nav that is already sticky and translucent. Hover is now
   a colour change and nothing moves. */
.dgn-cta:hover { background: var(--orange-hover); }

/* ---------- action buttons: label always white, always centred ----------
   A prose-link rule inside a content section (.mn-guide-sec p a, specificity
   0,2,1) outranks the plain .dgn-cta selector (0,1,0), so an in-body button
   rendered its label in --orange-deep on an --orange-deep pill: a solid red
   lozenge with invisible text. Every context that can restyle a link is
   named here so the button owns its own colour wherever it is dropped.

   The nav button's padding is deliberately asymmetric (22px left, 8px right)
   because it holds the round orb on its right. An in-body button has no orb,
   so it takes symmetric padding — otherwise the label sits visibly off-centre
   inside the pill. */
.dgn-cta,
.mn-guide-sec p a.dgn-cta,
.mn-guide-sec li a.dgn-cta,
.lp-intro p a.dgn-cta,
.blog-art-main p a.dgn-cta,
.blog-art-main a.dgn-cta,
.guide__body a.dgn-cta {
  color: #fff;
  justify-content: center;
  text-align: center;
  /* prose-link rules also add an underline; a pill button must not carry one */
  text-decoration: none;
}
.mn-guide-sec p a.dgn-cta:hover,
.blog-art-main a.dgn-cta:hover,
.guide__body a.dgn-cta:hover,
.lp-intro a.dgn-cta:hover { color: #fff; background: var(--orange-hover); }

.blog-art-main a.dgn-cta,
.guide__body a.dgn-cta,
.lp-intro a.dgn-cta {
  padding: 12px 26px;
  gap: 0;
}
.dgn-orb {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #fff; color: var(--orange-deep, #064031);
}
.dgn-orb svg { width: 15px; height: 15px; }

/* ---------- article / guide layout (EPA guides pattern) ---------- */

.guide { max-width: 900px; margin: 0 auto; padding: 0 20px 80px; }
.guide__crumb { padding: 22px 0 0; font-size: 13px; color: var(--ink-3); }
.guide__crumb a { color: inherit; text-decoration: none; }
.guide__crumb a:hover { color: var(--red-text); }
/* No label pill above the title (Eddie, 2026-10-30): the heading says it. */
.guide h1 {
  margin-top: 22px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1;
  letter-spacing: -0.02em; max-width: 13.26em;
}
.guide__sub { margin-top: 6px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: var(--ink); }
.guide__lede { margin-top: 14px; max-width: 41.11em; font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); line-height: 1.6; }

.guide__stats {
  margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
}
.guide__stats .gstat b {
  display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700;
  color: var(--orange-deep); letter-spacing: -0.02em;
}
.guide__stats .gstat span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.guide__stats-src { grid-column: 1 / -1; margin-top: 8px; font-size: 12px; color: var(--ink-3); }

.guide__layout {
  margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px; align-items: start;
}
.guide__body h2 { font-size: clamp(20px, 2.2vw, 25px); margin: 34px 0 12px; letter-spacing: -0.01em; }
.guide__body h2:first-child { margin-top: 0; }
.guide__body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
.guide__body ul { margin: 0 0 16px 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.guide__body li { margin-bottom: 6px; }
.guide__body strong { color: var(--ink); }
.guide__body a { color: var(--red-text); }
.guide__quote {
  border-left: 3px solid var(--orange); background: var(--orange-soft);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 22px 0;
  font-size: 16px; line-height: 1.55; color: var(--ink);
}

.guide__side { position: sticky; top: 90px; }
.guide__card { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); padding: 22px; }
.guide__card .k { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-deep); }
.guide__card h3 { font-size: 17px; margin: 8px 0; }
.guide__card p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.5; }
.guide__card .btn {
  display: block; text-align: center; width: 100%; font-size: 13.5px; padding: 12px 16px;
  background: var(--orange-deep); color: #fff; border: 0; border-radius: 999px;
  font-family: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.guide__card .btn:hover { background: #064031; }
.guide__card .btn--ghost {
  background: none; color: var(--ink); border: 1px solid var(--grid); border-radius: 999px; margin-top: 8px;
}
.guide__card .btn--ghost:hover { background: var(--orange-soft); }

.guide__faq { margin-top: 48px; }
.guide__faq h2 { font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 18px; }
.guide__faq details { border-top: 1px solid var(--grid); padding: 16px 0; }
.guide__faq details:last-child { border-bottom: 1px solid var(--grid); }
.guide__faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.guide__faq summary::after { content: "+"; color: var(--orange); font-size: 19px; flex: none; }
.guide__faq details[open] summary::after { content: "–"; }
.guide__faq summary::-webkit-details-marker { display: none; }
.guide__faq p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.guide__next { margin-top: 48px; }
.guide__next h2 { font-size: clamp(19px, 2vw, 22px); margin-bottom: 16px; }
/* The plain <ul> of further reading. Left unstyled it took the browser's
   default 40px indent and the default link colours, so it sat inset from
   every other block on the page and rendered visited links purple. */
.guide__next > p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.guide__next ul { list-style: none; margin: 0; padding: 0; }
.guide__next li { position: relative; padding-left: 18px; margin-bottom: 10px; line-height: 1.5; }
.guide__next li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}
.guide__next li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.guide__next li a:hover { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.guide__nextGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.guide__nextCard {
  display: block; background: var(--surface); border: 1px solid var(--grid);
  border-radius: 14px; padding: 18px; text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.guide__nextCard:hover { border-color: var(--orange); transform: translateY(-2px); }
.guide__nextCard .k { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-deep); }
.guide__nextCard h3 { font-size: 15.5px; margin: 8px 0 6px; line-height: 1.35; }
.guide__nextCard p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ---------- footer (ink, the sibling site site-footer) ---------- */

.dg-footer { margin-top: 56px; background: var(--blue-900, #064031); color: rgba(255, 255, 255, 0.75); font-size: 14.5px; }
.dg-footer-inner {
  width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin-inline: auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 38px 48px; padding: 38px 0 28px; flex-wrap: wrap;
}
.dg-footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 260px; }
.dg-footer-logo { width: 122px; height: auto; }
.dg-footer-wordmark { text-decoration: none; }
.dg-footer-powered { margin: -2px 0 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.75); }
.dg-footer-credit { font-size: 12px; color: rgba(255, 255, 255, 0.58); }
/* The brokerage mark. It is a transparent wireframe outline, inverted to
   white — no plate behind it needed, it sits on the footer the way the black
   original sits on white. Sized to sit under the Gebran wordmark without
   competing with it. */
.dg-footer-brokerage { display: inline-block; margin: 14px 0 4px; line-height: 0; align-self: flex-start; }
.dg-footer-brokerage img { width: 152px; height: auto; display: block; opacity: 0.92; }
.dg-footer-brokerage:hover img { opacity: 1; }
.dg-footer-contact { margin-top: 6px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.75); }
.dg-footer-contact a { color: inherit; text-decoration: none; }
.dg-footer-contact a:hover { color: #fff; }
.dg-footer-col h2 {
  font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58); margin: 0 0 16px;
}
.dg-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
/* body copy's line-height spread the links ~29px apart; links set tight (Eddie, 2026-10-29) */
.dg-footer-col li { line-height: 1.3; }
/* Browse carries 16 links against Company's 7 — a single column of them ran
   noticeably taller than its neighbour. Two columns instead, sized to the
   text ("Edmonton Neighbourhoods" is the longest) rather than split by a
   fixed column-count alone, so a link added or removed rebalances on its
   own. flex has no column-count, so this reverts to block layout only for
   the wide column; every other .dg-footer-col ul stays the single flex
   column above. Matches css/app.css — the two must agree, same as every
   other footer rule shared between them. */
.dg-footer-col--wide ul { display: block; columns: 150px 2; column-gap: 24px; max-width: 340px; }
/* inline-block rather than a bottom margin: a margin carries over the column
   break and pushes the second column's first link down */
.dg-footer-col--wide li { display: inline-block; width: 100%; padding-bottom: 3px; break-inside: avoid; }
.dg-footer-col a {
  color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 14px;
}
.dg-footer-col a:hover { color: #fff; }
.dg-footer-legal { width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin-inline: auto; padding-bottom: 22px; }
/* 0.62 on #333 is 5.89:1. This is the DDF® and brokerage disclosure — of
   all the text on the site, the least defensible to make hard to read.
   0.55 already passed at 5.01:1; this matches the value the source architecture settled
   on so the two sites do not drift on the same legal text. */
.dg-footer-legal p { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); line-height: 1.6; margin-bottom: 8px; }
.dg-footer-bottom {
  margin-top: 16px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
}
.dg-footer-bottom a { font-size: 12px; color: rgba(255, 255, 255, 0.55); text-decoration: underline; }
.dg-footer-bottom a:hover { color: #fff; }

@media (max-width: 820px) {
  .guide__layout { grid-template-columns: 1fr; gap: 28px; }
  .guide__side { order: 3; position: static; }
  .dgn-links { display: none; }
}
@media (max-width: 620px) {
  .guide__stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- property detail (PDP) ----------
   Mirrors the sibling site's listing page component-for-component (action bar,
   gallery stage + thumbs, spec strip, tabbed panels, sticky side rail) in
   Gebran's brand. The builder-specific pieces of that page — the incentives
   banner and the independent-representation copy — are deliberately absent:
   Gebran is a resale MLS browser, not builder representation. */

.pdp { width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin: 0 auto 60px; padding-top: 18px; }
.pdp-loading, .pdp-missing { padding: 70px 0; text-align: center; color: var(--ink-2); }
.pdp-missing h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; color: var(--ink); }
.pdp-missing a { color: var(--red-text); }
/* The MLS® number lookup (/mls/, js/listing-page.js lookup mode). */
.sb-mls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 0; font-size: 14px; }
.sb-mls label { font-weight: 600; color: var(--ink-2); }
.sb-mls input { width: 150px; min-height: 40px; padding: 0 12px; border: 1px solid #cfd6d3; border-radius: 10px;
  background: #fff; font: inherit; font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; }
.sb-mls input:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.sb-mls button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--orange-deep);
  background: #fff; color: var(--orange-deep); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sb-mls button:hover { background: var(--orange-deep); color: #fff; }
.pdp-lookup { max-width: 560px; margin: 0 auto; }
.pdp-lookup p { line-height: 1.6; }
.pdp-lookup-form { margin: 26px auto 18px; text-align: left; }
.pdp-lookup-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.pdp-lookup-form > div { display: flex; gap: 10px; }
.pdp-lookup-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; min-height: 48px; padding: 0 16px;
  border: 1px solid #cfd6d3; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.pdp-lookup-form input:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.pdp-lookup-form .btn { flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--orange-deep); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pdp-lookup-form .btn:hover { background: var(--orange-hover); }
.pdp-lookup-help { font-size: 14px; color: var(--ink-3); }

.pdp-back {
  display: inline-block; font-weight: 500; font-size: 14.5px;
  color: var(--charcoal); text-decoration: none; margin-bottom: 14px;
}
.pdp-back:hover { color: var(--red-text); }

.pdp-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.pdp-actions-l, .pdp-actions-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdp-action {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-weight: 500; font-size: 14px; color: var(--charcoal);
  background: none; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer;
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.pdp-action:hover { background: rgba(51, 51, 51, 0.07); color: var(--ink); }
.pdp-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pdp-fav.is-on { color: var(--red-text); }
.pdp-fav.is-on svg { fill: var(--orange); stroke: var(--orange-deep); }
.pdp-action-ghost { border: 1.5px solid rgba(51, 51, 51, 0.18); padding: 7px 17px; }
.pdp-action-ghost:hover { border-color: var(--ink); background: none; }

.pdp-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: #fff; font-size: 14.5px; border-radius: 999px;
  padding: 10px 21px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

.pdp-topinfo { margin-bottom: 16px; }
.pdp-addr { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.pdp-hood { color: var(--ink-2); font-size: 14.5px; margin-top: 3px; }
.pdp-hood-link { color: var(--red-text); text-decoration: none; border-bottom: 1.5px solid rgba(106, 161, 142, 0.4); }
.pdp-hood-link:hover { border-color: var(--orange-deep); }
.pdp-mls { color: var(--ink-3); font-size: 13px; margin-top: 3px; }

/* ---- photo mosaic: the listing page's first screen ----
   A full-bleed hero used to own it alone, so at 1440×900 the price, the beds
   and the baths all sat below the fold — on a site whose premise is the
   monthly number, and whose traffic is 68% desktop. Two-thirds hero and a 2×2
   beside it shows a home's range in one glance and leaves room for the facts. */
.pdp-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  /* Height, not aspect-ratio: photos that push the price off the screen have
     stopped doing their job. Tied to the viewport so a 900px laptop and a 27"
     monitor both get photos and numbers together. */
  height: clamp(300px, 40vh, 470px);
  margin: 10px 0 0;
  border-radius: var(--radius, 18px);
  overflow: hidden;
  background: var(--grid);
}
.pdp-mosaic.is-thin { grid-template-columns: 1fr; }
.pdp-mosaic.is-thin .pdp-mosaic-grid { display: none; }
.pdp-mosaic-hero, .pdp-mosaic-tile {
  position: relative; overflow: hidden;
  border: 0; padding: 0; cursor: pointer;
  background-color: var(--grid); background-size: cover; background-position: center;
  transition: opacity .18s ease;
}
.pdp-mosaic-hero:hover, .pdp-mosaic-tile:hover { opacity: .9; }
/* Positioned so js/listing-page.js fitPadded() can grow the image past its
   tile and crop CREA's white bars out of the full-size photo. max-width: none
   because the global img reset would cap that growth at the tile's width. */
.pdp-mosaic-hero > img, .pdp-mosaic-tile > img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; max-width: none; max-height: none;
}
.pdp-mosaic-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
}
/* The count is the point: it tells a buyer the listing is documented before
   they spend a click finding out. */
.pdp-mosaic-more {
  position: absolute; right: 16px; bottom: 16px;
  padding: 10px 18px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 999px;
  background: #fff; font: 600 14px/1 inherit; color: var(--ink);
  cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}
.pdp-mosaic-more:hover { background: var(--orange-deep); color: #fff; border-color: var(--orange-deep); }

/* Utilities overlaid on the photo instead of taking a full-width band. */
.pdp-mosaic .pdp-actions {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  gap: 8px; margin: 0; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.pdp-mosaic .pdp-action { padding: 6px 12px; font-size: 13px; }

.pdp-fold { padding-top: 14px; }
/* The left column now carries the address and the spec row as well as the
   price, which made it wide enough to push "Book a Showing" onto its own line
   under everything — .pdp-head is flex-wrap. The CTA belongs beside the
   property information, so: content flexes, CTA holds its width, no wrap. */
.pdp-fold .pdp-head {
  margin: 0; gap: 40px; align-items: flex-start; flex-wrap: nowrap;
}
.pdp-fold .pdp-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.pdp-fold .pdp-head-cta { flex: 0 0 auto; }
.pdp-fold .pdp-topinfo { margin: 0 0 10px; }
.pdp-fold .pdp-price { margin: 4px 0 2px; }
.pdp-fold .pdp-specs { margin: 14px 0 12px; gap: 8px; }
.pdp-fold .pdp-spec { padding: 10px 12px; }
.pdp-fold .pdp-pre-link { display: inline-block; margin-top: 2px; }
/* Six facts on one line rather than 4+2 with a ragged empty cell — the wrapped
   second row was the last thing crossing the fold at 1440×900. */
@media (min-width: 1200px) {
  .pdp-fold .pdp-specs { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1000px) {
  /* Narrow enough that side by side stops fitting — let it stack again. */
  .pdp-fold .pdp-head { flex-wrap: wrap; gap: 24px; }
  .pdp-fold .pdp-head-cta { width: 100%; }
}
@media (max-width: 760px) {
  /* Mobile keeps what it already does well: one photo, then the numbers. Block
     rather than grid, because with the utilities back in flow they became a
     grid child and left a dead cell beside a squashed hero. */
  .pdp-mosaic { display: block; height: auto; background: none; overflow: visible; }
  .pdp-mosaic-hero { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius, 18px); }
  .pdp-mosaic-grid, .pdp-mosaic-more { display: none; }
  .pdp-mosaic .pdp-actions {
    position: static; flex-wrap: wrap; margin-top: 10px;
    background: none; box-shadow: none; padding: 0;
  }
}

/* gallery */
/* The photo viewer, opened from the mosaic.

   An overlay, not a block in the flow. In the flow it duplicated the mosaic's
   photos further down the page, and the stage took its height from its width —
   so on a wide screen the picture was taller than the window and ran off the
   bottom of the frame. Everything here is sized against the viewport instead,
   so it cannot outgrow the screen no matter how wide the browser is. */
.gal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 56px 20px 20px;
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overscroll-behavior: contain;
}
.gal[hidden] { display: none; }
.gal-close {
  position: absolute; top: 14px; right: 18px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, 0.14); color: #fff;
  font: 300 26px/1 inherit;
}
.gal-close:hover { background: rgba(255, 255, 255, 0.28); }
.gal-stage {
  position: relative; border-radius: 18px; overflow: hidden; background: transparent;
  /* The stage is only as big as the picture inside it, so the backdrop shows
     around a portrait shot rather than a letterbox of dead colour. */
  display: flex; min-height: 0; max-width: 100%;
}
/* The one rule that keeps it inside the frame: the rail, the padding and the
   close button are all accounted for, so the picture takes whatever is left. */
.gal-main {
  display: block; max-width: 100%; max-height: calc(100vh - 190px);
  width: auto; height: auto; object-fit: contain; border-radius: 18px;
}
/* A padded photo with a known true aspect (showPhoto() in listing-page.js):
   the stage takes the photograph's shape, as big as the window allows, and
   the image covers it with the padding pushed outside the rounded frame.
   Positioned layout, never a transform — Safari drops the rounded clip for a
   transformed child. Two classes, to outrank the phone rule's fixed height. */
.gal-stage.gal-stage--fit {
  display: block; aspect-ratio: var(--a); height: auto;
  width: min(100%, calc((100vh - 190px) * var(--a)));
}
.gal-stage--fit > .gal-main {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; object-fit: cover; border-radius: 0;
}
.gal-tags {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 32px);
}
.gal-tag {
  font-weight: 500; font-size: 13px; color: #fff; background: rgba(3, 36, 27, 0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  padding: 5px 14px; white-space: nowrap;
}
.gal-tag:first-child { background: var(--orange-deep); color: #fff; border-color: transparent; }
.gal-count {
  position: absolute; right: 16px; bottom: 16px; font-size: 13.5px; color: #fff;
  background: rgba(3, 36, 27, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; padding: 5px 14px;
}
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--ink); background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background 0.2s ease;
}
.gal-nav:hover { background: #fff; }
.gal-prev { left: 16px; }
.gal-next { right: 16px; }
.gal-thumbs {
  display: flex; gap: 8px; margin: 0; overflow-x: auto; padding-bottom: 5px;
  flex: none; max-width: 100%;
}
.gal-thumbs::-webkit-scrollbar { height: 6px; }
.gal-thumbs::-webkit-scrollbar-thumb { background: var(--grid); border-radius: 999px; }
.gal-thumb {
  flex: none; width: 104px; height: 72px; padding: 0; border: 2px solid transparent;
  border-radius: 12px; overflow: hidden; background: none; cursor: pointer;
  position: relative; opacity: 0.62; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gal-thumb > img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; max-width: none; max-height: none;
}
.gal-thumb:hover { opacity: 1; }
.gal-thumb[aria-current="true"] { opacity: 1; border-color: var(--orange); }

/* headline row — Gebran leads with the monthly payment */
.pdp-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap; margin-bottom: 24px;
}
.pdp-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.pdp-badge {
  background: var(--linen); border: 1px solid var(--grid); border-radius: 999px;
  padding: 5px 13px; font-size: 12.5px; color: var(--charcoal); font-weight: 500;
}
.pdp-badge-live { background: var(--orange-soft); border-color: transparent; color: var(--red-text); font-weight: 600; }
.pdp-monthly { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.pdp-monthly span { color: var(--red-text); }
.pdp-price-sub { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.pdp-assump { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.pdp-head-cta { text-align: right; }
.pdp-head-cta .btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--orange-deep); color: #fff;
  border: 0; border-radius: 999px; padding: 13px 26px; font-family: inherit;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
}
.pdp-head-cta .btn:hover { background: #064031; }
.pdp-free { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
/* Secondary to Book a Showing: outlined, so the primary action still leads. */
.pdp-savesearch {
  display: block; width: 100%; margin-top: 14px;
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--grid); border-radius: 999px;
  padding: 11px 20px; cursor: pointer;
}
.pdp-savesearch:hover:not([disabled]) { border-color: var(--orange); color: var(--red-text); }
.pdp-savesearch[disabled] { opacity: .6; cursor: default; }
.pdp-savesearch-note { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* spec strip */
.pdp-reduced { display: inline-block; margin-bottom: 4px; font-weight: 600; font-size: 14.5px; color: var(--red-text); }

/* price reduction — the old price struck through, then what came off and
   when. Brand red on the soft red wash rather than a new "savings green":
   the palette above is the only red text that clears AA on this ground. */
.pdp-cut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; }
.pdp-cut-was { font-size: 15px; color: var(--ink-3); text-decoration: line-through; }
.pdp-cut-off {
  background: var(--orange-soft); color: var(--red-text); font-weight: 600;
  font-size: 13.5px; line-height: 1.35; padding: 4px 10px; border-radius: 999px;
}
.pdp-cut-off time { font-weight: 600; }

/* header — mirrors the sibling site .pdp-head: tags, price, mortgage line with an
   inline Adjust, the price-vs-community sentence, all in the left column;
   the CTA and its note alone on the right. */
.pdp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.pdp-tag {
  background: var(--linen); border: 1px solid var(--grid); border-radius: 999px;
  padding: 5px 13px; font-size: 12.5px; color: var(--charcoal); font-weight: 500;
}
.pdp-tag-live { background: var(--orange-soft); border-color: transparent; color: var(--red-text); font-weight: 600; }
.pdp-tag-days { background: var(--orange-soft); border-color: transparent; }
.pdp-price { font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: var(--red-text); }
.pdp-mort { margin-top: 8px; }
.pdp-mort-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pdp-mort-val { font-size: 17px; font-weight: 600; color: var(--ink); }
.pdp-mort-lab { font-size: 13.5px; color: var(--ink-2); }
.pdp-mort-tweak {
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--red-text);
  text-decoration: underline; text-underline-offset: 3px;
}
/* display:flex beats the [hidden] attribute, so without this the "Adjust"
   panel was open on every listing page and the Adjust button did nothing
   visible. */
.pdp-mort-tweaks[hidden] { display: none; }
.pdp-mort-tweaks { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pdp-mort-tweaks label { font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.pdp-mort-tweaks input {
  width: 92px; font-family: inherit; font-size: 14px; background: var(--linen);
  border: 1.5px solid transparent; border-radius: 10px; padding: 8px 10px; color: var(--ink);
}
.pdp-mort-tweaks input:focus { outline: none; border-color: var(--orange); background: #fff; }
.pdp-pre-link {
  display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600;
  color: var(--red-text); text-decoration: underline; text-underline-offset: 3px;
}
.pdp-pricing { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); max-width: 34.48em; line-height: 1.6; }
.pdp-pricing-stat { font-weight: 700; }
.pdp-pricing-stat.is-above { color: #c0392b; }
.pdp-pricing-stat.is-below { color: #1e8449; }
.pdp-pricing-sold-link { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }

/* book a showing */
.pdp-book-sub { color: var(--ink-2); font-size: 13.5px; margin-bottom: 14px; line-height: 1.55; }

/* Who the request reaches, at the top of the form. Gebran is software;
   a showing is arranged by a person, and the form asks for a name, an email
   and a phone number before it says whose desk any of that lands on. */
.book-agent {
  /* .pdp-block has 22px of padding; pull out by exactly that so the
     agent strip meets the card edge. */
  display: flex; align-items: center; gap: 13px; margin: -22px -22px 16px;
  padding: 16px 22px; background: var(--surface); border-bottom: 1px solid var(--grid);
  border-radius: var(--radius) var(--radius) 0 0;
}
.book-agent img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none;
                  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.book-agent-who { display: flex; flex-direction: column; min-width: 0; }
.book-agent-nm { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.book-agent-br { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.book-agent-pl {
  align-self: flex-start; margin-top: 5px; font-size: 12px; font-weight: 600;
  color: #1d6b3a; background: #e8f4ec; border-radius: 999px; padding: 3px 9px;
}

.book-lab {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3); margin: 16px 0 8px;
}
.book-seg { display: flex; gap: 6px; }
.book-seg button {
  flex: 1; font: inherit; font-size: 13.5px; font-weight: 600; min-height: 44px;
  background: var(--linen); border: 1px solid transparent; border-radius: 11px;
  color: var(--ink-2); cursor: pointer;
}
.book-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.book-days {
  display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px;
  /* min-width:0 is what makes this actually scrollable rather than merely
     scroll-styled. A flex item defaults to min-width:auto, i.e. it refuses to
     be narrower than its content — seven 60px buttons plus gaps is 462px, and
     that minimum propagated up through .pdp-book to .pdp-side, which rendered
     wider than its column and drifted the whole page sideways on a phone.
     overflow-x alone does not release it; this does. */
  min-width: 0;
}
/* Same reason, one level up: nothing in the sidebar may impose a minimum
   width on the column. Any future wide child (a table, a code block, a long
   unbroken address) is contained here rather than pushing the page. */
.pdp-side > * { min-width: 0; }
.pdp-side { min-width: 0; }
.book-day {
  flex: none; width: 60px; min-height: 62px; padding: 8px 0; cursor: pointer; font: inherit;
  display: grid; place-content: center; text-align: center;
  border: 1px solid var(--grid); border-radius: 12px; background: #fff;
}
.book-dow { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.book-dnum { font-size: 17px; font-weight: 700; margin-top: 2px; }
.book-day[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.book-day[aria-pressed="true"] .book-dnum,
.book-day[aria-pressed="true"] .book-dow { color: var(--orange-deep); }

.book-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.book-time {
  font: inherit; font-size: 13.5px; font-weight: 600; min-height: 44px; cursor: pointer;
  border: 1px solid var(--grid); border-radius: 11px; background: #fff; color: var(--ink);
}
.book-time[aria-pressed="true"] {
  border-color: var(--orange); background: var(--orange-soft); color: var(--orange-deep);
}

.book-fields { display: grid; gap: 9px; margin-top: 16px; }
.book-fields input, .book-fields textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; min-height: 46px;
  border: 1px solid var(--grid); border-radius: 12px; background: #fff; color: var(--ink);
}
.book-fields textarea { resize: vertical; }
.book-fields input:focus, .book-fields textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent;
}
.pdp-book .book-go { width: 100%; margin-top: 13px; min-height: 52px; }
.book-status { font-size: 13px; margin-top: 9px; text-align: center; color: var(--ink-2); }
.book-status:empty { display: none; }
.book-status.is-bad { color: #04291F; }
.book-fine { font-size: 12px; color: var(--ink-3); margin-top: 10px; line-height: 1.55; text-align: center; }

.book-alt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--grid); }
.book-alt-h { font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: center; margin-bottom: 10px; }
.book-alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.book-alt-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 50px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1px solid var(--grid); border-radius: 12px; background: #fff;
}
a.book-alt-btn:hover { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-deep); }
.book-alt-num { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 1px; }

.book-modes { display: grid; gap: 7px; margin-bottom: 12px; }
.book-mode {
  font-family: inherit; font-size: 13.5px; text-align: left; color: var(--ink); background: #fff;
  border: 1.5px solid var(--grid); border-radius: 14px; padding: 10px 14px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.book-mode:hover { border-color: var(--orange); }
.book-mode.is-picked { border-color: var(--orange); background: var(--orange-soft); font-weight: 600; }
.book-text {
  width: 100%; font-family: inherit; font-size: 13.5px; line-height: 1.55; color: var(--ink);
  background: #fff; border: 1.5px solid var(--grid); border-radius: 14px;
  padding: 12px 14px; resize: vertical; margin-bottom: 12px;
}
.book-text:focus { outline: none; border-color: var(--orange); }
.pdp-book .btn .dgn-orb { display: none; }

.pdp-nearby { margin-top: 30px; text-align: center; }
.pdp-nearby h3 { font-size: 16px; margin-bottom: 12px; }

.pdp-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; background: var(--grid); border: 1px solid var(--grid);
  border-radius: 22px; overflow: hidden; margin-bottom: 30px;
}
.pdp-spec { background: #fff; padding: 18px 14px; text-align: center; }
.pdp-spec-v { display: block; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.pdp-spec-k { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }

/* tabs */
.pdp-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--grid); margin-bottom: 24px; }
.pdp-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 11px 18px; cursor: pointer; font-family: inherit; font-weight: 500;
  font-size: 15px; color: var(--ink-3); transition: color 0.2s ease, border-color 0.2s ease;
}
.pdp-tab:hover { color: var(--ink); }
.pdp-tab[aria-selected="true"] { color: var(--ink); border-color: var(--orange); }
.pdp-panel { display: none; }
.pdp-panel.is-on { display: block; animation: pdp-panel-in 0.3s ease both; }
@keyframes pdp-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Overview panel blocks — the sibling site groups details and rooms into cards inside
   the Overview tab (not separate tabs), details under Property / Interior /
   Systems / Parking / Lot & site, rooms grouped by level. */
.pdp-block-card {
  background: #fff; border: 1px solid var(--grid); border-radius: 22px;
  padding: 26px; margin-bottom: 20px;
}
.pdp-block-card h2 { font-size: 21px; margin-bottom: 14px; letter-spacing: -0.01em; }
.pdp-desc p { color: var(--ink-2); white-space: pre-line; font-size: 15.5px; line-height: 1.7; }
/* The program note, between "About this home" and "Property
   details" (js/listing-page.js). A tinted card rather than the dark panel the
   programs page uses: this column's job is booking a showing, and a black
   block here pulls the eye off the booking panel beside it. site.css only —
   app.css carries the homepage and the swipe app, neither of which renders a
   listing page. */
.pdp-guarantee { border-color: var(--orange); background: var(--orange-soft); }
.pdp-guarantee h2 { display: flex; align-items: center; gap: 10px; }
.pdp-guarantee h2 .asterisk { color: var(--orange); }
.pdp-guarantee p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 0; }
.pdp-guarantee a { color: var(--red-text); font-weight: 600; }
.pdp-guarantee .pdp-guarantee-fine { color: var(--ink-3); font-size: 13px; line-height: 1.6; margin-top: 12px; }
.pdp-group { margin-top: 20px; }
.pdp-group:first-of-type { margin-top: 0; }
.pdp-group h3 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-text); margin-bottom: 8px; font-weight: 700;
}
.pdp-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 16px; }
.pdp-dl dt, .pdp-dl dd { font-size: 14.5px; padding: 9px 0; border-top: 1px solid var(--grid); }
.pdp-dl dt { color: var(--ink-2); }
.pdp-dl dd { font-weight: 500; }
.pdp-dl dt:first-of-type, .pdp-dl dd:first-of-type { border-top: 0; }
.pdp-roomlist { list-style: none; }
.pdp-roomlist li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-top: 1px solid var(--grid);
}
.pdp-roomlist li:first-child { border-top: 0; }
.pdp-room-t { font-weight: 600; font-size: 14.5px; }
.pdp-room-d { color: var(--ink-2); font-size: 14px; }
.pdp-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }

.pdp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.pdp-main h3 { font-size: 17px; margin: 26px 0 10px; }
.pdp-main h3:first-child { margin-top: 0; }
.pdp-main p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.pdp-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.pdp-detail-grid > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--grid); font-size: 14.5px;
}
.pdp-detail-grid dt { color: var(--ink-2); }
.pdp-detail-grid dd { font-weight: 600; text-align: right; }
.pdp-rooms { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pdp-rooms th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3); padding: 0 0 8px; font-weight: 600;
}
.pdp-rooms td { padding: 11px 0; border-top: 1px solid var(--grid); color: var(--ink-2); }
.pdp-rooms td:first-child { font-weight: 600; color: var(--ink); }

.pdp-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.pdp-block { border: 1px solid var(--grid); border-radius: 22px; padding: 22px; background: var(--surface); }
.pdp-block h3 { font-size: 17px; margin-bottom: 8px; }
.pdp-block p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.pdp-block .btn {
  display: block; width: 100%; text-align: center; padding: 12px 16px; border-radius: 999px;
  background: var(--orange-deep); color: #fff; border: 0; font-family: inherit; font-weight: 600;
  font-size: 14px; cursor: pointer; text-decoration: none;
}
.pdp-block .btn:hover { background: #064031; }
.pdp-block .btn--ghost { background: none; color: var(--ink); border: 1px solid var(--grid); margin-top: 8px; }
.pdp-block .btn--ghost:hover { background: var(--orange-soft); }
.pdp-breakdown { list-style: none; font-size: 13.5px; margin-bottom: 12px; }
.pdp-breakdown li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--grid); color: var(--ink-2); }
.pdp-breakdown li:last-child { border-bottom: 0; font-weight: 700; color: var(--ink); }
.pdp-map-canvas { height: 240px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.pdp-dirlink { font-size: 13.5px; font-weight: 600; color: var(--red-text); text-decoration: none; }

.pdp-similar { margin: 40px 0 16px; }
.pdp-similar h2 { font-size: clamp(21px, 3vw, 28px); text-align: center; letter-spacing: -0.01em; }
.pdp-similar .tab-blurb { text-align: center; color: var(--ink-2); font-size: 15px; margin: 8px 0 24px; }
.pdp-similar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pdp-similar-grid a { text-decoration: none; color: inherit; }
.pdp-similar-grid .ph {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; background-size: cover;
  background-position: center; background-color: #eee;
  /* The other card boxes had these; this one did not, so its cropped image
     spilled past the rounded box in every browser. check_cards.py now
     enforces both on every card selector. */
  position: relative; overflow: hidden;
}
.pdp-similar-grid .t { margin-top: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-similar-grid .m { margin-top: 1px; font-size: 12.5px; color: var(--ink-3); }
.pdp-similar-grid .p { margin-top: 3px; font-size: 13.5px; font-weight: 600; }
.pdp-hood-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.pdp-hood-actions a {
  background: var(--linen); border: 1px solid var(--grid); border-radius: 999px;
  padding: 9px 18px; font-size: 13.5px; font-weight: 500; color: var(--charcoal); text-decoration: none;
}
.pdp-hood-actions a:hover { background: var(--orange-soft); color: var(--ink); }

.pdp-legal { margin-top: 34px; }
.pdp-courtesy { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

@media (max-width: 940px) {
  .pdp-cols { grid-template-columns: 1fr; gap: 28px; }
  .pdp-side { position: static; }
  .pdp-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-head { flex-direction: column; align-items: flex-start; }
  .pdp-head-cta { text-align: left; }
}

/* ---------- search page (list + map, the sibling site searchpage pattern) ---------- */

body.search-body { display: flex; flex-direction: column; min-height: 100vh; }
body.search-body .dgn-wrap { position: relative; }

.searchbar-wrap { border-bottom: 1px solid var(--grid); background: #fff; position: sticky; top: 0; z-index: 40; }
/* The search page runs on one container: the nav pill, the filter bar and the
   list/map split all sit on the shared --page-max container, so their left and
   right edges line up with each other and with every other page. The bar also carries the pill's 22px inner padding, so
   the first field starts on the same x as the logo above it. */
/* Says what the row of controls is for. Without it the bar reads as a fresh
   site-wide search rather than as something narrowing the results underneath
   — which matters most on the pages where it now appears below a heading that
   has already committed to a set ("1,422 homes, price reduced"). Shares the
   .searchbar container so its left edge lines up with the first field. */
.searchbar-title {
  width: min(var(--page-max), calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto; padding: 12px 22px 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--red-text);
}
.searchbar {
  width: min(var(--page-max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
  display: flex; align-items: end; flex-wrap: wrap; gap: 14px;
  padding: 14px 22px;
}
/* The title already provides the top padding when it is present. */
.searchbar-title + .searchbar { padding-top: 8px; }

/* The money field asks for a payment OR a price, from one box.

   Shown as two words with "or" between them rather than a select. A select
   hides the second option behind a click nobody makes — the whole point is
   that a visitor should see, without doing anything, that this field can be
   either thing. It sits in the label row, so it costs the bar no width: the
   input below still sets the field's width, and the bar keeps its slack. */
.sb-mode { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.sb-mode-btn {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; padding: 0; border: 0; background: none;
  /* #6e6e6e not var(--ink-3): the token is 3.45:1 on white and this is an
     interactive label, which must clear 4.5:1 (WCAG 2.1 AA). */
  color: #6e6e6e; cursor: pointer; border-bottom: 2px solid transparent;
}
.sb-mode-btn:hover { color: var(--ink); }
.sb-mode-btn.is-on { color: var(--red-text); border-bottom-color: var(--red-text); }
.sb-mode-or {
  font-size: 12px; font-weight: 500; text-transform: lowercase;
  color: var(--ink-3);
}

/* Label kept for screen readers — the visible pair above says what the box is. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* A select must not be sized by its longest option. "Fort Saskatchewan (147)"
   was widening the Area control to 232px and pushing the bar to a second row —
   the options are readable when open, which is the only time they need to be. */
.sb-field select { max-width: 160px; text-overflow: ellipsis; }


/* Neighbourhood suggestions. Replaces a <datalist> that never opened on iOS,
   so the list is ours to draw, style and debug. */
.sb-field { position: relative; }
.sb-ac {
  position: absolute; z-index: 45; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none; max-height: 288px; overflow-y: auto;
  background: #fff; border: 1px solid var(--grid); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
}
.sb-ac[hidden] { display: none; }
.sb-ac li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  /* 44px of height, because this is the control most likely to be used with a
     thumb and the datalist it replaces was untappable. */
  min-height: 44px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  font-size: 14.5px; line-height: 1.3;
}
.sb-ac li[aria-selected="true"], .sb-ac li:hover { background: var(--orange-soft); }
.sb-ac small { flex: none; font-size: 12px; color: var(--ink-3); }

/* Sort, in the results header where it belongs — it narrows nothing, so it was
   never a filter. Pushed to the right of the count it applies to. */
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.rh-sort { display: flex; align-items: center; gap: 8px; flex: none; }
.rh-sort span { font-size: 13px; color: var(--ink-3); }
.rh-sort select {
  font: inherit; font-size: 13.5px; padding: 7px 10px; cursor: pointer;
  border: 1px solid var(--grid); border-radius: 10px; background: #fff; color: var(--ink);
}
@media (max-width: 600px) {
  /* Under the count rather than beside it — side by side, the two of them
     squeeze the count into two lines on a phone. */
  .results-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .rh-sort { justify-content: space-between; }
}

/* The same bar inside a page that already has a container — Price Reduced,
   New Today. On search.html the bar is the page's chrome: full-bleed, sticky,
   sitting on its own --page-max container. Dropped inside .lp it would
   re-apply that container within a container and inset itself twice, and a
   sticky element inside a scrolling column of cards is just a bar that
   detaches. So here it is a panel: static, bounded, and as wide as its
   parent. */
.rf-wrap {
  position: static; border: 1px solid var(--grid); border-radius: 18px;
  background: var(--surface); margin-bottom: 26px; overflow: hidden;
}
.rf-wrap .searchbar-title, .rf-wrap .searchbar { width: auto; margin-inline: 0; }
.rf-wrap .searchbar { padding-bottom: 16px; }
.sb-field label { display: block; font-weight: 500; font-size: 12px; color: #6f7069; margin-bottom: 4px; }
.sb-field input, .sb-field select {
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--linen);
  border: 1.5px solid transparent; border-radius: 11px; padding: 9px 13px;
  appearance: none; -webkit-appearance: none; min-width: 132px;
}
.sb-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%234E4F4F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px;
  padding-right: 30px; cursor: pointer;
}
.sb-field input:focus, .sb-field select:focus { outline: none; border-color: var(--orange); background: #fff; }

/* Min and max share one field, so the bar gains a price floor without
   gaining a whole control's label, gap and 132px minimum. */
.sb-range { display: flex; align-items: center; gap: 6px; }
.sb-range input { min-width: 0; width: 84px; flex: 0 1 auto; }
.sb-range-sep { flex: 0 0 auto; color: var(--ink-3); font-size: 14px; }

/* Neighbourhood and Must have were the two widest controls on the bar at
   176px and 160px. Neither needs it: the hood box holds one name and
   ellipsises, and a select's options are readable when it is open, which is
   the only time they need to be. Narrowing them is what pays for the price
   range staying on one row. */
#rf-hood { min-width: 0; width: 132px; }
#rf-feature { min-width: 0; width: 128px; max-width: 128px; }

.sb-go {
  font-family: inherit; font-weight: 600; font-size: 14px; color: #fff; background: #064031;
  border: 0; border-radius: 11px; padding: 10px 22px; cursor: pointer;
}
.sb-go:hover { background: #04291F; }
.sb-reset {
  font-family: inherit; font-weight: 600; font-size: 13.5px; color: var(--red-text);
  background: none; border: 0; cursor: pointer; padding: 10px 4px; text-decoration: underline;
  text-underline-offset: 3px;
}
/* Secondary to Search: outlined rather than filled, so the primary action
   still reads first. */
.sb-save {
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--grid); border-radius: 11px;
  padding: 10px 18px; cursor: pointer; white-space: nowrap;
}
.sb-save:hover { border-color: var(--orange); color: var(--red-text); }
.sb-save[disabled] { opacity: .55; cursor: default; }

.searchpage {
  /* same container as the nav and filter bar; the map used to run flush to the
     viewport edge while the list had a gutter, which read as broken padding */
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  gap: 22px; align-items: start;
  width: min(var(--page-max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}
.searchpage-list { padding: 20px 0 40px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-head h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.results-head .sub { font-size: 13px; color: var(--ink-3); }
/* the “of N in this search” qualifier beside the in-view count */
.results-head .sub-inline { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.rcard { position: relative; }
.rcard a { text-decoration: none; color: inherit; display: block; }
.rcard .ph {
  /* 4:3, the same crop the rest of the estate uses for listing photos. The feed
     hands back everything from 4:3 to panoramas, so the box fixes the shape and
     cover crops to it — otherwise each card is as tall as its own photo. */
  width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; background-size: cover;
  background-position: center; background-color: #eee; position: relative;
  overflow: hidden;
}
/* A hairline over the photo, following the box's rounded shape. Some images
   are white at their own edge — an overcast sky, an elevation drawing on
   white paper — and on a white page that erases the card's frame: the corners
   are rounded but there is nothing to see them against, so the card reads as
   a different size and shape from its neighbours. The hairline makes every
   card the same visible frame whatever is in the photograph. */
.rcard:not(.pd-promo) .ph::after,
.mn-cardrow .ph::after,
.pdp-similar-grid .ph::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.09); pointer-events: none;
}
.rcard .badge {
  position: absolute; top: 10px; left: 10px; background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); max-width: 72%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* "$30K off" — the one thing on a card that changes after it is published,
   so it reads before the price. Top left, the same geometry as .badge; the
   grids that draw this badge (community, zone, town, specialty) never draw
   a .badge, and .heart sits top right. */
.rcard .cut {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--orange-soft); color: var(--red-text);
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); white-space: nowrap;
}
.rcard .heart { position: absolute; top: 8px; right: 8px; background: none; border: 0; padding: 4px; cursor: pointer; z-index: 2; }
/* Matches .dg-heart in css/app.css — outline until saved. */
.rcard .heart svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round;
  stroke-linejoin: round; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.rcard .heart.on svg { fill: var(--orange); }
.rcard .t { margin-top: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .m { margin-top: 1px; font-size: 12.5px; color: var(--ink-3); }
.rcard .p { margin-top: 3px; font-size: 13.5px; font-weight: 600; }
.rcard .p small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.rcard.is-hot .ph { outline: 3px solid var(--orange); outline-offset: 2px; }

/* House-ad tiles: search results (js/search-page.js) and the homepage's
   first price band (js/home.js). Same .rcard/.ph/.t/.m/.p slots as a
   listing card, so it is exactly one card shape wide and tall —
   check_cards.py enforces .rcard .ph at 4:3/18px and this reuses that box
   rather than opting out of it.

   Namespaced pd-promo-*, NOT promo-*: a same-named, differently-shaped
   .promo-card/.promo-card-sell/.promo-cta component already exists lower
   in this file (ported from the sibling site, currently unused in any shipped
   page) and, loading later in the cascade, silently overrode this block's
   padding/flex/color at equal specificity — the dark tile rendering with
   a stray flex layout and clipped text was that collision, not a typo
   here. */
/* SPECIFICITY, part two. The block below is scoped `.pd-promo .ph` rather
   than `.pd-promo-ph`, and that is load-bearing, not style.

   `.rcard .ph` above sets `background-color:#eee` at 0-2-0. A single-class
   `.pd-promo-ph` is 0-1-0 and loses to it, so both tiles rendered as the
   plain grey photo placeholder — which put the dark tile's white heading on
   #eee and made it almost invisible. Same class of collision as the
   .promo-card one documented above; the fix there was renaming, and the
   trap here is that renaming alone was not enough.

   Keep every rule in this block at two classes or more. */
.pd-promo .ph {
  background-image: none;
  /* A saturated ground, not a tint. Both gradients were picked against the
     contrast maths rather than by eye: the LIGHTEST point of each is the
     worst case for white text, and both clear 4.5:1 there — 6.68:1 on the
     course tile, 13.44:1 on the sell tile. The brand orange #6AA18E is only
     3.41:1 against white and is deliberately NOT used as a text ground; it
     stays as the accent on the badge. */
  background: linear-gradient(155deg, #053A2C 0%, #064031 100%);
  position: relative; overflow: hidden;
}
.pd-promo-sell .ph {
  background: linear-gradient(155deg, #064031 0%, #03241B 100%);
}
/* Photo tiles (suited homes, luxury homes): the photo as it is, no wash, and
   the words below it like a listing card's (2026-10-29). Only the badge
   sits on the photo. The disc below is for the flat tiles only. */
.pd-promo-photo .ph { background-size: cover; background-position: center; }
.pd-promo-suites .ph { background-image: url('/assets/promo/secondary-suites.webp'); }
.pd-promo-luxury .ph { background-image: url('/assets/promo/luxury-homes.webp'); }
.pd-promo-photo .ph::after { display: none; }
/* The "bold graphic": one oversized soft disc bleeding off the top-right
   corner, drawn in CSS so the tiles stay at zero extra page weight and
   cannot 404 the way a hotlinked image can. Decorative only — it sits
   behind the text and is never the thing carrying meaning. */
.pd-promo .ph::after {
  content: ""; position: absolute; top: -38%; right: -22%;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%,
              rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.pd-promo-sell .ph::after {
  background: radial-gradient(circle at 32% 32%,
              rgba(106, 161, 142, 0.42), rgba(106, 161, 142, 0) 70%);
}
.pd-promo .pd-promo-ph {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; height: 100%; position: relative; z-index: 1;
}
.pd-promo .pd-promo-badge {
  align-self: flex-start; background: #fff; color: #064031;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
/* Ink on brand orange is 5.00:1 — the one place #6AA18E can carry text. */
.pd-promo .pd-promo-badge-dark { background: var(--orange); color: var(--ink); }
.pd-promo .pd-promo-body h2 {
  font-size: 17px; font-weight: 700; line-height: 1.2; margin-bottom: 5px;
  letter-spacing: -0.01em; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-promo .pd-promo-body p {
  font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.88);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-promo .t { color: var(--ink); }
.pd-promo .pd-promo-cta { color: var(--red-text); font-weight: 600; }

.results-more { text-align: center; margin-top: 30px; }
.results-more button {
  background: #fff; border: 1.5px solid var(--grid); border-radius: 999px;
  padding: 12px 28px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.results-more button:hover { background: var(--orange-soft); border-color: var(--orange-soft); }
.results-empty { padding: 50px 0; text-align: center; color: var(--ink-2); }
.results-empty b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }

.searchpage-map { position: sticky; top: 96px; height: calc(100vh - 116px); padding: 20px 0 40px; }
.searchmap {
  width: 100%; height: 100%; background: var(--linen);
  border-radius: 16px; overflow: hidden; border: 1px solid var(--grid);
}
.price-pin {
  background: #fff; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 4px 9px; font-size: 12px; font-weight: 700; color: var(--ink);
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.price-pin.is-fav { border-color: var(--orange); color: var(--red-text); }
.pdp-map-note { margin: 8px 0 10px; font-size: 14px; color: var(--ink-3); }
.leaflet-popup-content { margin: 10px 12px; font-family: "Geist", "Geist Fallback", sans-serif; }
.map-pop img { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; }
.map-pop b { display: block; margin-top: 7px; font-size: 13.5px; }
.map-pop span { display: block; font-size: 12px; color: var(--ink-2); }
.map-pop a { display: inline-block; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--red-text); }

/* A bar, not a floating pill. Floating, it sat on top of whichever listing
   photo happened to be under it — the switch obscuring the homes it switches
   between, which is what the UI/UX audit caught. The bar owns the bottom edge
   and paints its own background, so nothing shows through it and no card is
   half-covered. The dark pill inside keeps the control looking like the
   control it was. js/search-page.js still looks up #search-toggle and its
   buttons, so the behaviour is untouched. */
.search-toggle {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--grid);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.search-toggle-pill {
  display: flex; gap: 4px; background: var(--ink); border-radius: 999px; padding: 5px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
}
.search-toggle button {
  background: none; border: 0; color: #fff; font-family: inherit; font-weight: 600;
  font-size: 13.5px; padding: 9px 22px; border-radius: 999px; cursor: pointer;
}
.search-toggle button.is-picked { background: var(--orange-deep); }

@media (max-width: 1000px) {
  .searchpage { grid-template-columns: 1fr; }
  /* The filter bar is one tidy row on desktop, so pinning it costs ~60px and
     keeps the controls to hand. Stacked on a phone it is over 400px of a
     660px viewport, so pinned it sat on top of the results the whole way down
     the page — the filters covering the homes they filtered. Let it scroll
     away; it is a few flicks back up, and the results are the point. */
  .searchbar-wrap { position: static; }
  .searchpage-map { position: fixed; inset: 116px 0 0; height: auto; z-index: 30; display: none; }
  body.map-view .searchpage-map { display: block; }
  body.map-view .searchpage-list { display: none; }
  /* Map view means the map. The filter bar stayed on screen underneath it, so
     on a phone the visitor tapped "Map" and got a screenful of filters with a
     strip of map beneath — the map is the one thing they asked for. Filters
     come back with the List toggle. */
  body.map-view .searchbar-wrap,
  body.map-view .fs-bar,
  body.map-view .fs-chips { display: none; }
  /* Nothing above it any more, so the map takes the whole viewport. */
  body.map-view .searchpage-map { inset: 0; }

  /* Map view owns the screen, so the page behind it must stop scrolling.

     Without a lock the body keeps the height of everything still in the layout
     — 1,869px against an 812px viewport — so a flick scrolls the page while
     the map stays pinned, and the footer and toggle slide underneath it.

     The lock itself is applied by js/search-page.js as position:fixed with a
     negative top, not overflow:hidden here. overflow:hidden on html/body does
     not hold on iOS and, applied while the page is scrolled, leaves the
     viewport offset so fixed children render in the wrong place — which is how
     a full-screen map ended up as a strip below the filters. */
  body.map-locked { position: fixed; left: 0; right: 0; width: 100%; }
  .search-toggle { display: flex; }
  /* Room for the bar at the end of the results, so the last row is reachable
     rather than sitting under it. */
  .searchpage-list { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- account page ---------- */

.acct { width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin: 0 auto 70px; padding-top: 20px; }
.acct-head { margin-bottom: 26px; }
.acct-head h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
.acct-head p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 37.13em; line-height: 1.6; }

/* signed-out: auth card */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.auth-card { border: 1px solid var(--grid); border-radius: 22px; padding: 28px; background: #fff; }
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--grid); margin-bottom: 22px; }
.auth-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 16px; cursor: pointer; font-family: inherit; font-weight: 600;
  font-size: 15px; color: var(--ink-3);
}
.auth-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--orange); }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-weight: 500; font-size: 12.5px; color: #6f7069; margin-bottom: 5px; }
.auth-field input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--linen); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px;
}
.auth-field input:focus { outline: none; border-color: var(--orange); background: #fff; }
.auth-submit {
  width: 100%; background: var(--orange-deep); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 20px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.auth-submit:hover { background: #064031; }
.auth-submit:disabled { opacity: 0.6; cursor: default; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--grid); }
.auth-google {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--grid); border-radius: 999px;
  padding: 12px 20px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.auth-google:hover { background: var(--surface); }
.auth-google svg { width: 18px; height: 18px; }
.auth-msg { margin-top: 14px; font-size: 13.5px; line-height: 1.5; border-radius: 12px; padding: 11px 14px; }
.auth-msg.err { background: #fdecea; color: #a3271b; }
.auth-msg.ok { background: var(--orange-soft); color: var(--red-text); }
.auth-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.auth-side { border: 1px solid var(--grid); border-radius: 22px; padding: 24px; background: var(--surface); }
.auth-side h3 { font-size: 16px; margin-bottom: 12px; }
.auth-side ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.auth-side li { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; padding-left: 24px; position: relative; }
.auth-side li::before {
  content: "♥"; position: absolute; left: 0; top: 0; color: var(--orange); font-size: 14px;
}

/* signed-in: profile + favourites */
.acct-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--grid); border-radius: 22px; padding: 20px 24px; background: var(--surface);
  margin-bottom: 30px;
}
.acct-who { display: flex; align-items: center; gap: 14px; }
.acct-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--orange-deep); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 19px; flex: none;
}
.acct-who b { display: block; font-size: 16px; }
.acct-who span { display: block; font-size: 13px; color: var(--ink-3); }
.acct-signout {
  background: none; border: 1.5px solid var(--grid); border-radius: 999px; padding: 10px 20px;
  font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink);
}
.acct-signout:hover { border-color: var(--ink); }
.acct-section h2 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 4px; }
.acct-section .sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.acct-empty { padding: 44px 0; text-align: center; color: var(--ink-2); }
.acct-empty b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.acct-empty a { color: var(--red-text); font-weight: 600; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- neighbourhoods index ---------- */

.hoods { width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin: 0 auto 70px; padding-top: 20px; }
.hoods-head { margin-bottom: 26px; }
.hoods-head h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; }
.hoods-head p { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 42.43em; line-height: 1.65; }
.hoods-filter { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 22px 0 6px; }
.hoods-filter input, .hoods-filter select {
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--linen);
  border: 1.5px solid transparent; border-radius: 12px; padding: 11px 14px; min-width: 200px;
  appearance: none; -webkit-appearance: none;
}
.hoods-filter select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%234E4F4F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px;
  padding-right: 34px; cursor: pointer; min-width: 190px;
}
.hoods-filter input:focus, .hoods-filter select:focus { outline: none; border-color: var(--orange); background: #fff; }
.hoods-count { font-size: 13.5px; color: var(--ink-3); margin: 14px 0 18px; }

.hoods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hood-card {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--grid); border-radius: 18px; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hood-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.hood-card .ph { width: 100%; aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: #eee; position: relative; overflow: hidden; }
.hood-card .bd { padding: 14px 16px 16px; }
.hood-card h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hood-card .n { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.hood-card .r { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--red-text); }
.hood-card .r small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.hoods-more { text-align: center; margin-top: 32px; }
.hoods-more button {
  background: #fff; border: 1.5px solid var(--grid); border-radius: 999px;
  padding: 12px 28px; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.hoods-more button:hover { background: var(--orange-soft); border-color: var(--orange-soft); }

/* ---------- community + area pages (the sibling site community-page structure) ---------- */

.shell { width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
.page-head { padding: 24px 0 8px; }
.page-head .crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.page-head .crumb a { color: inherit; text-decoration: none; }
.page-head .crumb a:hover { color: var(--red-text); }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.page-head h1 span { color: var(--red-text); }
/* 45.08em was set when the lede was a single sentence. The quadrant pages now
   open with a full description, and at 45.08em that left a ~700px column of text
   beside ~700px of nothing on a 1440px screen — the measure was right for one
   line and wrong for a paragraph. 57.02em keeps lines inside the range that is
   comfortable to read while using the width the rest of the page already
   uses; the descriptions are split into two paragraphs on top of that, since
   the fix for a long block of text is partly the measure and partly not
   setting a wall of it. */
.page-head .lede { margin-top: 14px; max-width: 57.02em; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.page-head .lede + .lede { margin-top: 10px; }
/* The live stats line is written into #area-head-rest by js/area-page.js,
   while the description sits in a fenced block just before it — different
   parents, so ".lede + .lede" cannot see across the boundary and the stats
   line fell back to the 14px that separates the first paragraph from the h1.
   14 / 10 / 14 down one column. */
#area-head-rest .lede:first-child { margin-top: 10px; }
.page-head .head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.page-head .head-actions a {
  background: var(--orange-deep); color: #fff; border-radius: 999px; padding: 11px 22px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.page-head .head-actions a:hover { background: #064031; }
.page-head .head-actions a.ghost { background: none; color: var(--ink); border: 1.5px solid var(--grid); }
.page-head .head-actions a.ghost:hover { background: var(--orange-soft); }

.mn-sec { padding: 34px 0 0; }
.mn-sec h2 { font-size: clamp(21px, 2.6vw, 28px); letter-spacing: -0.01em; margin-bottom: 6px; }
.mn-sec .sub { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.mn-sec p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; max-width: 47.74em; }

.mn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
  background: var(--grid); border: 1px solid var(--grid); border-radius: 22px; overflow: hidden; }
.mn-stat { background: #fff; padding: 20px 16px; text-align: center; }
/* Six figures read as two rows of three; auto-fit left the sixth alone on a
   second row in the guide column. */
.mn-stats.mn-stats-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 559px) { .mn-stats.mn-stats-6 { grid-template-columns: repeat(2, 1fr); } }
.mn-stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--red-text); }
.mn-stat span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
/* A stat tile that is also the link to what it counts.

   "797 townhouses" above a separate card linking townhouses was one idea
   drawn twice, so the count is the link now. Only four of the six lead
   anywhere — there is no page that means "median list price" — so the
   clickable ones need to say so on their own rather than relying on the
   reader hovering to find out: they carry the underline, and the whole tile
   lifts on hover. */
a.mn-stat { text-decoration: none; transition: background 0.15s ease; }
a.mn-stat span { text-decoration: underline; text-underline-offset: 2px;
                 text-decoration-color: var(--grid); }
a.mn-stat:hover { background: var(--orange-soft); }
a.mn-stat:hover span { color: var(--red-text); text-decoration-color: var(--orange); }

.mn-bars { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.mn-bar { display: grid; grid-template-columns: 170px 1fr 64px; align-items: center; gap: 12px; font-size: 14px; }
.mn-bar .lab { color: var(--ink-2); }
.mn-bar .track { background: var(--linen); border-radius: 999px; height: 12px; overflow: hidden; }
/* display: block — the fill is a span, and an inline span ignores width and
   height, so every bar rendered as an empty grey track. */
.mn-bar .fill { display: block; background: var(--orange); height: 100%; border-radius: 999px; }
.mn-bar .n { text-align: right; font-weight: 600; font-size: 13.5px; }

.mn-map { height: 380px; border-radius: 22px; overflow: hidden; border: 1px solid var(--grid); }

.mn-cardrow .ph {
  /* area.html?q= cards. This box was an inline style in js/area-page.js,
     which put it out of reach of check_cards.py and of the hairline rule —
     the last card on the site not drawn from a stylesheet. */
  width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; background-color: #eee;
  position: relative; overflow: hidden;
}
.mn-cardrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 20px; }
.mn-compare { width: 100%; border-collapse: collapse; font-size: 14.5px; max-width: 720px; }
.mn-compare th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3); padding: 0 0 10px; font-weight: 600;
}
.mn-compare td { padding: 12px 0; border-top: 1px solid var(--grid); }
.mn-compare td:first-child { font-weight: 600; }
.mn-compare td:last-child, .mn-compare th:last-child { text-align: right; }
.mn-compare a { color: var(--red-text); text-decoration: none; }
.mn-compare a:hover { text-decoration: underline; }
.mn-compare tr.is-self td { color: var(--red-text); }

.mn-faq { margin-top: 8px; max-width: 760px; }
.mn-faq details { border-top: 1px solid var(--grid); padding: 16px 0; }
.mn-faq details:last-child { border-bottom: 1px solid var(--grid); }
.mn-faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.mn-faq summary::after { content: "+"; color: var(--orange); font-size: 19px; }
.mn-faq details[open] summary::after { content: "–"; }
.mn-faq summary::-webkit-details-marker { display: none; }
.mn-faq p { margin-top: 10px; font-size: 14.5px; }

.mn-cta {
  margin: 44px 0 10px; background: var(--orange-soft); border-radius: 24px;
  padding: 36px; text-align: center;
}
.mn-cta h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; }
.mn-cta p { color: var(--ink-2); font-size: 15px; max-width: 35.8em; margin: 0 auto 20px; }
.mn-cta a {
  display: inline-block; background: var(--orange-deep); color: #fff; border-radius: 999px;
  padding: 13px 28px; font-weight: 600; font-size: 15px; text-decoration: none;
}
.mn-cta a:hover { background: #064031; }

.mn-linklist { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.mn-linklist a {
  display: inline-block; background: var(--linen); border: 1px solid var(--grid);
  border-radius: 999px; padding: 9px 17px; font-size: 13.5px; font-weight: 500;
  color: var(--charcoal); text-decoration: none;
}
.mn-linklist a:hover { background: var(--orange-soft); color: var(--ink); }
.mn-linklist a b { color: var(--ink); }

/* area (quadrant) grid of communities */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.area-tile {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--grid); border-radius: 16px; padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.area-tile:hover { border-color: var(--orange); transform: translateY(-2px); }
.area-tile b { display: block; font-size: 15.5px; }
.area-tile .n { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
/* The count and the median are spans meant to stack; inline they ran together
   as "206 active listings$266,000 median" and the margin below was ignored. */
.area-tile .n, .area-tile .r { display: block; }
.area-tile .r { margin-top: 7px; font-size: 14px; font-weight: 600; color: var(--red-text); }

@media (max-width: 860px) {
  .mn-bar { grid-template-columns: 120px 1fr 56px; }
}

/* Edmonton Area mega-menu — wider than a plain dropdown, quadrants in two columns */
.dgn-mega { min-width: 340px; }
.dgn-mega-head { border-bottom: 1px solid var(--grid); margin-bottom: 6px; padding-bottom: 6px; }
.dgn-mega-head a { font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px !important; }
.dgn-mega-grid > span { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.dgn-mega-grid a {
  display: block; padding: 9px 13px; border-radius: 12px; font-weight: 500; font-size: 14px;
  color: var(--charcoal); text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.dgn-mega-grid a:hover { background: var(--orange-soft); color: var(--ink); }

/* ---------- property screening report ("what to verify") ---------- */

.pi-banner {
  background: #fff; border: 1px solid var(--grid); border-radius: 22px;
  padding: 24px 26px; margin: 22px 0 6px;
}
.pdp-gmap {
  background: #fff; border: 1px solid var(--grid); border-radius: 22px;
  padding: 24px 26px; margin: 22px 0 6px;
}
.pdp-gmap h2 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 14px; }
.pdp-gmap-frame { position: relative; height: clamp(260px, 34vw, 400px); border-radius: 14px;
  overflow: hidden; background: var(--grid); margin-bottom: 12px; }
.pdp-gmap-dir { margin-left: 18px; }
.pdp-gmap-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
  .pdp-gmap { padding: 18px 16px; }
  .pdp-gmap-frame { height: 260px; }
}
.pi-banner-head { margin-bottom: 16px; }
.pi-shield { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--orange-soft);
  color: var(--red-text); display: inline-grid; place-items: center; vertical-align: -6px;
  margin-left: 10px; }
.pi-shield svg { width: 17px; height: 17px; }
.pi-banner-head h2 { font-size: 19px; letter-spacing: -0.01em; }
.pi-banner-head p { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); max-width: 41.11em; }
.pi-lock-chip, .pi-open-chip {
  margin-left: auto; flex: none; font-size: 12px; font-weight: 600; border-radius: 999px;
  padding: 6px 13px; background: var(--linen); color: var(--charcoal);
}
.pi-open-chip { background: var(--orange-soft); color: var(--red-text); }

.pi-summary { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; max-width: 51.71em; }
.pi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pi-card { border: 1px solid var(--grid); border-radius: 16px; padding: 16px 18px; }
.pi-card header { margin-bottom: 8px; }
.pi-card h3 { font-size: 15px; margin-top: 7px; letter-spacing: -0.01em; }
.pi-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-top: 7px; }
.pi-card .pi-why, .pi-card .pi-next { font-size: 12.5px; }
.pi-card b { color: var(--ink); font-weight: 600; }
.pi-src { display: inline-block; margin-top: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--red-text); text-decoration: none; }
.pi-src:hover { text-decoration: underline; }
.pi-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 999px; padding: 4px 10px;
  background: var(--linen); color: var(--charcoal);
}
.pi-badge-p { background: #fdf3e2; color: #8a5a00; }
.pi-badge-v { background: #e7f2e7; color: #1e6a34; }

.pi-questions { margin-top: 18px; border-top: 1px solid var(--grid); padding-top: 16px; }
.pi-questions h3 { font-size: 14.5px; margin-bottom: 8px; }
.pi-questions ol { padding-left: 20px; }
.pi-questions li { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 4px; }
.pi-fine { margin-top: 12px; font-size: 12px; color: var(--ink-3); line-height: 1.6; max-width: 58.34em; }

/* locked state */
.pi-locked { text-align: left; }
.pi-locked-count { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pi-locked-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pi-locked-list li { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.pi-locked-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pi-locked-cta a { font-size: 14px; font-weight: 600; color: var(--red-text);
  text-decoration: underline; text-underline-offset: 3px; background: none;
  padding: 0; border: 0; }
.pi-locked-cta a:hover { color: var(--orange-deep); }
.pi-login { font-size: 13.5px; font-weight: 600; color: var(--red-text);
  text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) { .pi-grid { grid-template-columns: 1fr; } }

/* ---------- areas index (quadrant cards) ---------- */
.qd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.qd-card {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--grid); border-radius: 20px; padding: 24px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.qd-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.qd-card h2 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 6px; }
.qd-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 12px; }
.qd-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.qd-stats span { font-size: 12.5px; color: var(--ink-3); }
.qd-stats b { color: var(--red-text); font-size: 14px; margin-right: 3px; }
.qd-go { font-size: 13.5px; font-weight: 600; color: var(--red-text); }

/* ---------- "By Quadrant" flyout submenu inside a dropdown ---------- */
.dgn-sub { position: relative; }
.dgn-sub > button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; padding: 10px 13px; border-radius: 12px;
  font-family: inherit; font-weight: 500; font-size: 14px; color: var(--charcoal);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.dgn-sub > button:hover { background: var(--orange-soft); color: #1c1c1c; }
.dgn-sub-chev {
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); flex: none;
}
.dgn-sub-menu {
  display: none; position: absolute; left: calc(100% + 2px); top: -8px; min-width: 180px;
  list-style: none; background: #fff; border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.3); border: 1px solid rgba(51, 51, 51, 0.1);
  padding: 8px; z-index: 46;
}
.dgn-sub:hover > .dgn-sub-menu, .dgn-sub.is-open > .dgn-sub-menu { display: block; }
.dgn-sub-menu li a {
  display: block; padding: 9px 13px; border-radius: 12px; font-weight: 500; font-size: 14px;
  color: var(--charcoal); text-decoration: none; white-space: nowrap;
}
.dgn-sub-menu li a:hover { background: var(--orange-soft); color: #1c1c1c; }
.dgn-sub-menu .dgn-sub-all { border-top: 1px solid var(--grid); margin-top: 4px; padding-top: 4px; }

/* ---------- mobile (subpages share the same burger pattern as index) ---------- */
.dgn-burger {
  display: none; background: none; border: 0; width: 40px; height: 40px;
  border-radius: 12px; cursor: pointer; flex: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.dgn-burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #1c1c1c; transition: transform 0.25s ease; }
.dgn.is-open .dgn-burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.dgn.is-open .dgn-burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 859px) {
  .dgn-wrap { top: 10px; }
  .dgn { gap: 10px; padding: 9px 12px; width: calc(100% - 20px); position: relative; }
  .dgn-logo img { width: 96px; }
  /* Scoped to the nav. Unscoped, this hid EVERY .dgn-cta on a phone — the
     nav's "Show Me Homes" as intended, but also the call-to-action button
     inside an article, which is the only thing a reader is meant to press
     at the end of a landing page. A landing page on the source site had an
     invisible CTA on mobile for as long as it has existed (found
     2026-10-02 while building the buyer page). */
  .dgn .dgn-cta { display: none; }
  /* Burger on the right, where a thumb on a phone actually reaches — it used
     to sit immediately after the logo, on the far side from the hand holding
     the device. */
  .dgn-burger { display: flex; margin-left: auto; order: 3; }
  /* The menu stays closed, but Dashboard rides outside it: the account area
     is what returning visitors come back for, and it was the hardest thing on
     the site to reach. The list is still the dropdown when opened. */
  .dgn-links { display: flex; margin-left: auto; gap: 0; order: 2; }
  .dgn-links > li { display: none; }
  .dgn-links > li.dgn-dash { display: block; }
  .dgn-links > li.dgn-dash > a { font-size: 15px; padding: 6px 2px; }
  .dgn.is-open .dgn-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: #fff; border-radius: 20px; padding: 10px;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.3); border: 1px solid rgba(51, 51, 51, 0.1);
    margin-left: 0; z-index: 60;
  }
  .dgn.is-open .dgn-links > li { display: block; }
  .dgn.is-open .dgn-links > li > a,
  .dgn.is-open .dgn-links > li > button { display: block; width: 100%; text-align: left; padding: 11px 13px; border-radius: 12px; font-size: 15px; }
  .dgn.is-open .dgn-drop-btn .dgn-chev { margin: 0 0 0 9px; vertical-align: 3px; }
  .dgn-drop-menu, .dgn-sub-menu, .dgn-mega {
    position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0;
  }
  .dgn-mega-grid > span { grid-template-columns: 1fr; }

  .page-head { padding-top: 76px; }
  /* The header is sticky and in the flow at this width, so it already takes
     its own space. 66px here was the offset for when it floated over the
     page, and on a phone it stacked into ~60px of blank space above the
     back link, then another 40px before the photo. */
  .pdp { padding-top: 18px; }
  .pdp-back { margin-bottom: 6px; }
  /* .pdp-baked > section sets 26px on every section of a listing page, the
     photo included; it outranks a bare .pdp-mosaic, so match its weight. */
  .pdp-baked > .pdp-mosaic, .pdp-gone > .pdp-mosaic, .pdp > .pdp-mosaic { margin-top: 8px; }
  /* Feature pills sit on top of the photo in the viewer; on a phone they
     cover a third of it. They are listed under "About this home" anyway. */
  .gal-tags { display: none; }
  .pdp-head { flex-direction: column; align-items: stretch; gap: 18px; }
  .pdp-head-cta { text-align: left; }
  .pdp-specs { grid-template-columns: repeat(3, 1fr); }
  .pdp-spec-v { font-size: 17px; }
  .pi-banner { padding: 18px 16px; }
  .pi-banner-head { flex-wrap: wrap; }
  .gal-stage { height: 300px; }
  .searchpage-map { min-height: 320px; }
  .mn-map { height: 280px; }
  .book-modes { grid-template-columns: 1fr; }
  .mn-stats { grid-template-columns: repeat(2, 1fr); }
  .mn-compare { font-size: 13px; }
  .dg-footer-inner { padding-left: 20px; padding-right: 20px; }
  .dg-footer-legal { padding-left: 20px; padding-right: 20px; }
}

/* ---------- auth modal + toast (ported from the sibling site's style.css) ---------- */
.pdp-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90;
  background: #1c1c1c; color: #fff; font-size: 14.5px; border-radius: 999px;
  padding: 10px 21px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.modal-back {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 18, 16, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 19px; overflow-y: auto;
}
.modal-card {
  position: relative; width: min(460px, 100%); background: #fff;
  border-radius: 26px; padding: 32px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.modal-x {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 0;
  border-radius: 50%; background: none; font-size: 26px; line-height: 1;
  color: var(--ink-3); cursor: pointer;
}
.modal-x:hover { background: var(--linen); color: var(--ink); }
.modal-title { font-size: 24px; margin-bottom: 8px; padding-right: 32px; letter-spacing: -0.01em; }
.modal-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 21px; line-height: 1.55; }
/* A two-paragraph message sets its own inter-paragraph gap; only the last one
   carries the 21px that separates the copy from the button below it. */
.modal-sub + .modal-sub { margin-top: -9px; }
.modal-form label { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 5px; }
.modal-form input {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--linen); border: 1.5px solid transparent; border-radius: 14px;
  padding: 11px 14px; margin-bottom: 14px;
}
.modal-form input:focus { outline: none; border-color: var(--orange); background: #fff; }
.modal-submit {
  width: 100%; justify-content: center; border: 0; cursor: pointer; padding: 13px;
  background: var(--orange-deep); color: #fff; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 15px;
}
.modal-submit:hover { background: #064031; }
.modal-fine { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.auth-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 14px; margin-bottom: 14px;
  background: #fff; border: 1.5px solid var(--grid); border-radius: 14px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.auth-google-btn:hover { border-color: #bbb; }
.auth-google-btn:active { transform: scale(0.98); }
/* Facebook borrows the Google button's box exactly — same height, radius and
   type — so the two stack as one pair rather than competing. Meta's brand
   guidelines allow a white button with the blue mark, which is what keeps
   this from shouting over the page's own palette. */
.auth-facebook-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 14px; margin-bottom: 14px;
  background: #fff; border: 1.5px solid var(--grid); border-radius: 14px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.auth-facebook-btn:hover { border-color: #bbb; }
.auth-facebook-btn:active { transform: scale(0.98); }
.auth-google-btn svg, .auth-facebook-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.auth-divider {
  display: flex; align-items: center; gap: 11px; margin: -3px 0 14px;
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--grid); }
.auth-links { margin: -5px 0 5px; }
.modal-link {
  display: block; width: 100%; text-align: center; background: none; border: 0;
  padding: 6px; margin-top: 5px; font-family: inherit; font-size: 13.5px;
  color: var(--ink-3); cursor: pointer;
}
.modal-link:hover { color: var(--red-text); }
/* Used where the dismiss names what the visitor is declining rather than
   deferring ("I'm ok not to have this info."). Underlined so it reads as the
   deliberate opt-out it is, instead of disappearing as tertiary text. */
.modal-link--underline { text-decoration: underline; text-underline-offset: 2px; }
.modal-done { text-align: center; }
.modal-done h3 { font-size: 21px; margin-bottom: 6px; }
.modal-done p { color: var(--ink-2); font-size: 15px; }
.quiz-error { color: #04291F; font-size: 14.5px; margin-bottom: 16px; }
.quiz-success-orb {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--orange-soft); font-size: 38px; font-style: normal;
}
/* Sign in/out inside the Dashboard dropdown */
.dgn-drop-menu li button.nav-auth-btn {
  display: block; width: 100%; text-align: left; padding: 10px 13px; border-radius: 12px;
  font-family: inherit; font-weight: 500; font-size: 14px; color: var(--charcoal);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.dgn-drop-menu li button.nav-auth-btn:hover { background: var(--orange-soft); color: var(--ink); }
/* the divider only makes sense when this sits at the foot of a dropdown */
.dgn-drop-menu #nav-auth-item { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--grid); }


/* ============================================================
   BLOG — ported from the sibling site's style.css so both sites' articles share
   one structure, retheming lime -> orange and Jost/Hanken -> Poppins.
   Class names are kept identical to the sibling site's so article markup is
   portable between the two sites.

   @media blocks are preserved as blocks. A first pass flattened them,
   which let the mobile one-column override outrank the desktop
   two-column base rule and collapsed every article's sidebar.
   ============================================================ */
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: .7rem;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease;
}
.promo-card:hover { transform: translateY(-6px); }
.promo-card-alerts { background: #fff; }
.promo-card-alerts .promo-media {
  position: relative;
  border-radius: calc(22px - 7px);
  overflow: hidden;
}
.promo-card-alerts .promo-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.promo-card-alerts .promo-body { padding: 1rem .6rem .7rem; }
.promo-card .promo-body h3 { font-size: 1.15rem; line-height: 1.25; }
.promo-card .promo-body p { color: var(--ink-3); font-size: .9rem; margin-top: .5rem; line-height: 1.5; }
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-family: inherit;
  font-weight: 600;
  font-size: .92rem;
  color: var(--red-text);
}
.promo-cta svg { width: 13px; height: 13px; }
.promo-card:hover .promo-cta { color: var(--ink); }
.promo-card-sell {
  background: #064031;
  color: #fff;
  justify-content: center;
  padding: 1.8rem 1.5rem;
}
.promo-card-sell .promo-eyebrow {
  font-family: inherit;
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .8rem;
}
.promo-card-sell .promo-eyebrow .asterisk { color: #fff; margin-right: .4em; }
.promo-card-sell h3 { font-size: 1.5rem; line-height: 1.2; color: #fff; }
.promo-card-sell p { color: #fff; font-size: .92rem; margin-top: .8rem; line-height: 1.55; }
.promo-card-sell .promo-cta { color: #fff; }
.promo-card-sell:hover .promo-cta { color: #fff; }
.crumbs {
  padding-top: 1.5rem;
  padding-bottom: 0;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: .82rem;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: "›";
  margin-right: .75rem;
  color: var(--ink-3);
}
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--red-text); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }
.mn-table-wrap {
  
  overflow-x: auto;
  margin: 1.75rem 0;
  -webkit-overflow-scrolling: touch;
}
.mn-table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
  font-size: .94rem;
  min-width: 30rem;
}
.mn-table caption {
  caption-side: top;
  text-align: left;
  font-size: .82rem;
  color: var(--ink-3);
  padding-bottom: .6rem;
}
.mn-table th,
.mn-table td {
  text-align: left;
  padding: .7rem .85rem;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.mn-table thead th {
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-width: 2px;
}
.mn-table tbody th { font-weight: 500; color: var(--ink); }
.mn-table tbody tr:last-child th,
.mn-table tbody tr:last-child td { border-bottom: 0; }
.mn-table a { color: var(--red-text); }
.mn-faq { display: grid; gap: .75rem; margin-top: 1.5rem; }
.mn-faq details {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 0 1.3rem;
}
.mn-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mn-faq summary::-webkit-details-marker { display: none; }
.mn-faq summary h3 {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  font-weight: 600;
  line-height: 1.35;
}
.mn-faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.mn-faq details[open] summary::after { transform: rotate(-135deg); }
.mn-faq details > p {
  margin: 0;
  padding: 0 0 1.15rem;
  max-width: 45rem;
  color: var(--ink-3);
}
.mn-sec-head { text-align: center; margin-bottom: var(--mn-head-gap); }
.mn-sec-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  margin: 0;
}
.mn-prose {
  
  max-width: 45rem;
  margin-inline: auto;
  text-align: left;
}
.mn-prose > p {
  color: var(--ink-3);
  
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.mn-prose > p:last-child { margin-bottom: 0; }
/* .mn-prose is a container class, so `.mn-prose > p` never matches when the
   class sits on the paragraph itself — which is how the migrated articles
   carry it. Matched to .mn-guide-sec > p rather than to the container's lead
   size: measured against the source architecture, article body is 17.92px in --ink-2, and the
   container size (19.2px, --ink-3) rendered these paragraphs both larger than
   the surrounding body and at 3.45:1 contrast, which fails WCAG AA. */
p.mn-prose {
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  margin: 0 0 1.15rem;
  max-width: 45rem;
}
.mn-guide-sec p.mn-prose:last-child { margin-bottom: 0; }
.mn-prose strong { color: var(--ink); font-weight: 600; }
.mn-prose .rep-note { color: var(--ink); }
.mn-toc {
  max-width: 45rem;
  margin: clamp(2rem, 5vh, 3.2rem) auto 3rem;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.8rem;
}
.mn-toc-title {
  font-family: inherit;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .9rem;
}
.mn-toc ol {
  list-style: none;
  display: grid;
  gap: .5rem;
  counter-reset: mn-toc;
}
.mn-toc li { counter-increment: mn-toc; }
.mn-toc a {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: .2rem 0;
  border-bottom: 1px solid transparent;
}
.mn-toc a:hover { border-bottom-color: var(--orange); color: var(--red-text); }
.mn-toc a::before {
  content: counter(mn-toc);
  font-family: inherit;
  color: var(--red-text);
  font-weight: 600;
  font-size: .85rem;
  flex: 0 0 1.4rem;
}
.mn-guide-sec {
  max-width: 45rem;
  margin: 0 auto 3.2rem;
  scroll-margin-top: clamp(6rem, 14vh, 8rem);
}
.mn-guide-sec h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  margin-bottom: 1.15rem;
}
.mn-guide-sec > p {
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  margin-bottom: 1.15rem;
}
/* Lists sit in the reading column, markers in the gutter.

   The global `* { padding: 0 }` reset strips the browser's list indent, and
   only ul ever got it back — ol was never given a rule at all, so numbered
   lists rendered flush against the section edge with their markers 25px left
   of the prose they belong to. Bulleted and numbered lists on the same page
   indented differently, which is what made it read as a mistake rather than
   a style.

   1.55rem puts the item text on the same left edge as the surrounding
   paragraphs and leaves the marker hanging outside it, which is the usual
   arrangement in body copy and keeps a wide marker like "10." from crowding
   the first word. */
.mn-guide-sec ul,
.mn-guide-sec ol,
.blog-art-main ul,
.blog-art-main ol {
  padding-left: 1.55rem;
  margin-bottom: 1.15rem;
  display: grid;
  gap: .55rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.mn-guide-sec p a,
.mn-guide-sec li a {
  color: var(--red-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
}
.mn-guide-sec p a:hover,
.mn-guide-sec li a:hover { color: var(--ink); }
.mn-callout {
  display: flex;
  gap: .9rem;
  max-width: 45rem;
  margin: 1.2rem auto;
  background: var(--amber-tint, #FBF1DF);
  border-radius: var(--radius-sm, 16px);
  padding: 1.1rem 1.3rem;
}
.mn-callout-icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--amber, #B8760A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: .85rem;
}
.mn-callout p {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-2);
}
.mn-callout strong { color: var(--ink); }
.mn-callout a { color: var(--red-text); font-weight: 600; }
.mn-callout--tip { background: var(--orange-soft); }
.mn-callout--tip .mn-callout-icon { background: var(--orange-deep); }
.mn-guide-photo {
  max-width: 45rem;
  margin: 1.4rem auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.mn-guide-photo img { width: 100%; height: auto; display: block; }
.mn-guide-photo figcaption {
  padding: .8rem 1.1rem;
  font-size: .82rem;
  color: var(--ink-3);
  background: #fff;
}
.mn-guide-index-grid {
  max-width: 62rem;
  margin: 1.4rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.mn-guide-index-card {
  display: block;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease;
}
.mn-guide-index-card:hover { transform: translateY(-2px); }
.mn-guide-index-card h3 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
  color: var(--ink);
}
.mn-guide-index-card p {
  font-size: .92rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.mn-guide-index-card span {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--red-text);
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}
.blog-tag {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.blog-tag:hover { background: var(--orange-soft); color: var(--red-text); }
.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(51, 51, 51, .1);
}
.blog-post-nav > div:last-child { text-align: right; }
.blog-post-nav-label {
  display: block;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .3rem;
}
.blog-post-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.blog-post-nav a:hover { color: var(--red-text); }
.blog-art-hero {
  background: #064031;
  padding-block: 1.4rem clamp(2.2rem, 5vw, 3.2rem);
}
.blog-art-hero .crumbs ol,
.blog-art-hero .crumbs a,
.blog-art-hero .crumbs li + li::before { color: rgba(255, 255, 255, .62); }
.blog-art-hero .crumbs a:hover { color: #fff; }
.blog-art-hero .crumbs [aria-current="page"] { color: rgba(255, 255, 255, .92); }
.blog-art-cat {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #CFE3DB;
  text-decoration: none;
}
.blog-art-cat:hover { color: #fff; }
.blog-art-hero h1 {
  color: #fff;
  margin-top: .7rem;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  max-width: 18.56em;
  text-wrap: balance;
}
.blog-art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .75rem;
  margin-top: 1.3rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .68);
}
.blog-art-meta a { color: #fff; text-decoration: none; font-weight: 600; }
.blog-art-meta a:hover { color: var(--orange-deep); }
.blog-art-meta .sep { color: rgba(255, 255, 255, .3); }
.blog-art-figure { margin-top: clamp(-2.2rem, -5vw, -3.2rem); }
.blog-art-figure img {
  width: 100%;
  height: auto;
  /* 1376/768 — the shape every hero file is actually authored at.
     This was 3/1 with object-fit:cover, so the browser threw away 40% of
     each hero's height (20% off the top, 20% off the bottom) on all 64
     articles. On any photo of a person that cropped their head off; it was
     only invisible for landscapes, where the middle band still read as a
     complete picture. If this ratio ever changes, the heroes have to be
     re-rendered to match it — the two must agree. */
  aspect-ratio: 1376 / 768;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
/* The height cap for NEW article heroes, opted into per article.
   
   The uncapped rule above renders 781px tall on a 900px laptop — 87% of the
   first screen, so the article's first sentence starts below the fold. The
   property pages solved this already and wrote down why: "photos that push
   the price off the screen have stopped doing their job." Same reasoning, so
   the same numbers.
   
   It is a modifier rather than a change to the rule above because the 51
   older heroes were authored to the 1376/768 shape, and object-fit:cover
   would crop the difference out of them — which is exactly how an earlier
   3/1 version decapitated people in frame. Opting in per article means each
   hero is looked at once before its shape changes.
   
   Retrofit an old article by adding the class and checking the result, not by
   moving this into .blog-art-figure img. */
.blog-art-figure.is-capped img {
  aspect-ratio: auto;
  height: clamp(260px, 40vh, 470px);
  object-fit: cover;
  /* Where the crop is taken from. Centre suits a landscape, and is wrong for
     anything with a person in it: at this height the box is roughly 3.9:1
     against a 3:2 source, so 61% of the image height goes, and a centred cut
     takes it half off the top. That decapitated the man on the FSBO article
     and trimmed the foreheads off two family portraits. */
  object-position: center center;
}
/* Subject sits high in the frame — faces, rooflines, signage. */
.blog-art-figure.is-capped.hero-top img    { object-position: center 22%; }
.blog-art-figure.is-capped.hero-upper img  { object-position: center 35%; }
/* Subject sits low — foreground detail, desks, ground-level objects. */
.blog-art-figure.is-capped.hero-lower img  { object-position: center 65%; }

.blog-art-figure figcaption,
.blog-art-inline figcaption {
  margin-top: .6rem;
  font-size: .8rem;
  color: var(--ink-3);
}
.blog-art-figure figcaption a,
.blog-art-inline figcaption a { color: var(--ink-3); }
.blog-art-body { padding-block: clamp(2.2rem, 5vw, 3.2rem); }
.blog-art-grid {
  display: grid;
  grid-template-columns: minmax(0, 45rem) 300px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  /* Cap the pair and centre it. The article column used to take all the
     remaining width while .mn-prose kept its 45rem reading measure inside it,
     so widening the site to 1560px opened a ~270px hole between the end of the
     text and the sidebar. Sizing the column to the measure closes it. */
  max-width: calc(45rem + 300px + 3.5rem);
  margin-inline: auto;
}
.blog-art-sidebar {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 1.5rem;
}
.blog-sidebar-block {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem;
}
.blog-sidebar-title {
  font-family: inherit;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.blog-sidebar-note {
  font-size: .78rem;
  color: var(--ink-3);
  margin-top: 1rem;
}
.blog-sidebar-list { list-style: none; display: grid; gap: .7rem; }
.blog-sidebar-list--ranked { counter-reset: sidebar-rank; }
.blog-sidebar-list--ranked li { counter-increment: sidebar-rank; }
.blog-sidebar-list--ranked a {
  display: flex;
  gap: .65rem;
  align-items: baseline;
}
.blog-sidebar-list--ranked a::before {
  content: counter(sidebar-rank);
  font-family: inherit;
  font-weight: 600;
  font-size: .8rem;
  color: var(--red-text);
  flex: 0 0 1.1rem;
}
.blog-sidebar-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .94rem;
}
.blog-sidebar-list a:hover { color: var(--red-text); }
.blog-sidebar-list .count {
  margin-left: auto;
  color: var(--ink-3);
  font-weight: 400;
  font-size: .82rem;
}
.blog-art-inline {
  max-width: 45rem;
  margin: 0 auto 3.2rem;
}
.blog-art-inline img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
}
.blog-answer {
  max-width: 45rem;
  margin: 0 auto 3.2rem;
  background: var(--orange-soft);
  border-radius: 22px;
  padding: clamp(1.3rem, 3vw, 1.8rem);
}
.blog-answer-label {
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: .6rem;
}
.blog-answer p {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink);
}
.blog-art-foot {
  max-width: 45rem;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(51, 51, 51, .1);
}
.blog-art-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 22px;
  padding: 1.3rem;
}
.blog-art-author img {
  flex: 0 0 auto;
  width: 10.2rem;
  height: 10.2rem;
  border-radius: 50%;
  object-fit: cover;
}
.blog-art-author h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.blog-art-author p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.blog-art-author p + p { margin-top: .7rem; }
.blog-art-author a { color: var(--red-text); font-weight: 600; }
.blog-art-reviewed {
  margin-top: 1rem;
  margin-bottom: 3.2rem;    /* the Sources heading follows; same gap as .mn-guide-sec */
  font-size: .82rem;
  color: var(--ink-3);
}
.blog-related { padding-block: clamp(2.2rem, 5vw, 3.2rem); }
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.blog-related-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease;
}
.blog-related-card:hover { transform: translateY(-3px); }
.blog-related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.blog-related-body { padding: 1.1rem 1.2rem 1.3rem; }
.blog-related-body h3 {
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: .4rem;
  color: var(--ink);
}
.blog-related-card:hover h3 { color: var(--red-text); }
.blog-related-body span { font-size: .82rem; color: var(--ink-3); }
/* The whole card is an <a>, so anything inside it that does not set its own
   colour inherits the UA's visited-link purple once the reader has been to the
   target. The blurb had no colour of its own and turned purple on exactly the
   articles someone had already read. */
.blog-related-body p { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.search-seo-block .mn-prose { margin-bottom: clamp(2rem, 4vw, 3rem); }
.mn-linklist {
  max-width: 62rem;
  margin: 0 auto;
  columns: 3 14rem;
  column-gap: 2rem;
}
.mn-linklist { list-style: none; }
.mn-linklist li { break-inside: avoid; margin-bottom: .5rem; }
.mn-linklist a {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
}
.mn-linklist a:hover { color: var(--red-text); border-bottom-color: var(--orange); }

@media (max-width: 560px) {
  .blog-post-nav { grid-template-columns: 1fr; }
  .blog-post-nav > div:last-child { text-align: left; }
}
@media (max-width: 60rem) {
  /* minmax(0, 1fr), not a bare 1fr. A grid item's automatic minimum width is
     its content's min-content size, and that propagates up through nested
     block descendants to whatever the widest one demands — here, .mn-table's
     min-width: 30rem (480px). .mn-table-wrap's own overflow-x:auto does not
     stop this: that property only zeroes automatic min-sizing on the element
     that is itself the grid item, and the table sits several levels below it
     inside .blog-art-main. So on the 4 posts with a comparison table, the
     single mobile column refused to shrink past 480px and the whole page
     went 480px wide with it — exactly the drift Eddie reported, reproduced by
     checking body.scrollWidth against the four posts carrying <table
     class="mn-table">. minmax(0, 1fr) is the same fix already applied to the
     desktop track above; this rule had simply been written before that
     pattern was adopted. */
  .blog-art-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-art-sidebar { position: static; }
}
@media (max-width: 34rem) {
  .blog-art-author { flex-direction: column; align-items: center; text-align: center; }
  .blog-art-author img { width: 7.5rem; height: 7.5rem; }
}

/* small print under tables and examples — the sibling site handles this inline */
.mn-fine { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* Cornerstone-series list in the article sidebar. No counter markers —
   each label already carries its own "Step N", and the sibling site's --ranked
   class would print the number twice. */
.blog-toc-steps li { padding: 7px 0; border-top: 1px solid var(--grid); font-size: 14px; line-height: 1.45; }
.blog-toc-steps li:first-child { border-top: 0; }
.blog-toc-steps li[aria-current="true"] span { font-weight: 600; color: var(--red-text); }
/* Steps not yet published are plain text rather than links, so the sidebar
   never sends anyone to a 404. Swap to <a> as each article ships. */
.blog-toc-steps li.is-upcoming span { color: var(--ink-3); }
.blog-toc-steps li.is-upcoming span::after { content: " · soon"; font-size: 12px; color: var(--orange-deep); }

/* breathing room between the intro and the answer box */
.blog-art-main > .mn-prose:first-child { margin-bottom: 26px; }
.blog-hood-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }

/* In-article CTA. Deliberately NOT the sibling site's .promo-card, which is a sidebar
   grid component: it carries no max-width and no bottom margin, so in the
   body it broke out of the 45rem text column and sat flush against the next
   heading. This sits inside .mn-guide-sec and inherits that column's width
   and rhythm like every other section. */
.blog-cta {
  background: #064031; color: #fff; border-radius: 22px;
  padding: clamp(22px, 3vw, 30px);
}
.blog-cta-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin-bottom: 8px;
}
.blog-cta h2 { color: #fff; font-size: clamp(19px, 2.4vw, 24px); margin-bottom: 10px; }
.blog-cta p { color: rgba(255, 255, 255, 0.82); font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.blog-cta-btn {
  display: inline-block; background: var(--orange-deep); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14.5px; border-radius: 999px; padding: 12px 24px;
}
.blog-cta-btn:hover { background: #064031; }
/* the box is the button's own green, so the button turns white inside it */
.blog-cta a.blog-cta-btn, .blog-art-main .blog-cta p a.blog-cta-btn { background: #fff; color: #064031; }
.blog-cta a.blog-cta-btn:hover, .blog-art-main .blog-cta p a.blog-cta-btn:hover { background: #CFE3DB; }
/* Chart heroes sit on the page rather than bleeding like a photo. */
.blog-art-figure--chart img { border: 1px solid var(--grid); border-radius: 18px; background: #fff; }

/* Landing-page hero band. Unlike an article hero (shown whole, at its natural
   aspect), the landing hero is a backdrop: full shell width but capped in
   height so the page's actual content stays in the first screen on desktop.
   The height tracks the listing gallery's visual weight rather than the
   image's own aspect; object-fit crops symmetrically. */
.landing-hero img {
  height: clamp(220px, 28vw, 380px);
  object-fit: cover;
}

/* In-body charts. Sit inside the 45rem text column like any other figure. */
.blog-body-chart { margin: 22px 0 18px; }
.blog-body-chart img { width: 100%; height: auto; border: 1px solid var(--grid); border-radius: 16px; background: #fff; }
.blog-body-chart figcaption { margin-top: 9px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
/* Articles not yet published: shown as cards but not clickable, so an index
   or related row never sends anyone to a 404. Swap to <a> as each ships. */
.blog-related-card.is-upcoming { opacity: 0.62; cursor: default; }
.blog-related-card.is-upcoming h3::after { content: " · coming soon"; color: var(--orange-deep); font-weight: 600; font-size: 12.5px; }
.blog-post-nav-soon { color: var(--ink-3); }

/* In-body community links, rendered by js/blog-community-links.js.
   The affordability chart beside these is an <img>, so its community names
   cannot be links; this carries the same ranking as real destinations. Two
   columns on desktop so ten entries do not become a long thin list. */
.blog-hood-link-list {
  list-style: none; margin: 0 0 6px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px;
}
.blog-hood-link-list li {
  padding: 9px 0; border-top: 1px solid var(--grid); font-size: 14.5px; line-height: 1.4;
}
.blog-hood-link-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.blog-hood-link-list a:hover { color: var(--red-text); text-decoration: underline; }
.blog-hood-link-meta { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
@media (max-width: 640px) {
  .blog-hood-link-list { grid-template-columns: 1fr; }
}

/* Price-band links under an affordability section. Same pill vocabulary as
   the hero's browse-by row, so they read as navigation rather than prose. */
.blog-band-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 6px; }
.blog-band-links a {
  display: inline-block; background: var(--linen); color: var(--ink);
  border: 1px solid var(--grid); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500; text-decoration: none;
}
.blog-band-links a:hover { background: var(--orange-soft); border-color: var(--orange); color: var(--red-text); }

/* ---------- blog sidebar: 90 Days course card ---------- */

.blog-course-card {
  display: block; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #064031 0%, #0B4F3D 100%);
  border-radius: var(--radius); padding: 22px 22px 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.blog-course-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(0,0,0,.6); }
.blog-course-card .blog-sidebar-title { color: #CFE3DB; margin-bottom: 6px; }
.blog-course-card h3 { color: #fff; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 8px; }
.blog-course-card__p { color: #cfcbc5; font-size: 13px; line-height: 1.55; margin-bottom: 14px; }
.blog-course-card__cta { display: inline-block; font-size: 13px; font-weight: 600; color: #CFE3DB; }
.blog-course-card:hover .blog-course-card__cta { color: #fff; }

/* ---------------------------------------------------------------
   MORTGAGE DEALS — the pre-approval request card and its form.
   Reuses .guide/.guide__card for the page chassis; only the form
   itself needs styling of its own.
   --------------------------------------------------------------- */
.guide__list { margin: 0 0 18px; padding-left: 20px; }
.guide__list li { margin-bottom: 9px; line-height: 1.6; }
.guide__list li b { font-weight: 600; }

.mtg-card-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 16px; }
.mtg-row { margin-bottom: 12px; }
.mtg-row label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.mtg-row input, .mtg-row select {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--linen); border: 1.5px solid transparent; border-radius: 11px;
  padding: 10px 13px; appearance: none; -webkit-appearance: none;
}
.mtg-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%234E4F4F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px;
  padding-right: 30px; cursor: pointer;
}
.mtg-row input:focus, .mtg-row select:focus { outline: none; border-color: var(--orange); background: #fff; }
.mtg-error { font-size: 12.5px; color: #04291F; margin: 4px 0 10px; line-height: 1.45; }
.mtg-submit {
  width: 100%; font-family: inherit; font-weight: 600; font-size: 14px; color: #fff;
  background: var(--orange-deep); border: 0; border-radius: 999px; padding: 13px 18px;
  cursor: pointer; transition: background 0.18s ease;
}
.mtg-submit:hover { background: #064031; }
.mtg-submit:disabled { opacity: 0.6; cursor: default; }
/* the "no SIN, ever" line — deliberately quiet but always present, because the
   promise matters most to the people most likely to be phished */
.mtg-fine { font-size: 12px; color: var(--ink-3); line-height: 1.45; margin-top: 10px; }
.mtg-fine a { color: var(--ink-3); text-decoration: underline; }
.mtg-fine a:hover { color: var(--red-text); }

.contact-agent {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px;
  margin-bottom: 24px; background: var(--surface); border: 1px solid var(--grid);
  border-radius: var(--radius);
}
.contact-agent-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none;
}
.contact-agent-info h2 { font-size: 19px; margin-bottom: 2px; }
.contact-agent-role { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.contact-agent-contact { font-size: 13.5px; line-height: 1.7; margin-bottom: 10px; }
.contact-agent-contact a { color: var(--red-text); }
.contact-agent-brokerage { display: inline-block; }
.contact-agent-brokerage img { display: block; height: 40px; width: auto; }
.contact-agent-address { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 520px) {
  .contact-agent { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------------------------------------------------------------
   ACCOUNT / DASHBOARD — tabbed panels, compare table, saved searches.
   Same three-tab shape as Move New's account page, in Gebran's own
   palette and type.
   --------------------------------------------------------------- */
/* `hidden` loses to an explicit display value, which is how the signed-in bar
   and the tab counts stayed visible when the script had hidden them. */
.acct-bar[hidden], .account-tab-count[hidden], .acct-table-wrap[hidden],
.acct-empty[hidden], .acct-fine[hidden], .sub[hidden] { display: none; }

.account-tabs {
  display: flex; gap: 26px; border-bottom: 1px solid var(--grid);
  margin: 26px 0 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  /* A sideways scroller can collapse on an iPhone and cut the labels in half;
     the floor is the height of one tab plus the rule under it. */
  min-height: 34px;
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tab {
  flex: 0 0 auto; font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-3);
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 0 0 12px; cursor: pointer; white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.account-tab:hover { color: var(--ink); }
.account-tab.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--orange); }
.account-tab-count {
  display: inline-block; min-width: 20px; margin-left: 5px; padding: 1px 6px;
  font-size: 12px; font-weight: 600; color: var(--red-text);
  background: var(--orange-soft); border-radius: 999px;
}
.account-panel[hidden] { display: none; }

/* The intro line above a panel's controls. .sub is only given size and
   spacing inside .acct-section and .mn-sec, so in a tab panel it inherited
   body text with no bottom margin and sat flush against the first fieldset
   (Eddie, 2026-10-07). */
.account-panel > .sub, #em-wrap > .sub {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.55; margin: 0 0 20px; max-width: 46.41em;
}

/* ---- dashboard: email preferences, partners, expired-listing form ----
   Plain stacked controls rather than a settings grid: there are seven of
   them, they are read once and changed rarely, and a two-column layout only
   makes the labels harder to pair with their inputs on a phone. */
.acct-fs { border: 1px solid var(--grid); border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; }
.acct-fs legend {
  padding: 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.acct-radio, .acct-check { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; cursor: pointer; }
.acct-radio + .acct-radio, .acct-check + .acct-check { border-top: 1px solid var(--grid); }
.acct-radio input, .acct-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--orange-deep); flex: none; }
.acct-radio b, .acct-check b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.acct-radio small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.acct-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-actions .acct-btn { margin-top: 0; }
.acct-saved { font-size: 13.5px; color: var(--ink-2); }

.acct-partners { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.acct-partner { border: 1px solid var(--grid); border-radius: 14px; padding: 15px 17px; }
.acct-partner b { font-size: 16px; }
.acct-partner p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.acct-partner-role {
  display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600;
  color: var(--red-text); background: var(--orange-soft); border-radius: 999px; padding: 2px 9px;
}
.acct-partner-why { color: var(--ink); }
.acct-partner-contact a { color: var(--red-text); font-weight: 600; }

/* The expired-listing form reuses .mtg-row from the mortgage and contact
   pages. Only two additions: those pages have no textarea, and the optional
   hint needs to read as quieter than the label it sits in. */
.mtg-row textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--linen); border: 1.5px solid transparent; border-radius: 11px;
  padding: 10px 13px; resize: vertical;
}
.mtg-row textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
#panel-expired .opt { font-weight: 400; text-transform: none; color: var(--ink-3); }
#panel-expired .guide__card { max-width: 560px; }

/* a.acct-btn, not just .acct-btn: the site-wide link colour is more specific
   than a bare class, so anchors styled as buttons came out orange-on-orange
   while the <button> versions beside them were white. */
.acct-btn, a.acct-btn {
  display: inline-block; font-family: inherit; font-weight: 600; font-size: 13.5px;
  color: #fff; background: var(--orange-deep); border: 0; border-radius: 999px;
  padding: 11px 22px; cursor: pointer; text-decoration: none; margin-top: 14px;
}
.acct-btn:hover, a.acct-btn:hover { background: #064031; color: #fff; }
.acct-btn:hover { background: #064031; }
.acct-btn--ghost {
  color: var(--ink); background: none; border: 1.5px solid var(--grid); margin-top: 0;
}
.acct-btn--ghost:hover { background: var(--orange-soft); border-color: var(--orange); }

/* the compare table scrolls inside its own box — nine columns will not fit a
   laptop, and letting the page scroll sideways instead breaks every other row */
.acct-table-wrap { overflow-x: auto; border: 1px solid var(--grid); border-radius: 14px; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.acct-table caption { text-align: left; padding: 14px 16px 0; font-size: 13px; color: var(--ink-3); }
.acct-table th, .acct-table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.acct-table thead th {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-3); border-bottom: 1px solid var(--grid);
}
.acct-table tbody tr + tr { border-top: 1px solid var(--grid); }
.acct-table tbody th { font-weight: 600; white-space: normal; min-width: 220px; }
.acct-table tbody th a { color: inherit; text-decoration: none; }
.acct-table tbody th a:hover { color: var(--red-text); }
.acct-fine { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-top: 12px; max-width: 46.41em; }

.acct-ss-list { display: grid; gap: 12px; }
.acct-ss {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid var(--grid); border-radius: 14px; padding: 16px 18px; background: var(--surface);
}
.acct-ss b { display: block; font-size: 15px; }
.acct-ss span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.acct-ss-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.acct-ss-del {
  font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink-3);
  background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.acct-ss-del:hover { color: #04291F; }

@media (max-width: 560px) {
  .acct-ss { flex-direction: column; align-items: flex-start; }
  .account-tabs { gap: 18px; }
}

/* Sign in / Sign out as a top-level nav item — it used to live inside the
   Dashboard dropdown, which is now a direct link. Styled to match the other
   nav links rather than a menu row. */
.dgn-auth-item { display: flex; align-items: center; }
.dgn-auth-item > .nav-auth-btn {
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2);
  background: none; border: 0; padding: 0; cursor: pointer;
  /* a button's baseline sits lower than an anchor's; without this it rides
     ~4px below the other nav links */
  display: block; line-height: 21px;
}
.dgn-auth-item > .nav-auth-btn:hover { color: var(--red-text); }

/* ---------------------------------------------------------------
   NEW TODAY / PRICE REDUCED — the two standing lists.
   --------------------------------------------------------------- */
.lp { width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin: 0 auto 70px; padding-top: 20px; }
.lp-crumb { font-size: 13px; color: var(--ink-3); }
.lp-crumb a { color: inherit; text-decoration: none; }
.lp-crumb a:hover { color: var(--red-text); }
.lp-intro { margin: 14px 0 26px; max-width: 45.08em; }
.lp-kicker { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; margin-bottom: 8px; }
.lp-intro p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
/* The intro runs to two paragraphs on the neighbourhood and condo hubs, and
   with no margin between them the second one — the link out to the luxury
   ranking — read as another line of the first sentence rather than a
   separate offer. */
.lp-intro p + p { margin-top: .7em; }
/* The five directory hubs (/edmonton/, /condos/ and the three towns) put this
   intro directly above a full-width stats grid and section list. At 45.08em the
   heading and copy stop at 683px while everything under them runs to 1400 —
   the same "why is the text box so narrow relative to the page?" mismatch that
   sent .page-head .lede from 45.08em to 57.02em. Same measure, same reason; see
   docs/style-guide.md. Not lp-wide: that is max-width:none, and prose at
   1400px loses the reader on the return sweep. */
.condo .lp-intro { max-width: 57.02em; }
/* the reduction, not a sticker: the old price sits under the new one */
.lp-was { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.badge-cut { background: var(--orange-deep); color: #fff; }

/* ---------------------------------------------------------------
   ABOUT THIS BUILDING — condo name, and behind a free account the
   sold figures for that building (feed/build_condo_data.py).
   --------------------------------------------------------------- */
/* Neighbourhood context, from City of Edmonton open data. Sits between the
   building block and the screening report: what the street is like, after
   what the home is like and before what to check on it. */
.pdp-hoodblock {
  margin: 26px 0; padding: 22px; border: 1px solid var(--grid);
  border-radius: 18px; background: var(--surface);
}
.pdp-hood-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.pdp-hood-head h2 { font-size: 20px; letter-spacing: -0.01em; }
.pdp-hood-badge {
  margin-left: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--orange-soft); color: var(--red-text);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle;
}
.pdp-hood-all { font-size: 13.5px; font-weight: 600; color: var(--red-text); text-decoration: none; }
.pdp-hood-all:hover { text-decoration: underline; }
.pdp-hood-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}
.pdp-hood-stat {
  padding: 12px 14px; border: 1px solid var(--grid); border-radius: 14px; background: #fff;
}
.pdp-hood-stat b { display: block; font-size: 19px; line-height: 1.15; }
.pdp-hood-stat span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.pdp-hood-stat small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); opacity: .85; }
.pdp-hood-note { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.pdp-hood-src { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.pdp-hood-src a { color: inherit; }

/* Permits, nearby development and zoning (feed/pull_permits.py). Same shell
   as the neighbourhood block: this is context about the property, sitting
   between what the building is and what the street is like. */
/* Sits in the Permits tab, so .pdp-block-card supplies the frame. */
.pdp-permitblock .pdp-hood-head { margin-bottom: 4px; }
.pdp-permitblock h3 {
  margin: 18px 0 8px; font-size: 14px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink-3);
}
.pdp-permitblock h3:first-of-type { margin-top: 0; }
.pdp-permit-flag {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--orange-soft); font-size: 14.5px; line-height: 1.55;
}
.pdp-permit-flag b { color: var(--red-text); }
ul.pdp-permits { list-style: none; margin: 0; padding: 0; }
ul.pdp-permits li {
  display: grid; grid-template-columns: 92px 1fr; gap: 4px 14px;
  padding: 11px 0; border-top: 1px solid var(--grid);
}
ul.pdp-permits li:first-child { border-top: 0; }
.pdp-permit-date { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pdp-permit-body { display: block; font-size: 14.5px; line-height: 1.5; }
.pdp-permit-what { display: inline; }
.pdp-permit-unit {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--linen); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  vertical-align: 1px;
}
.pdp-permit-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.pdp-permits-near li .pdp-permit-body { font-size: 14px; }
.pdp-zone {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 18px;
  padding: 16px; border: 1px solid var(--grid); border-radius: 14px; background: #fff;
}
.pdp-zone-code { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.pdp-zone-body { font-size: 14px; line-height: 1.55; }
.pdp-zone-body p { margin: 6px 0 0; color: var(--ink-2); }
.pdp-zone-body a { color: var(--red-text); }
@media (max-width: 560px) {
  ul.pdp-permits li { grid-template-columns: 1fr; gap: 2px; }
  .pdp-zone { flex-direction: column; gap: 10px; }
}

.pdp-building {
  margin: 26px 0; padding: 22px; border: 1px solid var(--grid);
  border-radius: 18px; background: var(--surface);
}
.pdp-building-head h2 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.pdp-building-head p { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 41.11em; }
/* Count under an assessment stat ("1,141 houses"). The neighbourhood
   stat row carries two medians now — house and condo — and a median is
   only readable with the n it was taken from. */
.pdp-bstat .pdp-bnote { display: block; margin-top: 2px; font-style: normal;
  font-size: 12px; color: var(--ink-3); }

.pdp-bstats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 18px;
}
.pdp-bstat { background: #fff; border: 1px solid var(--grid); border-radius: 14px; padding: 14px 16px; }
.pdp-bstat b { display: block; font-size: 22px; letter-spacing: -0.02em; color: var(--red-text); }
.pdp-bstat span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.pdp-bfine { margin-top: 14px; font-size: 12px; color: var(--ink-3); line-height: 1.5; max-width: 46.41em; }
.pdp-building-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* ---------------------------------------------------------------
   CONDO BUILDING PAGES — /condos/ and /condos/<slug>/
   --------------------------------------------------------------- */
.condo { width: min(var(--page-max), calc(100% - 2 * var(--page-gutter))); margin: 0 auto 70px; padding-top: 20px; }
.condo-head { margin: 14px 0 24px; }
.condo-head h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
.condo-addr { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.condo-addr a { color: var(--red-text); text-decoration: none; }
.condo-addr a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Opening copy, the active-listing summary and the hub links, all written by
   feed/condo_seo.py from the same record as the H1 and schema. The listing
   summary is slightly stronger than the intro because it carries the number
   a buyer is actually looking for. */
.condo-intro { margin-top: 14px; max-width: 45.08em; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.condo-listed { margin-top: 10px; max-width: 45.08em; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.condo-links { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.condo-links a { color: var(--red-text); text-decoration: none; }
.condo-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.condo .results-head h2 { font-size: 19px; letter-spacing: -0.01em; }
/* The zero-listing state. Rendered, not hidden: on 189 building pages the
   only sentence explaining why a page headed "Condos for Sale" has no condos
   sat inside a hidden div. Styled as a real section rather than the muted
   centred .acct-empty, because it is the main content of these pages. */
.condo-empty { margin-top: 34px; padding: 26px 28px; border: 1px solid var(--grid); border-radius: 16px; background: #fff; }
.condo-empty h2 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.condo-empty p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; max-width: 45.08em; }
.condo-empty-hint { margin-top: 8px; }
.condo-empty-links { margin-top: 12px; }
.condo-empty-links a { color: var(--red-text); font-weight: 600; }
.condo-empty-cta { margin-top: 18px; }

.condo-near { margin-top: 34px; }
.condo-near h2 { font-size: 19px; margin-bottom: 12px; }
/* nearby buildings double as the internal links that make this cluster
   crawlable — every page links six others within 2km */
.condo-near-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.condo-near-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border: 1px solid var(--grid); border-radius: 12px; padding: 12px 14px; background: var(--surface);
}
.condo-near-list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.condo-near-list a:hover { color: var(--red-text); }
.condo-near-list span { font-size: 12.5px; color: var(--ink-3); flex: 0 0 auto; }
/* scroll-margin so the quadrant pills land on the heading and not under the
   sticky header. #q-northeast put "Northeast Edmonton" just above the top of
   the viewport, so the jump appeared to land mid-way down the previous
   quadrant's cards. Same offset .mn-guide-sec uses. */
.condo-hub-hood { margin-top: 30px; scroll-margin-top: clamp(6rem, 14vh, 8rem); }
.condo-hub-hood h2 { font-size: 18px; margin-bottom: 12px; }
/* The acreage directory (/rural/, feed/build_rural_pages.py): a one-line
   lede under each county heading, and room between a county's subdivision
   rows and the listing grid that follows them. */
.rural-dir .hub-sec-intro { margin: -4px 0 12px; font-size: 14.5px; color: var(--ink); }
.rural-dir .hub-sec-intro a { color: var(--orange-deep); font-weight: 600; }
.rural-dir > .condo-hub-hood { margin-bottom: 36px; }
/* Directory rows. The status used to sit on the same line as the name and
   right-aligned, so pairing the two meant travelling the width of the column
   and they read as one run-on phrase. Each row is now a block with the status
   on its own line, and a hairline row of separators is replaced by a filled
   card — vertical rules that thin are unreadable at this density. */
.condo-hub-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.condo-row a {
  display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--grid);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.condo-row a:hover { background: #fff; border-color: var(--orange); }
.condo-row-name { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.condo-row-state { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; }
/* Green for something to see, red for sold history only. The status also says
   which in words — colour alone fails for the ~8% of men with a red-green
   deficiency, and in print. */
.condo-row.is-active .condo-row-state { color: var(--orange-deep, #064031); }
.condo-row.is-sold .condo-row-state { color: #04291F; }
/* the building name links through to its own page */
.pdp-building-link { color: inherit; text-decoration: none; border-bottom: 2px solid var(--orange-soft); }
.pdp-building-link:hover { color: var(--red-text); border-bottom-color: var(--orange); }
.pdp-building-more { display: inline-block; margin-left: 4px; color: var(--red-text); font-weight: 600; text-decoration: none; }
.pdp-building-more:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the nearby card's badge is a link to that building, so it needs to sit above
   the card's own anchor rather than inside it */
.rcard .badge-bldg { z-index: 2; text-decoration: none; color: var(--ink); }
.rcard .badge-bldg:hover { background: var(--orange-deep); color: #fff; }
.condo-near-quiet { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
/* the finding, ahead of the figures that evidence it */
.pdp-bctx {
  margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink);
  font-weight: 500; max-width: 45.08em;
}

/* the six quadrant links at the top of the hub: bigger targets than a building
   row, because they are the first choice a visitor makes */
.condo-quad-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
/* Give the anchor its own colour. Both spans inside are explicitly white, so
   this renders identically today — but without it the link had no colour of
   its own, and any text put directly in it would come out as browser-default
   blue on orange: a 2.76 contrast ratio, and the kind of thing nobody notices
   until it ships. */
/* full height of the row, so a one-line zone name matches its two-line neighbours */
.condo-quad-list a {
  height: 100%; box-sizing: border-box;
  color: #fff;
  display: block; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: var(--orange-deep); border: 1px solid var(--orange);
  transition: background 0.15s ease;
}
.condo-quad-list a:hover { background: #064031; border-color: var(--orange-deep); }

.condo-quad-name { display: block; font-size: 15.5px; font-weight: 600; color: #fff; }
.condo-quad-n { display: block; margin-top: 2px; font-size: 12.5px; color: #fff; }

/* the civic address, shown only where a complex has several buildings under
   one name and the rows would otherwise be identical */
.condo-row-at { font-weight: 500; color: var(--ink-3); }

/* ---------- community page content blocks ----------
   These pages carried ~127 words: a lede, a row of civic numbers and a list of
   condo names. Thin at 448 pages, and thin pages are the ones Google leaves
   unindexed. The blocks below carry the added content. */
.com-block { margin: 34px 0; }
.com-block h2 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.com-block > p { font-size: 15px; color: var(--ink-2); max-width: 46.41em; line-height: 1.55; }

.com-table {
  width: 100%; max-width: 640px; margin-top: 14px;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--grid); border-radius: var(--radius); overflow: hidden;
  font-size: 15px;
}
.com-table th, .com-table td { padding: 11px 14px; text-align: left; }
.com-table thead th {
  background: var(--surface); font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em;
}
.com-table tbody tr + tr td { border-top: 1px solid var(--grid); }
.com-table td b { color: var(--red-text); }

.com-list { margin: 12px 0 0; padding: 0; list-style: none; max-width: 46.41em; }
.com-list li {
  position: relative; padding: 7px 0 7px 22px; font-size: 15px; color: var(--ink-2);
  line-height: 1.5;
}
/* A dot rather than a bullet glyph, so the indent matches the rest of the site */
.com-list li::before {
  content: ""; position: absolute; left: 6px; top: 15px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}
.com-src { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
/* Tier 1 neighbourhood pages: type and era tables side by side, the City's
   description set off as a quotation, and Eddie's Take. */
.com-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.com-split .com-table { margin: 0; }
.com-quote { margin: 12px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--grid); max-width: 46.41em; }
.com-quote p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
/* The luxury and character sections reuse .mn-guide-sec, which centres a
   45rem reading column for guide pages. On a neighbourhood page every other
   section starts at the left edge, so these sat indented. Same edge, width
   and heading scale as .com-block here. */
main[data-community] > .mn-guide-sec { margin: 34px 0; max-width: none; }
main[data-community] > .mn-guide-sec h2 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
main[data-community] > .mn-guide-sec > p { font-size: 15px; line-height: 1.55; max-width: 46.41em; margin-bottom: 10px; }
.com-take .rl-ryan-card { margin: 12px 0; }
.com-take > p { font-size: 15.5px; color: var(--ink); max-width: 46.41em; line-height: 1.6; margin-bottom: 10px; }

.com-faq { margin-top: 16px; max-width: 46.41em; }
.com-faq h3 { font-size: 16px; margin-bottom: 4px; }
.com-faq p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

@media (max-width: 760px) {
  .com-table { font-size: 14px; }
  .com-table th, .com-table td { padding: 9px 10px; }
}

/* Skeleton cards — space held for listings that render from the feed.

   A card grid that appears after paint pushes everything below it down the
   page. On community pages that measured 0.679 CLS, seven times Google's
   threshold. These occupy the exact footprint of the real cards, so nothing
   moves when the real ones arrive. Deliberately quiet: no shimmer animation,
   which on a page this long reads as broken rather than loading. */
.rcard.is-skeleton { pointer-events: none; }
.rcard.is-skeleton .ph { background: var(--grid); }
.rcard.is-skeleton .t,
.rcard.is-skeleton .m,
.rcard.is-skeleton .p {
  background: var(--grid);
  border-radius: 6px;
  color: transparent;
}
.rcard.is-skeleton .t { height: 15px; margin-top: 10px; width: 78%; }
.rcard.is-skeleton .m { height: 13px; margin-top: 7px; width: 52%; }
.rcard.is-skeleton .p { height: 17px; margin-top: 9px; width: 64%; }
@media (prefers-reduced-motion: no-preference) {
  .rcard.is-skeleton { opacity: .75; }
}

/* Who to call, on the notices where the work is a specialist's — a WETT
   certificate and a sewer camera scope are both booked separately from the
   home inspection, so the notice says who books them. */
.pi-contact { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.pi-contact b { color: var(--ink); }


/* ---------- article highlight sections (feed/build_blog_enrich.py) ----------
   Three blocks a reader should be able to find by scanning rather than
   reading: what the market is doing right now, the takeaways, and the
   questions. They are .mn-guide-sec first, so they inherit article rhythm;
   these rules only add the tint and rule that make them scannable. */
.rl-takeaways {
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.rl-takeaways h2 { margin-top: 0; }
.rl-takeaways ul { margin-bottom: 0; }
.rl-takeaways li { margin-bottom: .5rem; }

.rl-market {
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: var(--surface);
}
.rl-market h2 { margin-top: 0; }
.rl-market .mn-fine { color: var(--ink-2); font-size: .85rem; margin-bottom: 0; }

.rl-faq h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.rl-faq p { margin-top: .4rem; }

.rl-author {
  border-top: 2px solid var(--grid);
  padding-top: 1.2rem;
}
.rl-author h2 { font-size: 1.1rem; }


/* ---------- migrated article content: lists, tables, callouts ----------
   The 52 migrated articles carry a <p> inside every <li>. Those paragraphs
   pick up p.mn-prose's article-body size, which inside a bullet renders far
   larger than the prose around it — the list ends up shouting. Inside a list
   item the paragraph is body text, not a lead paragraph. */
.blog-art-main li p.mn-prose,
.blog-art-main li p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 .4rem;
  max-width: none;
}
.blog-art-main li p:last-child { margin-bottom: 0; }
.blog-art-main li { margin-bottom: .55rem; }

/* Tables came across cramped: header labels wrapping to three lines and cells
   too tight to scan. More room per cell, a header that does not shout, and a
   zebra stripe so the eye holds its row across four columns. */
.blog-art-main .mn-table { font-size: .95rem; }
.blog-art-main .mn-table th,
.blog-art-main .mn-table td {
  padding: .85rem 1rem;
  vertical-align: top;
}
.blog-art-main .mn-table thead th {
  font-size: .75rem;
  line-height: 1.35;
  white-space: normal;
}
.blog-art-main .mn-table tbody tr:nth-child(even) { background: var(--surface); }
.blog-art-main .mn-table tbody td:first-child { font-weight: 600; color: var(--ink); }

/* A table wider than the column scrolls inside its own wrapper rather than
   pushing the page sideways. */
.blog-art-main .mn-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.4rem;
}


/* ---------- Edmonton zone map (feed/build_zone_pages.py) ----------
   An SVG rather than an image map: the zones scale with the page, each one is
   a real link a keyboard can reach, and hover/focus states cost nothing. */
.zone-map-wrap { margin: 1.6rem auto 2rem; max-width: 760px; }
/* six zones, not forty: drawn at full column width the south map was
   two screens tall, so it is capped and centred */
.zone-map {
  width: 100%;
  height: auto;
  max-height: 78vh;
  display: block;
  margin-inline: auto;
}
.zone-map-wrap figcaption {
  font-size: .82rem;
  color: var(--ink-3);
  margin-top: .7rem;
  text-align: center;
}
.zm-zone path {
  /* Black, not white: the fills are now a heatmap, so adjacent zones can land
     on the same step and a light divider would let them read as one shape. */
  stroke: #1c1c1c;
  stroke-width: 2.2;
  stroke-linejoin: round;
  transition: fill .12s ease;
}
.zm-zone text {
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
/* The two darkest heatmap steps need a light label to stay legible. */
.zm-zone text.zm-on-dark { fill: #fff; }
/* Hover leaves the heatmap value behind deliberately: the point of the
   interaction is "this is the one I am about to click", and a single hover
   colour reads faster than a tint shift the eye has to compare. */
.zm-zone:hover path,
.zm-zone:focus-visible path { fill: var(--ink); }
.zm-zone:hover text,
.zm-zone:focus-visible text { fill: #fff; }
/* The focus ring has to sit on the link, not the path, or it is clipped by
   the SVG's own bounds on the outermost zones. */
.zm-zone:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* The filter bar that heads every zone page. Same controls the search page
   parses, so submitting lands on a real filtered search. */
.zone-search {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: .9rem 1rem; margin-bottom: 1.4rem;
  background: var(--surface); border: 1px solid var(--grid);
  border-radius: var(--radius);
}
.zone-search input,
.zone-search select {
  font: inherit; font-size: .95rem; padding: .6rem .8rem;
  border: 1px solid var(--grid); border-radius: 10px; background: #fff;
  min-width: 9rem; flex: 1 1 9rem;
}
.zone-search .dgn-cta { flex: none; padding: 12px 26px; }

.zone-index {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}
.zone-index a {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  padding: .7rem .9rem; border: 1px solid var(--grid); border-radius: 12px;
  text-decoration: none; color: var(--ink); background: #fff;
}
.zone-index a:hover { border-color: var(--orange); }
.zone-index span { font-size: .82rem; color: var(--ink-3); }

.zone-hoods {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .35rem .9rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
.zone-hoods li { display: flex; justify-content: space-between; gap: .5rem; }
.zone-hood-n { color: var(--ink-3); font-size: .85rem; }

@media (max-width: 640px) {
  .zone-map { max-height: none; }
  .zm-zone text { font-size: 26px; }
}


/* ---------- testimonial quote + mortgage calculator ---------- */
.rl-quote {
  margin: 0; padding: 1.2rem 1.4rem;
  background: var(--orange-soft); border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}
.rl-quote p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }

.rl-calc {
  display: grid; gap: .8rem;
  padding: 1.3rem 1.5rem; margin: 1.4rem 0 1.8rem;
  background: var(--surface); border: 1px solid var(--grid);
  border-radius: var(--radius);
}
.rl-calc-row { display: grid; grid-template-columns: 11rem 1fr auto; gap: .8rem; align-items: center; }
.rl-calc-row label { font-weight: 600; font-size: .95rem; }
.rl-calc input, .rl-calc select {
  font: inherit; padding: .6rem .8rem; border: 1px solid var(--grid);
  border-radius: 10px; background: #fff; width: 100%;
}
.rl-calc-note { color: var(--ink-3); font-size: .9rem; min-width: 3rem; }
.rl-calc-out {
  display: block; padding-top: .9rem; border-top: 1px solid var(--grid);
}
.rl-calc-big { display: block; font-size: 2.1rem; font-weight: 700; color: var(--ink); }
.rl-calc-big small { font-size: 1rem; font-weight: 500; color: var(--ink-3); }
.rl-calc-sub { display: block; margin-top: .3rem; color: var(--ink-2); font-size: .92rem; }
.rl-calc-warn { display: block; margin-top: .4rem; color: var(--orange-hover); font-weight: 600; font-size: .92rem; }
@media (max-width: 560px) {
  .rl-calc-row { grid-template-columns: 1fr; gap: .3rem; }
}


/* ---------- article prose links ----------
   the source architecture styles .mn-guide-sec p a, but an article's opening paragraphs sit
   before the first <h2> and therefore outside any guide section — so links
   there fell through to the browser default, rendering blue and, once
   visited, purple. Same treatment, applied to the whole article body. */
.blog-art-main p a,
.blog-art-main li a {
  color: var(--red-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
}
.blog-art-main p a:hover,
.blog-art-main li a:hover { color: var(--ink); }
/* Buttons inside prose keep their own colour — see the action-button rules. */
.blog-art-main p a.dgn-cta,
.blog-art-main p a.blog-cta-btn { color: #fff; text-decoration: none; }

/* The callout: the source architecture's component, in Gebran's palette. Its amber tint
   belongs to the source architecture's identity; ours takes the brand red-soft the takeaways
   and answer blocks already use, so the article reads as one system. */
.mn-callout {
  background: var(--orange-soft);
}
.mn-callout-icon { background: var(--orange); }


/* Prose links inside a landing-page intro. These sit outside .blog-art-main,
   so the article link rule never reached them and they rendered browser-blue
   (purple once visited). Structural link lists are excluded: their child
   elements already carry the colour, and turning the row red would make a
   directory look like a page of prose links. */
.lp-intro p a:not(.dgn-cta):not(.blog-cta-btn) {
  color: var(--red-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
}
.lp-intro p a:not(.dgn-cta):not(.blog-cta-btn):hover { color: var(--ink); }

/* The neighbourhood list on a zone page reads as a directory, not prose. */
.zone-hoods a { color: var(--ink); text-decoration: none; }
.zone-hoods a:hover { color: var(--red-text); text-decoration: underline; }


/* A callout that replaced a paragraph inside a list item keeps the item's
   bullet, which reads as a stray dot beside the panel. The panel is the
   marker. */
.blog-art-main li:has(> .mn-callout) { list-style: none; margin-left: -1.2rem; }
.blog-art-main .mn-callout { margin-block: 1rem; }


/* Heatmap legend. The colour is a convenience, never the only carrier of the
   number: each zone states its count in its tooltip and accessible name, and
   the index below the map lists every one. */
.zm-legend {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem;
  padding: 0; margin: .9rem 0 0;
  font-size: .84rem; color: var(--ink-2);
}
.zm-legend li { display: flex; align-items: center; gap: .4rem; }
.zm-legend-label { font-weight: 600; color: var(--ink); }
.zm-key {
  width: 1.05rem; height: 1.05rem; border-radius: 4px;
  border: 1px solid #1c1c1c; flex: none;
}


/* A directory grid is not prose. .lp-intro carries a 45rem reading measure,
   which is right for paragraphs and wrong for an index of 40 zones: it
   squeezed them into three columns down the left of a 1240px page. These
   sections run the full width instead, and the grid fills it. */
.lp-wide { max-width: none; }
/* The answer callout inside a page intro sits on the left at the intro's own
   width, not centred in a 45rem column, so it lines up with the text around it. */
.lp-intro .blog-answer { max-width: none; margin: 4px 0 20px; }
.lp-wide > h2 { max-width: 45rem; }
/* Six zones: three across, or two on a narrow screen, never five and one. */
.zone-index:not(.zone-index--compact) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .zone-index:not(.zone-index--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zone-hoods { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }

/* ---- open houses ---------------------------------------------------------
   The time is the whole point of this page — someone is planning a Saturday,
   not shopping a price — so it sits above the address rather than in the
   grey meta line with the bed and bath counts. */
.oh-day + .oh-day { margin-top: 10px; }
.oh-day .sub { margin-top: 2px; color: var(--ink-3); font-size: 14px; }
.oh-card .oh-when {
  margin: 10px 0 2px; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.01em; color: var(--red-text);
}

/* ---------- directory type-to-filter ----------
   Ported from the source architecture. The markup is emitted by feed/build_condo_pages.py,
   never hand-added to the built hub: /condos/index.html is regenerated on
   every refresh, and a search box added to the output survived exactly one
   CI run there. feed/test_page_seo.py fails if the built page loses it. */
.dir-filter { margin: 4px 0 22px; }
.dir-filter input {
  width: 100%; max-width: 420px; font: inherit; font-size: 15px;
  padding: 12px 16px; border: 1px solid var(--grid); border-radius: 12px;
  background: #fff; color: var(--ink);
}
/* --red-text, not the brand --orange: an outline is not text, but the two
   sit side by side and the brand red is the one that fails AA elsewhere, so
   the site uses the darker value consistently. */
.dir-filter input:focus { outline: 2px solid var(--red-text); outline-offset: 1px; }
.dir-filter-status { margin-top: 8px; min-height: 18px; font-size: 13px; color: var(--ink-3); }
.dir-filter-empty {
  margin: 8px 0 28px; padding: 16px 18px; border: 1px solid var(--grid);
  border-radius: 14px; background: var(--surface); color: var(--ink-2); font-size: 14.5px;
}

/* ---------- smallest text, phone only ----------
   At the very end of the file on purpose. `.rcard .m` is defined at line ~967
   with equal specificity, so an identical block placed earlier is silently
   overridden by it — on the source architecture that cost a release. Last in the file is the
   only position a later edit cannot quietly beat.

   Half a point on the card metadata, not a rescale. The readability problem
   on a phone was contrast, not size (--ink-3 is 4.74:1 here already), and
   metadata much larger starts competing with the price it sits under.

   .p-lab is included: it labels the payment on a card, and it exists here now
   that fmtCardPayment() names the number ("Mortgage est. $487/mo"). When this
   block was first written it did not, and the comment said so. */
@media (max-width: 600px) {
  .rcard .m { font-size: 13px; }
  .p-lab { font-size: 12.5px; }
  .dg-footer-legal p { font-size: 12.5px; }
}

/* ---------- mobile filter sheet ----------
   Everything here is off above 1000px. `display: contents` on the sheet is
   what keeps the desktop layout byte-identical: the wrapper generates no box,
   so .searchbar-wrap sits where it always did.

   Ported from the source architecture with one colour change, computed rather than copied.
   Its --orange-deep is #d94512; this site's is the brand red #6AA18E, which
   is 4.56:1 on white — fine for the badge, Done link and Apply button — but
   only 4.02:1 against --orange-soft, so the chip label would have failed AA.
   The chip uses --red-text (4.83:1 on that background) instead. */
.fs-bar, .fs-chips, .fs-scrim, .fs-grab, .fs-head, .fs-foot { display: none; }
.fs-sheet { display: contents; }

@media (max-width: 1000px) {
  .fs-bar {
    position: sticky; top: 0; z-index: 25; display: flex; align-items: center;
    gap: 10px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--grid);
  }
  .fs-btn {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
    background: #fff; border: 1px solid var(--grid); border-radius: 11px;
    padding: 10px 14px; min-height: 44px; cursor: pointer;
  }
  .fs-n {
    background: var(--orange-deep); color: #fff; font-size: 12px; font-weight: 700;
    border-radius: 999px; min-width: 19px; height: 19px; display: grid; place-items: center;
  }
  .fs-n[hidden] { display: none; }   /* display:grid beats the attribute */
  .fs-summary {
    flex: 1; min-width: 0; font-size: 13px; color: var(--ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* Save search is not a filter. It stays on the bar rather than going into
     the sheet, so the reason it was put on this page survives the change. */
  .fs-bar .sb-save { flex: none; padding: 10px 14px; min-height: 44px; }

  .fs-chips { display: flex; gap: 8px; padding: 10px 20px 0; flex-wrap: wrap; }
  .fs-chips:empty { display: none; }
  .fs-chip {
    display: inline-flex; align-items: center; gap: 8px;
    font: inherit; font-size: 13px; font-weight: 600;
    background: var(--orange-soft); color: var(--red-text); border: 0;
    border-radius: 999px; padding: 9px 11px 9px 13px; min-height: 40px; cursor: pointer;
  }
  .fs-chip .x { font-size: 15px; line-height: 1; opacity: .8; }

  .fs-scrim {
    position: fixed; inset: 0; z-index: 70; background: rgba(20, 18, 16, .5);
    opacity: 0; transition: opacity .22s ease; display: block;
  }
  .fs-scrim[hidden] { display: none; }
  .fs-scrim.is-open { opacity: 1; }

  .fs-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
    display: flex; flex-direction: column; max-height: 86vh;
    background: #fff; border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 50px -20px rgba(0, 0, 0, .45);
    transform: translateY(101%); visibility: hidden;
    /* visibility flips instantly on the way in — a hidden element cannot take
       focus, and openSheet() focuses the first control right away — and waits
       for the slide on the way out so the sheet is visible while it leaves. */
    transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility 0s .28s;
  }
  .fs-sheet.is-open {
    transform: none; visibility: visible;
    transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility 0s 0s;
  }
  @media (prefers-reduced-motion: reduce) {
    .fs-sheet, .fs-scrim { transition: none; }
  }

  .fs-grab { display: block; width: 38px; height: 4px; border-radius: 999px;
             background: var(--grid); margin: 10px auto 4px; flex: none; }
  .fs-head {
    display: flex; align-items: center; justify-content: space-between; flex: none;
    padding: 6px 20px 10px; border-bottom: 1px solid var(--grid);
  }
  .fs-head h2 { font-size: 17px; font-weight: 700; }
  .fs-close {
    font: inherit; font-size: 14px; font-weight: 600; color: var(--orange-deep);
    background: none; border: 0; cursor: pointer; padding: 10px 4px; min-height: 44px;
  }
  /* The form is the scrolling middle of the sheet. */
  .fs-sheet .searchbar-wrap { flex: 1; min-height: 0; overflow-y: auto; }
  .fs-sheet .searchbar-title { display: none; }   /* the sheet is titled already */
  .fs-sheet .sb-go { display: none; }             /* Apply is the submit now */

  .fs-foot {
    display: block; flex: none; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--grid); background: #fff;
  }
  .fs-apply {
    width: 100%; font: inherit; font-size: 15.5px; font-weight: 700; color: #fff;
    background: var(--orange-deep); border: 0; border-radius: 13px;
    padding: 15px; min-height: 52px; cursor: pointer;
  }
}

/* Only shown where the table can actually run past the viewport. The wrapper
   scrolls either way; without the hint a reader on a phone sees a table with
   its right edge cut off and no reason to think it moves. aria-hidden: it is
   a visual affordance, and a screen reader already announces the region as
/* Quoted source material inside an article.

   There was no blockquote styling anywhere on the site, so a quoted statute
   rendered as ordinary body text with a small orphan line under it — which
   defeats the point of quoting it. On the foreclosure series the citation IS
   the credibility, and a citation that reads like prose just looks like a
   sentence trailing off into a reference. Four older posts carry bare
   <blockquote> tags and are fixed by the same rule.

   Deliberately quiet: a left rule and a slight indent, not a pull-quote.
   This is evidence a reader can check, not a design flourish. */
.mn-guide-sec blockquote, .blog-art-main blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--orange);
}
.mn-guide-sec blockquote p, .blog-art-main blockquote p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
/* The citation is subordinate to the quote, and must not read as another
   sentence of it. */
.mn-quote-cite {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-style: normal;
  letter-spacing: .01em;
  color: var(--ink-3);
}


   scrollable. */
.mn-table-hint { display: none; }
@media (max-width: 700px) {
  .mn-table-hint {
    display: block; margin: 0 0 6px; font-size: 12.5px; color: var(--ink-3);
  }
}

/* ---- Skip link ----
   Off-screen until focused, so it costs sighted users nothing and gives a
   keyboard user a way past a dozen nav links and two nested menus on every
   page. Written by feed/build_nav.py with the nav, targeting whatever id
   <main> already carries. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff;
  font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* The word that names what the payment figure is. Muted and lighter than the
   number beside it: it is a label, not a second value competing with the
   price. --ink-3 is 4.74:1 on white. */
.p-lab { color: var(--ink-3); font-weight: 500; }

/* Sits directly under the payment estimate, not in a footnote: a reader
   deciding on this home will not scroll for it. --ink-2 (7.46:1) rather than
   --ink-3 — this is a correction to the biggest number on the page, so it
   should not read as fine print. */
.pdp-mort-excl {
  margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2);
}
.pdp-mort-excl a { color: var(--red-text); }

/* ---- Touch targets -------------------------------------------------------
   A 20px-high "Price / Monthly" toggle and a 31px favourite heart are a
   thumb's width away from unusable. The audit counted 82 of 138 visible
   targets under 44px on the homepage alone, and named these: the menu at
   40x40, the money toggle at 20, hearts at 31, Search and Save at 41-43, and
   the listing's Share/Print/Favourite at 32-34.

   Expanding the padding on each control would reflow the bars they sit in, so
   the hit area is grown with an ::after overlay instead: invisible, no
   layout cost, and the visible control is untouched. 44px is the Apple and
   WCAG 2.5.5 figure. `position: relative` on the host is what anchors it, and
   it is set here rather than assumed.

   Hover styling stays on the element, so nothing lights up from the overlay
   alone — only the click box grows.

   Class names are this site's, checked one by one rather than copied: the
   heart is .dg-heart on a listing card and .heart in the account and search
   lists, the blog tab is .bx-tab (styled in blog-index.css, which loads
   alongside this file), and the account tab is .account-tab. */
/* Not the hearts: they are already position: absolute (pinned to the photo's
   top-right corner), which is a containing block for ::after too. Listing
   them here made them relative and dropped them below the card, white on
   white (found 2026-10-22). */
.sb-mode-btn, .sb-go, .sb-save, .sb-reset,
.dgn-burger, .pdp-action, .account-tab, .bx-tab { position: relative; }

.dg-heart::after, .rcard .heart::after, .sb-mode-btn::after, .sb-go::after,
.sb-save::after, .sb-reset::after, .dgn-burger::after, .pdp-action::after,
.account-tab::after, .bx-tab::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 44px); height: max(100%, 44px);
}

/* Adjacent targets need clear air between them or the bigger boxes just
   overlap into one ambiguous blob. */
.pdp-actions-l, .pdp-actions-r { gap: 10px; }

/* Listing photos as <img>, not background-image.
   A CSS background cannot carry loading="lazy", so every card on a page
   started downloading its photo the moment the CSS applied — on the search
   page that was 24 simultaneous requests to CREA's CDN, all starting at
   262ms and finishing around 10.4 seconds, while everything the site itself
   serves was done by 178ms. An <img> inside the same fixed box behaves
   identically and lets the browser skip the ones nobody scrolls to. */
.ph > img {
  /* Positioned, so the crop (js/data.js rlCropCSS) can size and offset it
     with plain layout instead of a transform — Safari drops a parent's
     rounded overflow clip for transformed children, which is how every
     cropped card lost its corners there. No border-radius of its own: the
     box clips, and an offset image carrying its own radius would show the
     box background through its corner. */
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block;
  object-fit: cover;
  /* The global img { max-width: 100% } reset would cap the crop at the box
     width — a 160% image became 100% wide, shoved left, with the right
     third of the box showing through. */
  max-width: none; max-height: none;
}


/* ---------- Eddie's closing block (neighbourhood hub + quadrant pages) ----- */
/* Match .page-head .lede exactly, and note WHY the font-size is part of that
   rather than a cosmetic choice: `ch` is relative to font-size, so "57.02em" on
   .mn-sec p at 15.5px resolved to 837px while the same 57.02em on .lede at
   16.5px resolved to 891px. Two blocks both set to 57.02em rendered 54px apart.
   Same size, same measure.

   .mn-sec p also carries no margin between paragraphs — fine for the
   single-paragraph sections it was written for, but Eddie's block has three
   and they butted straight together while the description above them had
   10px between each. */
.rl-ryan p { max-width: 57.02em; font-size: 16.5px; line-height: 1.65; }
.rl-ryan p + p { margin-top: 10px; }
.rl-ryan .rl-ryan-card p + p { margin-top: 1px; }
.rl-ryan-card {
  display: flex; align-items: center; gap: 16px; margin: 4px 0 16px;
}
.rl-ryan-card img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}
.rl-ryan-card p { margin: 0; max-width: none; }
.rl-ryan-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.rl-ryan-title { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; }
.rl-ryan-contact { font-size: 14px; margin-top: 5px; }
.rl-ryan-contact a { color: var(--red-text); font-weight: 600; text-decoration: none; }
.rl-ryan-contact a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .rl-ryan-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Baked listing pages, /listing/<mls>/ — what a crawler, or a reader before
   js/listing-page.js runs, sees. The script redraws #pdp over all of this. */
.pdp-crumb { margin: 4px 0 16px; }
.pdp-baked-facts { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.pdp-photos { display: flex; gap: 10px; overflow-x: auto; margin: 18px 0 8px; }
.pdp-photos img { height: 240px; width: auto; max-width: none; border-radius: 14px; flex: 0 0 auto; background: #eee; }
.pdp-baked > section, .pdp-gone > section { margin-top: 26px; }
.pdp-gone .lp-intro p + p { margin-top: 10px; }

/* Every listing in a community or zone as plain links — see
   all_listings_list() in feed/directory.py. */
.lst-all { margin: 18px 0 6px; }
.condo-near .com-src { margin: -4px 0 12px; }
.condo-near .com-src a { color: var(--red-text); }
/* Area hubs (feed/build_area_hubs.py): the Tier 1 marker in the neighbourhood table. */
.hub-tier { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sand, #f1ece4); color: var(--ink-2); vertical-align: 1px; }
/* Parent neighbourhood page -> its Tier 1 subpage (build_community_pages.py). */
.com-sub-link { margin: -18px 0 30px; font-size: 15px; font-weight: 600; }
.com-sub-link a { color: var(--red-text); }
/* Inside a table the subpage link is a quiet second line under the name. */
.com-table .com-sub-link { display: block; margin: 2px 0 0; font-size: 12.5px; font-weight: 500; }
.com-table .com-sub-link a { color: var(--ink-2); }
/* A name column carrying a subpage link needs room for it on one line. */
@media (min-width: 760px) {
  .com-table.com-name-col td:first-child { min-width: 9.5em; }
  .com-table.com-name-col .com-sub-link { white-space: nowrap; }
}
/* "Around <neighbourhood>": walkability, eat and drink, things to do. */
.com-around h3 { font-size: 16px; margin: 24px 0 8px; }
.com-around h3:first-of-type { margin-top: 12px; }
.com-around > p { margin: 0 0 10px; }
.com-around .mn-stats { margin: 8px 0 14px; }
.com-around .com-list { margin: 6px 0 14px; }
.com-around .com-src { margin-top: 18px; }
.condo-near-lead { font-size: 15px; color: var(--ink-2); max-width: 46.41em; line-height: 1.55; margin: 0 0 8px; }
.condo-near-addr { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
/* Guide tables (feed/build_guides.py): wide tables scroll inside their own
   box, and the sortable neighbourhood table's headings are buttons. */
.com-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
.com-scroll .com-table { margin: 0; width: 100%; max-width: none; }
/* The neighbourhood table sits below the article grid at full width. */
.guide-wide { padding-bottom: 48px; }
.guide-wide .mn-guide-sec { max-width: none; margin: 0; }
.com-dense th, .com-dense td { padding: 8px 10px; }
.com-dense thead th { font-size: 12px; white-space: nowrap; }
.com-dense td { white-space: nowrap; }
.com-dense td:first-child { white-space: normal; }
.sort-bar { display: none; }
/* Phones: one labelled card per row instead of a table that scrolls sideways. */
@media (max-width: 760px) {
  .com-scroll { overflow-x: visible; }
  .com-stack thead { display: none; }
  .com-stack, .com-stack tbody, .com-stack tr { display: block; width: 100%; }
  .com-stack tr { padding: 10px 14px; }
  .com-stack tbody tr + tr { border-top: 1px solid var(--grid); }
  .com-stack tbody tr + tr td { border-top: 0; }
  .com-stack td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; white-space: normal; text-align: right; }
  .com-stack td::before { content: attr(data-label); color: var(--ink-3); font-size: 12.5px; text-align: left; flex: 0 0 auto; }
  .com-stack td:first-child { display: block; text-align: left; font-weight: 600; font-size: 15px; padding-bottom: 6px; }
  .com-stack td:first-child::before { content: none; }
  .sort-bar { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-size: 14px; }
  .sort-bar select { font: inherit; padding: 6px 8px; border: 1px solid var(--grid); border-radius: 6px; background: var(--surface); color: var(--ink); }
}
.com-table td { font-variant-numeric: tabular-nums; }
.com-table th button { all: unset; cursor: pointer; }
.com-table th button::after { content: " \2195"; color: var(--ink-3); font-size: 12px; }
.com-table th[aria-sort="ascending"] button::after { content: " \2191"; }
.com-table th[aria-sort="descending"] button::after { content: " \2193"; }
.com-table th button:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.condo-near .lst-all .condo-near-list { margin-top: 12px; }
.lst-all summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.lst-all-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; }
.lst-all-list li { font-size: 14px; }
.lst-all-list span { color: var(--ink-3); font-size: 13px; margin-left: 6px; }

/* ---------- sample seller report (home-evaluation-sample.html) ---------- */
/* Built by feed/build_sample_report.py. The page is a worked example, so it is
   laid out like a document rather than a landing page: one column, generous
   measure, tables that survive a phone. */
.srp { width: min(1100px, calc(100% - 2 * var(--page-gutter))); margin-inline: auto; padding-bottom: 60px; }
.srp-crumb { padding: 22px 0 0; font-size: 13px; color: var(--ink-3); }
.srp-crumb a { color: inherit; text-decoration: none; }
.srp-crumb a:hover { color: var(--red-text); }
.srp-flag { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--orange-soft); color: var(--red-text); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; }
.srp-hero h1 { margin-top: 14px; font-size: clamp(30px, 4vw, 52px); line-height: 1.05;
  letter-spacing: -.03em; font-weight: 600; }
.srp-sub { margin-top: 14px; max-width: 42.43em; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.65; color: var(--ink-2); }
.srp-sub em { font-style: italic; }

.srp-range { margin-top: 28px; padding: clamp(22px, 3vw, 34px); border-radius: 22px;
  background: #064031; color: #fff; }
.srp-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55); }
.srp-range__num { margin-top: 10px; font-size: clamp(32px, 4.6vw, 60px); font-weight: 600;
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.srp-range__num span { color: rgba(255,255,255,.3); margin: 0 .1em; }
.srp-range__mid { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.7); }
.srp-range__mid b { color: #fff; }
.srp-scale { margin-top: 26px; }
.srp-scale__track { position: relative; height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); }
.srp-scale__track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--orange); }
.srp-dot { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: #fff; border: 3px solid #161616; }
.srp-scale__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px;
  font-size: 12px; color: rgba(255,255,255,.45); }
.srp-scale__key { text-align: center; }

.srp-facts { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: var(--grid); border: 1px solid var(--grid); border-radius: 16px; overflow: hidden; }
.srp-facts div { background: #fff; padding: 14px 16px; }
.srp-facts span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.srp-facts b { font-size: 16px; font-weight: 600; }

.srp-block { margin-top: clamp(40px, 6vw, 72px); }
.srp-block h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.srp-lede { margin-top: 12px; max-width: 46.41em; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.srp-src { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.srp-note { margin-top: 14px; padding: 14px 18px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--grid); font-size: 15px; color: var(--ink-2); }

.srp-strats { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.srp-strat { padding: 22px; border-radius: 18px; border: 1px solid var(--grid); background: #fff; }
.srp-strat__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); }
.srp-strat b { display: block; margin: 8px 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.srp-strat p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

.srp-scroll { margin-top: 20px; overflow-x: auto; }
.srp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.srp-table th { text-align: left; padding: 0 12px 10px 0; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--grid); }
.srp-table th.n, .srp-table td.n { text-align: right; }
.srp-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--grid); vertical-align: top; color: var(--ink-2); }
.srp-table td b { color: var(--ink); font-weight: 600; }
.srp-table td small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.srp-table td.n { font-variant-numeric: tabular-nums; color: var(--ink); }
.srp-table td.strong { font-weight: 600; }
.srp-adj { display: block; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.srp-adj.up { color: #1d7a46; }
.srp-adj.down { color: #04291F; }
.srp-adj.none { color: var(--ink-3); }

.srp-chart { margin-top: 20px; padding: 18px; border-radius: 18px; border: 1px solid var(--grid); background: #fff; }
.srp-chart svg { display: block; width: 100%; height: auto; }
.srp-chart figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-2); }

.srp-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.srp-stat { padding: 18px; border-radius: 16px; border: 1px solid var(--grid); background: #fff; }
.srp-stat b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--red-text); }
.srp-stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.srp-stat em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--ink-3); }

.srp-steps { margin-top: 20px; padding-left: 0; list-style: none; counter-reset: srp; display: grid; gap: 12px; }
.srp-steps li { position: relative; padding-left: 44px; font-size: 15px; line-height: 1.6; color: var(--ink-2); counter-increment: srp; }
.srp-steps li::before { content: counter(srp, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-size: 13px; font-weight: 600; color: var(--red-text); }
.srp-steps b { color: var(--ink); font-weight: 600; }

.srp-cta { margin-top: 34px; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--linen); }
.srp-cta h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.srp-cta p { margin-top: 8px; max-width: 35.8em; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.srp-cta__btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 14px 26px;
  border-radius: 999px; background: var(--orange-deep); color: #fff; font-weight: 600; text-decoration: none; }
.srp-cta__btn:hover { background: var(--orange-hover); }
.srp-legal { margin-top: 26px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }

@media (max-width: 860px) {
  .srp-strats { grid-template-columns: 1fr; }
  .srp-table { min-width: 620px; }
}

/* ---------- home evaluation engine (home-evaluation.html) ---------- */
/* Built as mockups/home-evaluation before it replaced the page; every rule
   is ev- prefixed so it cannot reach the rest of the site. */
.ev { --ev-dark: #064031; --ev-dark-2: #0B4F3D; --ev-line: rgba(255,255,255,.12); --ev-up: #1d7a46; --ev-down: #04291F; }
.ev *:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ev-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ev-kicker { display: inline-flex; align-items: center; gap: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #CFE3DB; }
/* (the 22px dash that used to lead each kicker is gone, 2026-10-22) */
.ev-kicker--dark { color: var(--red-text); }
.ev-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ev-up); }
.ev-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: evPulse 1.6s ease-in-out infinite; }
@keyframes evPulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ev-live i { animation: none; } }

/* ---------- stage A: hero ---------- */
.ev [hidden] { display: none !important; }
.ev-hero {
  position: relative; min-height: calc(100vh - 86px); min-height: calc(100svh - 86px);
  display: flex; flex-direction: column; justify-content: center;
  margin: 0 var(--page-gutter); border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(106, 161, 142,.22), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--ev-dark);
  color: #fff;
}
.ev-hero__grid {
  width: min(var(--page-max), 100%); margin: 0 auto; padding: clamp(40px, 7vh, 90px) clamp(20px, 5vw, 80px) 40px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center;
}
.ev-hero h1 { margin: 18px 0 18px; font-size: clamp(34px, 5vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.ev-hero h1 em { font-style: normal; color: #fff; }
.ev-hero__sub { max-width: 37.13em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: rgba(255,255,255,.72); }

.ev-addr { position: relative; margin-top: 34px; max-width: 680px; }
.ev-addr__box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: #fff; box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); }
.ev-addr__ic { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.ev-addr input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; color: var(--ink); background: transparent; padding: 12px 0; }
.ev-addr input:focus-visible { outline: 0; }
.ev-addr__box:focus-within { box-shadow: 0 0 0 3px rgba(106, 161, 142,.45), 0 24px 60px -24px rgba(0,0,0,.7); }
.ev-addr__box button { flex: none; border: 0; border-radius: 999px; background: var(--orange-deep); color: #fff; font: inherit; font-weight: 600; font-size: 15px; padding: 14px 24px; cursor: pointer; }
.ev-addr__box button:hover { background: var(--orange-hover); }
.ev-addr__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); overflow: hidden; display: none; }
.ev-addr__list.open { display: block; }
.ev-addr__item { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border: 0; background: none; font: inherit; font-size: 15px; text-align: left; cursor: pointer; border-top: 1px solid var(--grid); }
.ev-addr__item:first-child { border-top: 0; }
.ev-addr__item .n { color: var(--ink-3); font-size: 13px; }
.ev-addr__item:hover, .ev-addr__item.active { background: var(--orange-soft); }
.ev-addr__more { padding: 10px 20px; border-top: 1px solid var(--grid); background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.ev-addr__empty { padding: 16px 20px; font-size: 14px; color: var(--ink-2); }
.ev-addr__down { display: grid; gap: 4px; padding: 18px 20px; }
.ev-addr__down b { color: var(--ink); }
.ev-addr__down span { font-size: 13px; color: var(--ink-3); }
.ev-addr__down button { justify-self: start; margin-top: 10px; border: 1px solid var(--grid); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--red-text); padding: 9px 16px; cursor: pointer; }
.ev-addr__down button:hover { background: var(--orange-soft); border-color: var(--orange); }
.ev-addr__fine { margin-top: 14px; padding-left: 18px; font-size: 13px; color: rgba(255,255,255,.55); }
.ev-addr__fine a, .ev-addr__fine .ev-link { color: rgba(255,255,255,.8); }

.ev-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--ev-line); border-radius: 24px; padding: 28px; backdrop-filter: blur(10px); transform: rotate(1.5deg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.ev-ghost__top { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.6); }
.ev-ghost .ev-live { color: #5fd08f; }
.ev-ghost__range { margin: 16px 0 20px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -.03em; }
.ev-ghost__range span { color: rgba(255,255,255,.35); }
.ev-ghost__bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); }
.ev-ghost__bar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--orange); }
.ev-ghost__bar b { position: absolute; top: -5px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.ev-ghost__steps { list-style: none; margin-top: 24px; }
.ev-ghost__steps li { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--ev-line); font-size: 14px; color: rgba(255,255,255,.7); }
.ev-ghost__steps b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.ev-ghost__steps b.up { color: #5fd08f; }

.ev-stats { width: min(var(--page-max), 100%); margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px) 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ev-stats div { padding: 18px 20px 0 0; border-top: 1px solid var(--ev-line); }
.ev-stats b { display: block; font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.ev-stats span { font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- stage B: workspace ---------- */
.ev-work { margin: 0 var(--page-gutter); }
.ev-work__grid { width: min(var(--page-max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 48px); align-items: start; padding: 10px 0 60px; }

.ev-inputs__head { padding: 26px 0 8px; }
.ev-back { font-size: 14px; color: var(--ink-3); }
.ev-inputs__head h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.ev-nbhd { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.ev-source { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ev-source:empty { display: none; }
.ev-prefill { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--grid); font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.ev-block { border: 0; border-top: 1px solid var(--grid); margin-top: 26px; padding-top: 22px; }
.ev-block legend { display: contents; }
.ev-block legend { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.ev-block legend span { display: inline-block; min-width: 34px; font-size: 13px; font-weight: 600; color: var(--red-text); }
.ev-fields { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ev-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ev-f i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.ev-f--wide { margin-top: 16px; }
.ev-f input, .ev-f select, .ev-f textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--grid); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.ev-f textarea { resize: vertical; }
.ev-f input:focus, .ev-f select:focus, .ev-f textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,28,28,.08); }
.ev-f.pre input, .ev-f.pre select { background: var(--surface); }
.ev-f.pre > span::after { content: "City record"; margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: var(--linen); font-size: 12px; font-weight: 600; color: var(--ink-2); vertical-align: 1px; }

.ev-seg, .ev-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ev-seg button, .ev-chips button { border: 1px solid var(--grid); background: #fff; border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ev-seg button:hover, .ev-chips button:hover { border-color: var(--ink-3); }
.ev-seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ev-chips button.on { background: var(--orange-soft); border-color: var(--orange); color: var(--red-text); font-weight: 500; }
.ev-chips button.on::before { content: "✓ "; }

/* output column */
.ev-out { position: sticky; top: 96px; }
.ev-out__inner { display: grid; gap: 14px; padding-top: 26px; }
.ev-card { border-radius: 22px; background: #fff; border: 1px solid var(--grid); padding: clamp(20px, 2vw, 28px); box-shadow: 0 20px 50px -34px rgba(0,0,0,.35); }
.ev-range { background: var(--ev-dark); color: #fff; border-color: var(--ev-dark); }
.ev-range .ev-live { color: #5fd08f; }
.ev-range__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ev-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ev-range .ev-label { color: rgba(255,255,255,.55); }
.ev-range__num { margin-top: 12px; font-size: clamp(36px, 4.2vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-dash { margin: 0 .18em; color: rgba(255,255,255,.3); }
.ev-range__mid { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.7); }
.ev-range__mid b { color: #fff; }
.ev-delta { margin-left: 8px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(95,208,143,.15); color: #5fd08f; }
.ev-delta.down { background: rgba(255,120,110,.15); color: #FFB4AB; }
.ev-delta:empty { display: none; }
.ev-bump { animation: evBump .45s ease; }
@keyframes evBump { 40% { color: #CFE3DB; } }

.ev-scale { margin: 26px 0 8px; }
.ev-scale__track { position: relative; height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); }
.ev-scale__track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--orange); transition: left .4s ease, width .4s ease; }
.ev-scale__track b { position: absolute; top: -5px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); transition: left .4s ease; }
.ev-scale__track em { position: absolute; top: -12px; height: 34px; width: 2px; margin-left: -1px; background: rgba(255,255,255,.75); transition: left .4s ease; }
.ev-scale__track em span { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 12px; color: rgba(255,255,255,.6); }
.ev-scale__ends { display: flex; justify-content: space-between; margin-top: 30px; font-size: 12px; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }

.ev-steps { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14px; }
.ev-steps caption { text-align: left; padding-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ev-steps td { padding: 10px 0; border-top: 1px solid var(--ev-line); color: rgba(255,255,255,.72); vertical-align: middle; }
.ev-steps td.v { text-align: right; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-steps td.v.up { color: #5fd08f; }
.ev-steps td.v.down { color: #FFB4AB; }
.ev-steps td.bar { width: 26%; padding: 0 14px; }
.ev-steps td.bar i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); min-width: 2px; }
.ev-steps td.bar i.up { background: #5fd08f; }
.ev-steps td.bar i.down { background: #6AA18E; }
.ev-steps td small { display: block; font-size: 12px; color: rgba(255,255,255,.45); }
.ev-steps tr.total td { border-top-color: rgba(255,255,255,.35); color: #fff; font-weight: 600; }
.ev-note { margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.5); }

.ev-lock { position: relative; overflow: hidden; margin-top: 28px; }
.ev-lock__fake { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; filter: blur(3px); opacity: .55; user-select: none; }
.ev-lock__fake div { padding: 12px; border-radius: 12px; background: var(--surface); }
.ev-lock__fake span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.ev-lock__fake b { font-size: 16px; }
.ev-lock__body { margin-top: 18px; }
.ev-lock h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ev-lock p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ev-lock__row { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-lock__row input { min-width: 0; padding: 12px; border: 1px solid var(--grid); border-radius: 10px; font: inherit; font-size: 15px; }
.ev-check { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.ev-check input { accent-color: var(--orange); width: 16px; height: 16px; }
.ev-err { min-height: 0; margin-top: 8px; font-size: 13px; color: var(--red-text); }
.ev-err:empty { display: none; }
.ev-lock form button { margin-top: 14px; width: 100%; border: 0; border-radius: 999px; background: var(--orange-deep); color: #fff; font: inherit; font-weight: 600; font-size: 16px; padding: 15px; cursor: pointer; }
.ev-lock form button:hover { background: var(--orange-hover); }
.ev-lock form button[disabled] { opacity: .6; cursor: default; }
.ev-done h3::before { content: "✓ "; color: var(--ev-up); }

.ev-mini { display: none; position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ev-dark); color: #fff; text-decoration: none; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
.ev-mini span { font-size: 12px; color: rgba(255,255,255,.55); }
.ev-mini b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ev-mini em { margin-left: auto; font-style: normal; font-size: 13px; color: #CFE3DB; }
.ev-work[hidden] .ev-mini { display: none; }


/* ---------- what's in the report ---------- */
.ev-report { margin: 40px var(--page-gutter) 0; }
.ev-report__inner {
  width: min(var(--page-max), 100%); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 28px;
  background: var(--surface); border: 1px solid var(--grid);
}

/* The artwork. A page of the real report, cropped by a mask rather than by a
   transform: a scaled child inside a rounded, overflow-hidden box is the exact
   combination that bleeds past the corners in WebKit. */
.ev-report__art { position: relative; padding: 10px 10px 0; }
.ev-report__back {
  position: absolute; inset: 22px 30px 40px 0; border-radius: 16px;
  background: #fff; border: 1px solid var(--grid); rotate: -2.4deg;
  box-shadow: 0 18px 40px -26px rgba(0,0,0,.45);
}
.ev-report__page {
  position: relative; overflow: hidden; max-height: 470px;
  padding: 20px 22px 0; border-radius: 16px;
  background: #fff; border: 1px solid var(--grid);
  box-shadow: 0 26px 60px -30px rgba(0,0,0,.5);
}
.ev-report__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(transparent, #fff);
}
.ev-report__tag {
  position: absolute; top: 0; right: 14px; transform: translateY(-50%);
  padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.ev-rp-head { display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 2px solid var(--orange); }
.ev-rp-brand { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); }
.ev-rp-date { font-size: 12px; color: var(--ink-3); }
.ev-rp-addr { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.ev-rp-range { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.ev-rp-sub { font-size: 12px; color: var(--ink-3); }
.ev-rp-h { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); }
.ev-rp-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12.5px; }
.ev-rp-table td { padding: 7px 0; border-top: 1px solid var(--grid); color: var(--ink-2); }
.ev-rp-table td.n { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.ev-rp-table td.d { text-align: right; width: 76px; color: var(--ev-up); font-variant-numeric: tabular-nums; }
.ev-rp-chart { width: 100%; height: auto; margin-top: 10px; }

.ev-report__copy h2 { margin-top: 14px; max-width: 13.86em; font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.ev-report__lede { margin-top: 16px; max-width: 38.45em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ev-report__list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ev-report__list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ev-report__list b { color: var(--ink); font-weight: 600; }
.ev-report__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  rotate: -45deg;
}
.ev-report__cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ev-report__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
}
.ev-report__link:hover { background: var(--orange); }
.ev-report__fine { font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 1100px) {
  .ev-report__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ev-report__page { max-height: 360px; padding: 16px 16px 0; }
  /* Four columns is one too many at 390px — the address and the size run
     together. The size is the least load-bearing of them. */
  .ev-rp-table td:nth-child(2) { display: none; }
  .ev-report__link { width: 100%; justify-content: center; }
}

/* ---------- below the fold ---------- */
.ev-how { margin: 40px var(--page-gutter) 60px; border-radius: 28px; background: var(--linen); }
.ev-how__inner { width: min(var(--page-max), 100%); margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px); }
.ev-how h2 { margin-top: 14px; max-width: 15.25em; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.ev-how__steps { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ev-how__steps li { background: #fff; border-radius: 18px; padding: 24px; }
.ev-how__steps b { font-size: 13px; color: var(--red-text); }
.ev-how__steps h3 { margin-top: 12px; font-size: 18px; font-weight: 600; }
.ev-how__steps p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.ev-legal { margin-top: 30px; max-width: 53.04em; font-size: 12px; line-height: 1.6; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ev-hero__grid { grid-template-columns: 1fr; }
  .ev-hero__preview { display: none; }
  .ev-work__grid { grid-template-columns: 1fr; }
  .ev-out { position: static; }
  .ev-mini { display: flex; }
  .ev-work { padding-bottom: 70px; }
  .ev-how__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ev-hero { border-radius: 20px; }
  .ev-addr__box { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .ev-addr__ic { display: none; }
  .ev-addr input { padding: 10px 10px; }
  .ev-addr__box button { width: 100%; }
  .ev-addr__fine { padding-left: 4px; }
  .ev-stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .ev-lock__row { grid-template-columns: 1fr; }
  .ev-lock__fake { grid-template-columns: repeat(2, 1fr); }
  .ev-how__steps { grid-template-columns: 1fr; }
  .ev-steps td.bar { display: none; }
}

/* ---------- mobile call bar (js/call-bar.js) ----------
   Phones only. Fixed to the bottom edge with its own opaque background so no
   card is half-covered; body/scroller padding keeps the footer reachable.
   z-index 45 sits under the sticky header (50) and every overlay (70+), so
   the photo viewer and menus still cover it. KEEP IN SYNC between css/site.css
   and css/app.css (the homepage loads app.css): guarded by
   feed/test_touch_scroll.py. */
.rl-callbar { display: none; }
@media (max-width: 760px) {
  .rl-callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #E5E7EB;
    box-shadow: 0 -6px 18px -10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
  }
  .rl-callbar.is-parked { transform: translateY(110%); }
  .rl-callbar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: 46px; border-radius: 999px; font: 600 15px/1 "Geist", -apple-system, sans-serif;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .rl-callbar__call { background: #fff; color: var(--orange-deep, #064031); border: 1.5px solid var(--orange-deep, #064031); }
  .rl-callbar__cta { background: #064031; color: #fff; border: 1.5px solid #064031; }
  body.has-callbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-callbar #desktop-gate { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- phones: no zoom on a focused control ----------
   iOS Safari zooms the page in when a text control under 16px takes focus,
   and does not zoom back out when it loses it. Every form on the site sat
   at 13.5-15px — the search bar, the mortgage "Adjust" fields, the booking
   form, the evaluation inputs and its "Unlock the full report" row — so
   typing into any of them left the page zoomed and draggable sideways. This
   is the other half of the "page drift" Eddie kept seeing (the first half is
   touch-action: manipulation on body, above).

   Coarse pointer, no hover: phones and tablets only; the desktop sizes are
   untouched. The selector's specificity (four attribute :not()s) is meant to
   outrank every ".x input { font-size }" rule in this file, so a new form
   cannot opt back out by accident. The address search is the one control
   already larger than 16px and keeps its size. Kept last in the file on
   purpose: it must win the cascade over anything declared above it.
   Guarded by feed/test_touch_scroll.py. */
/* ---- Page rhythm --------------------------------------------------------
   One spacing scale for every page built from the directory pattern: the
   neighbourhood hub, the condo hub, neighbourhood, zone and condo-building
   pages, the open houses page. Before this each block picked its own gap
   (0, 8, 26, 30, 34px), so a heading could sit hard against the paragraph or
   the card grid under it. Scale: 4 / 8 / 12 / 16 / 24 / 32 / 40. Class names
   are the generators', unchanged. Declared late on purpose, so it wins over
   the per-block values above. */
:root { --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 40px; }

/* Page title block: crumb, H1, then the intro copy, all on one rhythm. */
.lp-intro, .condo-head { margin: var(--sp-3) 0 var(--sp-6); }
.lp-intro h1, .lp-kicker, .condo-head h1 {
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
}
.lp-intro > p, .condo-intro { margin: 0 0 var(--sp-3); }
.lp-intro > :last-child, .condo-head > :last-child { margin-bottom: 0; }
.condo-addr { margin-top: 0; }
.condo-intro { margin-top: var(--sp-3); }
.lp-intro .blog-answer { margin: var(--sp-2) 0 var(--sp-4); }

/* Content sections: 40px apart; a section's heading sits 12px above what it
   introduces, or 8px above a one-line intro that then sits 16px above the cards. */
.condo-hub-hood, .condo-hub-zone, .com-block, .condo-near { margin: var(--sp-7) 0 0; }
.condo-hub-zone > .condo-hub-hood { margin-top: var(--sp-5); }
.condo-hub-hood h2, .condo-hub-zone > h2, .condo-near h2, .com-block h2 { margin: 0 0 var(--sp-3); }
.condo-hub-hood h3 { margin: 0 0 var(--sp-3); }
.hub-sec-intro, .rural-dir .hub-sec-intro { margin: calc(-1 * var(--sp-1)) 0 var(--sp-4); max-width: 45.08em; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.condo-hub-list, .condo-quad-list, .condo-near-list { margin-bottom: 0; }
.mn-stats + .lede, .condo-hub-hood > .lede, .lp > .lede, .condo > .lede { margin: var(--sp-5) 0 0; }
.lp > .lede + .condo-hub-hood, .condo > .lede + .condo-hub-hood { margin-top: var(--sp-6); }
.mn-stats + .lede, .condo-hub-hood > .lede, .lp > .lede, .condo > .lede { max-width: 45.08em; }
.dir-filter + .condo-hub-hood, .dir-filter + .condo-hub-zone { margin-top: var(--sp-6); }
.lp-intro.rl-ryan { margin-top: var(--sp-7); }
/* Result lists: heading, one-line count, then the cards. */
.results-head { margin: var(--sp-5) 0 var(--sp-4); }
.results-head h2 + .sub, .oh-day h2 + .sub { margin-top: var(--sp-1); }
.results-more { margin-top: var(--sp-5); }
.pdp-building { margin-top: var(--sp-7); }
.dir-filter { margin: var(--sp-5) 0 0; }

/* ============================================================
   UI pass (2026-10-30), from the UI/UX review of the whole site.
   Cross-cutting rules live here rather than scattered through the file, so
   the system reads in one place. css/app.css carries the homepage's copy of
   the shared pieces; the two must agree.
   ============================================================ */

/* Links nothing else styles were the browser's default blue (zone tables,
   "The zone at a glance", "Every home for sale in Zone 14"). :where() keeps
   this at zero specificity, so every existing link rule still wins. */
:where(a) { color: var(--red-text, #04291F); }
.leaflet-control-attribution a { color: var(--red-text, #04291F); }

/* A field's only focus cue was a 1.5px sage border, 2.7:1 against the grey
   field: under the 3:1 a focus indicator needs. !important because a dozen
   field rules set outline: none. */
:is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):focus-visible {
  outline: 2px solid var(--orange-deep, #064031) !important; outline-offset: 1px;
}

/* ---- Buttons: three kinds, one look each ----
   Primary: brand green pill, 48px, 15px/600, white label.
   Secondary: white pill, 1.5px green border, green label.
   Small: secondary look at 40px for tags, filters and photo counts.
   The search bar's own buttons are 44px so they sit with its 40px fields. */
.mtg-submit, .pdp-block .btn:not(.btn--ghost), .guide__card .btn:not(.btn--ghost),
.pdp-head-cta .btn, .ev-report__link, #addrGo,
.blog-art-main a.dgn-cta, .lp-intro a.dgn-cta, .guide__body a.dgn-cta, .mn-guide-sec a.dgn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--orange-deep, #064031); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.mtg-submit, .pdp-block .btn:not(.btn--ghost), .guide__card .btn:not(.btn--ghost) { display: flex; width: 100%; }
.mtg-submit:hover, .pdp-block .btn:not(.btn--ghost):hover, .guide__card .btn:not(.btn--ghost):hover,
.pdp-head-cta .btn:hover, .ev-report__link:hover, #addrGo:hover,
.blog-art-main a.dgn-cta:hover, .lp-intro a.dgn-cta:hover, .guide__body a.dgn-cta:hover, .mn-guide-sec a.dgn-cta:hover {
  background: var(--orange-hover, #04291F); color: #fff;
}
/* "See It in Person" keeps its arrow circle, like Show Me Homes. */
.pdp-head-cta .btn { padding: 0 8px 0 24px; }
.sb-go { min-height: 44px; padding: 0 26px; border-radius: 999px; font-size: 15px; }

.results-more button, .pdp-savesearch, .pdp-block .btn--ghost, .guide__card .btn--ghost,
.sb-save, .fs-btn, .book-alt-btn {
  border: 1.5px solid var(--orange-deep, #064031); color: var(--orange-deep, #064031); background: #fff;
}
.results-more button, .pdp-savesearch, .pdp-block .btn--ghost, .guide__card .btn--ghost {
  min-height: 48px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.sb-save, .fs-btn { min-height: 44px; border-radius: 999px; }
.results-more button:hover, .pdp-savesearch:hover:not([disabled]), .pdp-block .btn--ghost:hover,
.guide__card .btn--ghost:hover, .sb-save:hover, a.book-alt-btn:hover {
  background: var(--orange-soft, #EEF5F2); color: var(--orange-deep, #064031); border-color: var(--orange-deep, #064031);
}

.blog-tag, .pdp-mosaic-more { min-height: 40px; display: inline-flex; align-items: center; }
.pdp-mosaic-more { font-size: 14px; }
.pdp-action { min-height: 40px; }

/* Black is retired as a button colour: green for the selected option and
   for the skip link. */
.book-seg button[aria-pressed="true"] { background: var(--orange-deep, #064031); color: #fff; }
.skip-link { background: var(--orange-deep, #064031); }

/* Price small print on result cards inherited the browser's <small> (11.25px). */
.rcard .p small { font-size: 12px; }
.ev-legal { color: var(--ink-2); }

/* ---- Guide and article pages: one column ----
   The title and photo ran 20px from the window edge on a 1440 screen while
   the text sat 182px in, under a logo 43px in. Everything now shares the
   reading grid's width (45rem + gap + 300px sidebar). Pages with a full-width
   grid of listings under the photo keep the wide hero to match it. */
:where(main:not(:has(.results-grid))) :is(.blog-art-hero .shell, .blog-art-figure.shell, .blog-art-body.shell) {
  width: min(1080px, calc(100% - 2 * var(--page-gutter)));
}
/* The opening paragraphs read as a second, smaller font beside the body. */
.blog-art-main .lp-intro p { font-size: clamp(1.02rem, 1.4vw, 1.12rem); line-height: 1.65; color: var(--ink-2); }

@media (max-width: 560px) {
  /* Text pages get 20px each side on a phone; card pages take the 16px
     --page-gutter (it was 10px, which ran text almost to the glass). */
  .blog-art-hero .shell, .blog-art-figure.shell, .blog-art-body.shell { width: calc(100% - 40px); }
  .blog-art-body { padding-top: 1.25rem; }
  /* The photo rises 2.2rem into the green band; on a phone that put its top
     edge on the last line of the subheading. 16px clear, as on desktop. */
  .blog-art-hero { padding-bottom: calc(2.2rem + 16px); }
}

/* ---- Type scale (2026-10-30) ----
   One set of sizes instead of nine H2 sizes and six H3 sizes:
     page title 46px, section 28px, subsection 20px, small heading 17px;
     body 17px on reading pages, 16px on data pages, both about 1.6 spacing;
     reading paragraphs capped near 70 characters a line.
   Headings had the browser's "normal" line spacing, so long ones wrapped
   loosely; every heading now sets its own. */
h1, h2, h3, h4 { line-height: 1.2; }

.blog-art-hero h1, .guide h1, .page-head h1, .hoods-head h1, .acct-head h1, .condo-head h1, .lp-intro h1 {
  font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.02em;
}
.pdp-addr { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }

.mn-guide-sec h2, .guide__body h2, .guide__faq h2, .mn-sec h2, .mn-sec-head h2, .lp-intro h2, .lp > h2,
.com-block h2, main[data-community] > .mn-guide-sec h2, .condo-near h2, .pdp-similar h2 {
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.01em;
}
.pdp-block-card h2, .pdp-hood-head h2, .pdp-building-head h2, .condo .results-head h2, .condo-empty h2,
.condo-hub-hood h2, .acct-section h2, .qd-card h2, .contact-agent-info h2,
.mn-guide-sec h3, .guide__body h3, .pdp-main h3 {
  font-size: 20px; line-height: 1.25; letter-spacing: -0.01em;
}
.com-faq h3, .com-around h3, .rl-faq h3, .mn-faq summary h3, .pdp-block h3, .guide__card h3, .guide__faq summary, h4 {
  font-size: 17px; line-height: 1.35;
}

/* Body copy */
.guide__body p, .guide__faq details p { font-size: 17px; line-height: 1.65; }
.lp-intro p, .hub-sec-intro, .com-block > p, .condo-intro { font-size: 16px; line-height: 1.6; }
.blog-art-main .lp-intro p { font-size: clamp(1.02rem, 1.4vw, 1.12rem); line-height: 1.65; }
.mn-guide-sec > p, .guide__body p, .lp-intro p, .lp > p, .hub-sec-intro, .com-block > p, .guide__lede { max-width: 45.08em; }

/* The date that used to end a heading now sits under it. */
.mn-asof { margin: -8px 0 16px; font-size: 14px; color: var(--ink-3); }
.com-block .mn-asof, .mn-sec .mn-asof { margin-top: -2px; }

/* Motion off when the visitor asks for less; the rules above only covered a
   few elements one at a time. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---- Phones: room to tap ----
   Footer links set tight on desktop (Eddie) get 40px rows on a phone; the
   breadcrumb links grow their hit area without moving the line. */
@media (max-width: 760px) {
  .dg-footer-col ul { gap: 0; }
  .dg-footer-col li a { display: inline-block; padding: 10px 0; }
  .dg-footer-col--wide li { padding-bottom: 0; }
  :is(.crumbs, .guide__crumb, .page-head .crumb) a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
}

/* gb:header-start */
/* Header layout in Eddie's colours (2026-11-14).
   Source of truth: css/_header.css. feed/build_header_css.py copies it into
   BOTH css/site.css (every page but the homepage) and css/app.css (the
   homepage), ahead of the 16px input floor, which stays the last block.
   A flat, full-width bar with a hairline instead of the floating pill; a
   drawn green underline on the top items; Eddie's number beside the button
   from 1380px; Buy as a full-width panel of three labelled columns. */
.dgn-wrap { top: 0; padding: 0; background: #fff; border-bottom: 1px solid var(--grid, #E5E7EB); }
.dgn {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; padding: 14px 0;
}
.dgn-links > li > a, .dgn-links > li > button {
  color: var(--ink-2, #555); padding: 8px 0;
  background: linear-gradient(var(--blue-500, #6AA18E), var(--blue-500, #6AA18E)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.15s ease;
}
.dgn-links > li > a:hover, .dgn-links > li > button:hover, .dgn-drop.is-open > .dgn-drop-btn {
  color: var(--blue-900, #064031); background-size: 100% 2px;
}
.dgn-links > li > a[aria-current="page"] { color: var(--blue-900, #064031); background-size: 100% 2px; }
.dgn-drop-menu { border-radius: 14px; border: 1px solid var(--grid, #E5E7EB); box-shadow: 0 24px 40px -24px rgba(6, 64, 49, 0.35); }
.dgn-drop-menu li a:hover { background: var(--orange-soft, #EEF5F2); color: var(--blue-900, #064031); }
.dgn-phone { font-weight: 600; font-size: 15px; color: var(--blue-900, #064031); text-decoration: none; white-space: nowrap; }
.dgn-phone:hover { color: var(--blue-500, #6AA18E); }
.dgn-col { list-style: none; }
.dgn-col > ul { list-style: none; margin: 0; padding: 0; }
.dgn-col-h { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-3, #737373);
  margin: 0 0 4px; padding: 0 13px 10px; border-bottom: 1px solid var(--blue-900, #064031); }
@media (min-width: 860px) {
  .dgn { position: static; }
  .dgn-drop.dgn-buy { position: static; }
  .dgn-panel {
    left: 0; right: 0; top: 100%; transform: none; min-width: 0;
    border-radius: 0; border-width: 1px 0 0; box-shadow: 0 30px 40px -30px rgba(6, 64, 49, 0.3);
    padding: 30px max(var(--page-gutter, 20px), calc((100% - var(--page-max, 1560px)) / 2)) 38px;
    background: #fff;
  }
  .dgn-drop.is-open > .dgn-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
  .dgn-panel .dgn-col a { padding: 8px 13px; font-size: 15px; }
}
@media (max-width: 1379px) { .dgn-phone { display: none; } }
.dgn-links > li > a, .dgn-links > li > button { white-space: nowrap; }
@media (min-width: 860px) and (max-width: 1279px) {
  .dgn { gap: 18px; }
  .dgn-links, .dgn-links { gap: 16px; }
  .dgn-links > li > a, .dgn-links > li > button, .dgn-auth-item > .nav-auth-btn { font-size: 14px; }
}
@media (min-width: 860px) and (max-width: 1059px) {
  .dgn-links { gap: 11px; }
  .dgn-links > li > a, .dgn-links > li > button, .dgn-auth-item > .nav-auth-btn { font-size: 13px; }
  .dgn .dgn-cta { padding-left: 16px; font-size: 14px; }
}
@media (max-width: 859px) {
  .dgn-wrap, body.dg-site .dgn-wrap { top: 0; }
  .dgn, body.dg-site .dgn { width: calc(100% - 2 * var(--page-gutter, 16px)); padding: 10px 0; }
  .dgn-col-h { padding: 12px 13px 6px; border-bottom-color: var(--grid, #E5E7EB); }
  .dgn.is-open .dgn-links > li > a, .dgn.is-open .dgn-links > li > button { background-image: none; }
  .dgn.is-open .dgn-links { top: 100%; border-radius: 0 0 20px 20px; }
  .dgn.is-open .dgn-drop-menu { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
}
/* gb:header-end */

@media (hover: none) and (pointer: coarse) {
  :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) {
    font-size: 16px;
  }
  .ev-addr input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) { font-size: 17px; }
}
