/* =========================================================
   HAVEN Website v3
   Maps v0.1 candidate
   ========================================================= */


.maps-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    min-height: 270px;

    margin-top: 32px;
    margin-bottom: 22px;

    padding:
        clamp(26px, 4vw, 48px);

    flex-direction: column;
    justify-content: center;

    border:
        1px solid
        #2b343b;

    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 12, 0.96) 0%,
            rgba(5, 9, 12, 0.91) 32%,
            rgba(5, 9, 12, 0.66) 62%,
            rgba(5, 9, 12, 0.76) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 9, 12, 0.16),
            rgba(5, 9, 12, 0.58)
        ),
        url("../img/haven-v3-industrial-bg.png");

    background-position:
        center,
        center,
        center 52%;

    background-size:
        auto,
        auto,
        cover;

    background-repeat:
        no-repeat;

    box-shadow:
        inset 0 0 0 1px
        rgba(0, 0, 0, 0.28),
        0 18px 52px
        rgba(0, 0, 0, 0.28);
}


.maps-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.025),
            rgba(0, 0, 0, 0.10)
        );
}


.maps-hero > * {
    position: relative;
    z-index: 1;
}


.maps-kicker {
    margin-bottom: 7px;

    color:
        rgba(221, 126, 67, 0.92);

    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.maps-hero h1,
.maps-panel h2,
.maps-server-context h2 {
    margin: 0;

    color:
        rgba(244, 247, 249, 0.96);
}


.maps-hero h1 {
    font-size:
        clamp(
            2rem,
            5vw,
            3.75rem
        );

    letter-spacing:
        -0.035em;
}


.maps-intro {
    max-width: 760px;

    margin:
        14px
        0
        0;

    color:
        rgba(232, 238, 242, 0.62);

    font-size:
        clamp(
            0.96rem,
            1.6vw,
            1.08rem
        );

    line-height: 1.7;
}


/* =========================================================
   Map records
   ========================================================= */


.maps-record-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-bottom: 22px;
}


.map-record-card {
    min-width: 0;

    padding:
        20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.075);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.026),
            rgba(255, 255, 255, 0.008)
        ),
        rgba(8, 12, 15, 0.82);
}


.map-record-label {
    display: block;

    margin-bottom: 11px;

    color:
        rgba(232, 238, 242, 0.4);

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


.map-record-name {
    display: block;

    overflow-wrap: anywhere;

    color:
        rgba(239, 154, 102, 0.97);

    font-size:
        clamp(
            1rem,
            1.8vw,
            1.25rem
        );

    line-height: 1.3;
}


.map-record-value {
    display: block;

    margin-top: 13px;

    color:
        rgba(246, 248, 250, 0.97);

    font-size:
        clamp(
            1.55rem,
            3vw,
            2.2rem
        );

    font-weight: 800;

    font-variant-numeric:
        tabular-nums;
}


.map-record-card p {
    margin:
        7px
        0
        0;

    color:
        rgba(232, 238, 242, 0.4);

    font-size: 0.74rem;
    line-height: 1.5;
}


/* =========================================================
   Battlefield panel
   ========================================================= */


.maps-panel {
    margin-bottom: 22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    background:
        rgba(8, 12, 15, 0.82);
}


.maps-panel-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    padding:
        22px
        24px
        18px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.065);
}


.maps-panel h2,
.maps-server-context h2 {
    font-size:
        clamp(
            1.45rem,
            3vw,
            2.15rem
        );
}


.maps-dataset-summary {
    flex: 0 0 auto;

    color:
        rgba(232, 238, 242, 0.42);

    font-size: 0.72rem;
    line-height: 1.5;

    text-align: right;
}


.maps-dataset-summary strong {
    color:
        rgba(239, 154, 102, 0.94);

    font-variant-numeric:
        tabular-nums;
}


.maps-dataset-summary span {
    margin:
        0
        5px;

    color:
        rgba(232, 238, 242, 0.18);
}


.maps-scope-note {
    padding:
        14px
        24px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);

    background:
        rgba(209, 106, 45, 0.045);

    color:
        rgba(232, 238, 242, 0.55);

    font-size: 0.8rem;
    line-height: 1.6;
}


.maps-scope-note strong {
    color:
        rgba(244, 247, 249, 0.92);
}


.maps-scope-note span {
    margin-left: 6px;
}


/* =========================================================
   Controls
   ========================================================= */


.maps-controls {
    display: grid;

    grid-template-columns:
        minmax(220px, 360px)
        minmax(0, 1fr)
        auto;

    gap: 12px;

    align-items: end;

    padding:
        16px
        24px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);
}


