@font-face {
    font-family: 'Eczar';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/eczar-500-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Eczar';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/eczar-500-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Eczar';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/eczar-600-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Eczar';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/eczar-600-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Eczar';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/eczar-700-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Eczar';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/eczar-700-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Faustina';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/faustina-400-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Faustina';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/faustina-400-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Faustina';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/faustina-400-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Faustina';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/faustina-400-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Faustina';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/faustina-500-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Faustina';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/faustina-500-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Faustina';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/faustina-600-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Faustina';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/faustina-600-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Cutive';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cutive-400-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Cutive';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cutive-400-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Cutive Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cutive-mono-400-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Cutive Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cutive-mono-400-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/onest-300-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/onest-300-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/onest-400-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/onest-400-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/onest-500-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/onest-500-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/onest-600-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/onest-600-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/onest-700-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/onest-700-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}/* --- Theme variables --- */
:root {
    color-scheme: light dark;

    /* Light theme (default) */
    --bg: #f5f7fa;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --text-secondary: #374151;
    --card-bg: white;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --border: #d1d5db;
    --border-light: #f3f4f6;
    --border-medium: #e5e7eb;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --input-bg: white;
    --btn-hover-bg: #f3f4f6;
    --alert-bg: #fef2f2;
    --alert-border: #dc2626;
    --alert-text: #991b1b;
    --chart-axis-bg: white;
    --temp-high: #dc2626;
    --temp-low: #3b82f6;

    /* Typography & shape (style-axis defaults) */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: var(--font-body);
    --radius-card: 12px;
    --radius-control: 6px;
    --radius-pill: 20px;
    --section-letterspacing: 0.05em;
    --space-section: 1.5rem;
}

[data-theme="dark"] {
    --bg: #111827;
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --text-secondary: #d1d5db;
    --card-bg: #1f2937;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --border: #374151;
    --border-light: #2d3748;
    --border-medium: #374151;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --input-bg: #1f2937;
    --btn-hover-bg: #374151;
    --alert-bg: #451a1a;
    --alert-border: #dc2626;
    --alert-text: #fca5a5;
    --chart-axis-bg: #1f2937;
    --temp-high: #f87171;
    --temp-low: #60a5fa;
}

/* ================================================================
   STYLE: editorial — Sunday-edition magazine treatment.
   Same layout & functionality as default; only fonts / colors /
   shape / spacing rhythm differ. Stacks with light/dark mode.
   ================================================================ */

[data-style="editorial"] {
    /* Light editorial — warm paper cream */
    --bg: #faf7f2;
    --text: #1a1612;
    --text-muted: #6e665b;
    --text-secondary: #4a4239;
    --card-bg: #fffefb;
    --card-shadow: none;
    --border: #dcd5cb;
    --border-light: #e8e2d7;
    --border-medium: #dcd5cb;
    --accent: #762d2d;
    --accent-hover: #5a2222;
    --input-bg: #fffefb;
    --btn-hover-bg: #f0eae0;
    --alert-bg: #f7ece9;
    --alert-border: #762d2d;
    --alert-text: #4a1818;
    --chart-axis-bg: #fffefb;
    --temp-high: #b44a3f;
    --temp-low: #3f5a75;

    /* Editorial typography & shape */
    --font-body: 'Faustina', Georgia, "Times New Roman", serif;
    --font-display: 'Eczar', 'Hoefler Text', Georgia, serif;
    --radius-card: 0;
    --radius-control: 0;
    --radius-pill: 0;
    --section-letterspacing: 0.18em;
    --space-section: 2.25rem;
}

[data-style="editorial"][data-theme="dark"] {
    /* Dark editorial — warm charcoal */
    --bg: #1c1814;
    --text: #ece4d6;
    --text-muted: #998f80;
    --text-secondary: #c7beae;
    --card-bg: #25201b;
    --card-shadow: none;
    --border: #3a332c;
    --border-light: #2d2823;
    --border-medium: #3a332c;
    --accent: #c77c5a;
    --accent-hover: #b36b49;
    --input-bg: #25201b;
    --btn-hover-bg: #322c26;
    --alert-bg: #3a1f1a;
    --alert-border: #c77c5a;
    --alert-text: #f0ceb8;
    --chart-axis-bg: #25201b;
    --temp-high: #d86855;
    --temp-low: #6886a4;
}

/* Editorial-specific component tweaks (still don't change layout) */
[data-style="editorial"] body {
    font-feature-settings: 'tnum' 1, 'kern' 1, 'liga' 1;
}
[data-style="editorial"] section h2 {
    font-weight: 500;
    letter-spacing: var(--section-letterspacing);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}
[data-style="editorial"] #weather-summary {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
}
[data-style="editorial"] #location-name {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
}
[data-style="editorial"] section,
[data-style="editorial"] #current-section,
[data-style="editorial"] #details-section,
[data-style="editorial"] #hourly-section,
[data-style="editorial"] #daily-section,
[data-style="editorial"] #radar-section,
[data-style="editorial"] #sun-section,
[data-style="editorial"] #moon-section {
    border: 1px solid var(--border);
}

