/* The redesigned home page (card roScbBQS) - hero search and featured
   carousel, the market snapshot, the role panels, the listing rows, the
   map and its market panel, testimonials and the brokerage strip.
   Ported from Jason's inventory-first design (read.is/po-home.html)
   onto the --po- tokens; the chrome it sits in is site.css's */

/* One tinted field behind the hero (G6), so the search and the featured
   listing read as a single marketplace rather than neighbouring parts */
.field {
  background: var(--po-tint-cool);
  border-bottom: 1px solid var(--po-line);
}

.hero {
  padding-top: var(--po-sp-10);
  padding-bottom: var(--po-sp-10);
}

.hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: var(--po-sp-10);
  align-items: stretch;
  margin-top: var(--po-sp-5);
}

/* The search starts level with the carousel's frame, below its Featured
   head, so the two columns open on one line (Cannon's review) */
.hero-l {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--po-fs-base) * 1.5 + var(--po-sp-2));
}

.hero-r {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Larger and bolder than the scale's display size, the page's one
   headline having the width for it (Preston, 2 Oct); balanced, so it
   breaks into two even lines rather than leaving a word alone */
.hero-h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--po-ls-tight);
  color: var(--po-ink-2);
  max-width: 30ch;
  text-wrap: balance;
}

.hero-sub {
  font-size: var(--po-fs-xl);
  line-height: 1.5;
  color: var(--po-muted);
  margin: var(--po-sp-3) 0 0;
  max-width: 68ch;
}

/* A way in for a first visit, under the counts (Preston, 2 Oct): white
   off the hero's tint, as the search is */
.hero-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--po-sp-3) var(--po-sp-4);
  margin-top: var(--po-sp-4);
  padding: var(--po-sp-4) var(--po-sp-5);
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  background: #fff;
}

.hero-join p {
  margin: 0;
  font-size: var(--po-fs-base);
  color: var(--po-ink-2);
}

.hero-sub b {
  font-weight: 600;
  color: var(--po-ink-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--po-sp-3);
  margin-top: var(--po-sp-4);
}

/* A count tile, ruled off on the hero's tint rather than lifted from it
   as a card */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--po-sp-1);
  padding: var(--po-sp-4) var(--po-sp-5);
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
}

.stat b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--po-brand-ink);
  letter-spacing: var(--po-ls-tight);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: var(--po-fs-base);
  color: var(--po-muted);
}

.car-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-3);
  margin-bottom: var(--po-sp-2);
}

.car-head .eyebrow {
  letter-spacing: var(--po-ls-caps);
}

.car-head a {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 500;
}

/* The frame holds a light cover off the hero's tint: a darker rule and
   the cards' faint lift, so a pale photo never melts into the field */
.car {
  position: relative;
  border: 1px solid var(--po-line-2);
  box-shadow: var(--po-sh-1);
  border-radius: 10px;
  overflow: hidden;
  background: var(--po-bg-3);
  height: clamp(292px, 30vw, 380px);
  /* ... and grows to the search column's foot where that runs taller */
  flex-grow: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.slide.on {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The carousel's empty state: a flat tint and a quiet line, never the
   old stripes (design review J5) */
.ph-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--po-tint-cool);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  color: var(--po-muted);
  text-align: center;
  padding: 0 var(--po-sp-4);
}

.spanel {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: min(288px, calc(100% - 20px));
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: var(--po-sp-3) var(--po-sp-3) var(--po-sp-2);
  box-shadow: 0 4px 16px -8px rgba(20, 28, 36, 0.3);
  z-index: 4;
}

.sp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--po-sp-3);
}

.sp-txt {
  min-width: 0;
}

.sp-l {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 600;
  color: #20262b;
  letter-spacing: var(--po-ls-tight);
  line-height: 1.2;
}

.sp-m {
  font-size: var(--po-fs-md);
  color: #3b444c;
  margin-top: 1px;
}

.spanel a.sp-view {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--po-sp-3);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-md);
  font-weight: 500;
  border-radius: 4px;
  background: #3f4a53;
  color: #fff;
  flex: 0 0 auto;
  align-self: center;
}

.spanel a.sp-view:hover {
  background: #2f383f;
  text-decoration: none;
  color: #fff;
}

.sp-stats {
  margin-top: var(--po-sp-2);
  padding-top: var(--po-sp-2);
  border-top: 1px solid rgba(40, 48, 56, 0.2);
}

.sp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-3);
  padding: 1.5px 0;
  font-size: var(--po-fs-md);
  color: #3b444c;
}

.sp-row b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
  color: #20262b;
  font-variant-numeric: tabular-nums;
}

.sp-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--po-sp-2);
  margin-top: var(--po-sp-2);
  padding-top: var(--po-sp-2);
  border-top: 1px solid rgba(40, 48, 56, 0.16);
  min-height: 38px;
}

.sp-by {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.lb {
  display: block;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xs);
  font-weight: 500;
  color: var(--po-muted);
  margin-bottom: 3px;
  line-height: 1;
}

.slide .sp-logo {
  position: static;
  inset: auto;
  width: auto;
  height: 24px;
  max-width: 118px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.sp-own {
  font-size: var(--po-fs-md);
  font-weight: 600;
  color: var(--po-ink-2);
}

.sp-who {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  align-self: flex-end;
}

.sp-agent {
  font-size: var(--po-fs-sm);
  color: var(--po-muted);
}

.sp-id {
  font-family: var(--po-font-mono);
  font-size: var(--po-fs-xs);
  letter-spacing: var(--po-ls-caps);
  color: var(--po-muted);
}

/* Each bar is a 24px-tall button that draws a 2.5px line 8px off its
   foot (plan M5: a bare line was too thin to tap). The margins give
   the extra height back, so the bars sit where the line alone did:
   13.5px above it, and the panel's 8px padding below */
.sp-bars {
  display: flex;
  gap: 3px;
  margin-top: calc(var(--po-sp-3) - 13.5px);
  margin-bottom: calc(-1 * var(--po-sp-2));
}

.barb {
  position: relative;
  flex: 1;
  height: 24px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.barb::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--po-sp-2);
  height: 2.5px;
  border-radius: 2px;
  background: rgba(40, 48, 56, 0.28);
  transition: background 160ms;
}