.maps-filter-label {
    grid-column: 1;

    margin-bottom: -6px;

    color:
        rgba(232, 238, 242, 0.38);

    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.maps-filter {
    grid-column: 1;

    width: 100%;

    min-height: 39px;

    padding:
        8px
        11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    background:
        rgba(4, 7, 9, 0.72);

    color:
        rgba(244, 247, 249, 0.92);

    font: inherit;
    font-size: 0.78rem;
}


.maps-filter::placeholder {
    color:
        rgba(232, 238, 242, 0.27);
}


.maps-filter:focus {
    outline:
        1px solid
        rgba(221, 126, 67, 0.72);

    outline-offset: 1px;
}


.maps-result-count {
    grid-column: 2;

    align-self: center;

    color:
        rgba(232, 238, 242, 0.4);

    font-size: 0.72rem;

    font-variant-numeric:
        tabular-nums;
}


.maps-expand {
    grid-column: 3;

    min-height: 39px;

    padding:
        8px
        14px;

    border:
        1px solid
        rgba(221, 126, 67, 0.45);

    background:
        rgba(209, 106, 45, 0.08);

    color:
        rgba(242, 183, 146, 0.96);

    cursor: pointer;

    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.maps-expand:hover,
.maps-expand:focus-visible {
    background:
        rgba(209, 106, 45, 0.14);

    border-color:
        rgba(239, 154, 102, 0.72);
}


/* =========================================================
   Map table
   ========================================================= */


.map-table-shell {
    width: 100%;

    overflow-x: auto;
}


.map-table {
    width: 100%;
    min-width: 920px;

    border-collapse: collapse;

    font-variant-numeric:
        tabular-nums;
}


.map-table caption {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    clip:
        rect(
            0,
            0,
            0,
            0
        );

    white-space: nowrap;

    border: 0;
}


.map-table th,
.map-table td {
    padding:
        12px
        14px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.055);

    text-align: right;
    white-space: nowrap;
}


.map-table th {
    background:
        rgba(13, 19, 23, 0.98);

    color:
        rgba(232, 238, 242, 0.47);

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.map-table th:nth-child(2),
.map-table td:nth-child(2),
.map-table th:nth-child(8),
.map-table td:nth-child(8) {
    text-align: left;
}


.map-table tbody tr {
    background:
        rgba(255, 255, 255, 0.008);
}


.map-table tbody tr:nth-child(even) {
    background:
        rgba(255, 255, 255, 0.018);
}


.map-table tbody tr:hover {
    background:
        rgba(209, 106, 45, 0.065);
}


.map-table tbody tr:last-child td {
    border-bottom: 0;
}


.map-table-rank {
    width: 62px;

    text-align: center !important;
}


.map-table-rank span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 31px;
    min-height: 27px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    color:
        rgba(232, 238, 242, 0.62);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    font-size: 0.72rem;
    font-weight: 800;
}


.map-table-top-1
.map-table-rank span {
    border-color:
        rgba(239, 154, 102, 0.92);

    background:
        rgba(209, 106, 45, 0.17);

    color:
        rgba(255, 221, 197, 0.98);
}


.map-table-top-2
.map-table-rank span,
.map-table-top-3
.map-table-rank span {
    border-color:
        rgba(209, 106, 45, 0.42);

    background:
        rgba(209, 106, 45, 0.065);

    color:
        rgba(239, 191, 160, 0.9);
}


.map-table-name strong {
    color:
        rgba(241, 245, 247, 0.91);

    font-size: 0.8rem;
}


.map-table-number {
    color:
        rgba(232, 238, 242, 0.66);

    font-size: 0.75rem;
}


.map-specialist {
    color:
        rgba(239, 154, 102, 0.95);

    font-size: 0.75rem;
    text-decoration: none;
}


a.map-specialist:hover {
    text-decoration: underline;
}


/* =========================================================
   Server context
   ========================================================= */


.maps-server-context {
    display: grid;

    grid-template-columns:
        minmax(0, 0.75fr)
        minmax(0, 1.25fr);

    gap: 34px;

    margin-bottom: 30px;

    padding:
        22px
        24px;

    border:
        1px solid
        rgba(209, 106, 45, 0.20);

    background:
        linear-gradient(
            90deg,
            rgba(209, 106, 45, 0.05),
            rgba(8, 12, 15, 0.72) 52%
        );
}


.maps-server-context-copy {
    align-self: center;
}


.maps-server-context-copy p {
    margin:
        0
        0
        9px;

    color:
        rgba(232, 238, 242, 0.53);

    font-size: 0.81rem;
    line-height: 1.65;
}


.maps-server-context-copy p:last-child {
    margin-bottom: 0;
}


.maps-server-context-copy strong {
    color:
        rgba(239, 154, 102, 0.94);

    font-weight: 700;
}


/* =========================================================
   Responsive
   ========================================================= */


@media (max-width: 960px) {

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


    .maps-controls {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }


    .maps-filter-label,
    .maps-filter {
        grid-column: 1 / -1;
    }


    .maps-result-count {
        grid-column: 1;
    }


    .maps-expand {
        grid-column: 2;
    }

}


@media (max-width: 760px) {

    .maps-hero {
        min-height: 230px;

        padding:
            26px
            22px;

        background-position:
            center,
            center,
            58% 52%;
    }


    .maps-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }


    .maps-dataset-summary {
        text-align: left;
    }


    .maps-scope-note span {
        display: block;

        margin:
            5px
            0
            0;
    }


    .maps-server-context {
        grid-template-columns:
            1fr;

        gap: 14px;
    }

}


@media (max-width: 560px) {

    .maps-record-grid {
        grid-template-columns:
            1fr;
    }


    .maps-controls {
        grid-template-columns:
            1fr;
    }


    .maps-filter-label,
    .maps-filter,
    .maps-result-count,
    .maps-expand {
        grid-column: 1;
    }


    .maps-expand {
        width: 100%;
    }


    .map-table {
        min-width: 860px;
    }

}
