/*
 * Domovita - Buyer Property Report
 * com_domovita 2.2.0 (2026-05-23)
 *
 * Two flavours of layout live in one stylesheet:
 *   .dv-buyer-report--landing : the address-entry form + marketing copy
 *   .dv-buyer-report--report  : the rendered report (screen + print)
 *
 * The print rules at the bottom of the file collapse the report layout to a
 * clean one-column print-friendly version that browsers save to PDF.
 *
 * Brand variables (--dv-navy, --dv-orange etc.) come from domovita.css.
 */

/* ============================================================
   Shared scoping
   ============================================================ */
.dv-buyer-report {
    background: #f7f7f8;
    color: #1f2933;
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dv-buyer-report * {
    box-sizing: border-box;
}

.dv-buyer-report h1,
.dv-buyer-report h2,
.dv-buyer-report h3 {
    color: #15243a;
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

.dv-buyer-report a {
    color: #c25a25;
}

/* ============================================================
   Landing - hero
   ============================================================ */
.dv-br-hero {
    background: linear-gradient(135deg, #14233a 0%, #1f3957 100%);
    color: #fff;
    padding: 4rem 0 5rem;
}
.dv-br-hero .domovita-container {
    max-width: 920px;
}
.dv-br-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}
.dv-br-hero-brand img {
    height: 28px;
    width: auto;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}
/* 2026-05-23 (2.3.0): UX audit found H1 rendering dark-navy on dark-navy here
   because some Helix base-typography rule beats `.dv-br-hero-title` on
   specificity. Use the heaviest scope we control + !important to win. Mirrored
   on .dv-br-hero-lead in case the same competition expands. */
.dv-buyer-report .dv-br-hero h1.dv-br-hero-title,
h1.dv-br-hero-title {
    font-size: clamp(1.9rem, 3.5vw + 0.6rem, 3rem);
    color: #fff !important;
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.dv-buyer-report .dv-br-hero .dv-br-hero-lead,
.dv-br-hero-lead {
    font-size: 1.15rem;
    max-width: 56ch;
    margin: 0 0 1.5rem;
    color: rgba(255,255,255,0.92) !important;
}
.dv-br-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
    max-width: 600px;
}
.dv-br-hero-bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}
.dv-br-hero-bullets li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.6em;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #f29a52;
    box-shadow: 0 0 0 3px rgba(242,154,82,0.25);
}

/* ============================================================
   Landing - form
   ============================================================ */
.dv-br-form-section {
    padding: 3rem 0;
}
.dv-br-form-section .domovita-container {
    max-width: 720px;
}
.dv-br-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 22px 50px -28px rgba(20,35,58,0.35);
    border: 1px solid #e3e6ec;
}
.dv-br-form-title {
    font-size: 1.4rem;
    margin: 0 0 0.25rem;
}
.dv-br-form-sub {
    margin: 0 0 1.5rem;
    color: #4f5a6d;
}
.dv-br-form-banner {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}
.dv-br-form-banner--success {
    background: #e7f7ef;
    color: #1b6840;
    border: 1px solid #b5e3c8;
}
.dv-br-form-row {
    display: flex;
    flex-direction: column;
    margin: 0 0 1.1rem;
}
.dv-br-form-label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #15243a;
    margin-bottom: 0.4rem;
}
.dv-br-required {
    color: #c25a25;
}
.dv-br-form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #cdd2db;
    border-radius: 8px;
    font: inherit;
    color: inherit;
    background: #fff;
    transition: border-color 120ms, box-shadow 120ms;
}
.dv-br-form-input:focus {
    outline: none;
    border-color: #c25a25;
    box-shadow: 0 0 0 3px rgba(194,90,37,0.18);
}
.dv-br-form-hint {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #6c7585;
}
.dv-br-form-row--consent {
    background: #f4f6fa;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 1.25rem 0 1.5rem;
}
.dv-br-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: #2b3548;
    cursor: pointer;
}
.dv-br-form-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.05rem; height: 1.05rem;
    accent-color: #c25a25;
}
.dv-br-form-actions {
    text-align: right;
    margin-bottom: 0.75rem;
}
.dv-br-form-submit {
    min-width: 240px;
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
}
.dv-br-form-foot {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #6c7585;
}

