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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {

    background: #121a23;

    color: #ffffff;

    font-family: 'Oswald', Helvetica, sans-serif;

    font-size: 16px;

    line-height: 1.4;
}

/* Rain chart — inherit the existing temperature chart design */
.rain-chart-card {
    width: 100%;
    box-sizing: border-box;
}

/* Keep the chart dimensions consistent */
.rain-chart-card .chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

/* iPad and phone adjustments */
@media (max-width: 768px) {
    .rain-chart-card .chart-container {
        height: 280px;
    }
}

/* =========================================
   EXPLORE WEATHER
   ========================================= */

.explore-intro {
    margin: 0;
    padding: 14px 18px;
    color: #aeb8c2;
    text-align: center;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 15px;
}

.explore-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 145px;
    padding: 18px 12px;

    color: #ffffff;
    text-align: center;
    text-decoration: none;

    background: linear-gradient(
        145deg,
        #252f3b,
        #1b2530
    );

    border: 1px solid #3b444d;
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.explore-item > i {
    color: #d6b56c;
    font-size: 27px;
    margin-bottom: 3px;
}

.explore-title {
    font-size: 17px;
    font-weight: 600;
    color: #d6b56c;
}

.explore-desc {
    color: #aeb8c2;
    font-size: 13px;
    line-height: 1.4;
}

.explore-item:hover,
.explore-item:focus-visible {
    border-color: #d6b56c;
    background: #2b3541;
    outline: none;
}

.explore-item:hover {
    transform: translateY(-2px);
}

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

@media (max-width: 550px) {
    .explore-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .explore-item {
        min-height: 100px;
    }
}


/* Home page temperature chart */

.weather-chart-card {
    background: linear-gradient(145deg, #252b32, #171b20);
    border: 1px solid #3b444d;
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
    color: #e7eaf0;
    box-sizing: border-box;
}

.weather-chart-card h2 {
    color: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.chart-subtitle,
.chart-status {
    color: #aeb8c2;
    font-size: 0.9rem;
}

.weather-chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

.chart-status {
    margin: 10px 0 0;
}

@media (max-width: 600px) {
    .weather-chart-card {
        padding: 12px;
    }

    .weather-chart-container {
        height: 260px;
    }
}

/* =========================================================
   CURRENT CONDITIONS TILE DASHBOARD
   ========================================================= */
.current-conditions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.current-conditions-grid .weather-item {
    min-width: 0;
    min-height: 122px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    text-align: left;
    border: 1px solid #3b444d;
    border-radius: 14px;
    background: linear-gradient(145deg, #252b32, #171b20);
    line-height: 1.45;
}

.current-conditions-grid .weather-item:nth-child(3n),
.current-conditions-grid .weather-item:nth-child(2n) {
    border-right: 1px solid #3b444d;
}
.current-conditions-grid .weather-item i,
.current-conditions-grid .weather-item iconify-icon {
    margin: 0 0 2px;
    color: #d6b56c;
    font-size: 1.25rem;
}
.current-conditions-grid .weather-item:first-child {
    grid-column: span 2;
    min-height: 190px;
    padding: 22px;
    border-color: #65583c;
}
.current-conditions-grid .weather-item:first-child #temp {
    display: inline-block;
    color: #f4f5f7;
    font-family: Oswald, sans-serif;
    font-size: clamp(2.7rem, 5vw, 4.2rem);
    line-height: 1.1;
}
.current-conditions-grid .weather-item:first-child .condition-text {
    margin-left: 0;
    color: #d6b56c;
}
.current-conditions-grid .condition-text {
    margin-left: 0;
    color: #d6b56c;
}
.current-conditions-grid .secondary-value {
    margin-left: 0;
    color: #aeb8c2;
}
.current-conditions-grid .weather-item:nth-last-child(-n+3) {
    border-bottom: 1px solid #3b444d;
}
.current-conditions-grid .weather-item:last-child {
    border-bottom: 1px solid #3b444d;
}

/* Consolidated current-temperature hero with compact daily stats */
.current-conditions-grid .temperature-summary-item {
    grid-column: span 2;
    min-height: 220px;
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 22px;
    border-color: #65583c;
}
.temperature-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.temperature-label,
.summary-label {
    color: #aeb8c2;
    font-size: 0.82rem;
}
.temperature-reading {
    color: #f4f5f7;
    font-family: Oswald, sans-serif;
    font-size: clamp(2.7rem, 5vw, 4rem);
    line-height: 1.1;
}
.temperature-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
}
.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}
.summary-stat i {
    color: #d6b56c;
    font-size: 1rem;
}
.summary-stat strong {
    color: #f4f5f7;
    font-size: 1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.summary-stat small {
    color: #aeb8c2;
    font-size: 0.75rem;
}
@media (max-width: 1000px) {
    .current-conditions-grid .temperature-summary-item {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    .current-conditions-grid .temperature-summary-item {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .temperature-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }
}

@media (max-width: 1000px) {
    .current-conditions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 550px) {
    .current-conditions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }
    .current-conditions-grid .weather-item,
    .current-conditions-grid .weather-item:nth-child(2n),
    .current-conditions-grid .weather-item:nth-child(3n) {
        min-height: 120px;
        padding: 12px;
        border: 1px solid #3b444d;
        border-radius: 12px;
        font-size: 0.88rem;
    }
    .current-conditions-grid .weather-item:first-child {
        grid-column: 1 / -1;
        min-height: 165px;
    }
    .current-conditions-grid .weather-item:first-child #temp {
        font-size: 3.2rem;
    }
}



