/* Beach Condo Property Review — page-local styles */

body.decision-center-page #main-content > .decision-seo .container,
body.decision-center-page #pr-interactive > .container {
  width: min(calc(100% - 2rem), var(--max, 1180px));
  max-width: var(--max, 1180px);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

@media (min-width: 641px) {
  body.decision-center-page #main-content > .decision-seo .container,
  body.decision-center-page #pr-interactive > .container {
    width: min(calc(100% - 2.75rem), var(--max, 1180px));
  }
}

#pr-interactive {
  scroll-margin-top: 96px;
  overflow-x: clip;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

#pr-access {
  scroll-margin-top: 96px;
}

.pr-includes-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 768px) {
  .pr-includes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pr-includes-card {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.pr-includes-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.pr-includes-card p {
  margin: 0;
  line-height: 1.45;
  color: var(--muted, #4a554d);
}

.pr-edu-accordion {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
}

.pr-edu-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
}

.pr-edu-panel > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  position: relative;
  min-height: 44px;
}

.pr-edu-panel > summary::-webkit-details-marker {
  display: none;
}

.pr-edu-panel > summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--field-dark, #1f3b2d);
}

.pr-edu-panel[open] > summary::after {
  content: "−";
}

.pr-edu-panel-body {
  padding: 0 1rem 1rem;
}

.pr-edu-panel-body > :first-child {
  margin-top: 0;
}

.pr-access-anchor {
  width: min(calc(100% - 2rem), var(--max, 1180px));
  max-width: var(--max, 1180px);
  margin: 0 auto;
  outline: none;
}

.pr-access-short-disclaimer {
  margin: 0 0 1rem;
}

.pr-interactive-intro {
  padding-bottom: 0.75rem;
}

.pr-mobile-steps {
  margin: 0 0 1rem;
}

.pr-mobile-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.pr-mobile-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted, #4a554d);
  background: rgba(255, 255, 255, 0.45);
}

.pr-mobile-step.is-current {
  color: var(--ink);
  border-color: var(--field-dark, #1f3b2d);
  box-shadow: inset 0 -2px 0 var(--field-dark, #1f3b2d);
}

.pr-mobile-step.is-done {
  color: var(--ink);
}

.pr-mobile-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(31, 59, 45, 0.12);
  font-weight: 800;
  font-size: 0.75rem;
}

.pr-step-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--field-dark, #1f3b2d);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pr-stage-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.8rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.pr-stage-checklist li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: var(--field-dark, #1f3b2d);
  font-weight: 800;
}

.pr-stage1-capture {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.pr-stage1-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.pr-stage1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pr-form-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.pr-form-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.pr-form-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--field-dark, #1f3b2d);
}

