/* Realtor mode CSS, comprehensive treatment.
   Active when window._realtorMode is set (Express-injected on /realtor).
   Hides every piece of contractor-flow chrome, applies a "professional
   document" visual identity, and drives 6 distinct insight reports
   (3 sell + 3 buy intents).

   Sections:
     1. Top strip + intent picker (two-stage morph)
     2. Persona-hide + mobile flips
     3. Comprehensive contractor-chrome hide rules (~45 selectors)
     4. Realtor insights report, visual identity
     5. Property Facts header
     6. Project insight cards (sell + buy framings)
     7. Ranked plays table (maximize_value)
     8. Listing diagnosis + buyer-type retargeting (already_listed)
     9. Negotiation constraints + talking points (negotiating)
    10. Pricing comparison (best_price)
    11. Long-term scenarios (more_potential)
    12. Talking-point lists, due-diligence, callouts, CTA
    13. Mobile responsive
    14. Verdict card (NEW, answer box at top of every report)
    15. Recommended position table (NEW, 5-row decision summary)
    16. Confidence pills (NEW, 5 variants per fact)
    17. Implication paragraph (NEW, what this means for buyer/seller)
    18. Copy-paste card (NEW, paragraph + Copy button)
    19. Verify-before-offer badges (NEW, compact chips + expandable)
    20. Sticky right rail (NEW, desktop 2-column with sticky mini-card)
    21. Lot diagram clone (NEW, homepage diagram embedded)
*/

/* ─── 1. Top strip ──────────────────────────────────────────────────── */
.realtor-strip {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1001; /* above sticky .site-header (z-index: 1000) */
}

.realtor-strip strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.realtor-strip .realtor-strip-pipe {
  display: inline-block;
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── 1b. Intent picker, 2×2×1 grid + 3-stage morph ───────────────── */
/* Surface the "What's your situation?" wizard header. The homeowner/Ottawa form
   keeps the project-interest label screen-reader-only (its tiles are self-
   explanatory), but the realtor wizard wants the question shown above the grid.
   Beats the body.ottawa-lead-form-minimal-labels !important hide via higher
   specificity + !important. The picker always has a default (just_exploring),
   so the required asterisk is dropped for a clean question prompt. */
body.realtor-mode .lead-capture-form .project-interest-label.form-label,
body.realtor-mode-passthrough .lead-capture-form .project-interest-label.form-label {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}
body.realtor-mode .lead-capture-form .project-interest-label .required,
body.realtor-mode-passthrough .lead-capture-form .project-interest-label .required {
  display: none !important;
}

/* Root: a condensed 2×2×1 grid, the four primary categories in two rows, with
   "Curious what the property could support" spanning the full width as the 5th.
   The grid collapses to a single column the moment a category is expanded (or in
   the followup stage) so the open group + its options flow full-width and the
   other categories shrink away. */
.realtor-intent-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.realtor-intent-groups .realtor-intent-group[data-realtor-mode="curious"] {
  grid-column: 1 / -1;
}

/* Even tile heights: at root each group is a flex column so its toggle fills the
   stretched grid cell even when a neighbour's label wraps to two lines. */
.realtor-intent-groups[data-stage="root"] .realtor-intent-group {
  display: flex;
  flex-direction: column;
}
.realtor-intent-groups[data-stage="root"] .realtor-intent-toggle {
  flex: 1 1 auto;
}

.realtor-intent-groups:not([data-stage="root"]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.realtor-intent-group {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    max-height 0.25s ease;
}

/* A category is expanded (stage = its mode) → collapse every OTHER category.
   Generic over any number of categories via the `.is-open` class set by
   setStage(); root shows all headings, the followup stage hides all of them
   (see §1c). */
.realtor-intent-groups[data-stage]:not([data-stage="root"]) .realtor-intent-group:not(.is-open) {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  border-width: 0;
  pointer-events: none;
  overflow: hidden;
}

.realtor-intent-group.is-open {
  border-color: var(--accent, #c8102e);
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.12);
}

.realtor-intent-toggle {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  text-align: left;
  line-height: 1.3;
  transition: background 0.15s ease, color 0.15s ease;
}

.realtor-intent-toggle:hover {
  background: #fff5f5;
  color: #7f0d1f;
}

.realtor-intent-toggle:focus-visible {
  outline: none;
  background: #fff5f5;
  box-shadow: inset 0 0 0 2px rgba(200, 16, 46, 0.45);
}

.realtor-intent-group.is-open .realtor-intent-toggle {
  color: #7f0d1f;
  background: #fff5f5;
}

.realtor-intent-toggle-back,
.realtor-intent-toggle-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.realtor-intent-toggle-back { display: none; }
.realtor-intent-toggle-label { flex: 1 1 auto; }

.realtor-intent-toggle:hover .realtor-intent-toggle-chevron,
.realtor-intent-toggle:hover .realtor-intent-toggle-back {
  color: var(--accent, #c8102e);
}

.realtor-intent-group.is-open .realtor-intent-toggle-back {
  display: inline-flex;
  color: var(--accent, #c8102e);
}

.realtor-intent-group.is-open .realtor-intent-toggle-chevron {
  display: none;
}

.realtor-intent-options {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
}

.realtor-intent-group.is-open .realtor-intent-options {
  display: flex;
  animation: rsr-morph-in 0.22s ease-out;
}

@keyframes rsr-morph-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.realtor-intent-options .project-interest-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

/* ─── 2. Persona-hide + mobile flips ──────────────────────────────── */

/* Hide the "When do you want to build?" persona picker on EVERY realtor
   surface, full realtor mode AND output-passthrough brokerage/landing pages
   (the latter only carry `realtor-mode-passthrough`, which is why the timeline
   buttons used to leak through on /realtor). The timeline buttons are the
   homeowner timing question; in realtor mode the wizard's follow-up step drives
   the hidden #formProjectPersona <select> instead, so the <select> stays in the
   DOM (display:none still submits + is read via JS) as the lead-payload carrier. */
body.realtor-mode #formProjectPersonaGroup,
body.realtor-mode-passthrough #formProjectPersonaGroup {
  display: none;
}

/* Mobile: homepage hides #projectInterestGrid + reveals native <select>.
   Realtor mode keeps the grid (our situation wizard) and the select hidden.
   Covers passthrough too, the realtor landing pages (/realtor, brokerage
   portals) only carry `realtor-mode-passthrough`, and the wizard must stay
   visible there on mobile, not fall back to the homeowner dropdown. */
@media (max-width: 768px) {
  body.realtor-mode #projectInterestGrid,
  body.realtor-mode-passthrough #projectInterestGrid {
    display: block !important;
  }

  body.realtor-mode .lead-capture-form #formProjectInterest.project-interest-select-hidden,
  body.realtor-mode-passthrough .lead-capture-form #formProjectInterest.project-interest-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ─── 3. Comprehensive contractor-chrome hide rules ────────────────────
   The homepage post-submit flow renders ~165 contractor-themed elements
   (sidebar contractor panel, "Book a Meeting" CTAs, site-plan generator,
   project-picker overlays, contractor matching modal, partner-brand header
   injections, etc.). All hidden in realtor mode. !important is necessary
   because much of this is shown via inline JS (el.style.display = 'flex'). */

/* A. Contractor matching + booking */
body.realtor-mode #contractorPanel,
body.realtor-mode #contractorPickerModal,
body.realtor-mode .contractor-picker-backdrop,
body.realtor-mode .contractor-picker-panel,
body.realtor-mode #zoningContractorActions,
body.realtor-mode #contractorScrollPanel {
  display: none !important;
}

/* B. Site-plan generation CTAs */
body.realtor-mode #generateSiteplanBtn,
body.realtor-mode #ottawaProjectCtaSitePlanBtn,
body.realtor-mode .cta-siteplan,
body.realtor-mode #dockSiteplanBtn,
body.realtor-mode #readyToBuildBtn,
body.realtor-mode .draw-siteplan-promo,
body.realtor-mode .template-showcase-ready-btn,
body.realtor-mode #templateShowcaseReadyText {
  display: none !important;
}

/* C. Project-picker overlays + bubbles */
body.realtor-mode #ottawaProjectCtaOverlay,
body.realtor-mode .ottawa-project-cta-overlay,
body.realtor-mode #ottawaBubblePanel,
body.realtor-mode .ottawa-bubble-panel,
body.realtor-mode #ottawaStartIntentModal {
  display: none !important;
}