/* =========================================================
   LAST YEAR / NORMALS / RECORDS GRID
   ========================================================= */

.comparison-grid {
    
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    align-items: stretch;
}

.comparison-grid .comparison-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    min-width: 0;
    min-height: 0;
    height: auto;

    padding: 16px;
    margin: 0;

    text-align: left;

    border: 1px solid #3b444d;
    border-radius: 14px;

    background: linear-gradient(145deg, #252b32, #171b20);
}

/* Override the general weather-item borders and alignment */
.comparison-grid .weather-item {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;

    border-right: 1px solid #3b444d;
    border-bottom: 1px solid #3b444d;
}

/* Keep the comparison cards from inheriting the nth-child border rule */
.comparison-grid .weather-item:nth-child(3n) {
    border-right: 1px solid #3b444d;
}


.comparison-card h3 {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 12px;
    padding-bottom: 9px;

    color: #d6b56c;
    font-size: 1.05rem;
    font-weight: 600;

    border-bottom: 1px solid #3b444d;
}

.comparison-card h3 i {
    font-size: 1.1rem;
}

.comparison-stat {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin: 4px 0;

    color: #aeb8c2;
    font-size: 0.9rem;
}

.comparison-stat > i {
    width: 17px;
    color: #d6b56c;
    flex-shrink: 0;
}

.comparison-stat strong {
    color: #ffffff;
    font-weight: 600;
}

/* Mobile layout */

@media (max-width: 550px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .comparison-grid .comparison-card {
        min-height: auto;
        padding: 14px;
    }
}
/* =========================================================
   WEATHER CARDS
   ========================================================= */