.barb.on::before {
  background: #3b444c;
}

/* The focus ring goes round the line, not the taller button */
.barb:focus-visible {
  outline: none;
}

.barb:focus-visible::before {
  outline: 2px solid var(--po-brand-2);
  outline-offset: 2px;
}

/* Clipped sideways: a logo's name tip, hidden until hover or focus,
   still has a width, and over a logo at a phone's edge it ran past the
   screen and let the page scroll sideways */
.from {
  border-top: 1px solid var(--po-line);
  background: var(--po-tint-cool);
  overflow-x: clip;
}

.from-in {
  display: flex;
  align-items: center;
  gap: var(--po-sp-6);
  flex-wrap: wrap;
  /* Block padding only: this element is also the .wrap, whose side
     gutters a padding shorthand zeroed (UAT round 1, A1/A5) */
  padding-block: var(--po-sp-6);
}

.from-l {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-md);
  font-weight: 500;
  color: var(--po-muted);
  flex: 0 0 auto;
}

/* Every logo in the same white tile, in its own colours, so files drawn
   every which way read as one row (Preston and Khoi, 2 Oct); the server
   trims the plain margin some files carry, so each fills its tile */
.from-logos {
  display: flex;
  align-items: center;
  gap: var(--po-sp-3);
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.from-logos .firm {
  width: 152px;
  height: 68px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 10px;
}

.from-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.from-in a {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 500;
  white-space: nowrap;
}

/* The snapshot heads the nearby listings band (G18), on its tint: the
   strip carries the band's top rule, and a faint rule across the page
   column sets the controls apart from the listings (G28) while the
   shared tint keeps them one block */
.snap {
  padding-top: var(--po-sp-6);
  background: var(--po-tint-cool);
  border-top: 1px solid var(--po-line);
}

.snap + .sec.cool {
  border-top: 0;
  padding-top: var(--po-sp-8);
}

.snap-in {
  padding-bottom: var(--po-sp-6);
  border-bottom: 1px solid var(--po-line-2);
  display: flex;
  align-items: center;
  gap: var(--po-sp-6);
  flex-wrap: wrap;
}

.snap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, max-content));
  gap: var(--po-sp-3) var(--po-sp-8);
  flex: 1;
  min-width: 0;
}

.snap-i {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.snap-i b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  font-weight: 600;
  color: var(--po-ink-2);
  letter-spacing: var(--po-ls-tight);
  font-variant-numeric: tabular-nums;
}

.snap-i span {
  font-size: var(--po-fs-md);
  color: var(--po-muted);
}

/* The picker stacks like a figure (G25): its label above, set a
   little heavier than the figures' labels because it heads the strip,
   and a pill no taller than a figure's value beneath it; the margin
   sets it apart from the figures it chooses */
.loc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
  margin-right: var(--po-sp-6);
}

.loc-l {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-md);
  font-weight: 600;
  color: var(--po-ink-2);
}

/* The select fills the whole pill, pin and caret included, so a tap
   anywhere on it opens the list (plan M5: the select alone was 18px
   tall). Its padding stands where the pill's did, so nothing moves */
.loc-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0;
  border: 1px solid var(--po-line-2);
  border-radius: 999px;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 500;
  color: var(--po-muted);
  background: #fff;
  flex: 0 0 auto;
}

.loc-chip svg {
  position: absolute;
  left: var(--po-sp-3);
  top: 7px;
  pointer-events: none;
}

.loc-chip select {
  align-self: stretch;
  border: none;
  background: none;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 600;
  color: var(--po-brand-2);
  cursor: pointer;
  max-width: calc(170px + 34px + var(--po-sp-3));
  padding: 0 calc(var(--po-sp-4) + var(--po-sp-3)) 0 34px;
  border-radius: 999px;
  appearance: none;
}

/* The same solid caret as the search dropdowns', in place of the
   browser's own arrow */
.loc-chip::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 12px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--po-muted);
  pointer-events: none;
}

.loc-chip:focus-within {
  border-color: var(--po-brand-2);
  box-shadow: 0 0 0 3px rgba(58, 115, 150, 0.13);
}

.loc-chip select:focus {
  outline: none;
}

.sec {
  padding: var(--po-sp-16) 0;
}

/* The bands stripe white with one faint brand tone (design review G17)
   so the page reads as sections rather than one long white sheet */
.sec.cool {
  background: var(--po-tint-cool);
  border-top: 1px solid var(--po-line);
  border-bottom: 1px solid var(--po-line);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--po-sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--po-sp-6);
}

.sec-t {
  font-size: var(--po-fs-4xl);
  font-weight: 600;
  letter-spacing: var(--po-ls-tight);
  color: var(--po-ink-soft);
}

.sec-s {
  font-size: var(--po-fs-base);
  color: var(--po-muted);
  margin-top: var(--po-sp-1);
  max-width: 62ch;
}

/* 4px above and below the words, given back by the margins, so the
   link is a 29px tap target where its line alone was 21px (plan M5) */
.sec-link {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 500;
  white-space: nowrap;
  padding: var(--po-sp-1) 0;
  margin: calc(-1 * var(--po-sp-1)) 0;
}

.sec-tools {
  display: flex;
  align-items: center;
  gap: var(--po-sp-3);
  flex-wrap: wrap;
}




.row-wrap {
  position: relative;
}

.row {
  display: flex;
  gap: var(--po-sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px var(--po-sp-2);
  scrollbar-width: none;
}

.row::-webkit-scrollbar {
  display: none;
}

.row .card {
  flex: 0 0 clamp(250px, 24vw, 296px);
  scroll-snap-align: start;
}

.row-nav {
  display: flex;
  gap: var(--po-sp-2);
}

.mapsec {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--po-sp-6);
  align-items: start;
}

/* Framed like the carousel - a darker rule and the cards' faint lift -
   so the map's pale land stands off the section's tint */