/* Re-use existing .dv-btn from domovita.css; this is a guardrail in case the
   button styles aren't loaded on the page. */
.dv-buyer-report .dv-btn--primary {
    background: #c25a25;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms;
}
.dv-buyer-report .dv-btn--primary:hover {
    background: #a44a1e;
}
.dv-buyer-report .dv-btn--tertiary {
    background: transparent;
    color: #15243a;
    border: 1.5px solid #cdd2db;
    border-radius: 8px;
    padding: 0.65rem 1.3rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color 120ms, color 120ms;
}
.dv-buyer-report .dv-btn--tertiary:hover {
    border-color: #15243a;
}

/* ============================================================
   Landing - explainer cards
   ============================================================ */
.dv-br-explainer {
    background: #fff;
    padding: 3rem 0 4rem;
    border-top: 1px solid #e3e6ec;
}
.dv-br-explainer-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}
.dv-br-explainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 1080px;
    margin: 0 auto;
}
.dv-br-explainer-card {
    background: #f7f7f8;
    border: 1px solid #e3e6ec;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.4rem;
}
.dv-br-explainer-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: #15243a;
}
.dv-br-explainer-card p {
    margin: 0;
    color: #4f5a6d;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ============================================================
   Report - header
   ============================================================ */
.dv-buyer-report--report {
    background: #f7f7f8;
    padding-bottom: 4rem;
}
.dv-br-report-header {
    background: linear-gradient(135deg, #14233a 0%, #1f3957 100%);
    color: #fff;
    padding: 2.5rem 0 2.25rem;
}
.dv-br-report-header-inner {
    max-width: 920px;
}
.dv-br-report-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.dv-br-report-brand-logo {
    height: 36px;
    width: auto;
    border-radius: 4px;
    background: #fff;
    padding: 3px;
}
.dv-br-report-brand-text {
    font-weight: 700;
    font-size: 1.15rem;
}
.dv-br-report-brand-divider {
    opacity: 0.45;
}
.dv-br-report-brand-label {
    opacity: 0.85;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.dv-br-report-title {
    font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.4rem);
    color: #fff;
    margin: 0 0 0.4rem;
}
.dv-br-report-sub {
    margin: 0 0 1.5rem;
    color: rgba(255,255,255,0.85);
}
.dv-br-report-toolbar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.dv-br-report-toolbar .dv-btn--tertiary {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.dv-br-report-toolbar .dv-btn--tertiary:hover {
    border-color: #fff;
}

/* ============================================================
   Report - body & sections
   ============================================================ */
.dv-br-report-body {
    max-width: 920px;
    margin: -1.75rem auto 0;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.25rem;
    box-shadow: 0 30px 60px -32px rgba(20,35,58,0.28);
    border: 1px solid #e3e6ec;
    position: relative;
    z-index: 2;
}
/* Overview strip - sits at the top of the report body, surfaces which sections
   actually have data so the reader is calibrated before scrolling through any
   empty states. Shipped 2.3.0. */
.dv-br-overview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 1.25rem;
}
.dv-br-overview-summary {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #475569;
}
.dv-br-overview-summary strong {
    color: #15243a;
}
.dv-br-overview-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.dv-br-overview-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}
.dv-br-overview-chip.is-available {
    background: #d1fae5;
    color: #065f46;
}
.dv-br-overview-chip.is-empty {
    background: #f1f5f9;
    color: #64748b;
}
.dv-br-overview-mark {
    font-weight: 700;
    font-size: 0.85rem;
}

.dv-br-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eceef3;
}
.dv-br-section:last-of-type {
    border-bottom: none;
}
.dv-br-section-title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #c25a25;
    display: inline-block;
}
.dv-br-subhead {
    font-size: 1rem;
    margin: 1.25rem 0 0.65rem;
    color: #4f5a6d;
    font-weight: 600;
}
.dv-br-section-note {
    font-size: 0.85rem;
    color: #6c7585;
    margin: 0.5rem 0 0;
}
.dv-br-section-empty {
    background: #f4f6fa;
    color: #4f5a6d;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin: 0;
    font-size: 0.92rem;
}

