.heat-vulnerability-preview-page {
    background: #f7faf9;
}

.hv-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 72px;
    color: var(--yl-ink, #1f2937);
}

.hv-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr);
    gap: 48px;
    align-items: end;
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid #dce8e4;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 63, 61, .08);
}

.hv-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #163f3d;
    font-size: clamp(2.05rem, 4.4vw, 4rem);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.hv-lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: #415e5b;
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.8;
}

.hv-boundary-note {
    max-width: 730px;
    margin: 18px 0 0;
    padding-left: 14px;
    border-left: 3px solid #2b8a7f;
    color: #5f706e;
    font-size: .92rem;
    line-height: 1.7;
}

.hv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 26px;
}

.hv-summary {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid #dce8e4;
}

.hv-summary > div {
    display: grid;
    grid-template-columns: minmax(82px, auto) 1fr;
    gap: 18px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid #dce8e4;
}

.hv-summary dt {
    color: #176b66;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 760;
    letter-spacing: -.03em;
}

.hv-summary dd {
    margin: 0;
    color: #647472;
    font-size: .88rem;
    line-height: 1.5;
}

.hv-summary-unavailable {
    padding: 24px 0;
    color: #647472;
    font-size: .95rem;
    line-height: 1.7;
}

.hv-map-section,
.hv-evidence-section,
.hv-candidate-section,
.hv-machine-note {
    margin-top: 34px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #dce8e4;
    border-radius: 24px;
    background: #ffffff;
}

.hv-section-heading {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hv-section-heading h2,
.hv-evidence-section h2,
.hv-machine-note h2 {
    margin: 0;
    color: #173f3d;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 730;
    letter-spacing: -.025em;
}

.hv-section-heading p,
.hv-machine-note > p {
    max-width: 780px;
    margin: 9px 0 0;
    color: #60716e;
    font-size: .94rem;
    line-height: 1.75;
}

.hv-layer-controls {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid #d4e2df;
    border-radius: 12px;
    background: #f5f9f8;
}

.hv-layer-button {
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4c6562;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 650;
}

.hv-layer-button:hover,
.hv-layer-button:focus-visible {
    color: #0f5e59;
    outline: 2px solid rgba(23, 122, 119, .28);
    outline-offset: 1px;
}

.hv-layer-button.is-active {
    background: #ffffff;
    color: #0e615c;
    box-shadow: 0 2px 8px rgba(22, 77, 72, .11);
}

.hv-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
}

.hv-map-stage {
    position: relative;
    min-width: 0;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid #d9e4e1;
    border-radius: 18px;
    background: #eef4f2;
}

#heatVulnerabilityCanvas {
    display: block;
    width: 100%;
    height: 560px;
    cursor: crosshair;
}

.hv-map-legend {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: min(290px, calc(100% - 28px));
    padding: 12px 14px;
    border: 1px solid rgba(204, 220, 216, .95);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(18, 70, 66, .12);
    backdrop-filter: blur(8px);
}

.hv-legend-title {
    display: block;
    margin-bottom: 8px;
    color: #314d4a;
    font-size: .78rem;
    font-weight: 700;
}

.hv-legend-scale {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
}

.hv-legend-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    color: #647472;
    font-size: .72rem;
}

.hv-map-aside {
    display: grid;
    align-content: start;
    gap: 24px;
}

.hv-map-aside > div {
    padding-bottom: 22px;
    border-bottom: 1px solid #e1ebe8;
}

.hv-map-aside > div:last-child {
    border-bottom: 0;
}

.hv-map-aside h3 {
    margin: 0 0 8px;
    color: #2a4a47;
    font-size: .86rem;
    font-weight: 750;
    letter-spacing: .02em;
}

.hv-map-status,
.hv-map-inspector,
.hv-map-privacy p,
.hv-noscript {
    margin: 0;
    color: #60716e;
    font-size: .86rem;
    line-height: 1.7;
}

.hv-map-status.is-error {
    color: #a13f31;
}

.hv-map-status.is-ready {
    color: #176b58;
}

.hv-map-keyboard label {
    display: block;
    margin-bottom: 7px;
    color: #526966;
    font-size: .8rem;
    font-weight: 650;
}

.hv-map-keyboard select {
    min-height: 44px;
    border-color: #cdded9;
    color: #274b48;
    font-size: .82rem;
}

.hv-map-keyboard p {
    margin: 8px 0 0;
    color: #71817f;
    font-size: .76rem;
    line-height: 1.55;
}