.mapbox {
  position: relative;
  height: clamp(380px, 44vh, 470px);
  border: 1px solid var(--po-line-2);
  box-shadow: var(--po-sh-1);
  border-radius: 12px;
  overflow: hidden;
  background: #fcfdfd;
}

#map {
  position: absolute;
  inset: 0;
  cursor: grab;
}

#map.drag {
  cursor: grabbing;
}

#map svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.geo-land {
  fill: #f2f4f6;
  stroke: #dfe4e8;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.geo-land.on {
  fill: #e7eef3;
  stroke: #bccbd6;
}

.geo-nation {
  fill: none;
  stroke: #cbd2d8;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.geo-lbl {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xs);
  font-weight: 600;
  letter-spacing: var(--po-ls-caps);
  text-transform: uppercase;
  fill: #aab3ba;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.geo-lbl.on {
  fill: #8ba2b2;
  font-size: var(--po-fs-lg);
  letter-spacing: var(--po-ls-caps);
}

.city circle {
  fill: #9aa4ab;
}

.city text {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 500;
  fill: #6c767e;
  dominant-baseline: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3px;
}

.city {
  pointer-events: none;
}

.mk {
  cursor: pointer;
}

.mk rect,
.mk .mk-tail {
  fill: #2c5870;
  stroke: #fff;
  stroke-width: 1.2;
  paint-order: stroke;
  filter: drop-shadow(0 1px 2px rgba(20, 24, 27, 0.22));
}

.mk .mk-tail {
  stroke: none;
  filter: none;
}

.mk text {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 600;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.mk.grp rect,
.mk.grp .mk-tail {
  fill: #4a7f9f;
}

.mk:hover rect,
.mk.hl rect,
.mk:focus-visible rect,
.mk:hover .mk-tail,
.mk.hl .mk-tail,
.mk:focus-visible .mk-tail {
  fill: #1c2e3a;
}

/* A pin reached from the keyboard is ringed on its own label: the page's
   focus outline would draw a box around the group's bounds instead */
.mk:focus-visible {
  outline: none;
}

.mk:focus-visible rect {
  stroke: var(--po-brand-2);
  stroke-width: 2.5;
}

.map-zoom {
  position: absolute;
  right: 12px;
  bottom: 48px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--po-line-2);
  border-radius: 8px;
  box-shadow: var(--po-sh-2);
  overflow: hidden;
}

.map-zoom button {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: var(--po-fs-xl);
  font-weight: 600;
  color: var(--po-ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-zoom button:hover {
  background: var(--po-bg-2);
}

.map-zoom button+button {
  border-top: 1px solid var(--po-line);
}

.map-zoom .rst {
  font-size: var(--po-fs-xs);
  font-weight: 600;
  letter-spacing: var(--po-ls-caps);
  text-transform: uppercase;
  color: var(--po-muted);
}

.pop {
  position: absolute;
  z-index: 20;
  width: 252px;
  background: #fff;
  border: 1px solid var(--po-line);
  border-radius: 10px;
  box-shadow: var(--po-sh-3);
  display: none;
}

.pop.on {
  display: block;
}

/* A pin near the top of the map opens its card below it instead, so
   the map's clipping edge never hides it, and the tail turns to match;
   one with room on neither side opens beside it, with no tail */
.pop.below .pop-tail {
  top: -7px;
  bottom: auto;
  transform: translateX(-50%) rotate(225deg);
}

.pop.side .pop-tail {
  display: none;
}

.pop-ph {
  position: relative;
  height: 108px;
  border-radius: 9px 9px 0 0;
  overflow: hidden;
  background: var(--po-bg-3);
}

.pop-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pop-x {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--po-line);
  cursor: pointer;
  color: var(--po-ink-2);
  font-size: var(--po-fs-md);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pop-b {
  padding: var(--po-sp-4);
}

.pop-l {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 600;
  color: var(--po-ink-soft);
  letter-spacing: var(--po-ls-tight);
}

.pop-s {
  font-size: var(--po-fs-md);
  color: var(--po-muted);
  margin-top: 1px;
}

.pop-p {
  margin-top: var(--po-sp-2);
  padding-top: var(--po-sp-2);
  border-top: 1px solid var(--po-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-3);
  font-size: var(--po-fs-md);
  color: var(--po-muted);
}

.pop-p b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.pop-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--po-sp-2);
  margin-top: var(--po-sp-2);
  padding-top: var(--po-sp-2);
  border-top: 1px solid var(--po-line);
  font-size: var(--po-fs-sm);
  color: var(--po-muted);
}

.pop-tail {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid var(--po-line);
  border-bottom: 1px solid var(--po-line);
  transform: translateX(-50%) rotate(45deg);
}

.mkt {
  border: 1px solid var(--po-line);
  border-radius: 12px;
  background: #fff;
  padding: var(--po-sp-6);
  display: flex;
  flex-direction: column;
}

.mkt-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-3);
  flex-wrap: wrap;
  padding-bottom: var(--po-sp-4);
  border-bottom: 1px solid var(--po-line);
}

.mkt-h b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-2xl);
  font-weight: 600;
  color: var(--po-ink-soft);
  letter-spacing: var(--po-ls-tight);
}

.mkt-h span {
  font-size: var(--po-fs-md);
  color: var(--po-muted);
}

.mkt-rows {
  display: flex;
  flex-direction: column;
}

.mkt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-3);
  width: 100%;
  padding: var(--po-sp-2) 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--po-line);
  cursor: pointer;
  text-align: left;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 500;
  color: var(--po-ink-2);
}

.mkt-row:hover {
  color: var(--po-brand-2);
}

.mkt-row i {
  font-style: normal;
  font-size: var(--po-fs-md);
  color: var(--po-muted);
  font-variant-numeric: tabular-nums;
}

.mkt-stats {
  display: flex;
  flex-direction: column;
  padding-top: var(--po-sp-3);
}

.mkt-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-3);
  padding: var(--po-sp-1) 0;
  font-size: var(--po-fs-md);
  color: var(--po-muted);
}

.mkt-stat b {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
  color: var(--po-ink-soft);
  font-variant-numeric: tabular-nums;
}