/* ================================================================
   STYLE: bulletin — retro-meteorological / weather station feel.
   1970s NOAA chart paper for light, amber phosphor CRT for dark.
   Mono display + typewriter serif body.
   ================================================================ */

[data-style="bulletin"] {
    /* Light bulletin — aged paper + ink */
    --bg: #f5efe0;
    --text: #1f1a0f;
    --text-muted: #7a6f58;
    --text-secondary: #4a4133;
    --card-bg: #faf6ea;
    --card-shadow: none;
    --border: #5a4d38;
    --border-light: #c8bca0;
    --border-medium: #8a7a5a;
    --accent: #8b3a1b;
    --accent-hover: #6b2a10;
    --input-bg: #faf6ea;
    --btn-hover-bg: #ede4cf;
    --alert-bg: #f4e4d4;
    --alert-border: #8b3a1b;
    --alert-text: #4a1808;
    --chart-axis-bg: #faf6ea;
    --temp-high: #a33d26;
    --temp-low: #1f4f75;

    --font-body: 'Cutive', 'Courier New', Courier, monospace;
    --font-display: 'Cutive Mono', 'Courier New', monospace;
    --radius-card: 0;
    --radius-control: 0;
    --radius-pill: 0;
    --section-letterspacing: 0.22em;
    --space-section: 2rem;
}

[data-style="bulletin"][data-theme="dark"] {
    /* Dark bulletin — amber phosphor terminal */
    --bg: #0e1410;
    --text: #e8c282;
    --text-muted: #9a7e54;
    --text-secondary: #c8a570;
    --card-bg: #161d17;
    --card-shadow: none;
    --border: #3a3024;
    --border-light: #2a221a;
    --border-medium: #5a4a30;
    --accent: #ffb347;
    --accent-hover: #e09a30;
    --input-bg: #161d17;
    --btn-hover-bg: #1f2a20;
    --alert-bg: #2a1f10;
    --alert-border: #ffb347;
    --alert-text: #ffd49a;
    --chart-axis-bg: #161d17;
    --temp-high: #ff9059;
    --temp-low: #7b9cc2;
}

/* ================================================================
   STYLE: quiet — refined minimalism. Single typeface, single accent,
   generous breathing. Quiet confidence, distinct from Apple.
   ================================================================ */

