/* ============================================================
   WEATHER FOR GEEKS PAGE
   Extracted from known-good harper.css during modular migration.
   Do not merge page-specific rules back into harper-core.css.
   ============================================================ */

/* ============================================================
   PAGE 2 — WEATHER FOR GEEKS
   ============================================================ */

.geek-section {
    margin-top: 20px;
}

.geek-section > h2 {
    margin: 0 0 11px;
    color: var(--blue-dark);
    font-size: 1.3rem;
    font-weight: 900;
}


/* ------------------------------------------------------------
   Placeholder / future sections
   ------------------------------------------------------------ */

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.geek-placeholder,
.sensor-placeholder,
.aviation-placeholder {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.geek-placeholder h3,
.sensor-placeholder h3,
.aviation-placeholder h3 {
    margin: 0 0 6px;
    color: var(--blue-dark);
}

.geek-placeholder p,
.sensor-placeholder p,
.aviation-placeholder p {
    margin: 0;
    color: var(--muted);
}

/* =====================================================
   PAGE 2 — CLIMATOLOGICAL REPORT ARCHIVE
   ===================================================== */

.climate-summary-card {
    margin-top: 16px;
}

.climate-description {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: .82rem;
}

.climate-ytd-title {
    margin: 16px 0 9px;
    color: var(--blue-dark);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.climate-archive-heading {
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.climate-archive-heading > div {
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 900;
}

.climate-archive-heading > span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .78rem;
}

.climate-year-row {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.climate-year-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-dark);
    font-weight: 900;
}

.climate-year-report-link {
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    text-decoration: none;
    font-size: .7rem;
    font-weight: 600;
}

.climate-year-report-link:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.climate-month-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.climate-month-link {
    display: inline-block;
    min-width: 40px;
    padding: 5px 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--blue-dark);
    text-align: center;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
}

.climate-month-link:hover {
    background: var(--blue-light);
    border-color: #b9cce0;
}

.climate-earlier-years {
    margin-top: 13px;
}

.climate-earlier-years > summary {
    cursor: pointer;
    color: var(--blue-dark);
    font-size: .85rem;
    font-weight: 900;
}

.climate-earlier-years-content {
    margin-top: 8px;
}

.climate-noscript {
    margin-top: 15px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: .8rem;
}

.climate-noscript-links {
    margin-top: 8px;
}

.climate-noscript-links a {
    margin-right: 8px;
}

@media (max-width: 700px) {

    .climate-year-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

}


/* =====================================================
   PAGE 2 — HISTORICAL WEATHER GRAPHS
   ===================================================== */

.history-graph-card {
    min-width: 0;
}

.history-graph-controls {
    display: flex;
    gap: 6px;
    margin: 8px 0 10px;
}

.history-graph-button {
    padding: 4px 9px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--blue-dark);
    font-family: inherit;
    font-size: .75rem;
    font-weight: 900;
    cursor: pointer;
}

.history-graph-button:hover {
    background: var(--blue-light);
    border-color: #b9cce0;
}

.history-graph-button.active {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #ffffff;
}

.history-graph-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* ============================================================
   STATION / SERVER TELEMETRY
   ============================================================ */

.telemetry-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.telemetry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.telemetry-item:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.telemetry-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.telemetry-value {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 800;
    white-space: nowrap;
}

.telemetry-mars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 15px 16px;
    background: #f8fafc;
}

.telemetry-mars-value {
    color: var(--blue-dark);
}

@media (max-width: 700px) {

    .telemetry-grid {
        grid-template-columns: 1fr;
    }

    .telemetry-item:nth-child(odd) {
        border-right: none;
    }

    .telemetry-mars {
        justify-content: space-between;
    }
}


.forecast-jump-links {
    margin-top: 16px;
    font-size: 0.92rem;
}

.forecast-jump-links a {
    font-weight: 700;
    text-decoration: none;
}

.forecast-jump-links a:hover {
    text-decoration: underline;
}

/* Historical Weather graphs — larger two-column layout */
.history-graph-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
    .history-graph-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SUN & MOON ALMANAC
   ============================================================ */

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

.almanac-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.almanac-card h3 {
    margin: 0;
    padding: 13px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    color: var(--blue-dark);
    font-size: 1rem;
}

.almanac-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.almanac-row:last-child {
    border-bottom: none;
}