.mkt-go {
  margin-top: var(--po-sp-4);
  padding-top: var(--po-sp-3);
  border-top: 1px solid var(--po-line);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
}

/* "How it works" (Jason's option 4, 29 Sep, on the design board): the
   visitor picks what they are, their story plays in five steps as they
   scroll, and it ends in their links - which replaced the role panels.
   As the server writes it, every story shows in turn with its steps and
   links, which is the section without script. home.js adds .is-live to
   pin it and play the chosen story, or .is-still under reduced motion
   to show the chosen one without pinning or movement. Each kind of
   visitor has a colour, and the chosen one is --jr-accent */
.jr,
.jr-aud {
  --jr-broker: var(--po-aud-broker);
  --jr-buyer: var(--po-aud-buyer);
  --jr-seller: var(--po-aud-seller);
  --jr-ok: var(--po-ok);
  --jr-accent: var(--jr-broker);
}

.jr[data-aud="buyer"],
.jr-aud[data-aud="buyer"] {
  --jr-accent: var(--jr-buyer);
}

.jr[data-aud="seller"],
.jr-aud[data-aud="seller"] {
  --jr-accent: var(--jr-seller);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.jr-in {
  width: 100%;
}

.jr-who[hidden],
.jr-art[hidden] {
  display: none;
}

.jr-aud + .jr-aud {
  margin-top: var(--po-sp-12);
  padding-top: var(--po-sp-12);
  border-top: 1px solid var(--po-line);
}

.jr-h {
  max-width: 20ch;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--po-ls-tight);
  color: var(--po-ink-soft);
  transition: opacity 400ms, transform 600ms, visibility 0s;
}

.jr-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--po-sp-10);
  margin-top: var(--po-sp-8);
}

.jr-steps {
  display: flex;
  flex-direction: column;
  gap: var(--po-sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
  transition: opacity 400ms, transform 600ms, visibility 0s;
}

.jr-steps li {
  position: relative;
}

/* The line joins one step's circle to the next and never crosses one
   (Khoi, 29 Sep): a grey track, and over it the chosen colour, filled
   as far as the reader has come (--f, set by home.js) */
.jr-steps li:not(:last-child)::before,
.jr-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: -16px;
  left: 15px;
  width: 3px;
  border-radius: 2px;
  background: var(--po-line);
}

.jr-steps li:not(:last-child)::after {
  background: var(--jr-accent);
  transform: scaleY(var(--f, 0));
  transform-origin: top;
  transition: transform 150ms linear;
}

.jr-step {
  display: flex;
  gap: var(--po-sp-4);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.jr-step:disabled {
  cursor: default;
}

.jr-dot {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  box-sizing: border-box;
  border: 2px solid #cfd6dc;
  border-radius: 50%;
  background: #fff;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-md);
  font-weight: 700;
  color: var(--po-muted);
  transition: background-color 300ms, border-color 300ms, color 300ms;
}

.jr-dot svg {
  position: absolute;
  inset: 6px;
  width: 16px;
  height: 16px;
  color: var(--jr-accent);
  opacity: 0;
}

/* A finished step's circle is a SOLID tint, so the line behind it never
   shows through */
.jr-steps .is-done .jr-dot {
  border-color: var(--jr-accent);
  background: color-mix(in srgb, var(--jr-accent) 14%, #fff);
}

.jr-steps .is-done .jr-dot > span {
  opacity: 0;
}

.jr-steps .is-done .jr-dot svg {
  opacity: 1;
}

.jr-steps .is-on .jr-dot {
  border-color: var(--jr-accent);
  background: var(--jr-accent);
  color: #fff;
}

.jr-txt {
  display: flex;
  flex-direction: column;
}

.jr-lbl {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-2xl);
  font-weight: 600;
  line-height: 32px;
  color: var(--po-ink-soft);
  transition: color 300ms;
}

.jr-step:not(:disabled):hover .jr-lbl {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jr-cap {
  font-size: var(--po-fs-lg);
  line-height: 24px;
  color: var(--po-muted);
}

.jr-get-h {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-4xl);
  font-weight: 600;
  letter-spacing: var(--po-ls-tight);
  color: var(--po-ink-soft);
}

.jr-get-h b {
  font-weight: 600;
  color: var(--jr-accent);
}

.jr-links {
  margin: var(--po-sp-6) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--po-line);
}

.jr-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--po-sp-4);
  min-height: 44px;
  padding: var(--po-sp-3) var(--po-sp-1);
  border-bottom: 1px solid var(--po-line);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  font-weight: 600;
  color: var(--po-ink-soft);
}

.jr-links a:hover {
  color: var(--jr-accent);
  text-decoration: none;
}

.jr-links .arw,
.jr-more .arw {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--jr-accent);
}

.jr-more {
  display: inline-flex;
  align-items: center;
  gap: var(--po-sp-2);
  min-height: 44px;
  margin-top: var(--po-sp-4);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 700;
  color: var(--jr-accent);
}

/* "I'm a Broker / Buyer / Seller": each type's own colour when chosen */
.jr-who {
  display: flex;
  align-items: center;
  gap: var(--po-sp-3);
}

.jr-who-l {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 600;
  color: var(--po-ink-2);
}

.jr-tabs {
  display: flex;
  gap: var(--po-sp-1);
  padding: var(--po-sp-1);
  border: 1px solid var(--po-line);
  border-radius: 999px;
  background: var(--po-bg-3);
}

.jr-tabs button {
  height: 40px;
  padding: 0 var(--po-sp-5);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-base);
  font-weight: 600;
  color: var(--po-ink-2);
  cursor: pointer;
  transition: background-color 250ms, color 250ms;
}

.jr-tabs [aria-pressed="true"] {
  background: var(--jr-broker);
  color: #fff;
}

.jr-tabs [data-aud="buyer"][aria-pressed="true"] {
  background: var(--jr-buyer);
}

.jr-tabs [data-aud="seller"][aria-pressed="true"] {
  background: var(--jr-seller);
}

/* The picture: a 560 x 440 scene home.js scales to fit (--jr-k), with
   the back and forward arrows either side (Jason, 29 Sep) */