.weather-card,
.chart-card {

    width: min(1200px, calc(100% - 30px));

    margin: 15px auto;

    background: #1b2530;

    border: 1px solid #303b47;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   LAST YEAR / NORMALS / RECORDS GRID
   ========================================================= */

/* 
.comparison-grid {

    display: grid;

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

    gap: 15px;

    align-items: stretch;

}
 */


/* =========================================================
   DAILY RECORDS - RIGHT COLUMN
   ========================================================= */

/* 
.daily-records-card {
    min-height: 100%;
}

.daily-records-card h3 {
    font-size: 1rem;
    letter-spacing: 0.4px;
}
 */


/* =========================================================
   RECENT OBSERVATION - BOTTOM TWO COLUMNS
   ========================================================= */

.recent-observation-card {

    grid-column: 1 / 3;

}


/* =========================================================
   KEEP ALL CARDS CONSISTENT
   ========================================================= */

/* 
.comparison-grid .comparison-card {

    width: 100%;

    min-width: 0;

    box-sizing: border-box;

}

 */

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

@media (max-width: 850px) {

    .comparison-grid {

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

    }

    .daily-records-card {

        grid-column: 1 / -1;

        grid-row: auto;

    }

    .recent-observation-card {

        grid-column: 1 / -1;

    }

}


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

@media (max-width: 550px) {

    .comparison-grid {

        grid-template-columns: 1fr;

    }

    .comparison-grid .comparison-card {

        grid-column: 1;

        grid-row: auto;

    }

}



/* =========================================================
   CARD HEADER
   ========================================================= */

.card-header {

    min-height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 8px 15px;

    background: #252f3b;

    border-bottom: 1px solid #394552;

    color: #ffffff;

    font-size: 18px;

    font-weight: 600;

    letter-spacing: 0.4px;

    text-align: center;
}


/* =========================================================
   UPDATED TIME
   ========================================================= */

.updated-time {

    margin-left: 8px;

    color: #aeb8c2;

    font-size: 13px;

    font-weight: 400;
}


/* =========================================================
   WEATHER GRID
   ========================================================= */

.weather-grid {

    display: grid;

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


/* =========================================================
   WEATHER ITEMS
   ========================================================= */

.weather-item {

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 10px 12px;

    color: #ffffff;

    text-align: center;

    line-height: 1.35;

    border-right: 1px solid #303b47;

    border-bottom: 1px solid #303b47;
}


/* Remove right border from every third item */

.weather-item:nth-child(3n) {

    border-right: none;
}


/* Remove bottom border from final row */

.weather-grid .weather-item:nth-last-child(-n+3) {

    border-bottom: none;
}


/* =========================================================
   ICONS
   ========================================================= */

.weather-item i {

    margin-right: 7px;

    flex-shrink: 0;
}

.weather-item iconify-icon {

    margin-right: 7px;

    flex-shrink: 0;
}


/* =========================================================
   DAILY OBSERVATIONS - INLINE LAYOUT
   ========================================================= */

.weather-item.daily-observations {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;

    gap: 12px 22px;

    padding: 14px 16px;
    text-align: left;
    line-height: 1.5;
}

/* Individual observation */

.daily-observation {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
    min-width: 0;
}

/* Icons */

.daily-observations > .daily-observation > i {
    margin: 0;
    color: #d6b56c;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.daily-observation-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.daily-observation-icon i,
.daily-observation-icon iconify-icon {
    margin: 0;
}

/* Values */

.daily-observation strong {
    color: #ffffff;
    font-weight: 600;
}

/* =========================================================
   DAILY OBSERVATIONS HEADER
   ========================================================= */

.daily-observations-header {
    flex: 0 0 100%;
    width: 100%;

    display: flex;
    align-items: center;
    gap: 9px;

    padding-bottom: 9px;
    margin-bottom: 2px;

    color: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;

    border-bottom: 1px solid #3b444d;
}

.daily-observations-header i {
    font-size: 1rem;
}

/* =========================================================
   SECONDARY VALUES
   ========================================================= */

.condition-text {

    margin-left: 6px;

    font-weight: 600;
}


.secondary-value {

    margin-left: 6px;

    color: #aeb8c2;

    font-size: 0.9em;
}


/* =========================================================
   ADVISORIES
   ========================================================= */

.advisory-content {

    padding: 12px;
}


/*
   The NWS alert box can have its own styling.
   These rules provide some basic containment without
   interfering with the alert system's existing styles.
*/

.advisory-content .warnBox {

    text-align: center;

    width: 100%;
}


/* =========================================================
   SUNRISE / SUNSET
   ========================================================= */

.sunrise-icon {

    color: #f56b6e;
}


.sunset-icon {

    color: #f5c76b;
}


/* =========================================================
   FORECAST
   ========================================================= */

.forecast-grid {

    display: grid;

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


.forecast-item {

    min-height: 100px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 15px;

    color: #ffffff;

    text-align: center;

    border-right: 1px solid #303b47;
}


.forecast-item:last-child {

    border-right: none;
}


.forecast-item hr {

    width: 80%;

    margin: 10px auto;

    border: 0;

    border-top: 1px solid #46515d;
}


/* =========================================================
   FORECAST LINK
   ========================================================= */

.forecast-header a {

    color: #ffffff;

    text-decoration: none;
}


.forecast-header a:hover {

    text-decoration: underline;
}


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

.chart-card {

    padding: 0;
}


.weather-iframe {

    display: block;

    width: 100%;

    border: none;
}


.aio-frame {

    height: 725px;
}


.pm25-frame {

    height: 315px;
}
/* =====================================================
   WIND COMPASS CARD
   ===================================================== */

.wind-compass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 15px;
}

.wind-compass {
     width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.wind-compass-svg {
    width: 140px;
    max-width: 100%;
    height: auto;
    overflow: visible;
    display: block;
    margin: 2px auto 0;
}
/* Compass ring */

.compass-ring {
    fill: #171b20;
    stroke: #d6b56c;
    stroke-width: 2.5;
}

/* Tick marks */

.compass-tick {
    stroke: #858e96;
    stroke-width: 1;
    opacity: .65;
}

.compass-tick.major {
    stroke: #d6b56c;
    stroke-width: 2;
    opacity: 1;
}

/* Cardinal directions */

.compass-labels text {
    fill: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* Wind pointer */

#windNeedle {
    transform-origin: 100px 100px;
    transition: transform 1.2s ease-in-out;
}

.wind-needle {
    fill: #d6b56c;
    stroke: #f2d99c;
    stroke-width: 1;
    filter: drop-shadow(0 2px 3px #000);
}

/* Center readings */

.compass-speed {
    fill: #f0f2f4;
    font-family: Oswald, sans-serif;
    font-size: 27px;
    font-weight: 600;
    text-anchor: middle;
}

.compass-unit {
    fill: #9ca6ae;
    font-size: 9px;
    text-anchor: middle;
    letter-spacing: 1px;
}

.compass-direction {
    fill: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
}

.wind-compass-footer {
    color: #9ca6ae;
    font-size: 11px;
    margin-top: 3px;
    letter-spacing: .5px;
}



/* =====================================================
   WEATHER INSTRUMENT PANEL
   ===================================================== */

.instrument-panel {
    padding: 10px 12px !important;
}

.instrument-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 10px;
    align-items: start;
    padding: 2px 5px;
}

.instrument-item {
    min-width: 0;
    min-height: 0;
    padding: 3px 5px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.instrument-title {
    color: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    line-height: 1.2;
}


/* =====================================================
   SHARED SEMICIRCULAR GAUGE SVG SIZING
   ===================================================== */

.baro-gauge-svg,
.uv-gauge-svg,
.aqi-gauge-svg,
.humidity-gauge-svg,
.dewpoint-gauge-svg {
    width: 165px;
    max-width: 100%;
    height: auto;
    overflow: visible;
    display: block;ƒ
    margin: 2px auto 0;
    flex-shrink: 0;
}


/* =====================================================
   SHARED GAUGE TRACKS AND TICK MARKS
   ===================================================== */

.baro-track,
.uv-track,
.aqi-track,
.humidity-track,
.dewpoint-track {
    fill: none;
    stroke: #414a53;
    stroke-width: 10;
    stroke-linecap: round;
}

.baro-tick,
.uv-tick,
.aqi-tick,
.humidity-tick,
.dewpoint-tick {
    stroke: #89939c;
    stroke-width: 1.5;
}

.baro-tick.major,
.uv-tick.major,
.aqi-tick.major,
.humidity-tick.major,
.dewpoint-tick.major {
    stroke: #d6b56c;
    stroke-width: 2.5;
}


/* =====================================================
   BAROMETRIC PRESSURE GAUGE
   ===================================================== */

.baro-gauge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 15px;
}

.baro-gauge {
    width: 260px;
    max-width: 100%;
    margin: 10px auto 0;
}

.baro-active-arc {
    fill: none;
    stroke: #d6b56c;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.2s ease;
}

#baroNeedle {
    transform-origin: 120px 125px;
    transition: transform 1.2s ease-in-out;
}

.baro-needle {
    stroke: #f0c879;
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 3px #000);
}

.baro-hub {
    fill: #d6b56c;
    stroke: #f2d99c;
    stroke-width: 1.5;
}

.baro-scale-labels text {
    fill: #9ca6ae;
    font-family: Oswald, sans-serif;
    font-size: 10px;
    text-anchor: middle;
}

.baro-value {
    fill: #f0f2f4;
    font-family: Oswald, sans-serif;
    font-size: 25px;
    font-weight: 600;
    text-anchor: middle;
}

.baro-unit {
    fill: #9ca6ae;
    font-size: 10px;
    text-anchor: middle;
}


/* =====================================================
   BAROMETRIC TREND INDICATOR
   ===================================================== */

.baro-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 5px;
    color: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .6px;
    transition: color .6s ease;
}

.baro-trend.rising,
.baro-trend.rising-rapidly {
    color: #a8bd78;
}

.baro-trend.falling,
.baro-trend.falling-rapidly {
    color: #e69a58;
}

.baro-trend.steady {
    color: #d6b56c;
}

.baro-trend.trend-animate {
    animation: baroTrendPulse 1.4s ease-out;
}

@keyframes baroTrendPulse {
    0% {
        opacity: .65;
        transform: translateY(2px);
        text-shadow: 0 0 0 transparent;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 7px currentColor;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 0 transparent;
    }
}


/* =====================================================
   UV INDEX GAUGE
   ===================================================== */

.uv-active-arc {
    fill: none;
    stroke: #d6b56c;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.2s ease, stroke .8s ease;
}

.uv-scale-labels text {
    fill: #9ca6ae;
    font-family: Oswald, sans-serif;
    font-size: 10px;
    text-anchor: middle;
}

.uv-value {
    fill: #f0f2f4;
    font-family: Oswald, sans-serif;
    font-size: 29px;
    font-weight: 600;
    text-anchor: middle;
}

.uv-category {
    fill: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
    letter-spacing: .5px;
}


/* =====================================================
   AIR QUALITY / AQI GAUGE
   ===================================================== */

.aqi-active-arc {
    fill: none;
    stroke: #70a978;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 282.743;
    stroke-dashoffset: 282.743;
    transition: stroke-dashoffset 1.2s ease, stroke .8s ease;
}

.aqi-scale-labels text {
    fill: #9ca6ae;
    font-family: Oswald, sans-serif;
    font-size: 10px;
    text-anchor: middle;
}

.aqi-value {
    fill: #f0f2f4;
    font-family: Oswald, sans-serif;
    font-size: 29px;
    font-weight: 600;
    text-anchor: middle;
}

.aqi-category {
    fill: #70a978;
    font-family: Oswald, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-anchor: middle;
    letter-spacing: .5px;
}

.aqi-pm25 {
    fill: #9ca6ae;
    font-family: Oswald, sans-serif;
    font-size: 9px;
    text-anchor: middle;
}


/* =====================================================
   HUMIDITY GAUGE
   ===================================================== */

.humidity-active-arc {
    fill: none;
    stroke: #70a9a1;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 282.743;
    stroke-dashoffset: 282.743;
    transition: stroke-dashoffset 1.2s ease, stroke .8s ease;
}

.humidity-scale-labels text {
    fill: #9ca6ae;
    font-family: Oswald, sans-serif;
    font-size: 10px;
    text-anchor: middle;
}

.humidity-value {
    fill: #f0f2f4;
    font-family: Oswald, sans-serif;
    font-size: 29px;
    font-weight: 600;
    text-anchor: middle;
}

.humidity-category {
    fill: #70a9a1;
    font-family: Oswald, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-anchor: middle;
    letter-spacing: .5px;
}


/* =====================================================
   DEW POINT GAUGE
   ===================================================== */

.dewpoint-active-arc {
    fill: none;
    stroke: #70a9a1;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 282.743;
    stroke-dashoffset: 282.743;
    transition: stroke-dashoffset 1.2s ease, stroke .8s ease;
    transform: rotate(0deg);
    transform-origin: 120px 125px;
}

.dewpoint-scale-labels text {
    fill: #9ca6ae;
    font-family: Oswald, sans-serif;
    font-size: 10px;
    text-anchor: middle;
}

.dewpoint-value {
    fill: #f0f2f4;
    font-family: Oswald, sans-serif;
    font-size: 29px;
    font-weight: 600;
    text-anchor: middle;
}

.dewpoint-category {
    fill: #70a9a1;
    font-family: Oswald, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-anchor: middle;
    letter-spacing: .5px;
}


/* =====================================================
   GAUGE POSITIONING
   ===================================================== */

/* AQI first position in second row.
   Add aqi-item to the AQI instrument-item container. */

.instrument-row > .aqi-item {
    grid-column: 1;
    grid-row: 2;
}


/* =====================================================
   RESPONSIVE LAYOUT
   ===================================================== */

@media (max-width: 600px) {

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

    .instrument-row > .aqi-item {
        grid-column: auto;
        grid-row: auto;
    }

}


/* Mobile layout */

@media (max-width: 550px) {

    .instrument-row {
        gap: 6px;
        padding: 8px 0;
    }

    .instrument-item {
        padding: 10px 2px;
    }

    .instrument-title {
        font-size: 12px;
    }

    .wind-compass {
        width: 100%;
    }

    .baro-gauge {
        width: 100%;
    }

}


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

@media (max-width: 850px) {

    .weather-grid {

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


    .weather-item:nth-child(3n) {

        border-right: 1px solid #303b47;
    }


    .weather-item:nth-child(2n) {

        border-right: none;
    }


    .weather-grid .weather-item:nth-last-child(-n+3) {

        border-bottom: 1px solid #303b47;
    }


    .weather-grid .weather-item:nth-last-child(-n+2) {

        border-bottom: none;
    }


    .forecast-grid {

        grid-template-columns: 1fr;
    }


    .forecast-item {

        border-right: none;

        border-bottom: 1px solid #303b47;
    }


    .forecast-item:last-child {

        border-bottom: none;
    }
    
    
}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 550px) {

    .weather-card,
    .chart-card {

        width: calc(100% - 20px);

        margin: 10px auto;
    }


    .weather-grid {

        grid-template-columns: 1fr;
    }


    .weather-item,
    .weather-item:nth-child(2n),
    .weather-item:nth-child(3n) {

        border-right: none;

        border-bottom: 1px solid #303b47;
    }


    .weather-item:last-child {

        border-bottom: none;
    }


    .card-header {

        min-height: auto;

        padding: 10px;

        flex-direction: column;
    }


    .updated-time {

        margin-left: 0;
    }


    .weather-item {

        padding: 12px 10px;
    }


    .aio-frame {

        height: 600px;
    }


    .pm25-frame {

        height: 600px;
    }
}


/* =========================================================
   LOCAL WEATHER RADAR
   ========================================================= */

.current-conditions-grid > .radar-item {
    grid-column: span 2;
    min-height: 220px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 9px;
    border-color: #65583c;
}

.radar-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.radar-title {
    color: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 1rem;
}

.radar-title i {
    margin-right: 6px !important;
}

#radarUpdated {
    color: #aeb8c2;
    font-size: 0.7rem;
    text-align: right;
}

#weatherRadarMap {
    width: calc(100% + 16px);
    height: 230px;
    min-height: 230px;
    border-radius: -8px;
    overflow: hidden;
    border: 1px solid #3b444d;
    background: #171b20;
    z-index: 1;
}

