/* ========================================
   SAMNET LIVE DATA
======================================== */

.live-data-page {
    min-height: 100vh;

    color: #172b43;

    background: #ffffff;
}


/* ========================================
   HERO
======================================== */

.live-data-hero {
    padding:
        38px
        0;

    border-bottom:
        1px solid
        #dfe6e9;

    background: #ffffff;
}


.live-data-hero__inner {
    display: flex;

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

    gap: 30px;
}


.live-data-kicker {
    display: block;

    margin-bottom: 3px;

    color: #2f8f5b;

    font-size: 0.68rem;
    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.live-data-hero h1 {
    margin: 0;

    color: #172b43;

    font-size:
        clamp(
            2rem,
            4vw,
            2.7rem
        );

    font-weight: 800;

    letter-spacing:
        -0.035em;
}


.live-data-hero p {
    margin:
        8px
        0
        0;

    color: #718096;

    font-size: 0.92rem;
}


.live-data-refresh {
    text-align: right;
}


.live-data-refresh span {
    display: block;

    color: #8a989f;

    font-size: 0.57rem;
    font-weight: 700;

    text-transform: uppercase;
}


.live-data-refresh strong {
    display: block;

    margin-top: 2px;

    color: #52646e;

    font-size: 0.76rem;
}


/* ========================================
   NETWORK SUMMARY
======================================== */

.live-network-summary {
    padding:
        22px
        0
        0;
}


.live-summary-grid {
    display: grid;

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

    gap: 9px;
}


.live-summary-card {
    padding:
        12px
        14px;

    border:
        1px solid
        #dfe6e9;

    border-radius: 9px;

    background: #ffffff;
}


.live-summary-card span {
    display: block;

    color: #718096;

    font-size: 0.75rem;
    font-weight: 800;

    text-transform: uppercase;
}


.live-summary-card strong {
    display: block;

    margin-top: 2px;

    color: #172b43;

    font-size: 1.1rem;
    font-weight: 900;
}


/* ========================================
   OBSERVATIONS
======================================== */

.live-observations-section {
    padding:
        28px
        0
        50px;
}


.live-section-heading {
    display: flex;

    margin-bottom: 13px;

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

    gap: 20px;
}


.live-section-heading > div > span {
    display: block;

    color: #2f8f5b;

    font-size: 1.0rem;
    font-weight: 900;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.live-section-heading h2 {
    margin:
        2px
        0
        0;

    color: #172b43;

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


/* ========================================
   REFRESH BUTTON
======================================== */

.live-refresh-button {
    min-height: 35px;

    padding:
        0
        13px;

    border:
        2px solid
        #000000;

    border-radius: 7px;

    color: #2029c9;

    background: #ffffff;

    font-size: 0.92rem;
    font-weight: 800;

    cursor: pointer;
}


.live-refresh-button:hover {
    color: #ffffff;

    background: #2f8f5b;
}


.live-refresh-button:disabled {
    opacity: 0.55;

    cursor: wait;
}


/* ========================================
   TABLE
======================================== */

.live-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border:
        1px solid
        #dfe6e9;

    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        0 7px 20px
        rgba(7,26,38,0.05);
}


.live-data-table {
    width: 100%;

    border-collapse: collapse;

    white-space: nowrap;
}


.live-data-table th {
    padding:
        10px
        11px;

    color: #718096;

    background: #f6f8f9;

    border-bottom:
        1px solid
        #dfe6e9;

    font-size: 0.80em;
    font-weight: 900;

    text-align: center;

    text-transform: uppercase;
}


.live-data-table td {
    padding:
        13px
        11px;

    border-bottom:
        1px solid
        #e9edef;

    color: #52646e;

    font-size: 1.2rem;
}


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


.live-data-table tbody tr:hover {
    background: #fafcfc;
}


.live-data-table td > strong {
    color: #172b43;

    font-size: 1.1rem;
    font-weight: 900;
}


.live-data-table td > small {
    margin-left: 2px;

    color: #89979e;

    font-size: 0.72rem;
}


/* ========================================
   STATION
======================================== */

.live-station-name {
    display: flex;

    min-width: 150px;

    flex-direction: column;

    color: inherit;

    text-decoration: none;
}


.live-station-name strong {
    color: #214994;

    font-size: 0.82rem;
    font-weight: 900;
}


.live-station-name span {
    margin-top: 1px;

    color: #172b43;

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


.live-station-name small {
    margin-top: 1px;

    color: #8a989f;

    font-size: 0.86rem;
}


/* ========================================
   STATUS
======================================== */

.live-status {
    display: inline-flex;

    min-height: 25px;

    padding:
        0
        8px;

    align-items: center;

    border-radius: 999px;

    font-size: 0.69rem;
    font-weight: 900;

    text-transform: uppercase;
}


.live-status--loading {
    color: #6b7280;

    background: #edf1f5;
}


.live-status--online {
    color: #53dc21;

    background: #e8f7ef;
}


.live-status--delayed {
    color: #956200;

    background: #fff4dc;
}


.live-status--offline {
    color: #a83232;

    background: #fdeaea;
}


.live-observation-time {
    color: #667780;

    font-size: 0.65rem;
    font-weight: 700;
}


.live-not-available {
    color: #a9b3b8 !important;

    text-align: center;
}


/* ========================================
   WIND
======================================== */

.live-wind-value {
    display: flex;

    align-items: baseline;

    gap: 3px;
}


.live-wind-value strong {
    color: #172b43;

    font-weight: 900;
}


.live-wind-value small {
    color: #89979e;

    font-size: 0.72rem;
}


.live-wind-value span {
    margin-left: 3px;

    color: #2f8f5b;

    font-size: 0.8rem;
    font-weight: 900;
}


/* ========================================
   MOBILE CARDS
======================================== */

.live-mobile-grid {
    display: none;
}


.live-mobile-card {
    padding: 16px;

    border:
        1px solid
        #dfe6e9;

    border-radius: 11px;

    background: #ffffff;
}


.live-mobile-header {
    display: flex;

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

    gap: 15px;
}


.live-mobile-header > div {
    display: flex;

    flex-direction: column;
}


.live-mobile-header > div > span {
    color: #2f8f5b;

    font-size: 0.9rem;
    font-weight: 900;

    letter-spacing: 0.05em;
}


.live-mobile-header > div > strong {
    margin-top: 2px;

    color: #172b43;

    font-size: 0.94rem;
}


.live-mobile-header > div > small {
    margin-top: 2px;

    color: #8a989f;

    font-size: 0.8rem;
}


.live-mobile-observation {
    display: flex;

    margin-top: 10px;
    padding:
        7px
        9px;

    justify-content: space-between;

    border-radius: 6px;

    background: #f6f8f9;
}


.live-mobile-observation span {
    color: #718096;

    font-size: 0.80rem;
    font-weight: 700;
}


.live-mobile-observation strong {
    color: #52646e;

    font-size: 0.92rem;
}


.live-mobile-values {
    display: grid;

    margin-top: 10px;

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

    gap: 6px;
}


.live-mobile-values > div {
    padding:
        8px;

    border:
        1px solid
        #e3e9eb;

    border-radius: 7px;
}


.live-mobile-values span {
    display: block;

    color: #839197;

    font-size: 0.9rem;
    font-weight: 700;

    text-transform: uppercase;
}


.live-mobile-values strong {
    display: inline-block;

    margin-top: 2px;

    color: #172b43;

    font-size: 1.1rem;
    font-weight: 900;
}


.live-mobile-values small {
    color: #839197;

    font-size: 0.9rem;
}


.live-mobile-link {
    display: flex;

    margin-top: 11px;
    padding-top: 9px;

    justify-content: space-between;

    border-top:
        1px solid
        #e5eaed;

    color: #2f8f5b;

    font-size: 0.68rem;
    font-weight: 900;

    text-decoration: none;
}


/* ========================================
   DATA NOTE
======================================== */

.live-data-note {
    display: flex;

    margin-top: 12px;

    gap: 8px;

    color: #718096;

    font-size: 0.8rem;
}


.live-data-note strong {
    color: #52646e;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {

    .live-summary-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 760px) {

    .live-data-hero__inner {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .live-data-refresh {
        text-align: left;
    }


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


    .live-table-wrapper {
        display: none;
    }


    .live-mobile-grid {
        display: grid;

        gap: 12px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .live-section-heading {
        align-items: stretch;

        flex-direction: column;
    }


    .live-refresh-button {
        width: 100%;
    }


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

}