.jr-art {
  position: relative;
  transition: transform 700ms cubic-bezier(0.3, 1.1, 0.4, 1);
}

.jr-frame {
  position: relative;
  width: var(--jr-w, 560px);
  height: var(--jr-hh, 440px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: var(--po-tint-cool);
}

.jr-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 440px;
  transform: scale(var(--jr-k, 1));
  transform-origin: 0 0;
}

.jr-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.jr-prev,
.jr-next {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  box-sizing: border-box;
  border: 1px solid var(--po-line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px -8px rgba(30, 40, 50, 0.4);
  color: var(--jr-accent);
  cursor: pointer;
  transition: opacity 250ms;
}

.jr-prev svg,
.jr-next svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jr-prev {
  left: -22px;
}

.jr-next {
  right: -22px;
}

.jr-prev:disabled {
  opacity: 0.35;
  cursor: default;
}

.jr-next:disabled {
  opacity: 0;
  pointer-events: none;
}

/* The scenes. Every piece is placed at the top left and moved, faded
   and delayed by home.js for the step on show; these rules only draw
   it. The sizes are the design board's, in the scene's own pixels */
.jr-scene {
  position: absolute;
  inset: 0;
  display: none;
  font-family: var(--po-font-ui);
  color: var(--po-ink-soft);
}

.jr-scene.is-active {
  display: block;
}

.jr-scene > * {
  position: absolute;
  top: 0;
  left: 0;
}

.jr-scene [data-el] {
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.3, 1.2, 0.4, 1),
    opacity 450ms ease, background-color 300ms, color 300ms,
    width 600ms ease, stroke-dashoffset 900ms ease;
}

.jr-scene.is-jump [data-el] {
  transition: none;
}

.jr-scene .jr-val,
.jr-scene .jr-fill,
.jr-scene .jr-sig path {
  opacity: 1;
}

.jr-i {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jr-sk {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e6eaee;
}

.jr-doc,
.jr-listing,
.jr-loi,
.jr-mini,
.jr-prequal,
.jr-sign,
.jr-chat,
.jr-yours,
.jr-est,
.jr-bcard,
.jr-search,
.jr-nda,
.jr-round {
  box-sizing: border-box;
  border: 1px solid var(--po-line-2);
  background: #fff;
  box-shadow: 0 14px 30px -16px rgba(30, 40, 50, 0.4);
}

.jr-map {
  width: 560px;
  height: 440px;
}

/* A new listing's notice to the buyers whose saved search fits it (the
   broker's step 1): the in-app notice in the app's own words, its type
   a size up from the scene's, so it still reads scaled down on a phone */
.jr-alert {
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 480px;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid var(--po-line-2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px -16px rgba(30, 40, 50, 0.4);
}

.jr-alert-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--po-fs-md);
  font-weight: 700;
}

.jr-alert-h b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--jr-ok);
  font-size: var(--po-fs-xs);
  color: #fff;
}

.jr-alert-s {
  font-size: var(--po-fs-base);
  color: var(--po-muted);
}

.jr-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--jr-accent) 8%, #fff);
  font-size: var(--po-fs-lg);
  line-height: 1.35;
}

.jr-note .jr-av {
  flex: none;
}

/* The network the notice reaches, the picture's focal point (Khoi,
   6 Oct): the figure large in the broker's colour on a soft tint,
   "Matched from" above it and "qualified buyers" beside it */
.jr-alert-net {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--jr-accent) 12%, #fff);
}

.jr-alert-net small {
  grid-column: 1 / -1;
  font-size: var(--po-fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--po-muted);
}

.jr-alert-net b {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--jr-accent);
}

.jr-alert-net span {
  font-size: 20px;
  font-weight: 700;
  color: var(--po-ink-soft);
}

.jr-road,
.jr-park {
  position: absolute;
  background: #e3e9ee;
}

.jr-rh1,
.jr-rh2 {
  left: 0;
  width: 560px;
  height: 10px;
}

.jr-rh1 {
  top: 150px;
}

.jr-rh2 {
  top: 318px;
}

.jr-rv1,
.jr-rv2 {
  top: 0;
  width: 10px;
  height: 440px;
}

.jr-rv1 {
  left: 150px;
}

.jr-rv2 {
  left: 420px;
}

.jr-park {
  top: 176px;
  left: 446px;
  width: 90px;
  height: 120px;
  border-radius: 12px;
  background: #e4efe8;
}

.jr-doc {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 130px;
  height: 170px;
  padding: 14px 12px;
  border-radius: 10px;
}

.jr-doc > i:nth-of-type(2) {
  width: 80%;
}

.jr-doc > i:nth-of-type(3) {
  width: 92%;
}

.jr-doc > i:nth-of-type(4) {
  width: 60%;
}

.jr-doc > i:nth-of-type(5) {
  width: 85%;
}

/* Where a broker's listing starts - their website or a prospectus,
   either will do (Cannon, Khoi, 30 Sep): two smaller cards, one over
   the other, with "or" between them */
.jr-doc-s {
  gap: 6px;
  width: 120px;
  height: 100px;
  padding: 10px;
}

.jr-or {
  font-size: var(--po-fs-sm);
  font-weight: 700;
  color: var(--po-muted);
}

.jr-pdf {
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--po-warn);
  font-size: var(--po-fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

/* The website card: a browser window's three dots over the page */
.jr-web {
  display: flex;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--po-line);
}

.jr-web i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9e0e6;
}

.jr-doc-n {
  margin-top: auto;
  font-size: var(--po-fs-xs);
  font-weight: 600;
  color: var(--po-ink-2);
}

.jr-round {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: none;
  font-size: 18px;
  color: var(--jr-accent);
}

.jr-listing {
  z-index: 2;
  width: 200px;
  height: 230px;
  overflow: hidden;
  border-radius: 12px;
}

/* The listing's photo: a stock photo from Wes's prototype (Unsplash),
   the accent's tint showing only while it loads */