[data-style="quiet"] {
    /* Light quiet — warm paper white + evergreen ink */
    --bg: #fcfcfa;
    --text: #0e0e0c;
    --text-muted: #8b8a86;
    --text-secondary: #4a4a47;
    --card-bg: #ffffff;
    --card-shadow: none;
    --border: #e5e4e0;
    --border-light: #f0efeb;
    --border-medium: #d8d7d3;
    --accent: #1f4d3f;
    --accent-hover: #163828;
    --input-bg: #ffffff;
    --btn-hover-bg: #f4f3ee;
    --alert-bg: #f7eeec;
    --alert-border: #9d5042;
    --alert-text: #5a2818;
    --chart-axis-bg: #ffffff;
    --temp-high: #9d5042;
    --temp-low: #3f4d6e;

    --font-body: 'Onest', system-ui, -apple-system, sans-serif;
    --font-display: var(--font-body);
    --radius-card: 4px;
    --radius-control: 4px;
    --radius-pill: 999px;
    --section-letterspacing: 0;
    --space-section: 2.5rem;
}

[data-style="quiet"][data-theme="dark"] {
    /* Dark quiet — deep near-black + softened evergreen */
    --bg: #0d0f0e;
    --text: #eaeae5;
    --text-muted: #6a6e68;
    --text-secondary: #c0c0bb;
    --card-bg: #161817;
    --card-shadow: none;
    --border: #26282a;
    --border-light: #1c1e1d;
    --border-medium: #2e3231;
    --accent: #7bb59a;
    --accent-hover: #5fa080;
    --input-bg: #161817;
    --btn-hover-bg: #1e2120;
    --alert-bg: #2a1816;
    --alert-border: #c87a68;
    --alert-text: #f0c8bc;
    --chart-axis-bg: #161817;
    --temp-high: #d18a78;
    --temp-low: #7b8db0;
}

/* Quiet-specific component tweaks (still don't change layout) */
[data-style="quiet"] body {
    font-feature-settings: 'tnum' 1, 'kern' 1, 'ss01' 1;
    letter-spacing: -0.005em;
}
[data-style="quiet"] section h2 {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
[data-style="quiet"] section {
    border: 1px solid var(--border);
    padding: 1.5rem 1.75rem;
}
[data-style="quiet"] #weather-summary {
    font-size: 1rem;
    line-height: 1.55;
    font-style: normal;
    color: var(--text-secondary);
}
[data-style="quiet"] #location-name {
    font-weight: 600;
    letter-spacing: -0.02em;
}
/* Big numbers (temps) — light weight, refined letter-spacing */
[data-style="quiet"] .current-temp,
[data-style="quiet"] .temp,
[data-style="quiet"] .forecast-temps {
    font-weight: 300;
    letter-spacing: -0.025em;
}
/* Buttons — pill radius for soft modernity */
[data-style="quiet"] #donate-btn {
    background: var(--accent);
    color: var(--bg);
}
[data-style="quiet"] #donate-btn:hover {
    background: var(--accent-hover);
}

