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


.records-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);
}


.records-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)
        );
}


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


.records-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;
}


.records-hero h1,
.records-panel h2,
.records-provenance h2,
.active-streak-heading h3,
.streak-register-heading h3 {
    margin: 0;

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


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

    letter-spacing:
        -0.035em;
}


.records-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;
}


/* =========================================================
   Career cards
   ========================================================= */


.records-career-grid {
    display: grid;

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

    gap: 12px;

    margin-bottom: 22px;
}


.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);
}


.record-card-label,
.incident-label,
.streak-record-label {
    display: block;

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

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


.record-card-holder {
    min-height: 2.7em;

    margin-top: 10px;

    line-height: 1.35;
}


.records-player-link {
    color:
        rgba(239, 154, 102, 0.97);

    font-weight: 750;
    text-decoration: none;

    overflow-wrap: anywhere;
}


a.records-player-link:hover {
    text-decoration: underline;
}


.record-card-value {
    display: block;

    margin-top: 9px;

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

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

    font-variant-numeric:
        tabular-nums;
}


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

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

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


/* =========================================================
   Panels
   ========================================================= */


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

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

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


.records-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);
}


.records-panel-heading h2,
.records-provenance h2 {
    font-size:
        clamp(
            1.45rem,
            3vw,
            2.15rem
        );
}


.records-panel-heading > p {
    max-width: 430px;

    margin: 0;

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

    font-size: 0.76rem;
    line-height: 1.55;

    text-align: right;
}


.records-heading-stat {
    color:
        rgba(232, 238, 242, 0.42);

    font-size: 0.72rem;
}


.records-heading-stat strong {
    color:
        rgba(239, 154, 102, 0.95);

    font-variant-numeric:
        tabular-nums;
}


/* =========================================================
   Incident file
   ========================================================= */


.incident-grid {
    display: grid;

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


.incident-card {
    min-width: 0;

    padding: 20px;

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

    background:
        rgba(255, 255, 255, 0.006);
}


.incident-card:last-child {
    border-right: 0;
}


.incident-value {
    display: block;

    margin-top: 11px;

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

    font-size:
        clamp(
            1.85rem,
            4vw,
            2.8rem
        );

    font-variant-numeric:
        tabular-nums;
}


.incident-status {
    display: block;

    margin-top: 4px;

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

    font-size: 0.7rem;
}


.incident-holder-list {
    margin:
        17px
        0
        0;

    padding: 0;

    list-style: none;
}


.incident-holder-list li {
    padding:
        9px
        0;

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


.incident-holder-list li > span {
    display: block;

    margin-top: 4px;

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

    font-size: 0.68rem;
}


.incident-note {
    margin:
        14px
        0
        0;

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

    font-size: 0.72rem;
    line-height: 1.55;
}


.frag-ceiling-grid {
    display: grid;

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

    gap: 8px;

    margin-top: 17px;
}


.frag-ceiling-grid > div {
    padding: 10px;

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

    background:
        rgba(0, 0, 0, 0.16);
}


.frag-ceiling-grid strong {
    display: block;

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

    font-size: 1.1rem;
}


.frag-ceiling-grid span {
    display: block;

    margin-top: 4px;

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

    font-size: 0.63rem;
    line-height: 1.4;
}


/* =========================================================
   Notes and tables
   ========================================================= */


.records-scope-note,
.streak-help {
    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.79rem;
    line-height: 1.6;
}


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


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


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

    overflow-x: auto;
}


.records-table {
    width: 100%;

    border-collapse: collapse;

    font-variant-numeric:
        tabular-nums;
}


.fifty-table {
    min-width: 900px;
}


.streak-table {
    min-width: 930px;
}


.records-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;
}


.records-table th,
.records-table td {
    padding:
        11px
        14px;

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

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


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

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

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


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


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


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


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


.records-table td {
    color:
        rgba(232, 238, 242, 0.62);

    font-size: 0.74rem;
}


.records-rank-cell {
    width: 55px;

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

    text-align: center
        !important;
}


.records-player-cell {
    min-width: 210px;
}


/* =========================================================
   Streak records
   ========================================================= */


.streak-record-grid {
    display: grid;

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

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


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

    padding: 20px;

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


.streak-record-card:last-child {
    border-right: 0;
}


.streak-record-value {
    display: block;

    margin-top: 10px;

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

    font-size:
        clamp(
            1.85rem,
            4vw,
            2.75rem
        );

    font-variant-numeric:
        tabular-nums;
}


.streak-record-holders {
    margin-top: 9px;
}


.streak-holder {
    margin-bottom: 8px;
}


.streak-holder span {
    display: block;

    margin-top: 3px;

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

    font-size: 0.65rem;
}


.streak-record-card p {
    margin:
        11px
        0
        0;

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

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


.active-streak-heading,
.streak-register-heading {
    display: flex;

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

    gap: 20px;

    padding:
        21px
        24px
        15px;
}


.active-streak-heading h3,
.streak-register-heading h3 {
    font-size:
        clamp(
            1.08rem,
            2vw,
            1.45rem
        );
}


.active-streak-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(190px, 1fr)
        );

    gap: 1px;

    margin:
        0
        24px
        22px;

    background:
        rgba(255, 255, 255, 0.055);

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


.active-streak-card {
    min-width: 0;

    padding: 15px;

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


.active-streak-card strong {
    display: block;

    margin-top: 9px;

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

    font-size: 1.55rem;

    font-variant-numeric:
        tabular-nums;
}


.active-streak-card > span,
.active-streak-card small {
    display: block;

    margin-top: 3px;

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

    font-size: 0.66rem;
    line-height: 1.4;
}


.active-streak-empty {
    grid-column: 1 / -1;

    padding: 18px;

    background:
        rgba(8, 12, 15, 0.96);

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


/* =========================================================
   Streak register controls
   ========================================================= */


.streak-controls {
    display: grid;

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

    gap: 12px;

    align-items: end;

    padding:
        0
        24px
        16px;
}


.streak-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;
}


.streak-filter {
    grid-column: 1;

    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;
}


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


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

    outline-offset: 1px;
}


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

    align-self: center;

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

    font-size: 0.72rem;
}


.streak-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;
}


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

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


.streak-result-win {
    color:
        rgba(142, 230, 161, 0.9)
        !important;

    font-weight: 800;
}


.streak-result-nonwin {
    color:
        rgba(232, 238, 242, 0.35)
        !important;

    font-weight: 700;
}


/* =========================================================
   Provenance
   ========================================================= */


.records-provenance {
    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%
        );
}


.records-provenance-copy {
    align-self: center;
}


.records-provenance-copy p {
    margin:
        0
        0
        8px;

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

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


.records-provenance-copy p:last-child {
    margin-bottom: 0;
}


.records-provenance-copy strong {
    color:
        rgba(239, 154, 102, 0.94);
}


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


@media (max-width: 980px) {

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


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


    .incident-card {
        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.055);
    }


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


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


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


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

}


@media (max-width: 760px) {

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

        padding:
            26px
            22px;

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


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


    .records-panel-heading > p {
        text-align: left;
    }


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

        margin:
            5px
            0
            0;
    }


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


    .streak-record-card {
        border-right: 0;

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


    .records-provenance {
        grid-template-columns:
            1fr;

        gap: 14px;
    }

}


@media (max-width: 560px) {

    .records-career-grid,
    .incident-grid {
        grid-template-columns:
            1fr;
    }


    .incident-card {
        border-right: 0;
    }


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


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


    .streak-expand {
        width: 100%;
    }

}
