/* The "Get Property Location Scorecard" popup on the map, and the report page itself (src/report.js). */
:root {
  --r-forest: #1d4636; --r-forest-2: #2d6a52; --r-cream: #f6f2e8; --r-paper: #fffdf8;
  --r-ink: #1f2522; --r-ink-2: #4d5752; --r-ink-3: #7a847f; --r-line: #e4dfd2; --r-accent: #d9822b;
}

/* ---------- The small popup above the address dot ---------- */
.addr-report {
  position: relative; margin-top: 5px; padding: 6px 11px; border: 0; border-radius: 10px; cursor: pointer; pointer-events: auto;
  background: var(--r-paper); color: var(--r-forest); font: 800 12.5px/1.2 Figtree, system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 37, 28, .3); animation: rm-pop .3s ease;
}
.addr-report::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--r-paper); transform: rotate(45deg); border-radius: 2px; }
.addr-report:hover { background: #fff; color: var(--r-forest-2); }
.addr-report:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.addr-report[hidden] { display: none; }
.addr-pin:has(.addr-report:not([hidden])) .addr-pin-dot { margin-top: 9px; }
@keyframes rm-pop { from { opacity: 0; transform: translateY(5px) scale(.96); } }

.rm-pop {
  position: fixed; z-index: 1000; width: min(310px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 14px;
  background: var(--r-paper); color: var(--r-ink); border-radius: 14px; font: 500 14px/1.35 Figtree, system-ui, sans-serif;
  box-shadow: 0 14px 40px rgba(16, 37, 28, .28), 0 2px 6px rgba(16, 37, 28, .12);
}
.rm-pop-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.rm-pop-head strong { display: block; color: var(--r-forest); font-size: 15px; font-weight: 800; }
.rm-pop-head small { display: block; color: var(--r-ink-2); font-size: 12.5px; overflow-wrap: anywhere; }
.rm-x { flex: none; width: 32px; height: 32px; margin: -6px -6px 0 0; border: 0; border-radius: 8px; background: none; color: var(--r-ink-2); font-size: 21px; line-height: 1; cursor: pointer; }
.rm-x:hover { background: var(--r-cream); }

/* ---------- The buttons, in the popup and on the report page ---------- */
.rm-main { display: grid; gap: 7px; }
.rm-btn {
  display: block; padding: 10px 13px; border: 1px solid var(--r-line); border-radius: 10px; background: #fff; color: var(--r-forest);
  font: 700 14px/1.2 Figtree, system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer;
}
.rm-btn:hover { border-color: var(--r-forest-2); }
.rm-primary { background: var(--r-forest); border-color: var(--r-forest); color: #fff; }
.rm-primary:hover { background: var(--r-forest-2); }
.rm-btn:disabled { opacity: .6; cursor: default; }
.rm-email { margin-top: 10px; }
.rm-email[hidden] { display: none; }
.rm-email label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--r-ink-2); }
.rm-email-row { display: flex; gap: 6px; }
.rm-email input[type=email] { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--r-line); border-radius: 10px; background: #fff; color: var(--r-ink); font: 500 16px Figtree, system-ui, sans-serif; }
.rm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rm-status { margin: 6px 0 0; font-size: 13px; color: var(--r-ink-2); }
.rm-status:empty { display: none; }
.rm-status[data-state=ok] { color: #0f6e4c; font-weight: 700; }
.rm-status[data-state=error] { color: #b5352a; font-weight: 700; }
.rm-share-head { margin: 12px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--r-ink-3); }
.rm-share { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-chip { padding: 7px 10px; border: 1px solid var(--r-line); border-radius: 999px; background: #fff; color: var(--r-forest); font: 700 12.5px/1.2 Figtree, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.rm-chip:hover { border-color: var(--r-forest-2); }

/* ---------- The report page ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.rp-body { margin: 0; background: #fbfbf8; color: var(--r-ink); font: 400 17px/1.55 Figtree, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.rp-body h1, .rp-body h2, .rp-body h3 { text-wrap: balance; }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px clamp(16px, 4vw, 40px); background: var(--r-forest); }
.rp-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; }
.rp-brand span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--r-cream); color: var(--r-forest); font-weight: 900; }
.rp-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.rp-nav a { padding: 6px 11px; border-radius: 8px; color: #dfeae4; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rp-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.rp-save { flex: none; min-height: 40px; padding: 8px 15px; border: 0; border-radius: 10px; background: #fff; color: var(--r-forest); font: 800 14px Figtree, system-ui, sans-serif; cursor: pointer; }
.rp-save:hover { background: var(--r-cream); }
@media (max-width: 960px) { .rp-nav { display: none; } .rp-save { margin-left: auto; } }

/* The hero: the brand's forest, with the score as the one bright thing in it. */
.rp-hero { background: var(--r-forest); color: #fff; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px) 0; }
.rp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 5vw, 72px); align-items: start; max-width: 1120px; margin: 0 auto; }
.rp-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 16px; color: #bcd5c9; font-size: 14px; font-weight: 600; }
.rp-reportname { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 999px; background: var(--r-cream); color: var(--r-forest); font-size: clamp(14px, 1.6vw, 16px); font-weight: 800; }
.rp-ico { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-hero h1 { margin: 0; font-size: clamp(38px, 7vw, 76px); line-height: 1.02; font-weight: 900; letter-spacing: -.025em; overflow-wrap: anywhere; }
.rp-where { margin: 12px 0 0; color: #dfeae4; font-size: clamp(17px, 2vw, 21px); font-weight: 600; }
.rp-lead { max-width: 58ch; margin: clamp(20px, 3vw, 32px) 0 0; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.38; font-weight: 500; text-wrap: pretty; }
.rp-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px 24px; margin: clamp(20px, 3vw, 30px) 0 0; padding: 0; list-style: none; }
.rp-perks li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.rp-perk-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); color: #ffd28a; font-size: 19px; }
.rp-perks strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; }
.rp-perks div > span { display: block; margin-top: 1px; color: #dfeae4; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.rp-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: #dfeae4; font-size: 14.5px; }
.rp-facts li { display: inline-flex; align-items: center; gap: 7px; }
.rp-facts .rp-ico { color: #ffd28a; }
.rp-scorebox { display: grid; gap: 14px; justify-items: center; text-align: center; }
.rp-ring { position: relative; width: 196px; height: 196px; }
.rp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rp-ring circle { fill: none; stroke-width: 11; }
.rp-ring-bg { stroke: rgba(255,255,255,.14); }
.rp-ring-fg { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.22,1,.36,1), stroke .4s; }
.rp-ring > div { position: absolute; inset: 0; display: grid; place-content: center; }
.rp-ring strong { font-size: 68px; line-height: 1; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rp-ring small { color: #dfeae4; font-size: 13px; font-weight: 600; }
.rp-score-line { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.rp-picker { width: 100%; }
.rp-picker > span { display: block; margin-bottom: 6px; color: #bcd5c9; font-size: 13px; font-weight: 600; }
.rp-picker > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.rp-picker button { min-height: 40px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: none; color: #fff; font: 700 14px Figtree, system-ui, sans-serif; cursor: pointer; }
.rp-picker button:hover { background: rgba(255,255,255,.1); }
.rp-picker button[aria-pressed=true] { background: #fff; border-color: #fff; color: var(--r-forest); }
.rp-glance { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: 1120px; margin: clamp(26px, 4vw, 44px) auto 0; padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,.18); }
.rp-glance span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #fff; }
.rp-glance .rp-grade { width: 24px; height: 24px; border-radius: 6px; font-size: 13px; }

.rp { box-sizing: border-box; max-width: calc(1120px + 2 * clamp(16px, 4vw, 40px)); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 64px; }
.rp-sec { max-width: 760px; margin-top: clamp(48px, 7vw, 84px); }
.rp-wide { max-width: none; }
.rp-sec h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; font-weight: 900; letter-spacing: -.02em; color: var(--r-forest); }
.rp-sec h3 { font-weight: 800; }
.rp-intro { margin: 0 0 20px; max-width: 65ch; color: var(--r-ink-2); text-wrap: pretty; }
.rp-grade { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--c); color: var(--i); font-size: 20px; font-weight: 900; }

/* What stands out: one big reason, then the rest. */
.rp-feature { display: flex; gap: clamp(16px, 3vw, 28px); align-items: center; padding: clamp(18px, 3vw, 28px); margin-bottom: 8px; border-radius: 18px; background: color-mix(in srgb, var(--c) 13%, white); }
.rp-feature > b { flex: none; display: grid; place-items: center; width: clamp(68px, 11vw, 96px); aspect-ratio: 1; border-radius: 20px; background: var(--c); color: var(--i); font-size: clamp(38px, 6vw, 56px); font-weight: 900; }
.rp-feature h3 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 30px); line-height: 1.12; color: var(--r-forest); }
.rp-feature p { margin: 0; font-size: 17px; }
.rp-feature .rp-feature-more { margin-top: 3px; font-size: 15px; color: var(--r-ink-2); }
.rp-sub-h { margin: 28px 0 4px; font-size: 19px; color: var(--r-forest); }
.rp-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); column-gap: 48px; align-items: start; }
.rp-row { border-bottom: 1px solid var(--r-line); }
.rp-row summary { display: flex; gap: 14px; align-items: center; min-height: 44px; padding: 12px 0; cursor: pointer; list-style: none; }
.rp-row summary::-webkit-details-marker { display: none; }
.rp-row-main { flex: 1; min-width: 0; }
.rp-row-main strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.rp-row-main span { display: block; font-size: 15px; color: var(--r-ink-2); overflow-wrap: anywhere; }
.rp-chev { flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--r-ink-3); border-bottom: 2px solid var(--r-ink-3); transform: rotate(45deg); transition: transform .2s ease-out; }
.rp-row[open] .rp-chev { transform: rotate(-135deg); }
.rp-row-more { padding: 0 0 16px 52px; font-size: 15px; color: var(--r-ink-2); }
.rp-row-more p { margin: 0 0 10px; }
.rp-how { font-size: 14px; }
.rp-meter { display: grid; gap: 6px; margin-bottom: 12px; }
.rp-meter-line { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 30px; gap: 10px; align-items: center; font-size: 14px; }
.rp-meter-line i { position: relative; display: block; height: 9px; border-radius: 5px; background: #ecebe4; overflow: hidden; }
.rp-meter-line i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 5px; background: var(--c); }
.rp-meter-line b { text-align: right; color: var(--r-ink); font-variant-numeric: tabular-nums; }
.rp-note-line { margin: 18px 0 0; font-size: 15.5px; color: var(--r-ink-2); }

/* Maps */
.rp-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: end; margin-bottom: 18px; }
.rp-head-row h2 { margin: 0; }
.rp-head-row p { margin: 0; color: var(--r-ink-2); text-wrap: pretty; }
.rp-lenses, .rp-poifilter { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.rp-lenses button { flex: none; min-height: 40px; padding: 7px 13px; border: 1px solid var(--r-line); border-radius: 999px; background: #fff; color: var(--r-forest); font: 700 14px Figtree, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.rp-lenses button:hover { border-color: var(--r-forest-2); }
.rp-lenses button[aria-pressed=true] { background: var(--r-forest); border-color: var(--r-forest); color: #fff; }
.rp-poifilter button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 11px; border: 1.5px solid var(--c); border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, white); color: var(--r-ink); font: 700 13.5px Figtree, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.rp-poifilter button small { font-size: 12.5px; font-weight: 600; color: var(--r-ink-2); }
.rp-poifilter button[aria-pressed=false] { border-color: var(--r-line); background: #fff; color: var(--r-ink-3); }
.rp-poifilter button[aria-pressed=false] span { filter: grayscale(1); opacity: .5; }
.rp-mapwrap { position: relative; min-width: 0; }
.rp-map { height: clamp(380px, 58vh, 600px); border-radius: 18px; overflow: hidden; background: #e9e8e1; }
.rp-map-tall { height: clamp(440px, 72vh, 720px); }
.rp-map-failed .rp-map { display: grid; place-items: center; }
.rp-map-failed .rp-map::before { content: 'The map could not load here. The PDF has both maps.'; color: var(--r-ink-2); font-size: 15px; }
.rp-legend { position: absolute; left: 12px; top: 12px; display: flex; gap: 3px; padding: 5px; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(16,37,28,.18); }
.rp-legend b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--c); color: var(--i); font-size: 13px; font-weight: 800; }
.rp-caption { margin: 8px 0 0; font-size: 14px; color: var(--r-ink-2); }
.rp-streetgrid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; }
.rp-poilist { max-height: clamp(440px, 72vh, 720px); overflow-y: auto; padding-right: 6px; }
.rp-poigroup[hidden] { display: none; }
.rp-poigroup h3 { position: sticky; top: 0; z-index: 1; display: flex; gap: 7px; margin: 0; padding: 9px 0 6px; background: #fbfbf8; color: var(--c); font-size: 15.5px; }
.rp-poigroup ul { margin: 0 0 8px; padding: 0; list-style: none; }
.rp-poigroup button { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--r-ink); font: 600 14.5px/1.25 Figtree, system-ui, sans-serif; text-align: left; cursor: pointer; }
.rp-poigroup button:hover, .rp-poigroup button.on { background: #eef1ea; }
.rp-poigroup small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--r-ink-2); }
.rp-poi-name { min-width: 0; overflow-wrap: anywhere; }
.rp-poi-dist { flex: none; text-align: right; font-weight: 800; }
.rp-poi { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--c); font-size: 14px; line-height: 1; cursor: pointer; box-shadow: 0 2px 7px rgba(16,37,28,.4); }
.rp-poi > span { transition: transform .15s ease-out; }
.rp-poi:hover > span, .rp-poi.hl > span, .rp-poi.on > span { transform: scale(1.3); }
.rp-poi.hl, .rp-poi.on { z-index: 3; outline: 3px solid #10251c; }
.rp-poi.off { display: none; }
.rp-pins-small .rp-poi { width: 15px; height: 15px; border-width: 1.5px; }
.rp-pins-small .rp-poi > span { display: none; }
.rp-pin { display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 4; }
.rp-pin span { padding: 5px 10px; border-radius: 999px; background: var(--r-forest); color: #fff; font: 700 12.5px Figtree, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 4px 12px rgba(16,37,28,.35); }
.rp-pin i { width: 18px; height: 18px; margin-top: 5px; border: 3.5px solid #fff; border-radius: 50%; background: var(--r-accent); box-shadow: 0 2px 8px rgba(16,37,28,.5); }
.rp-map .maplibregl-popup { z-index: 5; }
.rp-pop .maplibregl-popup-content { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font: 500 14px/1.3 Figtree, system-ui, sans-serif; color: var(--r-ink); box-shadow: 0 8px 26px rgba(16,37,28,.26); }
.rp-pop strong { display: block; font-weight: 800; }
.rp-pop small { display: block; margin-top: 2px; font-size: 13px; color: var(--r-ink-2); }
.rp-pop .rp-grade { width: 32px; height: 32px; font-size: 17px; }
.rp-pop-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); }

/* The outdoors nearby */
.rp-photos { display: grid; gap: 10px; margin: 0 0 22px; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.1; }
.rp-photos[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.rp-photos[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: 3; }
.rp-photos figure { position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: 16px; background: #e4e6df; }
.rp-photos[data-count="3"] figure:first-child { grid-row: 1 / span 2; }
.rp-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-photos figcaption { position: absolute; inset: auto 0 0; padding: 40px 14px 10px; background: linear-gradient(transparent, rgba(10, 24, 18, .78)); color: #fff; }
.rp-photos strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.rp-photos figure:first-child strong { font-size: clamp(17px, 2.2vw, 24px); }
.rp-photos span { display: block; font-size: 14px; }
.rp-photos small { display: block; margin-top: 3px; font-size: 11.5px; opacity: .88; }
.rp-photos a { color: inherit; }
@media (max-width: 700px) {
  .rp-photos, .rp-photos[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
  .rp-photos figure { aspect-ratio: 4 / 3; }
  .rp-photos figure:first-child, .rp-photos[data-count="3"] figure:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .rp-photos[data-count="2"] figure { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .rp-photos figcaption { padding: 34px 10px 8px; }
  .rp-photos small { font-size: 10.5px; }
}
.rp-outdoors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); column-gap: 48px; }
.rp-outdoors h3 { margin-top: 10px; }
.rp-outdoors ul { margin: 0; padding: 0; list-style: none; }
.rp-outdoors li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--r-line); }
.rp-outdoors strong { display: block; font-weight: 800; }
.rp-outdoors small { display: block; font-size: 14px; color: var(--r-ink-2); }

/* Schools, people */
.rp-schools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.rp-schools li { padding: 12px 0; border-bottom: 1px solid var(--r-line); }
.rp-schools strong { display: block; font-weight: 800; }
.rp-schools small { font-size: 14px; color: var(--r-ink-2); }
.rp-schools p { margin: 2px 0 0; font-size: 15px; color: var(--r-ink-2); }
.rp-scroll { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rp-table th, .rp-table td { padding: 9px 10px; border-bottom: 1px solid var(--r-line); text-align: right; }
.rp-table tbody th { padding-left: 0; text-align: left; font-weight: 500; }
.rp-table thead th { font-weight: 800; color: var(--r-forest); white-space: nowrap; }
.rp-table td { min-width: 76px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-mini { position: relative; display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #ecebe4; overflow: hidden; }
.rp-mini::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--r-forest-2); }

/* People & homes: the dollar figures first, then one whole split into parts for each place compared. */
.rp-moneys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.rp-money, .rp-chart { min-width: 0; padding: 18px; border: 1px solid var(--r-line); border-radius: 16px; background: #fff; }
.rp-money h4, .rp-chart h4 { margin: 0; font-size: 15px; font-weight: 800; color: var(--r-forest); }
.rp-money > strong { display: block; margin-top: 2px; font-size: clamp(32px, 3.4vw, 40px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.rp-money-vs { margin: 2px 0 12px; font-size: 14px; font-weight: 700; color: var(--r-ink-2); }
.rp-money-rows { display: grid; gap: 8px; }
.rp-money-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; font-size: 13px; line-height: 1.25; }
.rp-money-row span { color: var(--r-ink-2); overflow-wrap: anywhere; }
.rp-money-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-money-row i { grid-column: 1 / -1; display: block; width: var(--w); min-width: 0; height: 8px; border-radius: 0 4px 4px 0; background: #b9bdb3; }
.rp-money-row[data-n="0"] i { background: var(--r-forest); }
.rp-money-row[data-n="1"] i { background: #5f9c84; }
.rp-money small { display: block; margin-top: 12px; font-size: 12.5px; line-height: 1.3; color: var(--r-ink-3); }
.rp-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 10px; }
.rp-chart > p { margin: 3px 0 0; font-size: 14px; line-height: 1.35; color: var(--r-ink-2); text-wrap: pretty; }
.rp-key { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 10px 0 10px; padding: 0; list-style: none; font-size: 12.5px; color: var(--r-ink-2); }
.rp-key li { display: inline-flex; align-items: center; gap: 5px; }
.rp-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.rp-split-row { margin-top: 8px; }
.rp-split-row > span { display: block; margin-bottom: 2px; font-size: 13px; line-height: 1.25; color: var(--r-ink-2); }
.rp-split-row.is-local > span { font-weight: 800; color: var(--r-ink); }
.rp-split { display: flex; gap: 2px; height: 26px; }
.rp-split i { flex: var(--w) 1 0; min-width: 2px; display: flex; align-items: center; padding-left: 6px; box-sizing: border-box; overflow: hidden; border-radius: 4px; background: var(--c); color: var(--i); font-size: 12.5px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.rp-alldata { margin-top: 18px; }
.rp-alldata summary { display: inline-block; padding: 9px 14px; border: 1px solid var(--r-line); border-radius: 10px; background: #fff; color: var(--r-forest); font-size: 14.5px; font-weight: 800; cursor: pointer; list-style: none; }
.rp-alldata summary::-webkit-details-marker { display: none; }
.rp-alldata summary:hover { border-color: var(--r-forest-2); }
.rp-alldata[open] summary { margin-bottom: 10px; }
@media (max-width: 560px) {
  .rp-moneys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rp-money { padding: 13px; }
  .rp-money > strong { font-size: 25px; }
  .rp-money-vs { font-size: 13px; }
  .rp-money-row { font-size: 12.5px; }
}
.rp-tip { position: fixed; z-index: 30; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: var(--r-ink); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; pointer-events: none; box-shadow: 0 4px 14px rgba(16,37,28,.3); }
.rp-tip[hidden] { display: none; }

/* Things to consider: a calm, tinted change of room near the end of the report. */
.rp-consider { max-width: none; padding: clamp(24px, 4vw, 44px); border-radius: 22px; background: #eef1ea; }
.rp-consider-note { margin: -6px 0 24px; max-width: 65ch; font-weight: 700; color: var(--r-forest); text-wrap: pretty; }
.rp-consider-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(26px, 3vw, 40px) clamp(24px, 4vw, 52px); }
.rp-consider article header { display: flex; gap: 13px; align-items: flex-start; }
.rp-consider h3 { margin: 0; font-size: 21px; line-height: 1.18; color: var(--r-forest); }
.rp-consider header p { margin: 3px 0 0; font-size: 15px; color: var(--r-ink-2); overflow-wrap: anywhere; }
.rp-consider dl { margin: 14px 0 0; display: grid; gap: 9px; }
.rp-consider dt { font-size: 14px; font-weight: 800; color: var(--r-forest); }
.rp-consider dd { margin: 0; font-size: 15.5px; }
.rp-trade { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: #0f6e4c; }
.rp-consider-small { margin: 10px 0 0; font-size: 13.5px; color: var(--r-ink-2); }
.rp-clear { margin: 0; font-size: 18px; font-weight: 700; color: #0f6e4c; }
.rp-actions { padding: 16px; background: #fff; border: 1px solid var(--r-line); border-radius: 14px; }
.rp-actions .rm-main { grid-template-columns: 1fr 1fr; }
.rp-foot h2 { font-size: 22px; }
.rp-notes { margin: 0; padding: 0; list-style: none; }
.rp-notes li { margin-bottom: 7px; font-size: 14.5px; color: var(--r-ink-2); max-width: 75ch; }
.rp-attr { margin: 14px 0 0; font-size: 13px; color: var(--r-ink-2); max-width: 85ch; }

@media (max-width: 860px) {
  .rp-hero-in { grid-template-columns: minmax(0, 1fr); }
  .rp-scorebox { grid-template-columns: 136px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .rp-ring { width: 136px; height: 136px; }
  .rp-ring strong { font-size: 46px; }
  .rp-ring small { font-size: 11.5px; }
  .rp-picker { grid-column: 1 / -1; }
  .rp-picker > div { grid-template-columns: repeat(4, 1fr); }
  .rp-picker button { padding: 6px 2px; font-size: 13px; }
  .rp-head-row { grid-template-columns: minmax(0, 1fr); }
  .rp-streetgrid { grid-template-columns: minmax(0, 1fr); }
  .rp-poilist { max-height: none; overflow: visible; }
  .rp-row-more { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rp-ring-fg, .rp-chev { transition: none; } }
@media print { .rp-top, .rp-actions, #share, .rp-lenses, .rp-poifilter { display: none; } .rp-body { background: #fff; } .rp-row-more { display: block; } }