/* Bulletin-specific component tweaks (still don't change layout) */
[data-style="bulletin"] body {
    font-feature-settings: 'tnum' 1, 'kern' 1;
}
/* Cutive's default line-height is too tight; ensure ascenders aren't clipped */
[data-style="bulletin"] .hourly-item,
[data-style="bulletin"] .hourly-item > div,
[data-style="bulletin"] .forecast-day,
[data-style="bulletin"] .forecast-date,
[data-style="bulletin"] .forecast-temps,
[data-style="bulletin"] .forecast-condition,
[data-style="bulletin"] .forecast-precip,
[data-style="bulletin"] .pollen-item,
[data-style="bulletin"] .pollen-item > div,
[data-style="bulletin"] .detail-label,
[data-style="bulletin"] .detail-value,
[data-style="bulletin"] .astro-item,
[data-style="bulletin"] .astro-item > div {
    line-height: 1.3;
}
[data-style="bulletin"] section h2 {
    font-weight: 400;
    letter-spacing: var(--section-letterspacing);
    border-bottom: 2px solid var(--border-medium);
    padding-bottom: 0.4rem;
    font-size: 0.85rem;
}
[data-style="bulletin"] #weather-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: normal;
    border-left: none; /* keep flat — no fake stripe accent */
}
[data-style="bulletin"] #location-name {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}
[data-style="bulletin"] section,
[data-style="bulletin"] #current-section,
[data-style="bulletin"] #details-section,
[data-style="bulletin"] #hourly-section,
[data-style="bulletin"] #daily-section,
[data-style="bulletin"] #radar-section,
[data-style="bulletin"] #sun-section,
[data-style="bulletin"] #moon-section {
    border: 2px solid var(--border-medium);
}
[data-style="bulletin"] #alerts-section {
    border-width: 2px;
}
/* Tabular numerals for temps — instrument readout feel */
[data-style="bulletin"] .temp,
[data-style="bulletin"] .forecast-day,
[data-style="bulletin"] .feels-like,
[data-style="bulletin"] .detail-value {
    font-feature-settings: 'tnum' 1;
    font-variant-numeric: tabular-nums;
}
/* Bigger readouts use the mono display font */
[data-style="bulletin"] .current-temp,
[data-style="bulletin"] .forecast-temps,
[data-style="bulletin"] .detail-value {
    font-family: var(--font-display);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

.view {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Auto-resume gate — set by inline script in <head> when a lastLocation will
   be restored. Hides #home-view until app.js renders the weather view, so
   the user doesn't see the home page flash before being sent to their last
   city. Cleared by app.js (in loadFromURL/showHome) when no longer needed. */
html[data-auto-resume] #home-view { display: none; }

/* SEO city pages: hide home view immediately on cold load (no flash before
   app.js runs), and hide blurb if the user previously dismissed it. Set by
   the inline head script in generated /cities/* pages. */
html[data-seo-city] #home-view { display: none; }
html[data-blurb-dismissed] #seo-blurb { display: none !important; }

/* SEO blurb — visible on /cities/* landing pages only. Dismissed permanently
   via the X button or the inline link, persisted in localStorage. */
#seo-blurb {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 2.25rem 0.75rem 0.875rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-muted);
}

#seo-blurb p {
    margin: 0;
}

#seo-blurb-hide-link {
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    margin-left: 0.35em;
}

#seo-blurb-hide-link:hover {
    color: var(--text);
}

#seo-blurb-close {
    position: absolute;
    top: 0.25rem;
    right: 0.4rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}

#seo-blurb-close:hover {
    color: var(--text);
}

/* Home View */
.home-header {
    text-align: center;
    padding: 20vh 0 2rem;
}

.home-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Search */
.search-container {
    max-width: 500px;
    margin: 0 auto;
}

#search-form {
    display: flex;
    gap: 0.5rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-control);
    outline: none;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.2s;
}

#search-input:focus {
    border-color: var(--accent);
}

#search-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-control);
    cursor: pointer;
    transition: background 0.2s;
}

#search-form button:hover {
    background: var(--accent-hover);
}

.error {
    color: #dc2626;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Theme toggle */
#theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: background 0.2s;
}

#theme-toggle:hover {
    background: var(--btn-hover-bg);
}

/* Floating donate button */
#donate-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #ff5e5b;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
    z-index: 1000;
}

#donate-btn:hover {
    background: #e04e4b;
    transform: translateY(-1px);
}

/* Privacy link (shared style) */
.privacy-link {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link:hover {
    color: var(--text);
}

/* Footer links wrapper — holds Privacy + About side-by-side */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links .privacy-link {
    display: inline;
    margin: 0;
}

/* Fixed to bottom of screen (home page) */
.footer-links-fixed {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* In-flow spacer (weather page) */
.bottom-spacer {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Privacy panel (popup) */
#privacy-panel {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 90%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1001;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
}

#privacy-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0.25rem;
}

#privacy-close:hover {
    color: var(--text);
}

#privacy-panel p {
    margin-bottom: 0.75rem;
}

#privacy-panel ul {
    margin: 0 0 0.75rem 1.25rem;
}

#privacy-panel li {
    margin-bottom: 0.25rem;
}

/* Weather View */
.weather-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.weather-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.weather-toggles {
    display: flex;
    gap: 0.25rem;
    position: relative;
}