/* D. Partner-brand header injections (we keep our own .realtor-strip), 
   hidden by default in realtor mode, but RE-SHOWN when the brokerage
   variant of realtor mode is active (`body.realtor-mode-branded`). On
   /royal-lepage-integrity the realtor-mode.js boot paints a co-branded
   header (Royal LePage logo + Powered by Zoned) just like contractor
   landing pages do. */
body.realtor-mode:not(.realtor-mode-branded) .site-header-inner--partner-brand .partner-brand-partner-hit,
body.realtor-mode:not(.realtor-mode-branded) .site-header--partner-brand .partner-brand-divider,
body.realtor-mode:not(.realtor-mode-branded) .site-header--partner-brand .partner-brand-powered-label,
body.realtor-mode:not(.realtor-mode-branded) .site-header--partner-brand .partner-brand-zoned-logo {
  display: none !important;
}

/* When branded, also push the .realtor-strip below the brand bar so the
   co-branded header is the first visual element a visitor sees. */
body.realtor-mode-branded .realtor-strip {
  order: 1;
}

/* E. Sidebar CTAs (the site-plan + contractor stack inside the sidebar).
   The sidebar shell itself stays, it has navigation links. */
body.realtor-mode #sidebarCta,
body.realtor-mode .global-cta-wrapper {
  display: none !important;
}

/* F. The contractor "What Fits" tile grid + restricted summary panel.
   Active when realtor-mode-report-active is set (i.e. an intent has been
   picked AND a /check has returned). */
body.realtor-mode-report-active #czpProjectsHeader,
body.realtor-mode-report-active #czpTileGrid,
body.realtor-mode-report-active #czpProjectsNurture,
body.realtor-mode-report-active #qualifiedProjectsList,
body.realtor-mode-report-active #czpRestrictedSummary {
  display: none !important;
}

/* ─── 4. Realtor insights report, visual identity ────────────────────
   The page now reads as a one-page consultant report, not a homeowner tool.
   White card on slate, Sora display + Inter body, slate-50 neutrals,
   Zoned red reserved for the eyebrow, tier-strong badge, and primary CTA. */

#realtorInsightsReport {
  display: none;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 16px) 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
}

