/* ========================================
   SAMNET STATION PAGE
======================================== */

:root {
    --station-green: #2f8f5b;
    --station-green-dark: #246f48;

    --station-navy: #071a26;
    --station-navy-soft: #12384b;

    --station-text: #172b43;
    --station-muted: #718096;

    --station-border: #dfe6e9;

    --station-bg: #f4f7f8;

    --station-white: #ffffff;

    --station-shadow:
        0 8px 24px
        rgba(7, 26, 38, 0.07);
}


/* ========================================
   PAGE
======================================== */

.station-page {
    min-height: 100vh;

    color:
        var(--station-text);

    background:
        var(--station-bg);
}


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

.station-identity {
    padding:
        25px
        0;

    border-bottom:
        1px solid
        var(--station-border);

    background: #ffffff;
}


.station-identity__inner {
    display: flex;

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

    gap: 28px;
}


.station-identity__code {
    display: block;

    margin-bottom: 3px;

    color:
        var(--station-green);

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

    letter-spacing: 0.12em;
}


.station-identity h1 {
    margin: 0;

    color:
        var(--station-text);

    font-size:
        clamp(
            1.75rem,
            3vw,
            2.35rem
        );

    font-weight: 800;

    line-height: 1.05;

    letter-spacing:
        -0.035em;
}


.station-identity p {
    margin:
        7px
        0
        0;

    color:
        var(--station-muted);

    font-size: 0.8rem;
}


.station-identity p span {
    padding:
        0
        5px;

    color: #aab5bb;
}


/* ========================================
   IDENTITY ACTIONS
======================================== */

.station-identity__actions {
    display: flex;

    align-items: center;

    gap: 12px;
}


.station-live-status {
    display: flex;

    min-width: 165px;

    padding:
        9px
        12px;

    align-items: center;

    gap: 9px;

    border:
        1px solid
        var(--station-border);

    border-radius: 9px;

    background: #f8fafb;
}


.station-live-status > div > span {
    display: block;

    color:
        var(--station-muted);

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

    text-transform: uppercase;
}


.station-live-status strong {
    display: block;

    margin-top: 1px;

    color:
        var(--station-text);

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


.station-specifications-link {
    display: inline-flex;

    min-height: 38px;

    padding:
        0
        14px;

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

    border:
        1px solid
        var(--station-green);

    border-radius: 8px;

    color:
        var(--station-green);

    background: #ffffff;

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

    text-decoration: none;
}


.station-specifications-link:hover {
    color: #ffffff;

    background:
        var(--station-green);
}


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

.status-dot {
    display: block;

    width: 10px;
    height: 10px;

    flex:
        0 0 auto;

    border-radius: 50%;
}


.status-loading {
    background: #d79b36;
}


.status-online {
    background: #28a86b;

    box-shadow:
        0 0 0 5px
        rgba(40,168,107,0.12);
}


.status-stale {
    background: #db9e34;
}


.status-offline {
    background: #d95656;
}


/* ========================================
   REAL-TIME SECTION
======================================== */

.station-main-section {
    padding:
        35px
        0
        30px;
}


.station-section-heading {
    display: flex;

    margin-bottom: 17px;

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

    gap: 20px;
}


.station-section-kicker {
    display: block;

    margin-bottom: 2px;

    color:
        var(--station-green);

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

    letter-spacing: 0.10em;

    text-transform: uppercase;
}


.station-section-heading h2 {
    margin: 0;

    color:
        var(--station-text);

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

    letter-spacing:
        -0.025em;
}


.observation-time {
    text-align: right;
}


.observation-time span {
    display: block;

    color:
        var(--station-muted);

    font-size: 0.65rem;

    text-transform: uppercase;
}


.observation-time strong {
    display: block;

    margin-top: 2px;

    color:
        var(--station-text);

    font-size: 0.82rem;
}


/* ========================================
   TWO-COLUMN LIVE AREA
======================================== */

.station-live-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, 0.85fr);

    gap: 20px;

    align-items: stretch;
}


/* ========================================
   CARD BASE
======================================== */

.station-camera-card,
.station-data-card {
    min-width: 0;

    padding: 17px;

    border:
        1px solid
        var(--station-border);

    border-radius: 13px;

    background: #ffffff;

    box-shadow:
        var(--station-shadow);
}


.station-card-heading {
    margin-bottom: 10px;
}


