/* Phase 1 final pre-deployment production hotfix */
:root {
    --predeploy-control-height: 44px;
}

:where(.btn, .home-v2-btn, .sprint03-utility-button, .sprint03-view-toggle button, .s7-map-action) {
    min-height: var(--predeploy-control-height);
}

:where(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
    min-height: var(--predeploy-control-height);
}

.home-v2-nav-link,
.home-v2-nav-trigger {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}

.leaflet-container {
    min-height: 320px;
    background: #e8edf3;
}

.leaflet-control-layers[data-predeployment-basemaps],
.s7-layer-panel {
    max-width: min(330px, calc(100vw - 32px));
}

.market-smooth-heat-canvas {
    mix-blend-mode: multiply;
}

[data-theme="dark"] .market-smooth-heat-canvas {
    mix-blend-mode: screen;
    opacity: .78;
}

.predeployment-heat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.predeployment-heat-export {
    min-height: 38px;
    padding-inline: 12px;
}

.about-platform-hero {
    position: relative;
    min-height: clamp(360px, 48vw, 560px);
    margin: 0 0 26px;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: clamp(18px, 2.4vw, 30px);
    background: #0b1728;
    box-shadow: 0 24px 60px rgba(8, 18, 34, .2);
}

.about-platform-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-platform-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 15, 29, .94) 0%, rgba(4, 15, 29, .73) 38%, rgba(4, 15, 29, .12) 72%);
}

[dir="rtl"] .about-platform-hero::after {
    background: linear-gradient(270deg, rgba(4, 15, 29, .94) 0%, rgba(4, 15, 29, .73) 38%, rgba(4, 15, 29, .12) 72%);
}

.about-platform-hero__copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 14px;
    width: min(620px, 62%);
    min-height: inherit;
    padding: clamp(28px, 5vw, 72px);
    color: #fff;
}

.about-platform-hero__copy .home-eyebrow {
    color: #f8d56b;
}

.about-platform-hero__copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
}

.about-platform-hero__copy p {
    max-width: 58ch;
    margin: 0;
    color: #dce6f4;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.75;
}

.about-platform-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.about-platform-hero__trust span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(8, 24, 43, .52);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.about-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-platform-grid .review-content-card {
    min-height: 180px;
}

.about-platform-grid .review-content-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.auth-public-main {
    min-height: calc(100svh - 82px);
    align-items: center;
    padding-block: clamp(28px, 6vh, 72px);
}

.auth-commercial-layout {
    width: min(1080px, calc(100% - 32px));
    margin-inline: auto;
}

.auth-commercial-panel,
.auth-commercial-aside {
    min-height: 100%;
}

.auth-provider-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface-2);
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.55;
}

.auth-provider-status strong {
    color: var(--app-text);
}

.dashboard-main-wide,
.admin-page-shell {
    width: min(1500px, calc(100% - 32px));
    margin-inline: auto;
}

.dashboard-metrics,
.admin-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.dashboard-chart-card,
.admin-dashboard-card,
.revision03-dashboard-module {
    min-width: 0;
}

.dashboard-activity-list,
.admin-activity-list,
.revision03-scroll-region {
    max-height: 420px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.sprint03-results-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
}

.sprint03-map-pane {
    align-self: start;
}

.sprint03-map {
    min-height: clamp(500px, 66vh, 760px);
}

@media (max-width: 1180px) {
    .home-v2-nav-toplinks .home-v2-nav-link:nth-of-type(8),
    .home-v2-nav-toplinks .home-v2-nav-link:nth-of-type(9) {
        display: none;
    }
}

@media (max-width: 980px) {
    .sprint03-results-layout {
        grid-template-columns: 1fr;
    }

    .sprint03-map {
        min-height: min(62vh, 560px);
    }

    .about-platform-hero__copy {
        width: min(720px, 82%);
    }
}

@media (max-width: 640px) {
    .about-platform-hero {
        min-height: 500px;
    }

    .about-platform-hero img {
        object-position: 62% center;
    }

    .about-platform-hero::after,
    [dir="rtl"] .about-platform-hero::after {
        background: linear-gradient(180deg, rgba(4, 15, 29, .45), rgba(4, 15, 29, .95) 72%);
    }

    .about-platform-hero__copy {
        align-content: end;
        width: 100%;
        padding: 28px 22px;
    }

    .about-platform-grid {
        grid-template-columns: 1fr;
    }

    .about-platform-grid .review-content-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .dashboard-main-wide,
    .admin-page-shell {
        width: min(100% - 20px, 1500px);
    }

    .auth-commercial-layout {
        width: min(100% - 20px, 1080px);
    }
}

@media print {
    .predeployment-heat-export {
        display: none !important;
    }

    .about-platform-hero {
        min-height: 220px;
        box-shadow: none;
        break-inside: avoid;
    }
}