body.realtor-mode-report-active #realtorInsightsReport {
  display: block;
}

/* ─── 5. Property Facts header ───────────────────────────────────── */

.rsr-header {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 18px;
}

/* Verification notes, compact RECO-defense annotations the SVG above
   can't carry (bylaw transition, planner-review caveat, floor-area formula). */
.rsr-notes {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.rsr-notes-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
  margin: 0 0 6px;
}
.rsr-notes-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #1a1a2e;
}
.rsr-notes-list li { margin-bottom: 4px; }
.rsr-notes-list li:last-child { margin-bottom: 0; }
.rsr-notes-list strong { color: #1a1a2e; font-weight: 700; }

.rsr-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #c8102e);
  font-weight: 700;
  margin: 0 0 8px;
}

.rsr-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a2e;
  line-height: 1.15;
}

.rsr-subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px;
  max-width: 56ch;
}

.rsr-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
  margin: 12px 0 0;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 560px) {
  .rsr-facts { grid-template-columns: 1fr 1fr; }
}

.rsr-fact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  min-width: 0;
}

@media (min-width: 480px) {
  .rsr-fact {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
}

.rsr-fact:last-child { border-bottom: 0; }

@media (min-width: 560px) {
  .rsr-fact:nth-last-child(2):not(:nth-child(odd)) { border-bottom: 0; }
}

.rsr-fact dt {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 0 1 auto;
  min-width: 0;
  word-break: break-word;
}

.rsr-fact dd {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  text-align: left;
  margin: 0;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  word-break: break-word;
}

@media (min-width: 480px) {
  .rsr-fact dd {
    text-align: right;
  }
}

.rsr-fact--missing dd {
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
}

/* ─── 6. Generic section + sub-components (used across reports) ─────── */

.rsr-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.rsr-section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 6px;
}

.rsr-section-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a2e;
}

.rsr-section-lede {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 14px;
  max-width: 60ch;
}

.rsr-section-divider {
  margin: 14px 0;
  border: 0;
  border-top: 1px dashed #e2e8f0;
}

.rsr-bullets {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a2e;
}

.rsr-bullets li { margin-bottom: 4px; }
.rsr-bullets li:last-child { margin-bottom: 0; }

.rsr-callout {
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid rgba(200, 16, 46, 0.18);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0;
}

.rsr-callout-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #7f0d1f;
  margin: 0 0 4px;
}

.rsr-callout-body {
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a2e;
  margin: 0;
}