.jr-photo {
  position: relative;
  height: 96px;
  background: color-mix(in srgb, var(--jr-accent) 14%, #fff);
}

.jr-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jr-live,
.jr-conf {
  position: absolute;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: var(--po-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.jr-live {
  right: 8px;
  background: var(--jr-ok);
}

.jr-conf {
  left: 8px;
  background: var(--po-ink-soft);
}

.jr-stamp {
  position: absolute;
  top: 26px;
  left: 44px;
  padding: 4px 14px;
  border: 3px solid var(--po-plum);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--po-plum);
}

.jr-lbody {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
}

.jr-lt {
  font-size: var(--po-fs-md);
  font-weight: 700;
}

.jr-ls {
  margin-top: -5px;
  font-size: var(--po-fs-xs);
  color: var(--po-muted);
}

.jr-lbody > .jr-sk {
  width: 80%;
}

.jr-lbody > .jr-sk + .jr-sk {
  width: 64%;
}

.jr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jr-row .jr-sk {
  width: 54px;
}

.jr-row + .jr-row .jr-sk {
  width: 40px;
}

.jr-row + .jr-row + .jr-row .jr-sk {
  width: 62px;
}

.jr-val {
  display: block;
  width: 0;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--jr-accent) 55%, #fff);
}

.jr-open {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: var(--po-fs-xs);
  font-weight: 700;
  color: var(--jr-ok);
}

.jr-loi {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 160px;
  height: 110px;
  padding: 14px;
  border-radius: 12px;
}

.jr-loi .jr-sk:nth-last-of-type(2) {
  width: 76%;
}

.jr-loi .jr-sk:nth-last-of-type(1) {
  width: 88%;
}

.jr-loi-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--po-fs-md);
  font-weight: 700;
}

.jr-loi-h .jr-i {
  font-size: 16px;
  stroke-width: 2;
  color: var(--jr-buyer);
}

.jr-for-buyer {
  color: var(--jr-buyer);
}

.jr-for-broker {
  color: var(--jr-broker);
}

.jr-ring {
  position: absolute;
  inset: -2px;
  border: 3px solid var(--jr-accent);
  border-radius: 13px;
}

.jr-chosen,
.jr-badge {
  position: absolute;
  top: -13px;
  right: -12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--jr-accent);
  font-size: var(--po-fs-xs);
  font-weight: 700;
  color: #fff;
}

.jr-badge {
  background: var(--jr-broker);
}

.jr-av {
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border: 2px solid var(--jr-buyer);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px -6px rgba(30, 40, 50, 0.4);
  font-size: 18px;
  color: var(--jr-buyer);
}

.jr-av.is-on {
  background: var(--jr-buyer);
  color: #fff;
}

.jr-me {
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--jr-accent);
  box-shadow: 0 0 0 4px #fff, 0 8px 18px -8px rgba(30, 40, 50, 0.5);
  font-size: 24px;
  color: #fff;
}

.jr-me-ok {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--jr-ok);
  font-size: 10px;
}

.jr-nda {
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 140px;
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  box-shadow: 0 6px 16px -10px rgba(30, 40, 50, 0.4);
  font-size: var(--po-fs-md);
  font-weight: 700;
}

.jr-nda > .jr-i {
  font-size: 16px;
  stroke-width: 2;
}

.jr-ok {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--jr-ok);
  font-size: 12px;
  color: #fff;
}

.jr-ok .jr-i,
.jr-escrow .jr-i,
.jr-chosen .jr-i,
.jr-badge .jr-i,
.jr-me-ok .jr-i {
  stroke-width: 3;
}

.jr-escrow {
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 180px;
  height: 40px;
  border-radius: 999px;
  background: var(--jr-ok);
  box-shadow: 0 10px 20px -12px rgba(47, 122, 82, 0.8);
  font-size: var(--po-fs-base);
  font-weight: 700;
  color: #fff;
}

.jr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 452px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  box-shadow: 0 6px 16px -12px rgba(30, 40, 50, 0.35);
  font-size: var(--po-fs-md);
  font-weight: 600;
  color: var(--po-ink-2);
}

.jr-search .jr-i {
  font-size: 16px;
  color: var(--po-muted);
}

.jr-mini {
  width: 140px;
  height: 170px;
  border-radius: 12px;
  box-shadow: 0 10px 22px -14px rgba(30, 40, 50, 0.35);
}

.jr-mini-ph {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 11px 11px 0 0;
  background: #e6ecf1;
  object-fit: cover;
}

.jr-mini .jr-sk {
  width: 108px;
  margin: 0 12px 8px;
}

.jr-mini .jr-sk + .jr-sk {
  width: 72px;
}

.jr-mini .jr-sk + .jr-sk + .jr-sk {
  width: 90px;
}

.jr-prequal,
.jr-est {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 240px;
  height: 150px;
  padding: 16px;
  border-radius: 14px;
}

.jr-est {
  width: 260px;
  height: 190px;
  padding: 18px;
}

.jr-card-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--po-fs-md);
  font-weight: 700;
}

.jr-disc {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jr-accent) 14%, #fff);
  font-size: 18px;
  color: var(--jr-accent);
}

.jr-disc.jr-for-broker {
  background: color-mix(in srgb, var(--jr-broker) 14%, #fff);
  color: var(--jr-broker);
}

.jr-disc .jr-i {
  stroke-width: 2;
}

.jr-track {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 5px;
  background: #e6eaee;
}

.jr-range {
  height: 12px;
}

.jr-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--jr-accent);
}

.jr-range .jr-fill {
  position: absolute;
  top: 0;
  left: 62px;
}