#back-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#back-btn:hover {
    background: var(--btn-hover-bg);
}

/* Units toggle */
.units-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s;
}


.units-toggle:hover {
    background: var(--btn-hover-bg);
}

/* Section controls (drag handle + minimize) */
.section-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.3rem;
    z-index: 5;
    padding: 0.5rem;
}

.section-controls button,
.section-controls span {
    opacity: 0.5;
}

.section-controls button:hover,
.section-controls span:hover {
    opacity: 1;
}

.section-drag-handle {
    cursor: grab;
    font-size: 1rem;
    color: var(--text-muted);
    user-select: none;
    touch-action: none;
    padding: 0.1rem 0.3rem;
}

.section-drag-handle:active {
    cursor: grabbing;
}

.section-width-btn,
.section-min-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0.1rem 0.3rem;
    line-height: 1;
}

.section-width-btn:hover,
.section-min-btn:hover {
    color: var(--text);
}

/* Layout locked — hide all section controls */
body.layout-locked .section-controls {
    display: none !important;
}

body.layout-locked .chart-drag-handle,
body.layout-locked .chart-min-btn {
    display: none !important;
}

/* Settings toggle (floating, bottom-left next to theme toggle) */
#settings-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: background 0.2s;
}

#settings-toggle:hover {
    background: var(--btn-hover-bg);
}

/* Settings popover (floats above the settings button) */
#settings-popover {
    position: fixed;
    bottom: 4rem;
    left: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 0.75rem 1rem;
    min-width: 260px;
    max-width: calc(100vw - 3rem);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1002;
    font-size: 0.85rem;
    color: var(--text);
}

#settings-popover label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
    user-select: none;
}

#settings-popover label:hover {
    color: var(--accent);
}

#settings-popover input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.alert-translate-link {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 0.4rem;
    white-space: nowrap;
}
.alert-translate-link:hover {
    color: var(--accent);
}

.settings-revert-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4rem;
    background: var(--btn-hover-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.settings-revert-btn:hover {
    background: var(--border);
    color: var(--text);
}

/* Mobile-only move buttons — hidden on desktop */
.mobile-only {
    display: none;
}

.section-min-btn:hover {
    color: var(--text);
}

/* Minimized section */
.section-minimized > *:not(.section-controls) {
    display: none !important;
}

.section-minimized {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    min-height: 0;
}

.section-minimized::after {
    content: attr(data-section-name);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Drag placeholder */
.drag-placeholder {
    background: var(--border-light);
    border: 2px dashed var(--border);
    border-radius: 12px;
    min-height: 60px;
}

.section-dragging {
    opacity: 0.85;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-radius: 12px;
}

/* Hidden sections bar */
#hidden-sections-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.show-section-btn {
    background: var(--card-bg);
    border: 1px dashed var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s;
}

.show-section-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--text);
}

/* Weather sections */
section {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: background 0.3s;
    min-width: 0;
    margin-top: 0;
}

/* Only apply overflow hidden where needed for scrollable content */
#hourly-section,
#daily-section,
#details-section,
#radar-section {
    overflow: hidden;
}

/* Ensure spacing after column-spanning elements */
#weather-content > #weather-summary {
    margin-bottom: 0.5rem;
}


section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    position: relative;
}

/* Alerts */
#alerts-section {
    background: var(--alert-bg);
    border: 2px solid var(--alert-border);
    color: var(--alert-text);
    margin-bottom: 1rem;
}

.alert-item {
    margin-bottom: 0.9rem;
}
.alert-item:last-child {
    margin-bottom: 0;
}

/* Weather summary */
#weather-summary {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
    line-height: 1.4;
}

#weather-summary:empty {
    display: none;
}

/* Weather content layout */
.columns-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.weather-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 2rem;
}

.weather-col > section {
    width: 100%;
}

.section-wide {
    margin-bottom: 1rem;
}