.rsr-callout-body strong { color: #7f0d1f; }

.rsr-listing-copy {
  margin: 0;
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 3px solid var(--accent, #c8102e);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a2e;
  font-style: italic;
}

.rsr-listing-copy + .rsr-listing-copy {
  margin-top: 10px;
}

/* ─── 6b. Project insight cards (find_potential, more_potential) ────── */

.rsr-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rsr-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rsr-card:hover {
  border-color: #cbd5e1;
}

.rsr-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rsr-card-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.rsr-tier {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rsr-tier.tier-strong {
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.rsr-tier.tier-possible {
  background: rgba(202, 138, 4, 0.08);
  color: #854d0e;
  border: 1px solid rgba(202, 138, 4, 0.25);
}

.rsr-tier.tier-limited {
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.rsr-tier.tier-not-supported {
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.rsr-tier.tier-unknown {
  background: rgba(148, 163, 184, 0.08);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.rsr-card-angle {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 12px;
}

.rsr-card-engine-note {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 12px;
  padding: 8px 10px;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  border-radius: 0 6px 6px 0;
}

.rsr-card-engine-note strong { color: #1a1a2e; }

.rsr-card-fact {
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a2e;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid rgba(200, 16, 46, 0.12);
}

.rsr-card-fact--verify {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
  font-style: italic;
}

.rsr-card-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.rsr-card-section h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 6px;
}

.rsr-card-section ul,
.rsr-buyer-types,
.rsr-due-diligence,
.rsr-card-section--blockers ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #1a1a2e;
}

.rsr-card-section ul li,
.rsr-buyer-types li,
.rsr-due-diligence li,
.rsr-card-section--blockers li {
  margin-bottom: 3px;
}

.rsr-card-section--blockers h4 { color: #991b1b; }

/* ─── 7. Ranked plays table (maximize_value) ──────────────────────── */

.rsr-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: auto;
  margin: 14px 0;
}

.rsr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}

.rsr-table thead {
  background: #1e293b;
  color: #f8fafc;
}

.rsr-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsr-table tbody tr { border-top: 1px solid #e2e8f0; }
.rsr-table tbody tr:first-child { border-top: 0; }

.rsr-table td {
  padding: 12px;
  vertical-align: top;
  line-height: 1.5;
  color: #1a1a2e;
}

.rsr-table td:first-child {
  font-weight: 700;
  color: #1a1a2e;
}

.rsr-table td.rsr-table-impact-high { color: #166534; font-weight: 600; }
.rsr-table td.rsr-table-impact-medium { color: #854d0e; font-weight: 600; }
.rsr-table td.rsr-table-impact-low { color: #475569; font-weight: 500; }

.rsr-table td.rsr-table-effort {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  font-size: 12px;
  color: #475569;
}

/* On narrow viewports, the table becomes a stacked card layout */
@media (max-width: 600px) {
  .rsr-table-wrap { overflow: visible; border: 0; }
  .rsr-table, .rsr-table thead, .rsr-table tbody,
  .rsr-table tr, .rsr-table th, .rsr-table td { display: block; }
  .rsr-table { min-width: 0; font-size: 14px; }
  .rsr-table thead { display: none; }
  .rsr-table tbody tr {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
  }
  .rsr-table tbody tr:first-child { border-top: 1px solid #e2e8f0; }
  .rsr-table td {
    padding: 4px 0;
    border: 0;
  }
  .rsr-table td:first-child {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .rsr-table td:not(:first-child)::before {
    content: attr(data-label) ": ";
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-right: 6px;
  }
}

/* ─── 8. Listing diagnosis (already_listed) ───────────────────────── */

.rsr-diagnosis {
  background: linear-gradient(180deg, #fffbe6 0%, #ffffff 100%);
  border: 1px solid rgba(202, 138, 4, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.rsr-diagnosis-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #854d0e;
  font-weight: 700;
  margin: 0 0 6px;
}

.rsr-diagnosis-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #1a1a2e;
  margin: 0;
}

.rsr-buyer-retarget {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .rsr-buyer-retarget { grid-template-columns: 1fr 1fr; }
}

.rsr-buyer-retarget-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
}

.rsr-buyer-retarget-card h5 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.rsr-buyer-retarget-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

/* ─── 9. Negotiation constraints (negotiating) ────────────────────── */

.rsr-leverage {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 14px;
}

.rsr-leverage-row {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.rsr-leverage-row:last-child { border-bottom: 0; }

.rsr-leverage-project {
  flex: 0 0 140px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
}

.rsr-leverage-blockers {
  flex: 1 1 auto;
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1a1a2e;
}

.rsr-leverage-blockers li { margin-bottom: 3px; }

@media (max-width: 540px) {
  .rsr-leverage-row { flex-direction: column; gap: 6px; padding: 12px 14px; }
  .rsr-leverage-project { flex: 0 0 auto; }
}

/* ─── 10. Pricing comparison (best_price) ─────────────────────────── */

.rsr-price-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 600px) {
  .rsr-price-pair { grid-template-columns: 1fr 1fr; }
}

.rsr-price-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.rsr-price-card--up {
  border-color: rgba(22, 163, 74, 0.25);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.04) 0%, #ffffff 60%);
}

.rsr-price-card--down {
  border-color: rgba(202, 138, 4, 0.25);
  background: linear-gradient(180deg, rgba(202, 138, 4, 0.04) 0%, #ffffff 60%);
}

.rsr-price-card h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.rsr-price-card--up h4 { color: #166534; }
.rsr-price-card--down h4 { color: #854d0e; }

.rsr-price-card ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1a1a2e;
}

.rsr-price-card li { margin-bottom: 4px; }

/* ─── 11. Long-term scenarios (more_potential) ────────────────────── */

.rsr-scenarios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 700px) {
  .rsr-scenarios { grid-template-columns: repeat(3, 1fr); }
}

.rsr-scenario {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
}

.rsr-scenario-time {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #c8102e);
  margin: 0 0 4px;
}

.rsr-scenario-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
  line-height: 1.3;
}

.rsr-scenario-body {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

/* ─── 12. CTA + footer notes ──────────────────────────────────────── */
/* Editorial/consultant-deliverable aesthetic. The report is a document;
   the CTA is its closing argument. Warm white surface, decisive 6px brand-
   red top rule (op-ed masthead style), Sora display heading, deep red
   button with refined shadow. Brand red is the dominant color, never
   navy. Subtle radial wash adds atmosphere without crossing into "tacky". */

.rsr-cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 28px;
  padding: 32px clamp(20px, 4vw, 36px) 28px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(200, 16, 46, 0.045) 0%, transparent 55%),
    linear-gradient(180deg, #fffaf9 0%, #ffffff 60%);
  border: 1px solid #f5dcdf;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.02),
    0 12px 28px -16px rgba(127, 13, 31, 0.18);
  color: #1a1a2e;
  position: relative;
  overflow: hidden;
}

/* Op-ed masthead rule, solid brand red, decisive (no gradient).
   Matches the visual weight of a magazine pull-quote opener. */
.rsr-cta-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent, #c8102e);
}

/* Subtle decorative serif numeral in the top-right corner, gives the
   block an editorial signature without adding decorative chrome. */
.rsr-cta-row::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(200, 16, 46, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.rsr-cta-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, #c8102e);
  font-weight: 700;
  margin: 0 0 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rsr-cta-eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent, #c8102e);
  display: inline-block;
}

.rsr-cta-heading {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
  line-height: 1.18;
  max-width: 26ch;
}

.rsr-cta-urgency {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 22px;
  max-width: 58ch;
  font-weight: 400;
}

.rsr-cta-bullets {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(200, 16, 46, 0.12);
  padding-top: 18px;
}

.rsr-cta-bullets li {
  position: relative;
  padding-left: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #1a1a2e;
  font-weight: 500;
}

/* Refined brand-red marker, small filled square rotated 45° (diamond),
   feels editorial rather than generic checkmark. */
.rsr-cta-bullets li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--accent, #c8102e);
  transform: rotate(45deg);
}

/* Button row + button. Side-by-side with the note on desktop, stacked
   on mobile. */
.rsr-cta-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.rsr-cta-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 32px;
  border-radius: 10px;
  background: var(--cta-bg, var(--accent, #c8102e));
  color: #fff;
  letter-spacing: 0.005em;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 1px 2px rgba(127, 13, 31, 0.4),
    0 8px 20px -6px rgba(200, 16, 46, 0.45);
  position: relative;
}

.rsr-cta-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.rsr-cta-primary:hover {
  background: var(--cta-hover, #b30d27);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 4px rgba(127, 13, 31, 0.45),
    0 12px 26px -6px rgba(200, 16, 46, 0.55);
}

.rsr-cta-primary:active {
  transform: translateY(0);
  background: #a30b22;
}

.rsr-cta-primary:focus-visible {
  outline: 2px solid var(--accent, #c8102e);
  outline-offset: 4px;
}

.rsr-cta-arrow {
  font-size: 17px;
  font-weight: 400;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.rsr-cta-primary:hover .rsr-cta-arrow {
  transform: translateX(5px);
}

.rsr-cta-note {
  margin: 14px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  font-weight: 500;
}

/* On wider screens, button doesn't need full width, keeps it from
   looking like a banner ad. Cap at a generous tap-target size. */
@media (min-width: 720px) {
  .rsr-cta-primary {
    align-self: flex-start;
    width: auto;
    min-width: 320px;
    padding: 18px 40px;
  }
  .rsr-cta-note {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

.rsr-error {
  padding: 16px;
  font-size: 14px;
  color: #991b1b;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
}

/* ─── 13. Verify-before-acting (per-intent due-diligence checklist) ── */

.rsr-verify {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.rsr-verify-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 4px;
}

.rsr-verify-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.rsr-verify ul {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1a1a2e;
}

.rsr-verify li { margin-bottom: 3px; }

/* ─── 14. Verdict card (NEW, answer box at top of every report) ───
   First section after the report shell. Answers "what should I do
   with this property?" before the realtor reads anything else. */
.rsr-verdict {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.rsr-verdict::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #94a3b8;
}
.rsr-verdict--leverage::before { background: linear-gradient(90deg, var(--accent, #c8102e), #f59e0b); }
.rsr-verdict--clean::before    { background: linear-gradient(90deg, #16a34a, #22d3ee); }
.rsr-verdict--upside::before   { background: linear-gradient(90deg, #f59e0b, #16a34a); }
.rsr-verdict--insufficient::before { background: #94a3b8; }

.rsr-verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rsr-verdict--leverage .rsr-verdict-pill {
  background: rgba(245, 158, 11, 0.10);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.rsr-verdict--clean .rsr-verdict-pill {
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.rsr-verdict--upside .rsr-verdict-pill {
  background: rgba(200, 16, 46, 0.08);
  color: #7f0d1f;
  border: 1px solid rgba(200, 16, 46, 0.25);
}
.rsr-verdict--insufficient .rsr-verdict-pill {
  background: rgba(148, 163, 184, 0.08);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.rsr-verdict-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(20px, 2.6vw, 24px);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.2;
}

.rsr-verdict-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #1a1a2e;
  margin: 0;
  max-width: 60ch;
}

/* ─── 15. Recommended position table (NEW) ─────────────────────────
   5-row decision summary. Stacked rows on mobile, two-column on
   wider viewports. */
.rsr-position {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.rsr-position-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 10px;
}
.rsr-position-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 600px) {
  .rsr-position-grid { grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
.rsr-position-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.rsr-position-row:last-child { border-bottom: 0; }
@media (min-width: 600px) {
  .rsr-position-row:nth-last-child(2):not(:nth-child(odd)) { border-bottom: 0; }
}
.rsr-position-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.rsr-position-value {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: right;
  margin: 0;
}
.rsr-position-value-low      { color: #475569; }
.rsr-position-value-medium   { color: #854d0e; }
.rsr-position-value-high     { color: #166534; }
.rsr-position-value-strong   { color: #166534; }
.rsr-position-value-possible { color: #854d0e; }
.rsr-position-value-limited  { color: #475569; }

/* ─── 16. Confidence pills (NEW) ───────────────────────────────────
   Five variants. Render next to each fact value. */
.rsr-confidence {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.rsr-confidence--verified   { background: rgba(22, 163, 74, 0.10); color: #166534; }
.rsr-confidence--matched    { background: rgba(22, 163, 74, 0.08); color: #166534; }
.rsr-confidence--gis        { background: rgba(22, 163, 74, 0.08); color: #166534; }
.rsr-confidence--rule       { background: rgba(245, 158, 11, 0.10); color: #92400e; }
.rsr-confidence--estimated  { background: rgba(245, 158, 11, 0.10); color: #92400e; }
.rsr-confidence--survey     { background: rgba(100, 116, 139, 0.10); color: #475569; }
.rsr-confidence--planner    { background: rgba(100, 116, 139, 0.12); color: #475569; }
.rsr-confidence--missing    { background: rgba(220, 38, 38, 0.06); color: #991b1b; }

/* Sub-line explanation under a fact row */
.rsr-fact-explain {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 11.5px;
  font-style: italic;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
  text-align: left;
}
@media (min-width: 480px) {
  .rsr-fact-explain { text-align: right; }
}
.rsr-fact dd { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rsr-fact dd > .rsr-fact-value-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
@media (min-width: 480px) {
  .rsr-fact dd { align-items: flex-end; }
}

/* ─── 17. Implication paragraph (NEW, "What this means…") ───────── */
.rsr-implication {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent, #c8102e);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.rsr-implication-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #c8102e);
  font-weight: 700;
  margin: 0 0 6px;
}
.rsr-implication-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
}
.rsr-implication-body {
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a2e;
  margin: 0;
  max-width: 60ch;
}

/* ─── 18. Copy-paste card (NEW) ────────────────────────────────────
   Paragraph realtor can ship straight to the other agent + Copy btn. */
.rsr-copy-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.rsr-copy-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 4px;
}
.rsr-copy-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}
.rsr-copy-text {
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a2e;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-style: italic;
}
.rsr-copy-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1a1a2e;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rsr-copy-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.rsr-copy-btn:focus-visible {
  outline: 2px solid var(--accent, #c8102e);
  outline-offset: 3px;
}
.rsr-copy-btn--copied {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.4);
  color: #166534;
}

/* ─── 19. Verify-before-offer badges (NEW) ─────────────────────────
   Compact pill row + <details> expandable explanations. Replaces the
   long "common gotchas" bullet list. */
.rsr-verify-compact {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.rsr-verify-compact-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 4px;
}
.rsr-verify-compact-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}
.rsr-verify-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 10px;
}
.rsr-verify-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: 0.01em;
}
.rsr-verify-details {
  margin: 6px 0 0;
  padding: 0;
}
.rsr-verify-details > summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  list-style: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rsr-verify-details > summary::-webkit-details-marker { display: none; }
.rsr-verify-details > summary::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--accent, #c8102e);
  font-size: 11px;
}
.rsr-verify-details[open] > summary::before { transform: rotate(90deg); }
.rsr-verify-details > summary:hover { color: #1a1a2e; }
.rsr-verify-details ul {
  margin: 8px 0 0;
  padding: 0 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: #1a1a2e;
}
.rsr-verify-details li { margin-bottom: 3px; }

/* ─── 20. Sticky right rail (desktop ≥1080px) ──────────────────────
   On wide viewports, the report becomes a 2-column grid: main content
   on the left, sticky mini-card with property summary + CTA on the
   right. Mobile collapses to single-column with CTA at bottom. */
/* Single-column layout. The previous sticky right rail duplicated the
   verdict + CTA already shown above, and on the live page it pushed the
   main content sideways. Removed in favor of a clean single-column flow. */
.rsr-shell {
  display: block;
}
.rsr-shell-main { min-width: 0; }
.rsr-rail {
  display: none !important;
}

.rsr-rail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  margin-bottom: 12px;
}
.rsr-rail-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #c8102e);
  font-weight: 700;
  margin: 0 0 4px;
}
.rsr-rail-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
  line-height: 1.3;
}
.rsr-rail-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rsr-rail-mini-list li {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.rsr-rail-mini-list li:last-child { border-bottom: 0; }
.rsr-rail-mini-list .label { color: #64748b; font-weight: 600; }
.rsr-rail-mini-list .value { color: #1a1a2e; font-weight: 700; text-align: right; }
.rsr-rail-cta {
  width: 100%;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--accent, #c8102e);
  color: #fff;
  letter-spacing: 0.01em;
  margin-top: 6px;
  line-height: 1.3;
  transition: background 0.15s ease;
}
.rsr-rail-cta:hover { background: #e01235; }
.rsr-rail-cta-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

/* ─── 21. Lot diagram clone (NEW, embedded homepage diagram) ────── */
.rsr-diagram {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.rsr-diagram-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 0 6px;
}
/* The cloned #czpLotPreviewCard has its own internal styles which
   we keep, but we override its outer container/margin so it sits
   neatly inside .rsr-diagram. */
.rsr-diagram > .czp-lot-preview-card,
.rsr-diagram > [id^="czpLotPreviewCard"] {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

/* ─── 21b. Passthrough mode, suppress contractor-flow next-step CTA ─
   On brokerage paths (/royal-lepage-integrity) the realtor handoff
   bar replaces the homepage's "Take the next step / Generate Site
   Plan" CTA overlay. Hide the overlay so we don't end up with two
   competing primary actions. The body class is added by realtor-
   mode.js when window._realtorOutputPassthrough is set. */
body.realtor-mode-passthrough #ottawaProjectCtaOverlay,
body.realtor-mode-passthrough .ottawa-project-cta-overlay,
body.realtor-mode-passthrough #ottawaBubblePanel,
body.realtor-mode-passthrough .ottawa-bubble-panel,
body.realtor-mode-passthrough #ottawaStartIntentModal {
  display: none !important;
}

/* TEMPORARY: sticky-handoff-only pages (e.g. /ogc) suppress the
   contractor-flow "Take the next step" project-CTA overlay so the
   bottom handoff bar is the only primary call-to-action on the
   results page. Remove this block to restore the project CTA. */
body.sticky-handoff-only #ottawaProjectCtaOverlay,
body.sticky-handoff-only .ottawa-project-cta-overlay,
body.sticky-handoff-only #ottawaBubblePanel,
body.sticky-handoff-only .ottawa-bubble-panel,
body.sticky-handoff-only #ottawaStartIntentModal {
  display: none !important;
}

/* ─── 22. Sticky realtor handoff bar (replaces .rsr-cta-row) ─────────
   Viewport-fixed floating widget. Starts hidden below the fold and
   slides up when triggered (.is-visible). Photo on the left, copy +
   buttons on the right, dismiss button in the corner. Subtle red glow
   + gentle float while visible; both motion effects fall back to
   static when prefers-reduced-motion is set. */

body.has-sticky-realtor-handoff {
  padding-bottom: 156px;
}

.sticky-realtor-handoff {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(140%);
  z-index: 9999;
  width: min(880px, calc(100% - 32px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 260ms ease;
}

.sticky-realtor-handoff.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-realtor-handoff.is-visible .sticky-realtor-inner {
  animation: realtor-soft-float 3.4s ease-in-out infinite;
}

.sticky-realtor-handoff.is-collapsed {
  transform: translateX(-50%) translateY(140%);
  opacity: 0;
  pointer-events: none;
}

/* Minimized: bar shrinks to a small floating chevron button centered at
   the bottom of the viewport. The toggle inverts (▾ → ▴) and clicking
   re-expands to the full bar. */
.sticky-realtor-handoff.is-minimized {
  left: 50%;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: auto;
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: auto;
}

.sticky-realtor-handoff.is-minimized .sticky-realtor-inner {
  /* Force a single-row centered layout in minimized state so the toggle
     button sits dead-centre on every breakpoint, overrides both the
     desktop row-flex and the mobile column-flex stack. */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.sticky-realtor-handoff.is-minimized .sticky-realtor-inner::before {
  display: none;
}

/* Hide every part of the bar except the chevron toggle when minimized.
   The arrow is the only thing the user should see. */
.sticky-realtor-handoff.is-minimized .sticky-realtor-person,
.sticky-realtor-handoff.is-minimized .sticky-realtor-cta {
  display: none;
}

.sticky-realtor-handoff.is-minimized .sticky-realtor-toggle {
  position: static;
  width: 48px;
  height: 48px;
  background: var(--accent, #c8102e);
  color: #ffffff;
  border-color: var(--accent, #c8102e);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.32);
  font-size: 18px;
}

.sticky-realtor-handoff.is-minimized .sticky-realtor-toggle:hover {
  background: #e01235;
  border-color: #e01235;
  color: #ffffff;
}

.sticky-realtor-inner {
  position: relative;
  overflow: visible;
  padding: 15px 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.02) inset,
    0 18px 55px rgba(15, 23, 42, 0.16);
  /* Single-row layout on desktop: photo + text + buttons all inline.
     Stacks into 2 rows on mobile (see media query below). */
  display: flex;
  align-items: center;
  gap: 18px;
}

.sticky-realtor-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(200, 16, 46, 0.18),
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0.35;
  z-index: -1;
  filter: blur(10px);
}

.sticky-realtor-person {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
}

.sticky-realtor-photo {
  flex: 0 0 auto;
  width: 105px;
  height: 105px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 10px 22px rgba(15, 23, 42, 0.2);
}

.sticky-realtor-photo--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  color: var(--accent, #c8102e);
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sticky-realtor-copy {
  min-width: 0;
  text-align: left;
}

/* Eyebrow is no longer rendered (the JS dropped it from the markup) but
   the styles stay defined as dead-code so /royal-lepage-integrity falls
   back gracefully if it's ever re-added, and so any cached HTML still
   renders sanely. */
.sticky-realtor-eyebrow {
  margin: 0 0 3px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #c8102e);
}

/* Person column, name on top, role · phone on bottom. Both wrap to a
   new line when they don't fit (no ellipsis truncation) so the user
   always sees the full name and full phone number. */
.sticky-realtor-name {
  margin: 0;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.2;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.015em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sticky-realtor-role {
  margin: 4px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 500;
  color: #64748b;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Legacy class, no longer rendered by realtor-mode.js, kept defined so
   any cached HTML still styles sanely. */
.sticky-realtor-title {
  margin: 6px 0 4px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1a1a2e;
}

/* CTA column, title sits as a heading directly above the button row.
   Right-aligned on desktop alongside `.sticky-realtor-person`; stacked
   full-width below on mobile (see media query). */
.sticky-realtor-cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.sticky-realtor-cta-title {
  margin: 0;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  text-align: center;
}

.sticky-realtor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.sticky-realtor-btn {
  min-height: 42px;
  min-width: 0;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.sticky-realtor-btn:hover {
  transform: translateY(-1px);
}

.sticky-realtor-btn:focus-visible,
.sticky-realtor-toggle:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.32);
  outline-offset: 3px;
}

.sticky-realtor-btn--primary {
  background: var(--accent, #c8102e);
  border-color: var(--accent, #c8102e);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.28);
}

.sticky-realtor-btn--primary:hover {
  background: #e01235;
  border-color: #e01235;
}

.sticky-realtor-btn--secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1a1a2e;
}

.sticky-realtor-btn--secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* "We'll be in touch!" pill, replaces the Request a Call / Text /
   Email buttons once the homeowner clicks one of them. Sized to read as
   a confirmation rather than a button, so it doesn't compete with the
   adjacent "Book a meeting" CTA. */
.sticky-realtor-thankyou {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #047857;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.sticky-realtor-thankyou-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  flex-shrink: 0;
}

.sticky-realtor-thankyou-icon svg {
  width: 12px;
  height: 12px;
}

/* ─── Follow-up consent on the sticky bar ──────────────────────────
   Moved here from the landing wizard's old 3rd step. Asked once the
   homeowner is looking at the report; the chosen answer drives the lead
   tier via a PATCH (see realtor-mode.js). "Yes" is the visual primary. */
.sticky-realtor-consent-prompt {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #475569;
  text-align: center;
}

.sticky-realtor-consent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.sticky-realtor-consent-btn {
  appearance: none;
  width: 100%;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a2e;
  text-align: left;
  white-space: normal;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.sticky-realtor-consent-btn:hover {
  border-color: var(--accent, #c8102e);
  background: #fff5f5;
  color: #7f0d1f;
}

.sticky-realtor-consent-btn:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.32);
  outline-offset: 2px;
}

.sticky-realtor-consent-btn[data-followup-value="contact_now"] {
  border-color: var(--accent, #c8102e);
  background: var(--accent, #c8102e);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.24);
}

.sticky-realtor-consent-btn[data-followup-value="contact_now"]:hover {
  background: #e01235;
  border-color: #e01235;
  color: #ffffff;
}

.sticky-realtor-consent-ack {
  margin: 0;
  max-width: 420px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #475569;
  text-align: center;
}

.sticky-realtor-toggle {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.86);
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.sticky-realtor-toggle:hover {
  color: var(--accent, #c8102e);
  border-color: rgba(200, 16, 46, 0.25);
}

@keyframes realtor-soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 640px) {
  body.has-sticky-realtor-handoff {
    padding-bottom: 240px;
  }
  .sticky-realtor-handoff {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    transform: translateY(110%);
  }
  .sticky-realtor-handoff.is-visible {
    transform: translateY(0);
  }
  .sticky-realtor-handoff.is-collapsed {
    transform: translateY(110%);
  }
  /* Minimized on mobile: same centered floating pill as desktop. The base
     mobile rules pin the bar full-width to the bottom; reset for the
     minimized state. */
  .sticky-realtor-handoff.is-minimized {
    left: 50%;
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
    transform: translateX(-50%);
  }
  /* Mobile stacks: photo+text on top, buttons full-width below. */
  .sticky-realtor-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-radius: 18px 18px 0 0;
    padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  }
  .sticky-realtor-handoff.is-minimized .sticky-realtor-inner {
    padding: 0;
    border-radius: 0;
  }
  .sticky-realtor-person {
    flex: 0 0 auto;
  }
  .sticky-realtor-photo {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }
  .sticky-realtor-photo--initials {
    font-size: 30px;
  }
  .sticky-realtor-eyebrow {
    font-size: 10.5px;
  }
  .sticky-realtor-name {
    font-size: 14px;
    padding-right: 28px;
  }
  .sticky-realtor-title {
    font-size: 20px;
    padding-right: 28px;
    margin: 4px 0 3px;
  }
  .sticky-realtor-role {
    font-size: 12px;
  }
  /* On mobile the CTA stacks below the person column. The title spans
     full width above the 2×2 button grid. */
  .sticky-realtor-cta {
    align-items: stretch;
    gap: 6px;
  }
  .sticky-realtor-cta-title {
    font-size: 13.5px;
    text-align: left;
  }
  /* Buttons in a 2×2 grid on mobile so 4 actions fit in 2 rows.
     Primary keeps its red color but doesn't span full width, the
     compact layout takes priority over a spanning hero row. */
  .sticky-realtor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .sticky-realtor-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-realtor-handoff,
  .sticky-realtor-btn,
  .sticky-realtor-inner {
    transition: none;
    animation: none !important;
  }
  .sticky-realtor-handoff.is-visible {
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .sticky-realtor-handoff.is-visible {
    transform: translateY(0);
  }
}

/* ─── Passthrough intent emphasis: banner + matching-tile ring ──────── */
/* On /realtor + brokerage pages the output stays the homeowner project tiles.
   realtor-mode.js inserts #realtorIntentEmphasis above the grid and adds
   .realtor-intent-priority to the tiles that match the picked situation. */
.realtor-intent-emphasis {
  margin: 0 0 14px;
  padding: 13px 16px 13px 18px;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid rgba(200, 16, 46, 0.18);
  border-left: 4px solid #c8102e;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  animation: realtorIntentEmphasisIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.realtor-intent-emphasis__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a4123f;
  font-weight: 700;
  margin: 0 0 4px;
}

.realtor-intent-emphasis__title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a2e;
  margin: 0 0 4px;
  line-height: 1.35;
}

.realtor-intent-emphasis__focus {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.realtor-intent-emphasis__focus strong {
  color: #7f0d1f;
  font-weight: 700;
}

/* Maple ring on tiles that match the situation. outline (not border) keeps the
   tile layout intact; the inset offset keeps it clear of the rounded corners
   and clipped overflow, and an outer glow lifts it off the grid. Scoped to the
   passthrough body so a stray class can never bleed onto the plain homepage. */
body.realtor-mode-passthrough .czp-tile.realtor-intent-priority,
body.realtor-mode .czp-tile.realtor-intent-priority {
  outline: 3px solid #c8102e;
  outline-offset: -3px;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18), 0 10px 24px rgba(200, 16, 46, 0.22);
}

@keyframes realtorIntentEmphasisIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .realtor-intent-emphasis { animation: none; }
}