.radar-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #aeb8c2;
    font-size: 0.72rem;
}

.radar-footer i {
    color: #d6b56c;
    margin-right: 4px;
}

.radar-item .leaflet-container {
    font-family: inherit;
    background: #171b20;
}

.radar-item .leaflet-control-zoom a {
    background: #252b32;
    color: #d6b56c;
    border-color: #3b444d;
}

.radar-item .leaflet-control-attribution {
    font-size: 9px;
}

/* =====================================================
   RADAR WEATHER CARD
   ===================================================== */

.radar-card {
    width: 100%;
    min-width: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

/* RADAR CARD HEADER */

.radar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.radar-card-header i {
    color: #d6b56c;
    margin-right: 7px;
}

#radarUpdated {
    color: #aeb8c2;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* MAP */

.radar-map-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}

#weatherRadarMap {
    width: 100%;
    height: 280px;
    min-height: 280px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3b444d;
    background: #171b20;
}

/* MOBILE */

@media (max-width: 700px) {

    .radar-card {
        padding: 11px;
    }

    #weatherRadarMap {
        height: 230px;
        min-height: 230px;
    }

    .radar-card-header {
        flex-wrap: wrap;
    }

}

/* Mobile layout */

@media (max-width: 700px) {

    .current-conditions-grid > .radar-item {
        grid-column: span 2;
    }

    #weatherRadarMap {
        height: 210px;
        min-height: 210px;
    }
}