.station-card-heading > span {
    display: block;

    color:
        var(--station-green);

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

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.station-card-heading > strong {
    display: block;

    margin-top: 1px;

    color:
        var(--station-text);

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


/* ========================================
   CAMERA
======================================== */

.camera-frame {
    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    border-radius: 10px;

    background: #101820;
}


.camera-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


.camera-loading {
    position: absolute;

    inset: 0;

    z-index: 3;

    display: flex;

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

    color: #ffffff;

    background:
        rgba(7, 26, 38, 0.75);

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


.camera-loading[hidden] {
    display: none;
}


.camera-top-banner {
    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    z-index: 6;

    display: grid;

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

    min-height: 54px;

    padding:
        7px
        12px;

    align-items: center;

    color: #ffffff;

    background:
        rgba(5, 15, 24, 0.68);

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);

    pointer-events: none;
}


/* ========================================
   CAMERA DATE / TIME
======================================== */

.camera-overlay-info {
    position: static;

    display: flex;

    min-width: 0;

    padding: 0;

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

    flex-direction: column;

    justify-self: start;

    color: #ffffff;

    background: transparent;

    pointer-events: none;
}


.camera-overlay-info strong {
    color: #ffffff;

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

    line-height: 1.15;

    text-shadow:
        0 1px 4px
        rgba(0, 0, 0, 0.65);
}


/* ========================================
   CAMERA LOGO
======================================== */

.camera-overlay-logo {
    position: static;

    justify-self: center;

    width: 72px;
    height: auto;

    max-height: 42px;

    object-fit: contain;

    pointer-events: none;

    filter:
        drop-shadow(
            0 2px 4px
            rgba(0, 0, 0, 0.45)
        );
}


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

.camera-status-badge {
    position: static;

    justify-self: end;

    padding:
        4px
        9px;

    border-radius: 999px;

    color: #ffffff;

    background:
        rgba(47, 143, 91, 0.92);

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

    letter-spacing: 0.08em;

    text-transform: uppercase;

    white-space: nowrap;

    pointer-events: none;
}


.camera-status-badge[hidden] {
    display: none;
}


.camera-status-badge.camera-status-current {
    background:
        rgba(47, 143, 91, 0.92) !important;
}


.camera-status-badge.camera-status-delayed {
    background:
        rgba(215, 155, 54, 0.94) !important;
}


.camera-status-badge.camera-status-older,
.camera-status-badge.older,
.camera-status-badge.stale {
    background:
        rgba(214, 59, 59, 0.94) !important;
}


.camera-status-badge.camera-status-timelapse {
    background:
        rgba(7, 26, 38, 0.82) !important;
}


.camera-status-badge.camera-status-unknown {
    background:
        rgba(113, 128, 150, 0.92) !important;
}


@media (max-width: 650px) {

    .camera-top-banner {
        min-height: 48px;

        padding:
            6px
            9px;
    }


    .camera-overlay-info strong {
        font-size: 0.63rem;
    }


    .camera-overlay-logo {
        width: 58px;

        max-height: 36px;
    }


    .camera-status-badge {
        padding:
            3px
            7px;

        font-size: 0.49rem;
    }

}


@media (max-width: 430px) {

    .camera-top-banner {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            minmax(0, 1fr);

        min-height: 44px;

        padding:
            5px
            7px;
    }


    .camera-overlay-info strong {
        font-size: 0.56rem;
    }


    .camera-overlay-logo {
        width: 50px;

        max-height: 32px;
    }


    .camera-status-badge {
        padding:
            3px
            6px;

        font-size: 0.44rem;
    }

}


/* ========================================
   CAMERA DETAILS
======================================== */

.camera-details {
    display: flex;

    margin-top: 7px;

    justify-content: flex-end;

    color:
        var(--station-muted);

    font-size: 0.59rem;
}


.camera-details strong {
    margin-left: 3px;

    color:
        var(--station-text);
}


/* ========================================
   REAL-TIME DATA LIST
======================================== */

.station-data-card {
    display: flex;

    flex-direction: column;
}


.station-data-list {
    border-top:
        1px solid
        #e5eaed;
}


.station-data-row {
    display: flex;

    min-height: 43px;

    padding:
        7px
        2px;

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

    gap: 20px;

    border-bottom:
        1px solid
        #e8edef;
}


.station-data-row > span {
    color:
        #667783;

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


.station-data-row > strong {
    display: flex;

    align-items: baseline;

    justify-content: flex-end;

    gap: 4px;

    color:
        var(--station-text);

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

    text-align: right;
}


.station-data-row > strong small {
    color:
        var(--station-muted);

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


/* ========================================
   TEMP / DEW POINT EMPHASIS
======================================== */

.station-data-row--primary {
    min-height: 52px;
}


.station-data-row--primary > span {
    color:
        var(--station-text);

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


.station-data-row--primary > strong {
    font-size: 1.4rem;
    font-weight: 900;
}


/* ========================================
   LKPLCD WIND OBSERVATIONS
======================================== */

.dual-wind-panel {
    margin-top: 2px;
    padding: 13px 0 12px;
    border-bottom: 1px solid #e8edef;
}

.dual-wind-panel__heading {
    margin-bottom: 10px;
}

.dual-wind-panel__heading > span {
    display: block;
    color: var(--station-green);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dual-wind-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wind-sensor-card {
    min-width: 0;
    padding: 11px;
    border: 1px solid #dfe7ea;
    border-radius: 9px;
    background: #f8fafb;
}

.wind-sensor-card__header {
    display: flex;
    min-height: 42px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.wind-sensor-card__header > div > span {
    display: block;
    color: var(--station-green);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wind-sensor-card__header > div > strong {
    display: block;
    margin-top: 2px;
    color: var(--station-text);
    font-size: 0.70rem;
    font-weight: 600;
    line-height: 1.2;
}

.wind-sensor-status {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 0.60rem;
    font-weight: 800;
    white-space: nowrap;
    text-transform: uppercase;
}

.wind-sensor-status--waiting {
    color: #8a631c;
    background: #fff4d8;
}

.wind-sensor-status--reporting {
    color: #236b47;
    background: #e6f5ec;
}

/* Current wind speed + direction */

.wind-current-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 9px;
}

.wind-current-grid > div {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 7px;
    background: #ffffff;
}

.wind-current-grid > div > span {
    display: block;
    color: var(--station-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.wind-current-grid > div > strong {
    display: flex;
    margin-top: 3px;
    align-items: baseline;
    gap: 3px;
    color: var(--station-text);
    font-size: 1.10rem;
    font-weight: 900;
}

.wind-current-grid small {
    color: var(--station-muted);
    font-size: 0.67rem;
    font-weight: 600;
}

.wind-direction-value {
    display: block;
    margin-top: 3px;
    color: var(--station-text);
    font-size: 1rem;
    font-weight: 400;
}

/* Gust summary — deliberately smaller and not bold */

.wind-gust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d9dde2;
}

.wind-gust-grid > div {
    min-width: 0;
}

.wind-gust-grid > div > span:first-child {
    display: block;
    color: var(--station-muted);
    font-size: 0.61rem;
    font-weight: 500;
    line-height: 1.15;
}

.wind-gust-value {
    display: block;
    margin-top: 3px;
    color: var(--station-text);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

.wind-gust-value span {
    font-weight: 400;
}

.wind-gust-value small {
    color: var(--station-muted);
    font-size: 0.58rem;
    font-weight: 400;
}

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

@media (max-width: 1100px) {
    .wind-gust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 10px;
    }
}

@media (max-width: 650px) {
    .dual-wind-grid {
        grid-template-columns: 1fr;
    }

    .wind-sensor-card {
        padding: 12px;
    }

    .wind-current-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .wind-gust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px 14px;
    }

    .wind-gust-grid > div > span:first-child {
        font-size: 0.65rem;
    }

    .wind-gust-value {
        font-size: 0.82rem;
    }
}

@media (max-width: 390px) {
    .wind-sensor-card__header {
        flex-direction: column;
        min-height: 0;
    }

    .wind-current-grid {
        grid-template-columns: 1fr 1fr;
    }
}


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

.station-system-status {
    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;

    margin-top: auto;
    padding-top: 11px;
}


.station-system-status > div {
    padding:
        7px
        8px;

    border-radius: 7px;

    background: #f7f9fa;
}


.station-system-status span {
    display: block;

    color:
        #8a989f;

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

    letter-spacing: 0.03em;

    text-transform: uppercase;
}


.station-system-status strong {
    display: block;

    margin-top: 2px;

    color:
        #54656e;

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


/* ========================================
   COLLAPSIBLE SECTIONS
======================================== */

.station-collapsible-section {
    padding:
        0
        0
        19px;
}


.station-section-toggle {
    display: flex;

    width: 100%;

    padding:
        14px
        17px;

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

    border:
        1px solid
        var(--station-border);

    border-radius: 10px;

    color:
        var(--station-text);

    background: #ffffff;

    font-family:
        "Source Sans 3",
        Arial,
        sans-serif;

    cursor: pointer;

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


.station-section-toggle:hover {
    border-color:
        #c8d7d1;
}


.station-section-toggle__text {
    display: flex;

    align-items: flex-start;

    flex-direction: column;
}


.station-section-toggle__text small {
    color:
        var(--station-green);

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

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.station-section-toggle__text strong {
    margin-top: 1px;

    color:
        var(--station-text);

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


.station-section-toggle__icon {
    color:
        var(--station-green);

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

    transition:
        transform
        180ms
        ease;
}


.station-section-toggle[
    aria-expanded="true"
]
.station-section-toggle__icon {
    transform:
        rotate(180deg);
}


.station-collapsible-content {
    padding:
        17px
        0
        5px;
}


.station-collapsible-content[hidden] {
    display: none;
}


/* ========================================
   METEOGRAM TOOLBAR
======================================== */

.meteogram-toolbar {
    display: flex;

    margin-bottom: 9px;

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

    gap: 20px;
}


.meteogram-toolbar > div:first-child > strong {
    display: block;

    color:
        var(--station-text);

    font-size: 0.74rem;
}


.meteogram-toolbar > div:first-child > span {
    display: block;

    margin-top: 2px;

    color:
        var(--station-muted);

    font-size: 0.59rem;
}


.chart-period-controls {
    display: flex;

    gap: 5px;
}


.chart-period-controls button {
    min-height: 34px;

    padding:
        0
        12px;

    border:
        1px solid
        var(--station-border);

    border-radius: 7px;

    color:
        #53656d;

    background: #ffffff;

    font-family:
        "Source Sans 3",
        Arial,
        sans-serif;

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

    cursor: pointer;
}


.chart-period-controls button:hover,
.chart-period-controls button.active {
    color: #ffffff;

    border-color:
        var(--station-green);

    background:
        var(--station-green);
}


.meteogram-help {
    margin:
        0
        0
        13px;

    color:
        var(--station-muted);

    font-size: 0.63rem;
}


/* ========================================
   CHART CARDS
======================================== */

.chart-panel {
    min-width: 0;

    padding: 16px;

    border:
        1px solid
        var(--station-border);

    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        var(--station-shadow);
}


.chart-panel--featured {
    margin-bottom: 14px;
}


.chart-panel__heading {
    margin-bottom: 8px;
}


.chart-panel__heading > span {
    display: block;

    color:
        var(--station-green);

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

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.chart-panel__heading h3 {
    margin:
        2px
        0
        0;

    color:
        var(--station-text);

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


.weather-chart {
    width: 100%;
    height: 370px;
}


.weather-chart--compact {
    height: 300px;
}


.station-chart-grid {
    display: grid;

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

    gap: 14px;
}


/* ========================================
   STATION INFO GRID
======================================== */

.station-info-grid {
    display: grid;

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

    gap: 9px;
}


.station-info-card {
    padding:
        12px
        13px;

    border:
        1px solid
        var(--station-border);

    border-radius: 9px;

    background: #ffffff;
}


.station-info-card > span {
    display: block;

    color:
        var(--station-muted);

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

    text-transform: uppercase;
}


.station-info-card > strong {
    display: block;

    margin-top: 3px;

    color:
        var(--station-text);

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


/* ========================================
   INSTALLED SENSORS
======================================== */

.station-sensors-card {
    margin-top: 11px;

    padding: 15px;

    border:
        1px solid
        var(--station-border);

    border-radius: 10px;

    background: #ffffff;
}


.station-info-heading > span {
    color:
        var(--station-green);

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

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.station-info-heading h3 {
    margin:
        2px
        0
        9px;

    color:
        var(--station-text);

    font-size: 0.9rem;
}


.station-sensor-list {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}


.station-sensor-list a {
    display: inline-flex;

    min-height: 31px;

    padding:
        0
        10px;

    align-items: center;

    border:
        1px solid
        #d5e5dc;

    border-radius: 999px;

    color:
        #2d6749;

    background:
        #edf7f1;

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

    text-decoration: none;
}


.station-sensor-list a:hover {
    color: #ffffff;

    border-color:
        var(--station-green);

    background:
        var(--station-green);
}


.station-full-info-link {
    display: inline-block;

    margin-top: 13px;

    color:
        var(--station-green);

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

    text-decoration: none;
}


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

@media (max-width: 900px) {

    .station-live-grid {
        grid-template-columns: 1fr;
    }


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

}


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

@media (max-width: 650px) {

    .station-identity__inner {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }


    .station-identity__actions {
        width: 100%;

        justify-content: space-between;
    }


    .station-section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }


    .observation-time {
        text-align: left;
    }


    .meteogram-toolbar {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .chart-period-controls {
        width: 100%;

        display: grid;

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


    .station-chart-grid {
        grid-template-columns: 1fr;
    }


    .weather-chart {
        height: 320px;
    }


    .weather-chart--compact {
        height: 280px;
    }

}


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

@media (max-width: 430px) {

    .station-identity__actions {
        align-items: stretch;

        flex-direction: column;
    }


    .station-live-status,
    .station-specifications-link {
        width: 100%;
    }


    .station-info-grid {
        grid-template-columns: 1fr;
    }


    .station-system-status {
        grid-template-columns: 1fr;
    }

}

/* ========================================
   COMPACT TODAY'S STATS
======================================== */

.today-summary-grid {
    display: grid;

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

    overflow: hidden;

    border:
        1px solid
        var(--station-border);

    border-radius: 10px;

    background: #ffffff;
}


/* ========================================
   INDIVIDUAL VARIABLE
======================================== */

.today-summary-item {
    min-width: 0;

    padding:
        11px
        13px;

    border-right:
        1px solid
        var(--station-border);

    border-bottom:
        1px solid
        var(--station-border);
}


.today-summary-item:nth-child(4n) {
    border-right: 0;
}


/* ========================================
   VARIABLE LABEL
======================================== */

.today-summary-label {
    display: block;

    margin-bottom: 6px;

    color:
        var(--station-green);

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

    letter-spacing:
        0.05em;

    text-transform: uppercase;
}


/* ========================================
   HIGH / LOW ROW
======================================== */

.today-summary-values {
    display: grid;

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

    gap: 8px;
}


.today-summary-values > div,
.today-summary-single {
    min-width: 0;
}


/* ========================================
   HIGH / LOW LABEL
======================================== */

.today-summary-values > div > span,
.today-summary-single > span {
    display: block;

    color:
        var(--station-muted);

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

    text-transform: uppercase;
}


/* ========================================
   VALUE
======================================== */

.today-summary-values strong,
.today-summary-single strong {
    display: flex;

    margin-top: 1px;

    align-items: baseline;

    gap: 2px;

    color:
        var(--station-text);

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


.today-summary-values small,
.today-summary-single small {
    color:
        var(--station-muted);

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


/* ========================================
   FOOTER
======================================== */

.today-summary-footer {
    padding:
        7px
        2px
        0;

    color:
        var(--station-muted);

    font-size: 0.54rem;

    text-align: right;
}


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

@media (max-width: 850px) {

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


    .today-summary-item:nth-child(4n) {
        border-right:
            1px solid
            var(--station-border);
    }


    .today-summary-item:nth-child(2n) {
        border-right: 0;
    }

}


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

@media (max-width: 500px) {

    .today-summary-grid {
        grid-template-columns: 1fr;
    }


    .today-summary-item,
    .today-summary-item:nth-child(2n),
    .today-summary-item:nth-child(4n) {
        border-right: 0;
    }

}


/* ========================================
   TODAY STATS RESPONSIVE
======================================== */

@media (max-width: 800px) {

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

}


@media (max-width: 430px) {

    .today-stats-grid {
        grid-template-columns: 1fr;
    }

}
/* ==========================================================
   CAMERA TIMELAPSE CONTROLS
========================================================== */

.camera-mode-controls {
    display: flex;

    margin-top: 10px;

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

    gap: 12px;
}


/* ==========================================================
   CAMERA MODE BUTTONS
========================================================== */

.camera-mode-buttons {
    display: inline-flex;

    padding: 3px;

    gap: 3px;

    border:
        1px solid
        var(--station-border);

    border-radius: 9px;

    background:
        #f7f9fa;
}


.camera-mode-button {
    min-height: 34px;

    padding:
        0
        13px;

    border: 0;

    border-radius: 7px;

    color:
        #61727a;

    background:
        transparent;

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

    cursor: pointer;

    transition:
        color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease;
}


.camera-mode-button:hover {
    color:
        var(--station-green);
}


.camera-mode-button.active {
    color:
        #ffffff;

    background:
        var(--station-green);

    box-shadow:
        0 2px 6px
        rgba(47, 143, 91, 0.22);
}


/* ==========================================================
   FRAME COUNTER
========================================================== */

.camera-frame-counter {
    color:
        var(--station-muted);

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

    white-space: nowrap;
}


/* ==========================================================
   TIMELAPSE CONTROLS PANEL
========================================================== */

.camera-timelapse-controls {
    margin-top: 9px;

    padding:
        11px
        12px;

    border:
        1px solid
        var(--station-border);

    border-radius: 9px;

    background:
        #f7f9fa;
}


.camera-timelapse-controls[hidden] {
    display: none;
}


/* ==========================================================
   TIMELAPSE TOOLBAR
========================================================== */

.camera-timelapse-toolbar {
    display: flex;

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

    gap: 12px;
}


/* ==========================================================
   PLAY BUTTON
========================================================== */

.camera-play-button {
    min-width: 82px;
    min-height: 34px;

    padding:
        0
        13px;

    border: 0;

    border-radius: 7px;

    color:
        #ffffff;

    background:
        var(--station-green);

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

    cursor: pointer;

    transition:
        background 150ms ease,
        transform 150ms ease;
}


.camera-play-button:hover {
    background:
        var(--station-green-dark);
}


.camera-play-button:active {
    transform:
        translateY(1px);
}


/* ==========================================================
   SPEED SELECTOR
========================================================== */

.camera-speed-control {
    display: flex;

    align-items: center;

    gap: 7px;
}


.camera-speed-control > span {
    color:
        var(--station-muted);

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

    letter-spacing:
        0.04em;

    text-transform: uppercase;
}


.camera-speed-control select {
    height: 34px;

    padding:
        0
        9px;

    border:
        1px solid
        var(--station-border);

    border-radius: 7px;

    color:
        var(--station-text);

    background:
        #ffffff;

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

    cursor: pointer;
}


/* ==========================================================
   TIMELINE
========================================================== */

.camera-timeline-wrapper {
    display: grid;

    margin-top: 11px;

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

    align-items: center;

    gap: 9px;
}


.camera-timeline-wrapper > span {
    color:
        var(--station-muted);

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


.camera-timeline {
    width: 100%;
    height: 5px;

    cursor: pointer;

    accent-color:
        var(--station-green);
}


/* Chrome / Edge */

.camera-timeline::-webkit-slider-runnable-track {
    height: 5px;

    border-radius: 999px;

    background:
        #dce5e8;
}


.camera-timeline::-webkit-slider-thumb {
    width: 15px;
    height: 15px;

    margin-top: -5px;

    border: 0;

    border-radius: 50%;

    background:
        var(--station-green);

    cursor: pointer;

    -webkit-appearance: none;
}


/* Firefox */

.camera-timeline::-moz-range-track {
    height: 5px;

    border-radius: 999px;

    background:
        #dce5e8;
}


.camera-timeline::-moz-range-thumb {
    width: 15px;
    height: 15px;

    border: 0;

    border-radius: 50%;

    background:
        var(--station-green);

    cursor: pointer;
}


/* ==========================================================
   CAMERA DETAILS SPACING
========================================================== */

.camera-details {
    margin-top: 8px;
}


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

@media (max-width: 650px) {

    .camera-mode-controls {
        align-items: stretch;

        flex-direction: column;
    }


    .camera-mode-buttons {
        width: 100%;

        display: grid;

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


    .camera-mode-button {
        width: 100%;
    }


    .camera-frame-counter {
        text-align: right;
    }


    .camera-timelapse-toolbar {
        align-items: stretch;

        flex-direction: column;
    }


    .camera-play-button {
        width: 100%;
    }


    .camera-speed-control {
        justify-content: space-between;
    }

}

/* ==========================================================
   TIMELAPSE LOADING PROGRESS
========================================================== */

.camera-timelapse-loading {
    margin-bottom: 11px;
}


.camera-timelapse-loading[hidden] {
    display: none;
}


.camera-loading-header {
    display: flex;

    margin-bottom: 5px;

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

    gap: 10px;
}


.camera-loading-header span {
    color:
        var(--station-text);

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


.camera-loading-header strong {
    color:
        var(--station-green);

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


/* PROGRESS TRACK */

.camera-loading-track {
    position: relative;

    width: 100%;
    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background:
        #dce5e8;
}


/* PROGRESS BAR */

.camera-loading-bar {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        var(--station-green);

    transition:
        width 100ms linear;
}


/* FRAME COUNT */

.camera-loading-detail {
    margin-top: 4px;

    color:
        var(--station-muted);

    font-size: 0.56rem;
    font-weight: 600;
}


/* ==========================================================
   DOWNLOAD MP4 BUTTON
========================================================== */

.camera-download-button {
    min-height: 34px;

    padding:
        0 13px;

    border:
        1px solid
        var(--station-green);

    border-radius: 7px;

    color:
        var(--station-green);

    background:
        #ffffff;

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

    cursor: pointer;

    transition:
        color 150ms ease,
        background 150ms ease,
        opacity 150ms ease;
}


.camera-download-button:hover:not(:disabled) {
    color:
        #ffffff;

    background:
        var(--station-green);
}


.camera-download-button:disabled {
    opacity: 0.42;

    cursor: not-allowed;
}


/* MOBILE */

@media (max-width: 650px) {

    .camera-download-button {
        width: 100%;
    }

}

/* ========================================
   CURRENT OBSERVATION TYPOGRAPHY
   2026-10-03
======================================== */

.station-data-row > span {
    color: var(--station-text);
    font-size: 0.84rem;
    font-weight: 800;
}

.station-data-row > strong {
    color: var(--station-text);
    font-size: 0.84rem;
    font-weight: 800;
}

.station-data-row > strong small {
    color: var(--station-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

/* Keep temperature/dew point aligned with all other observations. */

.station-data-row--primary {
    min-height: 43px;
}

.station-data-row--primary > span,
.station-data-row--primary > strong {
    color: var(--station-text);
    font-size: 0.84rem;
    font-weight: 800;
}


/* ========================================
   WIND OBSERVATION CATEGORIES
======================================== */

.wind-current-grid {
    gap: 8px;
}

.wind-current-grid > div {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #e1e7ea;
    border-radius: 7px;
    background: #ffffff;
}

.wind-current-grid > div > span {
    color: var(--station-text);
    font-size: 0.78rem;
    font-weight: 800;
}

.wind-current-grid > div > strong {
    margin-top: 2px;
    color: var(--station-text);
    font-size: 0.92rem;
    font-weight: 800;
}

.wind-current-grid > div > strong small {
    color: var(--station-muted);
    font-size: 0.62rem;
    font-weight: 500;
}

.wind-direction-value {
    margin-top: 2px;
    color: var(--station-text);
    font-size: 0.92rem;
    font-weight: 800;
}


/* Compact gust boxes */

.wind-gust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #dfe5e8;
}

.wind-gust-grid > div {
    min-width: 0;
    padding: 7px 6px;
    border: 1px solid #e1e7ea;
    border-radius: 6px;
    background: #ffffff;
}

.wind-gust-grid > div > span:first-child {
    display: block;
    color: var(--station-muted);
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1.1;
    text-transform: none;
}

.wind-gust-value {
    display: flex;
    margin-top: 3px;
    align-items: baseline;
    gap: 2px;
    color: var(--station-text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.wind-gust-value span {
    color: var(--station-text);
    font-size: inherit;
    font-weight: 800;
}

.wind-gust-value small {
    color: var(--station-muted);
    font-size: 0.52rem;
    font-weight: 500;
}


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

@media (max-width: 1100px) {
    .wind-gust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .wind-gust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .wind-gust-grid > div {
        padding: 7px 8px;
    }
}



/* ========================================
   CAMERA ARCHIVE CALENDAR
======================================== */
.camera-archive-panel{margin-top:12px;padding:12px;border:1px solid var(--station-border);border-radius:10px;background:#f7f9fa}
.camera-archive-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.camera-archive-heading>div>span{display:block;color:var(--station-green);font-size:.58rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.camera-archive-heading>div>strong{display:block;margin-top:1px;color:var(--station-text);font-size:.82rem;font-weight:800}
#camera-archive-selection{color:var(--station-muted);font-size:.66rem;font-weight:700}
.camera-archive-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(155px,.85fr);gap:12px}
.camera-calendar,.camera-archive-options{padding:10px;border:1px solid #dfe6e9;border-radius:8px;background:#fff}
.camera-calendar-toolbar{display:grid;grid-template-columns:30px 1fr 30px;align-items:center;gap:6px;margin-bottom:8px}
.camera-calendar-toolbar strong{color:var(--station-text);font-size:.75rem;text-align:center}
.camera-calendar-toolbar button{width:30px;height:30px;border:1px solid var(--station-border);border-radius:6px;color:var(--station-text);background:#fff;font-size:1rem;cursor:pointer}
.camera-calendar-weekdays,.camera-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.camera-calendar-weekdays span{color:var(--station-muted);font-size:.48rem;font-weight:800;text-align:center;text-transform:uppercase}
.camera-calendar-day{min-width:0;aspect-ratio:1;border:0;border-radius:5px;color:#a1adb3;background:transparent;font-size:.62rem;font-weight:700}
.camera-calendar-day.available{color:#236b47;background:#e6f5ec;cursor:pointer}
.camera-calendar-day.available:hover{background:#d3ecde}
.camera-calendar-day.selected{color:#fff;background:var(--station-green)}
.camera-calendar-day:disabled{cursor:default}
.camera-calendar-day--blank{display:block}
.camera-calendar-key{margin-top:7px;color:var(--station-muted);font-size:.54rem}
.camera-calendar-key i{display:inline-block;width:8px;height:8px;margin-right:4px;border-radius:2px;background:#e6f5ec;border:1px solid #b9dcc8}
.camera-archive-options{display:flex;flex-direction:column;gap:9px}
.camera-archive-options label>span{display:block;margin-bottom:3px;color:var(--station-muted);font-size:.55rem;font-weight:800;text-transform:uppercase}
.camera-archive-options input,.camera-archive-options select{width:100%;height:34px;padding:0 8px;border:1px solid var(--station-border);border-radius:7px;color:var(--station-text);background:#fff;font:inherit;font-size:.68rem}
.camera-archive-load{min-height:34px;border:0;border-radius:7px;color:#fff;background:var(--station-green);font-size:.68rem;font-weight:800;cursor:pointer}
.camera-archive-load:disabled{opacity:.42;cursor:not-allowed}
.camera-archive-message{margin:0;color:var(--station-muted);font-size:.57rem;line-height:1.35}
@media(max-width:650px){.camera-archive-layout{grid-template-columns:1fr}.camera-archive-heading{align-items:flex-start;flex-direction:column;gap:3px}}


/* =========================================
   LKPLCD CURRENT WIND PLACARDS
   ========================================= */

.dual-wind-panel .wind-current-placard {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100%;
    margin: 14px 0 16px 0;
    padding: 0;

    background: #ffffff;
    border: 1px solid #dfe4e8;
    border-radius: 10px;

    overflow: hidden;
}

/* Individual Speed / Gust / Direction columns */
.dual-wind-panel .wind-current-placard .wind-current-metric {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 0;
    padding: 14px 10px;

    text-align: center;
}

/* Divider between the three columns */
.dual-wind-panel .wind-current-placard .wind-current-metric + .wind-current-metric {
    border-left: 1px solid #e2e6e9;
}

/* Speed / Gust / Direction labels */
.dual-wind-panel .wind-current-placard .wind-current-label {
    display: block !important;

    margin: 0 0 5px 0;

    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.2;

    color: #243444;

    text-transform: none;
    letter-spacing: 0;
}

/* Main observation values */
.dual-wind-panel .wind-current-placard .wind-current-value {
    display: block !important;

    margin: 0;

    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;

    color: #1d3042;

    white-space: nowrap;
}

/* mph */
.dual-wind-panel .wind-current-placard .wind-current-value small {
    font-size: 0.62em !important;
    font-weight: 500 !important;
    color: #536474;
}

/* Direction */
.dual-wind-panel .wind-current-placard .wind-direction-value {
    display: block !important;

    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;

    white-space: nowrap;
}


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

@media (max-width: 600px) {

    .dual-wind-panel .wind-current-placard {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .dual-wind-panel .wind-current-placard .wind-current-metric {
        padding: 12px 5px;
    }

    .dual-wind-panel .wind-current-placard .wind-current-label {
        font-size: 0.75rem !important;
    }

    .dual-wind-panel .wind-current-placard .wind-current-value {
        font-size: 1.20rem !important;
    }

    .dual-wind-panel .wind-current-placard .wind-direction-value {
        font-size: 1.10rem !important;
    }
}
/* ========================================
   EXTERNAL STATION LINKS + INLINE STATUS
======================================== */
.station-external-links { display: flex; align-items: center; gap: 10px; }
.station-external-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
    padding: 5px 10px; border: 1px solid #dfe6e9; border-radius: 9px; background: #fff;
    color: #172b43; text-decoration: none; font-size: .72rem; font-weight: 750; white-space: nowrap; }
a.station-external-link:hover { border-color: #2f8f5b; background: #f3faf6; }
.station-external-link__mark { display: inline-flex; width: 29px; height: 29px; align-items: center;
    justify-content: center; border-radius: 7px; color: white; font-size: .8rem; font-weight: 900; }
.station-external-link--wu .station-external-link__mark { background: #294d9b; }
.station-external-link--windy .station-external-link__mark { background: #cf263e; font-style: italic; }
.station-external-link--pending { opacity: .65; cursor: default; }
.station-card-heading--conditions { display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px 14px; }
.station-observation-status-row { display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 9px 14px; }
.station-observation-status-row .current-observation-time { min-width: 0; }
.station-observation-status-row .station-live-status { min-width: 105px; padding: 7px 10px; }
@media (max-width: 650px) {
    .station-identity__actions { flex-wrap: wrap; }
    .station-external-links { flex-wrap: wrap; }
    .station-observation-status-row { width: 100%; }
}
@media (max-width: 430px) {
    .station-identity__actions { flex-direction: row; align-items: center; }
    .station-specifications-link { width: auto; }
    .station-external-link__name { display: none; }
    .station-observation-status-row .station-live-status { width: auto; }
}

/* 2026-11-13: Align station status with right-aligned weather readings. */
.station-card-heading--conditions {
    display: block;
}
.station-observation-status-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 8px;
}
.station-observation-status-row .current-observation-time {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 2px;
}
.station-observation-status-row .station-live-status {
    margin-left: auto;
    flex-shrink: 0;
}


/* Center and bold Current Conditions heading */
.station-card-heading--conditions > div:first-child {
    width: 100%;
    text-align: center;
}

.station-card-heading--conditions > div:first-child > span {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #172b43;
}

/* SAMNET imperial / metric selector */
.samnet-unit-toggle { display:inline-flex; flex:0 0 auto; border:1px solid #cbd8dd; border-radius:9px; padding:3px; background:#f3f7f8; gap:3px; }
.samnet-unit-toggle button { border:0; border-radius:6px; padding:9px 11px; background:transparent; color:#172b43; font:700 .75rem "Source Sans 3",sans-serif; cursor:pointer; }
.samnet-unit-toggle button.active { color:#fff; background:#2f8f5b; }
.samnet-unit-toggle button:focus-visible { outline:2px solid #1976d2; outline-offset:2px; }
@media (max-width:800px) { .station-identity__actions { flex-wrap:wrap; } .samnet-unit-toggle { order:0; } }

/* LKSNOW external networks centered; unit and information controls at right */
.station-identity__text { flex: 0 1 auto; min-width: 190px; }
.station-identity__actions { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 12px; }
.station-external-links { margin-left: auto; margin-right: auto; flex-wrap: wrap; justify-content: center; }
.station-external-link--cwop .station-external-link__mark { background: #246c8a; }
.station-identity__actions > .samnet-unit-toggle { order: 2; }
.station-identity__actions > .station-specifications-link { order: 3; flex: 0 0 auto; }
.station-identity__actions > .station-external-links { order: 1; }
@media (max-width: 1100px) {
  .station-identity__inner { flex-wrap: wrap; }
  .station-identity__actions { flex: 1 1 100%; justify-content: flex-end; }
}
@media (max-width: 650px) {
  .station-identity__actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
  .station-external-links { flex: 1 1 100%; justify-content: flex-start; margin: 0; }
  .station-identity__actions > .samnet-unit-toggle { order: 2; }
  .station-identity__actions > .station-specifications-link { order: 3; width: auto; }
}
@media (max-width: 430px) {
  .station-identity__actions { flex-direction: row; align-items: center; }
  .station-external-link__name { display: inline; }
}