.jr-fill.jr-soft {
  background: color-mix(in srgb, var(--jr-accent) 60%, #fff);
}

.jr-yes,
.jr-matched,
.jr-sent {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--po-fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.jr-yes {
  background: #e7f3ec;
  color: var(--jr-ok);
}

.jr-matched {
  margin-top: 4px;
  background: var(--jr-broker);
  color: #fff;
}

.jr-sent {
  margin-top: 2px;
  background: color-mix(in srgb, var(--jr-buyer) 14%, #fff);
  color: var(--jr-buyer);
}

.jr-sign,
.jr-yours {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 190px;
  height: 130px;
  padding: 14px;
  border-radius: 12px;
}

.jr-yours {
  width: 200px;
  height: 120px;
}

.jr-sign .jr-sk + .jr-sk,
.jr-yours .jr-sk + .jr-sk {
  width: 64%;
}

.jr-sig {
  position: relative;
  display: block;
  height: 30px;
  border-bottom: 1.5px solid #cfd6dc;
}

.jr-sig svg {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 110px;
  height: 28px;
  fill: none;
  stroke: var(--jr-buyer);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.jr-sig path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.jr-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  height: 62px;
  padding: 0 14px;
  border-radius: 14px 14px 14px 4px;
}

.jr-chat-t {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  font-size: var(--po-fs-sm);
}

/* The seller's estimate leads with the take-home, the price behind it
   quieter (Cannon, 30 Sep) */
.jr-est-l {
  margin-bottom: -6px;
  font-size: var(--po-fs-sm);
  font-weight: 600;
  color: var(--po-muted);
}

.jr-est-k {
  font-weight: 700;
  color: var(--po-ink-soft);
}

.jr-keep {
  height: 14px;
  border-radius: 7px;
}

.jr-scene > .jr-link {
  top: 219px;
  left: 80px;
  width: 40px;
  height: 0;
  border-top: 2px dashed #c5ced6;
}

.jr-bcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 170px;
  height: 100px;
  padding: 14px;
  border-radius: 12px;
}

.jr-bc-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--po-fs-xs);
  font-weight: 400;
  color: var(--po-muted);
}

.jr-bc-t b {
  font-size: var(--po-fs-md);
  font-weight: 700;
  color: var(--po-ink-soft);
}

/* Live: pinned under the header while the reader scrolls through the
   story, the chosen story alone, one step's line at a time. At the end
   the steps make way, the picture slides left, and "Get started as a"
   drops in on the right (Jason, 29 Sep) */
.jr.is-live {
  padding: 0;
}

/* The pinned story is only as tall as it is: it arrives a section's gap
   below the hero, then pins centred in the height under the header
   (--jr-stick, set by home.js). A pin the full height of the screen with
   the story centred in it left a band of white under the hero on a tall
   screen (Jason, 30 Sep) */
.jr.is-live .jr-pin {
  position: sticky;
  top: var(--jr-stick, var(--jr-top, 71px));
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  padding: var(--po-sp-12) 0;
  overflow: hidden;
}

.jr.is-live .jr-aud,
.jr.is-still .jr-aud {
  display: none;
}

.jr.is-live .jr-aud.is-active,
.jr.is-still .jr-aud.is-active {
  display: block;
}

.jr.is-live .jr-aud + .jr-aud,
.jr.is-still .jr-aud + .jr-aud {
  margin: 0;
  padding: 0;
  border: 0;
}

/* The words take 440px and the picture the rest, so on a wide screen
   the picture grows to fill the height rather than leaving white above
   and below the story (Khoi, 30 Sep) */
.jr.is-live .jr-body,
.jr.is-still .jr-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: var(--po-sp-12);
  align-items: center;
  margin-top: var(--po-sp-6);
}

.jr.is-live .jr-nav {
  display: block;
}

.jr.is-live .jr-steps .jr-lbl {
  color: var(--po-muted);
}

.jr.is-live .jr-steps .is-done .jr-lbl {
  color: var(--po-ink-2);
}

.jr.is-live .jr-steps .is-on .jr-lbl {
  color: var(--po-ink-soft);
}

.jr.is-live .jr-cap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 350ms, opacity 300ms;
}

.jr.is-live .is-on .jr-cap {
  max-height: 48px;
  opacity: 1;
}

.jr.is-live .jr-get {
  position: absolute;
  top: 50%;
  right: 0;
  width: var(--jr-get-w, 520px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(-50% - 24px));
  transition: opacity 450ms, transform 600ms cubic-bezier(0.3, 1.3, 0.4, 1),
    visibility 0s 450ms;
}

.jr.is-live.is-end .jr-get {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%);
  transition-delay: 300ms, 300ms, 0s;
}

.jr.is-live.is-end .jr-h,
.jr.is-live.is-end .jr-steps {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-40px);
  transition-delay: 0s, 0s, 400ms;
}

.jr.is-live.is-end .jr-art {
  transform: translateX(calc(-1 * var(--jr-shift, 0px)));
}

/* Still (reduced motion): the chosen story, every line shown, its links
   under it and the picture beside it, changed by the controls alone */
.jr.is-still .jr-body {
  align-items: start;
}

.jr.is-still .jr-nav {
  grid-template-columns: minmax(0, 1fr);
}

.jr.is-still .jr-art,
.jr.is-still .jr-scene [data-el] {
  transition: none;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--po-sp-6);
}

.quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--po-line);
  border-radius: 12px;
  padding: var(--po-sp-6);
  display: flex;
  flex-direction: column;
}

.quote p {
  margin: 0;
  font-size: var(--po-fs-lg);
  line-height: 1.7;
  color: var(--po-body);
}

/* The attribution leads, as Wes's prototype sets it: the doctor's
   headshot in a faint plum ring, their name, and beneath it the side
   of the sale they were on */
.quote cite {
  display: flex;
  align-items: center;
  gap: var(--po-sp-3);
  margin-bottom: var(--po-sp-4);
  padding-bottom: var(--po-sp-4);
  border-bottom: 1px solid var(--po-line);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-style: normal;
  font-weight: 600;
  color: var(--po-ink-soft);
}

.quote cite img {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(130, 72, 124, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--po-line-2);
  object-fit: cover;
}

.quote cite small {
  display: block;
  font-size: var(--po-fs-md);
  font-weight: 400;
  color: var(--po-muted);
}

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