/* RADAR PLAYBACK CONTROLS */

.radar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 2px 0;
}

.radar-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid #3b444d;
    border-radius: 6px;
    background: #252b32;
    color: #d6b56c;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.radar-controls button:hover {
    background: #343d46;
}

.radar-controls button:disabled {
    opacity: 0.4;
    cursor: default;
}

#radarFrameTime {
    color: #aeb8c2;
    font-size: 0.75rem;
    min-width: 65px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}


/* =====================================================
   RADAR MAP WEATHER INFORMATION OVERLAY
   ===================================================== */

.radar-map-wrapper {
    position: relative;
    width: 100%;
}

.radar-info-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;

    min-width: 135px;
    padding: 10px 13px;

    background: rgba(18, 26, 35, 0.91);
    border: 1px solid #65583c;
    border-radius: 9px;

    color: #f4f5f7;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);

    pointer-events: none;
}

.radar-location {
    color: #d6b56c;
    font-family: Oswald, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
}

.radar-overlay-temp {
    margin: 2px 0;

    font-family: Oswald, sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    color: #ffffff;
}

.radar-overlay-condition {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #d6b56c;
    font-size: 0.8rem;
    font-weight: 600;
}

.radar-overlay-condition i {
    font-size: 1rem;
}

.radar-observation-time {
    margin-top: 5px;
    color: #aeb8c2;
    font-size: 0.65rem;
}