.pr-form-nav-list a.is-current {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.pr-form-nav-list a.is-upcoming {
  color: var(--muted, #4a554d);
  font-weight: 550;
}

.pr-progress-icon {
  width: 1em;
  text-align: center;
  font-weight: 850;
}

.pr-form-nav-list a:focus-visible {
  outline: 2px solid var(--field-dark, #1f3b2d);
  outline-offset: 2px;
}

.pr-review-return {
  margin: 0 0 0.85rem;
}

.pr-mobile-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding: 0.75rem 0.5rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

@media (max-width: 979px) {
  .pr-review-pane {
    padding-bottom: 5.5rem;
  }

  .pr-form-actions,
  .pr-details,
  .pr-stage1-actions {
    scroll-margin-bottom: 5.5rem;
  }
}

.pr-details {
  scroll-margin-top: 120px;
}

@media (max-width: 979px) {
  .pr-search-pane:not(.is-active),
  .pr-review-pane:not(.is-active) {
    display: none;
  }

  .pr-idx-frame-wrap {
    min-height: 420px;
  }

  .pr-idx-frame {
    min-height: 420px;
    height: min(55vh, 640px);
  }
}

@media (min-width: 980px) {
  .pr-mobile-steps,
  .pr-stage1-capture,
  .pr-mobile-actionbar,
  .pr-review-return {
    display: none !important;
  }
}

.pr-layout,
.pr-form-column,
.pr-results-column,
.pr-entry,
.pr-shell,
.pr-form,
#pr-form,
#pr-results,
.pr-details,
.pr-field {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pr-layout {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.pr-workspace {
  width: 100%;
  min-width: 0;
}

.pr-mobile-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pr-mobile-tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
}

.pr-mobile-tab.is-active {
  border-color: var(--field-dark, #1f3b2d);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 -3px 0 var(--field-dark, #1f3b2d);
}

.pr-workspace-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
}

.pr-search-pane,
.pr-review-pane {
  min-width: 0;
}

.pr-pane-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.pr-gather {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.pr-gather-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.pr-gather-list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.45;
}

.pr-gather-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--field-dark, #1f3b2d);
  font-weight: 800;
}

.pr-idx-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.pr-idx-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  height: min(85vh, 1100px);
  border: 0;
  background: #fff;
}

.pr-idx-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 979px) {
  /* Mobile stage visibility is controlled via [hidden] / .is-active in JS. */
}

@media (min-width: 980px) {
  .pr-mobile-tabs {
    display: none;
  }

  /*
   * Split-pane workspace: each column scrolls on its own.
   * Taller pane so the Flexmls iframe has more vertical room for results.
   */
  .pr-workspace-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    height: max(1200px, calc(100vh - 100px));
    max-height: none;
    min-height: 1200px;
  }

  .pr-search-pane,
  .pr-review-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  /* Honor [hidden] — do not force an empty Step 2 pane before JS mounts the form. */
  .pr-search-pane[hidden],
  .pr-review-pane[hidden] {
    display: none !important;
  }

  .pr-search-pane {
    position: sticky;
    top: 96px;
    align-self: start;
    height: max(1200px, calc(100vh - 100px));
    max-height: max(1200px, calc(100vh - 100px));
  }

  .pr-search-pane .pr-pane-title,
  .pr-search-pane .pr-lead,
  .pr-search-pane .pr-idx-note {
    flex: 0 0 auto;
  }

  .pr-search-pane .pr-lead {
    margin-bottom: 0.65rem;
  }

  .pr-idx-frame-wrap {
    flex: 1 1 auto;
    min-height: 1000px;
    height: auto;
  }

  .pr-idx-frame {
    min-height: 1000px;
    height: 100%;
    max-height: none;
  }

  .pr-review-pane {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.25rem;
    scrollbar-gutter: stable;
  }

  .pr-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .pr-results-column {
    position: static;
  }
}

.pr-utility-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.pr-utility-label {
  color: var(--field-dark);
  font-weight: 800;
  min-width: 0;
  flex: 1 1 auto;
}

.pr-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(23, 32, 26, 0.48);
}

.pr-confirm-dialog {
  width: min(28rem, 100%);
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f4ee;
  box-shadow: 0 18px 40px rgba(23, 32, 26, 0.22);
}