/* Data tiles */
.dv-br-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    margin: 0;
}
.dv-br-tile {
    background: #f4f6fa;
    border: 1px solid #e3e6ec;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}
.dv-br-tile-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c7585;
    margin-bottom: 0.35rem;
}
.dv-br-tile-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #15243a;
}
.dv-br-tile--accent {
    background: #e7f7ef;
    border-color: #b5e3c8;
}
.dv-br-tile--accent .dv-br-tile-value {
    color: #1b6840;
}
.dv-br-tile--warn {
    background: #fdecec;
    border-color: #f5b4b4;
}
.dv-br-tile--warn .dv-br-tile-value {
    color: #b1382f;
}

/* EPC band chips */
.dv-br-epc-band {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 700;
}
.dv-br-epc-band--a { background: #007f3d; }
.dv-br-epc-band--b { background: #2c9f3f; }
.dv-br-epc-band--c { background: #8dca3f; color: #2b3548 !important; }
.dv-br-epc-band--d { background: #f2d03c; color: #2b3548 !important; }
.dv-br-epc-band--e { background: #f3a73c; }
.dv-br-epc-band--f { background: #e57b1f; }
.dv-br-epc-band--g { background: #d23827; }
.dv-br-epc-band--na { background: #cdd2db; color: #2b3548 !important; }

/* Tables */
.dv-br-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
}
.dv-br-table thead th {
    text-align: left;
    background: #f4f6fa;
    border-bottom: 2px solid #cdd2db;
    color: #4f5a6d;
    font-weight: 600;
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dv-br-table tbody td {
    border-bottom: 1px solid #eceef3;
    padding: 0.6rem 0.7rem;
    vertical-align: top;
}
.dv-br-table tbody tr:last-child td {
    border-bottom: none;
}
.dv-br-table-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Lists */
.dv-br-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dv-br-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed #e3e6ec;
}
.dv-br-list li:last-child { border-bottom: none; }
.dv-br-list-label {
    color: #2b3548;
    font-weight: 500;
}
.dv-br-list-value {
    color: #15243a;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.dv-br-list-flag .dv-br-list-value {
    color: #c25a25;
}

/* Report footer */
.dv-br-report-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #c25a25;
}
.dv-br-report-footer p {
    margin: 0 0 0.5rem;
    color: #4f5a6d;
    font-size: 0.85rem;
}
.dv-br-report-disclaimer {
    color: #6c7585;
    font-size: 0.78rem;
    font-style: italic;
}

/* Small-screen tweaks */
@media (max-width: 640px) {
    .dv-br-hero { padding: 3rem 0; }
    .dv-br-hero-bullets { grid-template-columns: 1fr; }
    .dv-br-form-card { padding: 1.5rem 1.25rem; }
    .dv-br-form-submit { width: 100%; min-width: 0; }
    .dv-br-report-body { padding: 1.5rem 1.25rem; margin-top: -1rem; border-radius: 8px; }
    .dv-br-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Print - browser save-to-PDF
   ============================================================ */
@media print {
    /* Strip site chrome (header/nav/footer/sidebars come from Helix; we don't
       know their exact selectors, so the safe approach is to hide everything
       and let only .dv-buyer-report--report visible). */
    body * { visibility: hidden !important; }
    .dv-buyer-report--report,
    .dv-buyer-report--report * { visibility: visible !important; }
    .dv-buyer-report--report {
        position: absolute;
        left: 0; top: 0;
        width: 100%;
    }

    /* Reset background + ink-saver */
    .dv-buyer-report--report { background: #fff !important; padding: 0 !important; }
    .dv-br-report-header {
        background: #14233a !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 1rem 0.75in !important;
    }
    .dv-br-report-toolbar { display: none !important; }

    .dv-br-report-body {
        margin: 0 !important;
        max-width: none !important;
        padding: 0.5in 0.75in 0.75in !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #fff !important;
    }

    .dv-br-section { page-break-inside: avoid; padding: 0.75rem 0; }
    .dv-br-tile {
        background: #f7f7f8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .dv-br-epc-band {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .dv-br-table thead th {
        background: #f4f6fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        size: A4;
        margin: 0;
    }

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