/* Empty column rows: collapsed normally, expand during drag */
.columns-row:not(:has(section)):not(:has(.drag-placeholder)) {
    margin: 0;
}

.columns-row:not(:has(section)):not(:has(.drag-placeholder)) .weather-col {
    min-height: 0;
}

/* When dragging, expand all empty columns as drop targets */
body.is-dragging .weather-col {
    min-height: 80px;
}

body.is-dragging .weather-col:empty {
    border: 2px dashed var(--border);
    border-radius: 12px;
    opacity: 0.5;
}

#details-section {
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 600px) {
    .columns-row {
        flex-direction: column;
        align-items: stretch;
    }
    .section-controls {
        opacity: 1;
    }
    .section-width-btn,
    .section-drag-handle {
        display: none;
    }
    .mobile-only {
        display: inline-block;
    }
    .section-move-up,
    .section-move-down {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 0.8rem;
        color: var(--text-muted);
        padding: 0.1rem 0.3rem;
    }
    .section-move-up:hover,
    .section-move-down:hover {
        color: var(--text);
    }
}

.current-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.current-icon-block {
    text-align: center;
}

.current-icon-block .icon {
    font-size: 2.5rem;
    line-height: 1;
}

.current-icon-block .condition {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.current-temp-block .temp {
    font-size: 2rem;
    font-weight: 700;
}

.current-temp-block .feels-like {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Current conditions detail grid (2 columns) */
.current-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

/* Pollen button */
.pollen-btn {
    text-transform: none;
    font-weight: 400;
    font-size: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: background 0.2s;
}

.pollen-btn:hover {
    background: var(--accent-hover);
}

.pollen-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Pollen scroll */
.pollen-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    cursor: grab;
}

.pollen-item {
    text-align: center;
    min-width: 70px;
}

/* Fewer pollen items — single row, bigger text */
.pollen-few {
    grid-template-rows: 1fr;
    justify-content: center;
}

.pollen-few .pollen-item {
    min-width: 90px;
}

.pollen-few .detail-label {
    font-size: 1.05rem;
}

.pollen-few .detail-value {
    font-size: 1.3rem;
}

.current-detail-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.current-detail-col .detail-item {
    display: flex;
    flex-direction: column;
}

.current-detail-col .detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.current-detail-col .detail-value {
    font-weight: 600;
}

/* Hourly scroll */
.hourly-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    cursor: grab;
}

.hourly-scroll.dragging {
    cursor: grabbing;
}

.hourly-item {
    text-align: center;
    min-width: 50px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Daily forecast - unified scroll */
.forecast-scroll-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.forecast-header {
    display: flex;
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 0.5rem;
}

.forecast-day {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-right: 1px solid var(--border-light);
    flex-shrink: 0;
}

.forecast-day:last-child {
    border-right: none;
}

.forecast-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.forecast-temps {
    margin: 0.25rem 0;
}

.temp-high {
    color: var(--temp-high);
    font-weight: 700;
    font-size: 0.9rem;
}

.temp-low {
    color: var(--temp-low);
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.forecast-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin: 0.25rem 0;
}

.forecast-condition {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.forecast-precip {
    font-size: 0.7rem;
    color: var(--temp-low);
    margin-top: 0.25rem;
    min-height: 1em;
}

/* Chart rows */
.chart-row {
    border-top: 1px solid var(--border-light);
    margin-top: 0.5rem;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.5rem 0 0.25rem;
    position: sticky;
    left: 0;
    right: 0;
    align-items: center;
}

.chart-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    opacity: 0.4;
    transition: opacity 0.2s;
    user-select: none;
    touch-action: none;
    font-size: 0.85rem;
}

.chart-row:hover .chart-drag-handle {
    opacity: 1;
}

.chart-drag-handle:active {
    cursor: grabbing;
}

.chart-min-btn {
    background: var(--card-bg);
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.4;
    transition: opacity 0.2s;
    padding: 0 0.3rem;
    position: sticky;
    right: 0;
    margin-left: auto;
    z-index: 3;
}

.chart-row:hover .chart-min-btn {
    opacity: 1;
}

.chart-min-btn:hover {
    color: var(--text);
}

#hidden-charts-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: sticky;
    left: 0;
    width: fit-content;
}