@media (max-width: 1040px) {
  .hero-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--po-sp-6);
  }
  .hero-l {
    padding-top: 0;
  }
  /* 300px, not 240: a slide's panel runs to about 270px with five
     figures and a logo, and a shorter frame cut its top off */
  .car {
    height: clamp(300px, 44vw, 340px);
  }
  .mapsec {
    grid-template-columns: 1fr;
  }
  .snap-in {
    gap: var(--po-sp-4);
  }
  /* "How it works" below the two-column width, as the design board's
     phone: the heading, the picture, then a row of step dots with the
     one step's line under them, which "Get started" replaces at the
     end. display: contents lets the heading and the steps, which sit in
     the story's markup, take their places either side of the picture */
  .jr.is-live .jr-pin {
    padding: var(--po-sp-6) 0;
  }
  .jr.is-live .jr-body {
    display: flex;
    flex-direction: column;
    gap: var(--po-sp-4);
    align-items: stretch;
    margin-top: var(--po-sp-4);
  }
  .jr.is-live .jr-copy,
  .jr.is-live .jr-aud.is-active {
    display: contents;
  }
  .jr.is-live .jr-h {
    order: 1;
    font-size: var(--po-fs-4xl);
  }
  .jr.is-live .jr-art {
    order: 2;
    align-self: center;
  }
  .jr.is-live .jr-nav {
    position: relative;
    order: 3;
    height: 216px;
    margin: 0;
  }
  .jr.is-live .jr-steps {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
  .jr.is-live .jr-steps::before,
  .jr.is-live .jr-steps::after {
    content: "";
    position: absolute;
    top: 21px;
    right: 22px;
    left: 22px;
    height: 2px;
    background: var(--po-line);
  }
  .jr.is-live .jr-steps::after {
    background: var(--jr-accent);
    transform: scaleX(var(--jr-prog, 0));
    transform-origin: left;
    transition: transform 150ms linear;
  }
  .jr.is-live .jr-steps li {
    position: static;
  }
  .jr.is-live .jr-steps li::before,
  .jr.is-live .jr-steps li::after {
    display: none;
  }
  .jr.is-live .jr-step {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  .jr.is-live .jr-dot {
    z-index: 1;
    flex: 0 0 24px;
    height: 24px;
    font-size: var(--po-fs-xs);
  }
  .jr.is-live .jr-dot svg {
    inset: 4px;
    width: 12px;
    height: 12px;
  }
  .jr.is-live .jr-txt {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 300ms, transform 400ms;
  }
  .jr.is-live .is-on .jr-txt {
    opacity: 1;
    transform: none;
  }
  .jr.is-live .jr-lbl {
    line-height: 1.3;
  }
  .jr.is-live .jr-cap {
    max-height: none;
    font-size: var(--po-fs-base);
    line-height: 1.45;
    opacity: 1;
  }
  .jr.is-live .jr-get {
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    transform: translateY(-20px);
  }
  .jr.is-live.is-end .jr-get {
    transform: none;
  }
  .jr.is-live.is-end .jr-h {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .jr.is-live.is-end .jr-art {
    transform: none;
  }
  .jr.is-live .jr-get-h {
    font-size: var(--po-fs-2xl);
  }
  .jr.is-live .jr-links {
    margin-top: var(--po-sp-2);
  }
  .jr.is-live .jr-links a {
    padding: 0;
    font-size: var(--po-fs-base);
  }
  .jr.is-live .jr-more {
    margin-top: var(--po-sp-1);
    font-size: var(--po-fs-base);
  }
  .jr.is-still .jr-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .jr-prev {
    left: 6px;
  }
  .jr-next {
    right: 6px;
  }
  /* Here the arrows sit over the picture, so a spent one goes rather
     than fading over what is drawn beneath it */
  .jr-prev:disabled {
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .sec {
    padding: var(--po-sp-10) 0;
  }
  .jr-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .jr-tabs {
    flex: 1;
  }
  .jr-tabs button {
    flex: 1;
    padding: 0 var(--po-sp-2);
  }
  .stats {
    gap: var(--po-sp-2);
  }
  .stat {
    padding: var(--po-sp-3);
  }
  /* The brokerage strip: the label and "View all" share the top line,
     the logos a full-width row of their own under it. Squeezed between
     the two, the logos stood one above the next (Khoi, 2 Oct) */
  .from-in {
    justify-content: space-between;
    gap: var(--po-sp-4) var(--po-sp-6);
  }
  .from-logos {
    order: 1;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  }
  .from-logos .firm {
    width: auto;
    height: 60px;
  }
}

/* On a phone a row is swiped, not clicked through (design review G13):
   one card fills most of the width so the next peeks in, and a touch
   screen gets no arrow buttons to aim at */
@media (hover: none) and (pointer: coarse) {
  .row-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  /* A size down, so the longer line (Preston, 2 Oct) leaves the search
     in view on a small phone */
  .hero-sub {
    font-size: var(--po-fs-lg);
  }
  .row .card {
    flex-basis: 82vw;
  }
  /* On a phone the figures take their own line under the picker, two
     equal columns whose labels wrap. auto-fit counted columns by their
     128px minimum and then grew each to its label, which pushed the
     second column past a 360px screen */
  .snap-grid {
    flex-basis: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--po-sp-3) var(--po-sp-4);
  }
  /* On a phone a featured slide reads as a listing card does: the
     photo, then the panel under it on white. Laid over the photo, the
     panel covered all of it and its top was cut off (Khoi's phone,
     2 Oct). The slides share one grid cell, so the frame takes the
     tallest one's height and the fade between them stays; a shorter
     slide's panel stretches to it, its bars at the foot, so they never
     jump as the slides change */
  .car {
    display: grid;
    height: auto;
  }
  .slide {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
  }
  .slide > img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 11;
  }
  .spanel {
    position: static;
    width: auto;
    background: #fff;
    backdrop-filter: none;
    border: 0;
    border-top: 1px solid var(--po-line);
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .sp-bars {
    margin-top: auto;
  }
}


/* The area line under the snapshot's heading, and its picker */
/* Each brokerage's name appears in a tooltip over its logo, on hover
   or keyboard focus - the same dark label the map uses */
.firm {
  position: relative;
  display: flex;
}

.firm-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  padding: var(--po-sp-1) var(--po-sp-2);
  border-radius: 5px;
  background: rgba(59, 68, 76, 0.94);
  color: #fff;
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms;
}

.firm:hover .firm-tip,
.firm:focus-visible .firm-tip {
  opacity: 1;
}

.row-empty {
  font-size: var(--po-fs-base);
  color: var(--po-muted);
}