.hv-map-privacy {
    padding: 16px !important;
    border: 1px solid #d8e8e3 !important;
    border-radius: 14px;
    background: #f3f8f6;
}

.hv-map-privacy strong {
    display: block;
    margin-bottom: 5px;
    color: #176b66;
    font-size: .82rem;
}

.hv-noscript {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7e8;
}

.hv-evidence-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
    gap: 52px;
    align-items: start;
}

.hv-evidence-copy ul {
    margin: 20px 0 0;
    padding-left: 1.25rem;
    color: #526966;
    font-size: .93rem;
    line-height: 1.8;
}

.hv-evidence-copy li + li {
    margin-top: 9px;
}

.hv-range-table-wrap {
    overflow-x: auto;
}

.hv-range-table {
    width: 100%;
    border-collapse: collapse;
    color: #3f5754;
    font-size: .84rem;
}

.hv-range-table caption {
    padding: 0 0 12px;
    color: #234946;
    font-size: .9rem;
    font-weight: 720;
    text-align: left;
}

.hv-range-table th,
.hv-range-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #dfe9e6;
    text-align: right;
    white-space: nowrap;
}

.hv-range-table th:first-child,
.hv-range-table td:first-child {
    padding-left: 0;
    text-align: left;
}

.hv-range-table thead th {
    color: #6a7c79;
    font-size: .75rem;
    font-weight: 650;
}

.hv-table-note {
    margin: 12px 0 0;
    color: #71817f;
    font-size: .78rem;
}

.hv-candidate-list {
    border-top: 1px solid #dfe9e6;
}

.hv-candidate-item {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(220px, 1.15fr) minmax(180px, .9fr) auto;
    gap: 22px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #dfe9e6;
}

.hv-candidate-item h3 {
    margin: 0;
    color: #294b48;
    font-size: .98rem;
    font-weight: 700;
}

.hv-candidate-item p,
.hv-candidate-item address {
    margin: 4px 0 0;
    color: #647673;
    font-size: .82rem;
    font-style: normal;
    line-height: 1.55;
}

.hv-candidate-hours {
    margin: 0 !important;
}

.hv-pending-label {
    padding: 6px 9px;
    border-radius: 8px;
    background: #fff4dc;
    color: #885f18;
    font-size: .74rem;
    font-weight: 720;
    white-space: nowrap;
}

.hv-empty {
    margin: 0;
    color: #647673;
}

.hv-machine-note > p[lang="en"] {
    padding-top: 14px;
    border-top: 1px solid #e1ebe8;
    color: #687a77;
    font-size: .84rem;
}

@media (max-width: 991.98px) {
    .hv-hero,
    .hv-evidence-section {
        grid-template-columns: 1fr;
    }

    .hv-hero {
        gap: 34px;
    }

    .hv-map-layout {
        grid-template-columns: 1fr;
    }

    .hv-map-aside {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .hv-map-aside > div {
        padding: 0;
        border: 0;
    }

    .hv-candidate-item {
        grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr) auto;
    }

    .hv-candidate-hours {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hv-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .hv-hero,
    .hv-map-section,
    .hv-evidence-section,
    .hv-candidate-section,
    .hv-machine-note {
        padding: 22px;
        border-radius: 18px;
    }

    .hv-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hv-layer-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .hv-map-stage {
        min-height: 410px;
    }

    #heatVulnerabilityCanvas {
        height: 440px;
    }

    .hv-map-aside {
        grid-template-columns: 1fr;
    }

    .hv-map-aside > div {
        padding-bottom: 16px;
        border-bottom: 1px solid #e1ebe8;
    }

    .hv-map-privacy {
        padding: 14px !important;
    }

    .hv-range-table {
        font-size: .74rem;
    }

    .hv-range-table th,
    .hv-range-table td {
        padding: 10px 4px;
    }

    .hv-range-table th:first-child,
    .hv-range-table td:first-child {
        width: 42%;
    }

    .hv-candidate-item {
        grid-template-columns: 1fr auto;
        gap: 10px 16px;
    }

    .hv-candidate-item address {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

@media (max-width: 479.98px) {
    .hv-layer-controls {
        grid-template-columns: 1fr;
    }

    .hv-actions .btn {
        width: 100%;
    }

    .hv-map-legend {
        right: 8px;
        bottom: 8px;
        width: calc(100% - 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .heat-vulnerability-preview-page *,
    .heat-vulnerability-preview-page *::before,
    .heat-vulnerability-preview-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