.chart-row-inner {
    position: relative;
    display: flex;
    align-items: stretch;
}

.chart-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.65rem;
    padding: 4px 0;
    width: 40px;
    min-width: 40px;
    flex-shrink: 0;
    background: var(--chart-axis-bg);
    z-index: 2;
}

.chart-axis-left {
    position: sticky;
    left: 0;
    text-align: right;
    padding-right: 6px;
}

.chart-axis-right {
    position: sticky;
    right: 0;
    text-align: left;
    padding-left: 6px;
}

/* Forecast footer (bottom day labels) */
.forecast-footer {
    display: flex;
    border-top: 1px solid var(--border-medium);
    padding-top: 0.5rem;
}

.forecast-footer-day {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Radar */
.radar-refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    vertical-align: middle;
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.radar-refresh-btn:hover {
    color: var(--text);
    transform: rotate(180deg);
}

.nws-radar-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.nws-radar-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.radar-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.radar-ctrl-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.15rem 0.4rem;
    line-height: 1;
    transition: background 0.2s;
}

.radar-ctrl-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--text);
}

#radar-section img {
    width: 100%;
}

/* Sun & Moon */

.astro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.astro-item {
    text-align: center;
}

.astro-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.astro-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}


/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .home-header {
        padding: 15vh 0 2rem;
    }

    .home-header h1 {
        font-size: 2rem;
    }

    #search-form {
        flex-direction: column;
    }
}

/* --- Language UI ---------------------------------------------------------- */
.settings-language-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    margin-bottom: 0.5rem;
}
.settings-language-btn:hover {
    background: var(--btn-hover-bg);
}

/* Style row (Style: [Default▾] dropdown inside settings popover) */
.settings-style-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: default !important;
}
.settings-style-select {
    padding: 0.3rem 0.5rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
}

.language-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1rem 1.25rem;
    min-width: 280px;
    max-width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 1003;
    color: var(--text);
}
.language-popover h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    text-align: center;
}
.language-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}
.language-option:hover {
    background: var(--btn-hover-bg);
}
.language-option input[type="radio"] {
    margin: 0;
}
.language-option img.lang-flag,
.language-option .lang-flags img {
    width: 24px;
    height: auto;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    border-radius: 2px;
}
.language-option .lang-flags {
    display: inline-flex;
    gap: 2px;
}
.language-option .lang-name {
    font-size: 0.9rem;
}
.lang-btn-flag {
    width: 18px;
    height: auto;
    vertical-align: middle;
    margin: 0 0.15rem;
}

/* Radar progress bar — only visible when future frames are present */
.radar-progress {
    position: relative;
    height: 22px;
    margin: 0.5rem 0 0.25rem;
    padding: 0 0.25rem;
    user-select: none;
}
.radar-progress-track {
    display: flex;
    height: 3px;
    background: var(--border-light);
    border-radius: 1.5px;
    overflow: hidden;
    position: relative;
    top: 9px;
}
.radar-progress-past {
    background: var(--text-muted);
    height: 100%;
    flex-shrink: 0;
}
.radar-progress-future {
    background: var(--text-muted);
    opacity: 0.35;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0 4px,
        var(--bg) 4px 5px
    );
    height: 100%;
    flex-grow: 1;
}
.radar-progress-now-line {
    position: absolute;
    top: 5px;
    width: 2px;
    height: 11px;
    background: var(--accent);
}
.radar-progress-now-label {
    position: absolute;
    top: 16px;
    transform: translateX(-50%);
    font-size: 0.65rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 0.05em;
    font-weight: 600;
}
.radar-progress-marker {
    position: absolute;
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.2s ease-out;
    box-shadow: 0 0 0 2px var(--card-bg);
}