.records-divider {
    border-top: 1px solid #3b444d;
    margin: 14px 0;
}

.records-subheading {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: #d6b56c;
    margin: 8px 0 12px;
}

/* =========================================================
   LAST YEAR / NORMALS / RECORDS - TWO COLUMN LAYOUT
   ========================================================= */

.weather-grid.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    align-items: start;
}

/* Comparison cards */

.comparison-grid .comparison-card {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

/* Compact record statistics */

.comparison-card .comparison-stat {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

/* Record years */

.comparison-card .secondary-value {
    margin-left: 0;
    color: #aeb8c2;
    font-size: 0.85rem;
}

/* Mobile */

@media (max-width: 600px) {
    .weather-grid.comparison-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
}



/* ==========================================
   GAHANNA WEATHER VISITOR COUNTER
========================================== */

.wx-visitor-counter {
    background: linear-gradient(
        135deg,
        #252b32,
        #171b20
    );
    border: 1px solid #3b444d;
    border-radius: 14px;
    padding: 15px;
    text-align: center;
    margin: 15px 0;
}

.wx-visitor-heading {
    color: #d6b56c;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
}

.wx-visitor-heading i {
    margin-right: 7px;
}

.wx-visitor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wx-visitor-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wx-visitor-stat i {
    color: #d6b56c;
    font-size: 17px;
}

.wx-visitor-stat strong {
    color: #ffffff;
    font-size: 22px;
}

.wx-visitor-stat span {
    color: #aeb7c0;
    font-size: 12px;
}

.wx-visitor-stat:last-child i {
    color: #70a9a1;
}

@media (max-width: 480px) {
    .wx-visitor-stat strong {
        font-size: 18px;
    }

    .wx-visitor-stat span {
        font-size: 10px;
    }
}