.almanac-label {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.almanac-value {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 800;
    text-align: right;
}

@media (max-width: 700px) {
    .almanac-grid {
        grid-template-columns: 1fr;
    }

    .almanac-row {
        gap: 12px;
    }
}

/* ============================================================
   UV INDEX — RISK GAUGE
   ============================================================ */

.uv-risk-label {
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.uv-scale {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 18px;
    margin: 14px 0 5px;
    border-radius: 9px;
    overflow: visible;
}

.uv-band:first-child {
    border-radius: 9px 0 0 9px;
}

.uv-band:nth-child(5) {
    border-radius: 0 9px 9px 0;
}

.uv-low {
    background: #4CAF50;
}

.uv-moderate {
    background: #FBC02D;
}

.uv-high {
    background: #FB8C00;
}

.uv-very-high {
    background: #E53935;
}

.uv-extreme {
    background: #C2185B;
}

.uv-marker {
    position: absolute;
    top: -6px;
    left: 0;
    width: 4px;
    height: 30px;
    border-radius: 2px;
    background: #20252b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
    transition: left 0.25s ease;
}

.uv-scale-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-align: center;
}

.uv-scale-labels span {
    white-space: nowrap;
}

/* ============================================================
   SOLAR RADIATION — INTENSITY GAUGE
   ============================================================ */

.solar-band-level {
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.solar-band-wrap {
    margin-top: 14px;
}

.solar-band-bar {
    position: relative;
    display: flex;
    height: 18px;
    overflow: visible;
    border-radius: 9px;
}

.solar-band {
    flex: 1 1 20%;
    height: 100%;
}

.solar-band-1 {
    background: #4CAF50;
    border-radius: 9px 0 0 9px;
}

.solar-band-2 {
    background: #FBC02D;
}

.solar-band-3 {
    background: #FB8C00;
}

.solar-band-4 {
    background: #E53935;
}

.solar-band-5 {
    background: #C2185B;
    border-radius: 0 9px 9px 0;
}

.solar-band-marker {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 30px;
    border-radius: 2px;
    background: #20252b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
}

.solar-band-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin-top: 5px;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-align: center;
}

.solar-band-scale span {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .solar-band-scale {
        font-size: 0.58rem;
    }
}

/* ==========================================================
   Station Records - Weather for Geeks
   ========================================================== */

.station-records-panel {
    margin: 1.4rem 0;
    padding: 1rem;
    border: 1px solid #d8e0e7;
    border-radius: 10px;
    background: #fff;
}

.station-records-panel h3 {
    margin: 0 0 .85rem;
}

.station-records-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.station-record-item {
    padding: .75rem;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
    background: #f8fafb;
}

.station-record-label {
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.station-record-value {
    display: block;
    margin-top: .3rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.station-record-date {
    display: block;
    margin-top: .15rem;
    font-size: .82rem;
    color: #65717c;
}

.station-records-note {
    margin-top: .8rem;
    font-size: .82rem;
    color: #65717c;
}

@media (max-width: 900px) {
    .station-records-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .station-records-grid {
        grid-template-columns: 1fr;
    }
}


/* Station Records new-record highlighting */

.station-records-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.station-records-heading h3 {
    margin: 0;
}

.station-records-checked {
    font-size: .80rem;
    color: #65717c;
    white-space: nowrap;
}

.station-record-item {
    position: relative;
}

.station-record-new {
    border-color: #d6a514;
    background: #fff9df;
    box-shadow: 0 0 0 1px rgba(214,165,20,.12);
}

.station-record-badge {
    display: inline-block;
    margin-top: .5rem;
    padding: .18rem .42rem;
    border-radius: 999px;
    background: #d6a514;
    color: #202830;
    font-size: .63rem;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1.2;
}

@media (max-width: 620px) {
    .station-records-heading {
        display: block;
    }

    .station-records-checked {
        display: block;
        margin-top: .25rem;
    }
}


/* Shared card/observation building blocks used by the Geek page */
/* ============================================================
   MORE WEATHER GEEKERY
   ============================================================ */

.geekery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.geekery-card {
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.geekery-card h3 {
    margin: 0 0 5px;
    color: var(--blue-dark);
    font-size: 1rem;
}

.geekery-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}



.observation-label {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.80rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.observation-value {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 900;
}

.observation-value.high {
    color: var(--red);
}

.observation-value.low {
    color: var(--blue-low);
}

.forecast-center-intro,
.geek-page-intro {
    margin: 0 0 28px 0;
    padding: 16px 18px;
    background: #f5f7f9;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    line-height: 1.5;
}


.forecast-center-heading {
    margin-top: 34px;
    margin-left: 16px;
}

.forecast-center-intro,
.geek-page-intro {
    padding: 12px 15px;
    margin-bottom: 22px;
    font-size: 0.95rem;
}

/* === COMPACT RAINFALL SUMMARY START === */

.rainfall-summary-card {
    grid-column: 1 / -1;

    padding-top: 18px;
    padding-bottom: 18px;
}


.rainfall-summary-grid {
    display: grid;

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

    gap: 0;
}


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

    padding: 2px 20px;
}


.rainfall-summary-item + .rainfall-summary-item {
    border-left:
        1px solid var(--border);
}


.rainfall-summary-item .observation-value {
    margin-top: 6px;
}


@media (max-width: 720px) {

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

        row-gap: 18px;
    }


    .rainfall-summary-item {
        padding:
            2px 16px;
    }


    .rainfall-summary-item:nth-child(3) {
        border-left: 0;
    }


    .rainfall-summary-item:nth-child(n+3) {
        padding-top: 16px;

        border-top:
            1px solid var(--border);
    }

}

/* === COMPACT RAINFALL SUMMARY END === */

/* W5TWO record/card consistency BEGIN */

/*
 * Match Current Year card fill to Station Records.
 */
.climate-ytd-grid > .geekery-card {
    background: #f8fafb;
}

/*
 * Temperature extremes:
 * highs red, lows blue.
 *
 * Current Year uses temp-high/temp-low classes.
 * Station Records uses fixed element IDs.
 */
.observation-value.temp-high,
#record-high-temp {
    color: var(--red, #c62828);
}

.observation-value.temp-low,
#record-low-temp,
#record-low-windchill {
    color: var(--blue, #1565c0);
}

/* W5TWO record/card consistency END */