.pr-confirm-title {
  margin: 0 0 0.65rem;
  color: var(--field-dark);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.pr-confirm-body {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.pr-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

body.pr-confirm-open {
  overflow: hidden;
}

#pr-errors:empty,
#pr-errors[hidden] {
  display: none;
}

#pr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pr-section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.pr-subheading {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.pr-lead,
.pr-field-hint,
.pr-muted {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.pr-entry-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .pr-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pr-entry-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.pr-entry-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.pr-provider-notice,
.pr-demo-banner,
.pr-import-banner,
.pr-stale-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.pr-stale-banner {
  border-color: #b08900;
  background: rgba(255, 244, 214, 0.85);
}

.pr-provider-notice p {
  margin: 0 0 0.55rem;
}

.pr-provider-notice p:last-child {
  margin-bottom: 0;
}

.pr-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pr-import-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pr-demo-hints {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.pr-demo-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pr-demo-note {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px dashed rgba(143, 79, 54, 0.45);
  background: rgba(143, 79, 54, 0.06);
  font-size: 0.92rem;
}

.pr-demo-banner,
.pr-import-banner {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
}

.pr-demo-banner {
  border: 1px solid rgba(143, 79, 54, 0.45);
  background: rgba(143, 79, 54, 0.08);
}

.pr-import-banner {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.pr-form-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.pr-form-toolbar-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pr-form-actions {
  margin-top: 0.5rem;
}

.pr-required {
  font-weight: 700;
  color: #8f4f36;
  font-size: 0.88rem;
}

.pr-source-badge {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: middle;
  white-space: normal;
  max-width: 100%;
}

.pr-source-badge--cpar_import {
  border-color: rgba(36, 88, 122, 0.35);
}

.pr-source-badge--visitor {
  border-color: rgba(54, 110, 72, 0.35);
}

.pr-source-badge--estimate {
  border-color: rgba(143, 79, 54, 0.35);
}

.pr-source-badge--unknown {
  border-color: rgba(100, 100, 100, 0.35);
  color: var(--muted);
}

.pr-section {
  margin-bottom: 1.35rem;
}

.pr-report-chapter {
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.15rem 0.1rem;
  border: 1px solid var(--line, #c5c0b4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.pr-report-chapter--financial,
.pr-report-chapter--association {
  border-top: 4px solid var(--field-dark, #1f3b2d);
}

.pr-confidence {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(31, 59, 45, 0.07);
}

.pr-confidence-heading-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pr-confidence-heading-row .pr-section-title {
  margin-bottom: 0;
}

.pr-confidence-score {
  margin: 0.45rem 0 0;
  color: var(--field-dark, #1f3b2d);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 850;
  line-height: 1;
}

.pr-confidence-message {
  margin: 0.55rem 0 0;
  font-weight: 700;
}

.pr-confidence-explanation {
  margin: 0.65rem 0 0;
  color: var(--muted, #4a554d);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pr-confidence-tooltip {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line, #c5c0b4);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #17201a);
  font-size: 0.85rem;
  line-height: 1.45;
}

.pr-print-only {
  display: none;
}

.pr-snapshot-line {
  margin: 0 0 0.45rem;
}

.pr-status-list,
.pr-summary-list,
.pr-question-list,
.pr-learning-links,
.pr-observations {
  margin: 0;
  padding-left: 1.2rem;
}

.pr-status-item {
  margin-bottom: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.pr-status-label {
  font-weight: 700;
  min-width: 0;
}

.pr-status-value {
  color: var(--field-dark);
}

.pr-completeness-lead {
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.pr-completeness-stat {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.pr-summary-list--missing li {
  color: #8f4f36;
}

.pr-question-group {
  margin-bottom: 1rem;
}

.pr-learning-links li {
  margin-bottom: 0.45rem;
}

.pr-disclaimer {
  margin-bottom: 1rem;
}

.pr-cta {
  margin-top: 0.5rem;
}

.pr-print-disclaimer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.pr-print-meta {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}

/* Screen report chrome — print header/footer stay out of the a11y tree via display:none */
.pr-print-header,
.pr-print-brand-footer,
.pr-print-page-brand {
  display: none;
}

.pr-screen-report-header {
  margin-bottom: 1rem;
}

.pr-screen-report-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--ink, #17201a);
}

.pr-screen-report-place,
.pr-screen-report-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pr-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  margin: 0 0 1.35rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(95, 122, 85, 0.22);
  border-radius: var(--radius-sm, 12px);
  background:
    linear-gradient(180deg, rgba(95, 122, 85, 0.10), rgba(95, 122, 85, 0.05)),
    rgba(255, 255, 255, 0.72);
}

.pr-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(56, 81, 52, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(23, 32, 26, 0.04);
  color: var(--field-dark, #385134);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--motion-fast, 180ms) var(--motion-ease, ease),
    border-color var(--motion-fast, 180ms) var(--motion-ease, ease),
    color var(--motion-fast, 180ms) var(--motion-ease, ease),
    box-shadow var(--motion-fast, 180ms) var(--motion-ease, ease);
}

.pr-quick-action:hover,
.pr-quick-action:focus-visible {
  background: rgba(95, 122, 85, 0.14);
  border-color: rgba(56, 81, 52, 0.4);
  color: var(--ink, #17201a);
  box-shadow: 0 2px 8px rgba(23, 32, 26, 0.08);
}

.pr-quick-action:focus-visible {
  outline: 2px solid var(--field-dark, #385134);
  outline-offset: 2px;
}

.pr-quick-action-icon {
  flex-shrink: 0;
  color: var(--field, #5f7a55);
  opacity: 1;
}

.pr-quick-action:hover .pr-quick-action-icon,
.pr-quick-action:focus-visible .pr-quick-action-icon {
  color: var(--field-dark, #385134);
}

@media (prefers-reduced-motion: reduce) {
  .pr-quick-action {
    transition: none;
  }
}

.pr-snap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: 0;
}

@media (min-width: 640px) {
  .pr-snap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pr-snap-item {
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line, #c5c0b4);
}

.pr-snap-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--field-dark, #385134);
}

.pr-snap-item dd {
  margin: 0.15rem 0 0;
}

.pr-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.35rem 0 0.5rem;
}

.pr-report-table th,
.pr-report-table td {
  border: 1px solid var(--line, #c5c0b4);
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.pr-report-table th {
  width: 58%;
  font-weight: 600;
}

.pr-row-total th,
.pr-row-total td {
  font-weight: 700;
}

.pr-row-group th {
  padding-top: 0.85rem;
  color: var(--field-dark, #1f3b2d);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pr-prov {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line, #c5c0b4);
  font-size: 0.72rem;
  font-weight: 700;
}

.pr-legend-list {
  margin: 0;
  padding-left: 1.15rem;
}

.pr-section--missing {
  border: 1px solid var(--line, #c5c0b4);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.45);
}

.pr-next-steps {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.pr-learning-url {
  display: block;
  font-size: 0.8rem;
  color: var(--muted, #5a635c);
  word-break: break-all;
}

.pr-dd-key {
  font-size: 0.88rem;
}

.pr-disclaimer-body {
  font-size: 0.9rem;
  line-height: 1.45;
}

.pr-disclaimer-body.dc-brokerage-disclaimer,
.pr-cta .dc-brokerage-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.pr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pr-report-version {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted, #5a635c);
}

/* Reuse calculator input shrink fixes inside review form */
.pr-form .calc-input-wrap,
.pr-form .calc-input,
.pr-entry .calc-input {
  min-width: 0;
  max-width: 100%;
}

.pr-form .calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.pr-form .calc-input {
  flex: 1 1 auto;
  width: 100%;
}

.pr-form .calc-field-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .pr-form .calc-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pr-form .calc-field--wide,
  .pr-form .calc-field--checkbox {
    grid-column: 1 / -1;
  }
}

@media (max-width: 519px) {
  .pr-entry-actions .button,
  .pr-form-actions .button,
  .pr-cta .button {
    width: 100%;
  }

  .calc-summary-card-value {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-shell--reduced-motion * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0.72in 0.6in 0.72in;
  }

  html,
  body {
    background: #fff !important;
    color: #17201a !important;
  }

  #site-header,
  #site-footer,
  .site-nav,
  .breadcrumbs,
  .pr-utility-bar,
  .calc-utility-bar,
  .pr-mobile-tabs,
  .pr-search-pane,
  #pr-idx-frame,
  .pr-idx-frame,
  .pr-idx-note,
  .pr-gather,
  .pr-form,
  #pr-form,
  #pr-entry,
  .pr-privacy-note,
  #pr-interactive .de-prose,
  #interactive-pr-heading,
  #interactive-pr-heading + p,
  .decision-seo,
  .pr-form-toolbar,
  .calc-form-actions,
  .pr-screen-only,
  .info-button,
  .pr-cta,
  .calc-cta {
    display: none !important;
  }

  #pr-interactive,
  .pr-workspace,
  .pr-workspace-grid,
  .pr-review-pane,
  .pr-layout,
  .pr-results-column,
  #pr-results {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  #property-review-report,
  .pr-report {
    display: block !important;
    color: #17201a;
  }

  .pr-print-header,
  .pr-print-brand-footer {
    display: block !important;
  }

  .pr-print-page-brand {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    display: flex !important;
    justify-content: space-between;
    gap: 0.35in;
    color: #17201a;
    font-size: 8.5pt;
    line-height: 1.2;
  }

  .pr-print-page-brand--header {
    top: -0.48in;
    padding-bottom: 0.08in;
    border-bottom: 1px solid #5f7a55;
  }

  .pr-print-page-brand--footer {
    bottom: -0.5in;
    padding-top: 0.08in;
    border-top: 1px solid #5f7a55;
  }

  .pr-print-page-brand--header strong {
    color: #385134;
  }

  .pr-print-page-brand span:last-child {
    text-align: right;
  }

  .pr-screen-report-header {
    display: none !important;
  }

  .pr-print-only {
    display: block !important;
  }

  .pr-report-chapter {
    margin: 0 0 0.9rem;
    padding: 0.65rem 0.7rem 0.05rem;
    border-radius: 0;
    background: transparent;
    break-inside: auto;
    page-break-inside: auto;
  }

  .pr-confidence {
    break-inside: avoid;
    page-break-inside: avoid;
    background: transparent;
    border: 1px solid #17201a;
  }

  .pr-print-header {
    border-bottom: 2px solid #385134;
    padding-bottom: 0.65rem;
    margin-bottom: 0.85rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pr-print-header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .pr-print-logo {
    height: 42px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
  }

  .pr-print-realtor {
    margin: 0;
    font-weight: 700;
    color: #17201a;
  }

  .pr-print-site {
    margin: 0.1rem 0 0;
    font-weight: 700;
    color: #385134;
  }

  .pr-print-tagline {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: #17201a;
  }

  .pr-print-header-contact {
    margin-top: 0.45rem;
    font-size: 0.88rem;
  }

  .pr-print-header-contact p {
    margin: 0.1rem 0;
  }

  .pr-print-title-block {
    margin-top: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid #d8c8aa;
  }

  .pr-print-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #17201a;
  }

  .pr-print-place,
  .pr-print-meta-line {
    margin: 0.25rem 0 0;
    font-size: 0.92rem;
  }

  .pr-section {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 0.85rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .pr-section-title {
    break-after: avoid;
    page-break-after: avoid;
    margin: 0 0 0.4rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #5f7a55;
    font-size: 1.05rem;
    color: #17201a;
  }

  .pr-subheading {
    break-after: avoid;
    page-break-after: avoid;
    font-size: 0.95rem;
  }

  .pr-snapshot-card,
  .pr-report-table,
  .pr-question-group,
  .pr-missing-group {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pr-snap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.85rem;
    margin: 0;
  }

  .pr-snap-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.05rem;
    border-bottom: 1px solid #d8c8aa;
    padding: 0.25rem 0;
  }

  .pr-snap-item dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #385134;
  }

  .pr-snap-item dd {
    margin: 0;
    font-size: 0.95rem;
  }

  .pr-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
  }

  .pr-report-table th,
  .pr-report-table td {
    border: 1px solid #17201a;
    padding: 0.35rem 0.45rem;
    text-align: left;
    vertical-align: top;
  }

  .pr-report-table th {
    width: 58%;
    font-weight: 600;
    background: transparent;
  }

  .pr-row-total th,
  .pr-row-total td,
  .pr-row-sep th,
  .pr-row-sep td {
    border-top-width: 2px;
    font-weight: 700;
  }

  .pr-prov,
  .pr-derive-badge,
  .pr-source-badge {
    display: inline-block;
    border: 1px solid #17201a;
    padding: 0.05rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: transparent !important;
    color: #17201a !important;
    border-radius: 0;
  }

  .pr-legend-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
  }

  .pr-section--missing {
    border: 1px solid #17201a;
    padding: 0.55rem 0.65rem;
  }

  .pr-section--disclaimer {
    margin-top: 1rem;
  }

  .pr-disclaimer-body {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #17201a;
  }

  .pr-disclaimer-body.dc-brokerage-disclaimer {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #17201a;
  }

  .pr-learning-url {
    display: block;
    font-size: 0.78rem;
    word-break: break-all;
  }

  .pr-print-brand-footer {
    margin-top: 1rem;
    padding-top: 0.65rem;
    border-top: 2px solid #385134;
    font-size: 0.85rem;
    break-inside: avoid;
  }

  .pr-print-brand-footer p {
    margin: 0.15rem 0;
  }

  .pr-print-prepared {
    margin-top: 0.35rem !important;
    font-style: italic;
  }

  a {
    color: #17201a !important;
    text-decoration: none;
  }

  .pr-dd-symbol {
    font-family: ui-monospace, Consolas, monospace;
    font-weight: 700;
  }
}

/* Carried-forward + derived field affordances */
.pr-field--carried,
.pr-field--derived {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.pr-carried-value {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.pr-source-badge--carried,
.pr-derive-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line, #c5c0b4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.pr-derive-badge {
  border-color: #2f5d46;
  color: #1f3b2d;
  background: rgba(47, 93, 70, 0.08);
}

.pr-derive-badge--visitor {
  border-color: #8a5a2b;
  color: #6b3f14;
  background: rgba(138, 90, 43, 0.1);
}

.pr-derive-note {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pr-derive-note--guidance,
.pr-derive-note--reconcile {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line, #c5c0b4);
  background: rgba(255, 255, 255, 0.55);
}

.pr-derive-actions,
.pr-plan-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.pr-plan-transfer {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line, #c5c0b4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.pr-plan-transfer-lead {
  margin: 0 0 0.35rem;
}

.pr-buyer-fee-note {
  margin-top: -0.25rem;
}

.pr-advanced {
  grid-column: 1 / -1;
  margin: 0.35rem 0;
  border: 1px dashed var(--line, #c5c0b4);
  border-radius: 10px;
  padding: 0.35rem 0.65rem 0.65rem;
}

.pr-advanced > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.35rem 0;
}

.pr-form-review {
  margin: 1rem 0 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line, #c5c0b4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.pr-form-review-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.pr-muted {
  color: color-mix(in srgb, var(--ink, #1a1a1a) 72%, transparent);
  font-size: 0.92rem;
}
