@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

/* ============================================
   K5GRR — CW Flix Amber Theme
   ============================================ */

:root {
    /* Background colors */
    --bg-primary: #0d0c08;
    --bg-secondary: #161510;
    --bg-tertiary: #1a1914;
    --bg-panel: rgba(22, 21, 16, 0.95);

    /* Accent colors - amber/gold */
    --accent-primary: #e8a22e;
    --accent-secondary: #ffc44a;
    --accent-muted: #8a5e18;
    --accent-highlight: #ffc44a;

    /* Text colors */
    --text-primary: #c9a84c;
    --text-secondary: #a07830;
    --text-muted: #7a6530;

    /* Status colors */
    --status-online: #4a8c3f;
    --status-offline: #7a6530;
    --status-error: #c0392b;
    --status-warning: #b8860b;
    --status-excellent: #00d2d3;
    --status-good: #4a8c3f;
    --status-fair: #b8860b;
    --status-poor: #c0392b;

    /* Border colors */
    --border-primary: #3a3525;
    --border-accent: #e8a22e;
    --border-heavy: #ffc44a;

    /* Progress bar colors */
    --progress-fill: #e8a22e;
    --progress-bg: #2a2418;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-primary: 'Special Elite', 'Courier New', monospace;
    --font-mono: 'Courier New', 'Courier', monospace;
    --font-sans: 'Special Elite', 'Courier New', monospace;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border radius */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: radial-gradient(ellipse at top left, #1e1a0e 0%, transparent 50%),
        radial-gradient(ellipse at top right, #1a1a0e 0%, transparent 50%),
        #0d0c08;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    padding-top: 85px;
}

.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    /*background: repeating-linear-gradient(0deg, transparent, transparent 2px,
            rgba(0, 0, 0, .08) 2px, rgba(0, 0, 0, .08) 4px);*/
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-top: 20px;
    }
}

/* ============================================
   Dashboard Layout (index.html)
   ============================================ */
.site-header {
    position: relative;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .site-header {
        margin-bottom: 20px;
    }
}

.site-header .logo {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.site-header img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(51, 30, 45, 0.3));
}

@media (max-width: 768px) {
    .site-header .logo {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 15px;
    }

    .site-header img {
        max-width: 200px;
    }
}

/* Dashboard Nav Bar */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: var(--bg-secondary);
    border: 1px solid rgba(232, 162, 46, 0.3);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-links.left {
    justify-content: flex-start;
}

.nav-links.right {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 8px;
    }
}

/* Shared nav-link style (used by both dashboard and timeline) */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(232, 162, 46, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .nav-link {
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* Dashboard nav links */
.nav-bar .nav-link::before {
    content: none;
}


/* ============================================
   Featured Header Strip
   ============================================ */
.featured-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.featured-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    aspect-ratio: 16 / 9;
}

.featured-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-panel:hover img {
    transform: scale(1.04);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(to top, rgba(13, 12, 8, 0.88) 0%, transparent 100%);
    pointer-events: none;
}

.featured-caption {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-secondary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.03em;
    line-height: 1.3;
}

@media (max-width: 700px) {
    .featured-strip {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        margin-bottom: 16px;
        /* hide scrollbar but keep scrolling */
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .featured-strip::-webkit-scrollbar {
        display: none;
    }

    .featured-panel {
        flex: 0 0 80vw;
        scroll-snap-align: center;
        aspect-ratio: 4 / 3;
        border-radius: var(--radius-md);
    }

    .featured-caption {
        font-size: 13px;
    }
}

/* ============================================
   Home Layout — Blog + Signal Reach
   ============================================ */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* Blog Column */
.blog-column {
    min-width: 0;
}

.blog-feed-loading {
    color: var(--text-muted);
    font-style: italic;
    padding: 20px 0;
}

.blog-error,
.blog-empty {
    color: var(--text-muted);
    padding: 16px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
}

.blog-post {
    border-bottom: 1px solid var(--border-primary);
    padding: 24px 0;
}

.blog-post:first-child {
    padding-top: 0;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post-meta {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.blog-tag {
    display: inline-block;
    background: rgba(232, 162, 46, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(232, 162, 46, 0.25);
    border-radius: var(--radius-sm);
    padding: 1px 7px;
    font-size: 11px;
    margin-left: 4px;
}

.blog-post-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.blog-post-body {
    flex: 1;
    min-width: 0;
}

.blog-thumb-link {
    flex-shrink: 0;
}

.blog-thumb {
    width: 193px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
    border: 1px solid var(--border-primary);
}

.blog-post-title {
    font-size: 22px;
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-post-title a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-style: normal;
    transition: color 0.2s;
}

.blog-post-title a:hover {
    color: var(--accent-primary);
}

.blog-post-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    font-style: normal;
    font-family: var(--font-primary);
    line-height: 1.65;
    margin-bottom: 12px;
}

.blog-read-more {
    display: inline-block;
    font-size: 13px;
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 162, 46, 0.4);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.blog-read-more:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

/* Signal Column */
.signal-column {
}

.signal-last-update {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 6px;
    letter-spacing: 0.04em;
}

/* Main Container (legacy, kept for other pages) */
.main-container {
    display: flex;
    gap: 20px;
}

@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* Dashboard Panels */
.left-panel {
    background: transparent;
    width: 100%;
    flex-shrink: 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .left-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .left-panel {
        padding: 0;
    }
}

.right-panel {
    display: none;
    flex: 1;
    background: transparent;
    padding: 0;
    min-width: 640px;
}

@media (max-width: 1200px) {
    .right-panel {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .right-panel {
        padding: 0;
    }
}

.right-panel h2 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .right-panel h2 {
        font-size: 21px;
    }
}

.right-panel iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius-md);
    background: white;
}

@media (max-width: 768px) {
    .right-panel iframe {
        height: 400px;
    }
}

/* Dashboard Header */
.header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.header h1 {
    font-size: 26px;
    color: var(--accent-secondary);
    margin-bottom: 5px;
    font-family: var(--font-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 21px;
    }
}

.last-update {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ============================================
   Dashboard Content Sections
   ============================================ */

/* Three-column row for Space Weather / Outlook / Signal Reach */
.dashboard-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.dashboard-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Column wrappers used as .section should be transparent containers */
.section.dashboard-col {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Gap on .dashboard-col handles spacing; zero out margin-bottom on all direct children */
.dashboard-col>* {
    margin-bottom: 0;
}

/* Inner card — same look as a standalone .section */
.inner-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 162, 46, 0.3);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

@media (max-width: 1024px) {
    .dashboard-row {
        flex-wrap: wrap;
    }

    .dashboard-col {
        flex: 1 1 calc(50% - 8px);
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .dashboard-row {
        flex-direction: column;
    }

    .dashboard-col {
        flex: 1 1 100%;
    }
}

.section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(232, 162, 46, 0.3);
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    border-bottom: 1px dashed var(--border-primary);
    padding-bottom: 8px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

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

.metrics-explainer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-primary);
}

.metrics-explainer .summary-text {
    font-size: 13px;
    line-height: 1.5;
}

/* Accordion */
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    color: var(--accent-secondary);
    font-family: var(--font-primary);
    padding: 8px 0;
    user-select: none;
}

.accordion-header:hover {
    color: var(--accent-primary);
}

.accordion-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.accordion-section.open .accordion-arrow {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-section.open .accordion-body {
    max-height: 600px;
}

.metric {
    background: var(--bg-tertiary);
    padding: 10px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.metric-value {
    font-size: 26px;
    font-weight: bold;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.metric-unit {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, rgba(232, 162, 46, 0.08), rgba(232, 162, 46, 0.06));
    border-radius: var(--radius-md);
    padding: 15px;
    margin-top: 12px;
    border: 1px solid var(--border-primary);
}

.summary-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--accent-secondary);
    margin-bottom: 8px;
}

.summary-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Band Chips */
.band-recommendations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.band-chip {
    background: rgba(232, 162, 46, 0.12);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: bold;
    font-family: var(--font-mono);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.band-chip.excellent {
    background: rgba(0, 210, 211, 0.12);
    border-color: var(--status-excellent);
    color: var(--status-excellent);
}

.band-chip.good {
    background: rgba(74, 124, 63, 0.15);
    border-color: var(--status-good);
    color: var(--status-good);
}

.band-chip.fair {
    background: rgba(184, 134, 11, 0.15);
    border-color: var(--status-fair);
    color: var(--status-fair);
}

.band-chip.poor {
    background: rgba(160, 48, 32, 0.15);
    border-color: var(--status-poor);
    color: var(--status-poor);
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-good {
    background: var(--status-good);
}

.status-fair {
    background: var(--status-fair);
}

.status-poor {
    background: var(--status-poor);
}

/* Loading / Error */
.loading {
    text-align: center;
    /* padding: 20px; */
    color: var(--text-muted);
    /* font-style: normal */
}

.error {
    background: rgba(160, 48, 32, 0.1);
    border: 1px solid rgba(160, 48, 32, 0.3);
    padding: 10px;
    border-radius: var(--radius-md);
    margin: 10px 0;
    font-size: 13px;
    color: var(--status-error);
}

/* Refresh Button */
.refresh-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-accent);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    width: 100%;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

@media (max-width: 768px) {
    .refresh-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* PSK Reporter Section */
.reception-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.reception-item {
    background: var(--bg-tertiary);
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-left: 2px solid var(--border-accent);
}

.reception-item .location {
    font-weight: bold;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.reception-item .band {
    background: rgba(232, 162, 46, 0.12);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-mono);
}

.reception-item .distance {
    color: var(--status-warning);
    font-size: 13px;
}

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

@media (max-width: 480px) {
    .reception-stats {
        grid-template-columns: 1fr;
    }
}

.stat-box {
    background: var(--bg-tertiary);
    padding: 8px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-primary);
}

.stat-value {
    font-size: 21px;
    font-weight: bold;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 15px;
    /* font-style: normal */
}

/* Location Settings */
.location-settings {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-primary);
}

.location-header {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.location-icon {
    margin-right: 4px;
}

.location-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.location-input {
    flex: 1;
    min-width: 80px;
    background: var(--bg-primary);
    border: 1px solid rgba(232, 162, 46, 0.3);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.location-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 2px rgba(179, 107, 161, 0.2);
}

.location-button {
    background: var(--bg-primary);
    border: 1px solid rgba(232, 162, 46, 0.3);
    color: var(--accent-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.location-button:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.location-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* GPS toggle switch */
.gps-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.gps-toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gps-toggle-track {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    background: var(--bg-primary);
    border: 1px solid var(--border-accent);
    border-radius: 11px;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.gps-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: var(--text-secondary, #888);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.gps-toggle-label input:checked~.gps-toggle-track {
    background: rgba(0, 200, 150, 0.15);
    border-color: #00c896;
}

.gps-toggle-label input:checked~.gps-toggle-track .gps-toggle-thumb {
    transform: translateX(16px);
    background: #00c896;
}

.gps-toggle-text {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
}

.gps-toggle-label:has(input:checked) .gps-toggle-text {
    color: #00c896;
}

/* Location source badges */
.loc-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: top;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
    margin-left: 10px;
}

.loc-badge-live {
    background: rgba(0, 200, 150, 0.15);
    color: #00c896;
    border: 1px solid rgba(0, 200, 150, 0.3);
}

.loc-badge-pending {
    background: rgba(255, 165, 0, 0.12);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.loc-badge-default {
    background: rgba(255, 165, 0, 0.12);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

@media (max-width: 480px) {
    .location-controls {
        flex-direction: column;
    }

    .location-input {
        min-width: 100%;
    }

    .location-button {
        width: 100%;
    }
}

/* Bands Analyzed */
.bands-analyzed {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.bands-icon {
    margin-right: 6px;
}

.band-hot {
    font-size: 18px;
    font-weight: bold;
    color: var(--status-good);
}

.band-excellent {
    font-size: 18px;
    font-weight: bold;
    color: var(--status-excellent);
}

.band-fair {
    font-size: 13px;
    color: var(--status-fair);
}

.band-poor {
    font-size: 13px;
    color: var(--status-poor);
}

.band-sep {
    color: var(--text-muted);
}

/* ============================================
   On Air / Off Air Indicator
   ============================================ */
.on-air-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 21px;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 14px;
    cursor: default;
    user-select: none;
    transition: box-shadow 0.3s ease;
}

.on-air-banner.on {
    background: linear-gradient(135deg, var(--accent-secondary), #2a1f08);
    color: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    box-shadow:
        0 4px 15px rgba(232, 162, 46, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: on-air-glow 2s ease-in-out infinite;
}

.on-air-banner.off {
    background: linear-gradient(135deg, var(--bg-tertiary), #2a2418);
    color: var(--text-muted);
    border: 2px solid var(--border-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.on-air-icon {
    font-size: 26px;
    line-height: 1;
}

.on-air-banner.on .on-air-icon {
    animation: on-air-icon-pulse 1.5s ease-in-out infinite;
}

.on-air-light {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.on-air-banner.on .on-air-light {
    background: #ff6b6b;
    box-shadow:
        0 0 8px #ff6b6b,
        0 0 20px rgba(255, 107, 107, 0.5);
    animation: on-air-pulse 1s ease-in-out infinite;
}

.on-air-banner.off .on-air-light {
    background: var(--text-muted);
    opacity: 0.3;
}

@keyframes on-air-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px #ff6b6b, 0 0 20px rgba(255, 107, 107, 0.5);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 4px #ff6b6b, 0 0 8px rgba(255, 107, 107, 0.3);
    }
}

@keyframes on-air-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(232, 162, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 4px 25px rgba(232, 162, 46, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

@keyframes on-air-icon-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Sun Times */
.sun-times {
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(232, 162, 46, 0.1), rgba(184, 134, 11, 0.15));
    border-radius: var(--radius-md);
    border: 1px solid rgba(232, 162, 46, 0.28);
    font-size: 15px;
    color: var(--accent-secondary);
    font-weight: bold;
    font-family: var(--font-mono);
}

/* ============================================
   Time-Based Outlook — Compact Card + Carousel
   ============================================ */
.time-based-outlook {
    margin-top: 12px;
}

/* Dropdown selector */
.outlook-time-select {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23e8a22e'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}

.outlook-time-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(232, 162, 46, 0.12);
}

/* Carousel layout */
.outlook-carousel {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-prev,
.carousel-next {
    flex-shrink: 0;
    width: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    color: var(--accent-secondary);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, border-color 0.15s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

/* Indicator */
.carousel-indicator {
    text-align: center;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-top: 6px;
    min-height: 16px;
}

/* No-recs message (reused class) */
.no-recommendations {
    text-align: center;
    padding: 15px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Recommendation Items */
.recommendation-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 10px;
    border-left: 3px solid var(--accent-primary);
}

.recommendation-item.excellent {
    border-left-color: var(--status-excellent);
    background: rgba(0, 210, 211, 0.06);
}

.recommendation-item.good {
    border-left-color: var(--status-good);
    background: rgba(74, 124, 63, 0.06);
}

.recommendation-item.fair {
    border-left-color: var(--status-fair);
    background: rgba(184, 134, 11, 0.06);
}

.recommendation-item.poor {
    border-left-color: var(--status-poor);
    background: rgba(160, 48, 32, 0.06);
}

.rec-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.rec-band {
    font-weight: bold;
    color: var(--accent-secondary);
    font-size: 15px;
    font-family: var(--font-mono);
}

.rec-regions {
    color: var(--text-primary);
    font-size: 13px;
}

.rec-condition {
    margin-left: auto;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    background: rgba(232, 162, 46, 0.12);
    border: 1px solid var(--border-accent);
    color: var(--accent-primary);
}

.recommendation-item.excellent .rec-condition {
    background: rgba(0, 210, 211, 0.15);
    border-color: var(--status-excellent);
    color: var(--status-excellent);
}

.recommendation-item.good .rec-condition {
    background: rgba(74, 124, 63, 0.15);
    border-color: var(--status-good);
    color: var(--status-good);
}

.recommendation-item.fair .rec-condition {
    background: rgba(184, 134, 11, 0.15);
    border-color: var(--status-fair);
    color: var(--status-fair);
}

.recommendation-item.poor .rec-condition {
    background: rgba(160, 48, 32, 0.15);
    border-color: var(--status-poor);
    color: var(--status-poor);
}

.rec-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.rec-source {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.source-indicator {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(232, 162, 46, 0.08);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-family: var(--font-mono);
}

.psk-confirmation {
    font-size: 13px;
    color: var(--accent-primary);
    margin-top: 4px;
    padding-left: 4px;
}

.band-stats {
    font-size: 13px;
    color: var(--status-warning);
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(184, 134, 11, 0.08);
    border-left: 2px solid rgba(184, 134, 11, 0.4);
    border-radius: var(--radius-sm);
}

/* Mode Restriction Badges */
.mode-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 4px;
    margin-right: 4px;
    font-family: var(--font-mono);
}

.mode-digital {
    background: rgba(51, 30, 45, 0.15);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .rec-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rec-condition {
        margin-left: 0;
    }
}

/* ============================================
   Timeline Layout (timeline.html)
   Shared nav/footer for timeline page
   ============================================ */
.nav {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-accent);
    padding: var(--spacing-md) var(--spacing-xl);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    text-decoration: none;
    letter-spacing: 2px;
    font-family: var(--font-mono);
}

.nav-logo:hover {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-link-external::after {
    content: ' \2197';
    font-size: 0.8em;
    opacity: 0.7;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Timeline Main */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.page-header {
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--border-accent);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-top: var(--spacing-xl);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: var(--accent-secondary);
}

/* ============================================
   Timeline Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 2px solid var(--border-accent);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .main {
        padding: var(--spacing-md);
    }

    .page-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   Aurora Watch Card
   ============================================ */
.aurora-card {
    background: linear-gradient(135deg, #0f0e0b, #161510, #0d0c08);
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
}

.aurora-card .section-title {
    color: var(--accent-secondary);
    border-bottom-color: rgba(232, 162, 46, 0.2);
}

.aurora-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .aurora-content {
        flex-wrap: wrap;
    }

    .aurora-col {
        flex: 1 1 calc(50% - 10px) !important;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .aurora-content {
        flex-direction: column;
    }

    .aurora-col {
        flex: 1 1 100% !important;
    }
}

.aurora-col {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.aurora-countdown-col {
    border-right: 1px solid rgba(232, 162, 46, 0.15);
    padding-right: 20px;
}

@media (max-width: 480px) {
    .aurora-countdown-col {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(232, 162, 46, 0.15);
        padding-bottom: 12px;
    }
}

.aurora-countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.countdown-number {
    font-size: 41px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    line-height: 1;
}

.countdown-unit {
    font-size: 13px;
    display: block;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.aurora-trip-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
    font-family: var(--font-mono);
}

.aurora-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    margin-bottom: 6px;
}

.aurora-stat-value {
    font-size: 32px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.2;
}

.aurora-stat-value.aurora-high {
    color: #5ddf5d;
    text-shadow: 0 0 12px rgba(93, 223, 93, 0.4);
}

.aurora-stat-value.aurora-mid {
    color: #e8c84a;
    text-shadow: 0 0 8px rgba(232, 200, 74, 0.3);
}

.aurora-stat-value.aurora-low {
    color: var(--text-muted);
}

.aurora-stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: var(--font-mono);
}

.aurora-forecast-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.aurora-forecast-day {
    background: rgba(232, 162, 46, 0.06);
    border: 1px solid rgba(232, 162, 46, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    min-width: 60px;
}

.aurora-forecast-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.aurora-forecast-value {
    font-size: 15px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.aurora-forecast-value.aurora-high {
    color: #5ddf5d;
}

.aurora-forecast-value.aurora-mid {
    color: #e8c84a;
}

.aurora-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Aurora Radio Advice */
.aurora-radio-advice {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border-left: 3px solid #555;
    background: rgba(255, 255, 255, 0.03);
}

.aurora-radio-advice.advice-storm {
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.06);
}

.aurora-radio-advice.advice-active {
    border-left-color: #ff9900;
    background: rgba(255, 153, 0, 0.06);
}

.aurora-radio-advice.advice-unsettled {
    border-left-color: #e8c84a;
    background: rgba(232, 200, 74, 0.06);
}

.aurora-radio-advice.advice-good {
    border-left-color: #5ddf5d;
    background: rgba(93, 223, 93, 0.06);
}

.aurora-radio-advice.advice-excellent {
    border-left-color: #00c8ff;
    background: rgba(0, 200, 255, 0.06);
}

.ara-headline {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ara-bands {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.ara-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 12px;
    color: var(--text-secondary);
}

.ara-row.ara-highlight {
    color: var(--text-primary);
}

.ara-band {
    font-family: var(--font-mono);
    font-size: 12px;
    min-width: 90px;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.ara-row.ara-highlight .ara-band {
    color: #00c8ff;
}

.ara-note {
    line-height: 1.4;
}

.ara-tip {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid var(--border-primary);
    padding-top: 8px;
    line-height: 1.5;
}

/* ============================================
   Worked All States (WAS) Card
   ============================================ */
.was-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 162, 46, 0.3);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.was-band-label {
    text-align: center;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.was-progress {
    text-align: center;
    margin-bottom: 10px;
}

.was-count {
    font-size: 26px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    margin-bottom: 6px;
}

.was-bar {
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.was-bar-fill {
    height: 100%;
    background: var(--progress-fill);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.was-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .was-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.was-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: bold;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    text-align: center;
}

.was-state.worked {
    background: rgba(232, 162, 46, 0.18);
    color: var(--accent-secondary);
    border: 1px solid var(--accent-primary);
}

.was-state.missing {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-primary);
    opacity: 0.5;
}

.was-loading {
    text-align: center;
    padding: 15px;
    color: var(--text-muted);
    font-size: 13px;
}

.was-error {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: var(--status-error);
    background: rgba(160, 48, 32, 0.08);
    border-radius: var(--radius-sm);
}

/* ============================================
   USA-250 County Award Card
   ============================================ */
.usa250-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 162, 46, 0.3);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.usa250-progress {
    text-align: center;
    margin: 8px 0;
}

.usa250-count {
    font-size: 26px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    margin-bottom: 4px;
}

.usa250-need {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.usa250-bar {
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.usa250-bar-fill {
    height: 100%;
    background: var(--progress-fill);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ============================================
   WAS Congratulations
   ============================================ */
.was-congrats {
    text-align: center;
    padding: 10px 0 6px;
}

.was-congrats-check {
    font-size: 36px;
    color: var(--accent-secondary);
    line-height: 1;
    margin-bottom: 6px;
}

.was-congrats-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.was-congrats-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   DXCC Award Card
   ============================================ */
.dxcc-award-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 162, 46, 0.3);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.dxcc-gauge-wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0 0;
}

.dxcc-gauge-svg {
    overflow: visible;
}

.dxcc-gauge-need {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 12px;
}

/* ============================================
   SSTV Image Carousel
   ============================================ */
.sstv-section {
    margin-top: 0;
}

.sstv-carousel {
    width: 100%;
    overflow: hidden;
}

.sstv-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sstv-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: #1a1a1a;
}

.sstv-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px 4px;
    gap: 2px;
}

.sstv-title {
    font-weight: bold;
    color: var(--accent-primary);
    font-size: 15px;
}

.sstv-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.sstv-indicator {
    text-align: center;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding: 4px 0 6px;
}

.sstv-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 6px 0 12px;
    flex-wrap: wrap;
}

.sstv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    background: var(--bg-tertiary);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.sstv-dot:hover {
    background: var(--accent-highlight);
    transform: scale(1.2);
}

.sstv-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-secondary);
}

.sstv-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ============================================
   Satellite Pass Predictions
   ============================================ */

#satPassCard {
    margin-top: var(--spacing-lg);
}

.sat-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 15px;
    font-family: var(--font-mono);
}

.sat-filter-row {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-md);
}

.sat-controls {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.sat-controls-left {
    flex: 1;
    min-width: 0;
}

.sat-controls-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sat-search {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 15px;
    box-sizing: border-box;
}

.sat-search:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(179, 107, 161, 0.2);
}

.sat-quick-btns {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.sat-btn {
    padding: 4px 14px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sat-btn:hover {
    background: var(--accent-primary);
    color: #fff;
}

.sat-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    padding: var(--spacing-xs);
}

.sat-list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.sat-list-item:hover {
    background: var(--bg-secondary);
}

.sat-list-item input[type="checkbox"] {
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.sat-count {
    margin-top: var(--spacing-xs);
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.sat-elev-label {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-secondary);
}

.sat-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--progress-bg);
    border-radius: 3px;
    outline: none;
}

.sat-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.sat-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.sat-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: var(--spacing-sm);
}

.sat-selected-tag {
    position: relative;
    display: inline-block;
    padding: 2px 8px;
    margin: 4px 4px 0 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-secondary);
}

.sat-selected-x {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 12px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.sat-selected-x:hover {
    color: #fff;
    background: var(--status-error);
    border-color: var(--status-error);
}

.sat-selected-none {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.sat-compute-btn {
    width: 100%;
    padding: 10px 20px;
    margin-top: var(--spacing-md);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    background: var(--accent-primary);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sat-compute-btn:hover {
    background: var(--accent-secondary);
    box-shadow: var(--shadow-md);
}

.sat-no-results {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 15px;
}

.sat-pass-summary {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-secondary);
    margin: var(--spacing-md) 0 var(--spacing-sm);
    font-weight: bold;
}

/* Collapsible satellite card header */
.sat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.sat-card-header:hover .sat-card-title {
    color: var(--accent-primary);
}

.sat-card-title {
    flex: 1;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    transition: color 0.15s;
}

.sat-collapse-arrow {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
    flex-shrink: 0;
}

#satPassBody {
    margin-top: 10px;
}

/* Upcoming passes card (compact, column 1) */
.upcoming-passes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upcoming-pass-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-primary);
    font-size: 13px;
}

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

.upcoming-pass-name {
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--accent-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.upcoming-pass-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.upcoming-pass-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
}

.upcoming-pass-detail {
    font-size: 11px;
    color: var(--text-muted);
}

.sat-table-wrap {
    overflow-x: auto;
}

.sat-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 13px;
}

.sat-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid var(--border-accent);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sat-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
    color: var(--text-primary);
}

.sat-table tbody tr:hover {
    background: var(--bg-secondary);
}

.sat-name-cell {
    font-weight: bold;
    color: var(--accent-secondary);
}

.sat-row-active {
    background: rgba(74, 124, 63, 0.15) !important;
}

.sat-row-active td {
    color: var(--status-good);
    font-weight: bold;
}

.sat-row-past {
    opacity: 0.45;
}

.sat-day-separator td {
    background: var(--bg-tertiary);
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 10px;
    border-bottom: 2px dashed var(--border-accent);
    border-top: 2px dashed var(--border-accent);
}

.sat-day-separator td::before,
.sat-day-separator td::after {
    content: ' \2500\2500\2500\2500\2500\2500\2500\2500\2500 ';
    color: var(--border-accent);
}

@media (max-width: 768px) {
    .sat-filter-row {
        flex-wrap: wrap;
    }

    .sat-controls {
        flex-direction: column;
    }

    .sat-controls-right {
        flex: none;
    }

    .sat-table {
        font-size: 13px;
    }

    .sat-table th,
    .sat-table td {
        padding: 5px 6px;
    }
}

/* ============================================
   SSTV Satellite Highlighting
   ============================================ */

.sat-sstv-active {
    background: rgba(93, 223, 93, 0.08) !important;
}

.sat-sstv-badge {
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
    background: rgba(93, 223, 93, 0.2);
    color: #3a8a30;
    border: 1px solid rgba(93, 223, 93, 0.4);
}

.sat-row-sstv {
    background: rgba(93, 223, 93, 0.12) !important;
}

.sat-row-sstv td {
    color: #2d6e25;
}

.sat-row-sstv .sat-name-cell {
    color: #2d6e25;
}

.sat-sstv-tag {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: rgba(93, 223, 93, 0.25);
    color: #2d6e25;
    border: 1px solid rgba(93, 223, 93, 0.4);
    vertical-align: middle;
    margin-left: 4px;
}

/* ============================================
   DXCC Progress & Recent DX Contacts Card
   ============================================ */

#recentDxCard {
    margin-top: var(--spacing-lg);
}

.dx-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 15px;
    font-family: var(--font-mono);
}

.dx-no-data {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 15px;
}

/* DXCC Progress */
.dxcc-progress {
    text-align: center;
    margin-bottom: 12px;
}

.dxcc-band-label {
    text-align: center;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.dxcc-count {
    font-size: 26px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    margin-bottom: 6px;
}

.dxcc-entities-section {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-primary);
}

.dxcc-entities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 8px;
}

.dxcc-entity {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    background: rgba(232, 162, 46, 0.12);
    color: var(--accent-secondary);
    border: 1px solid var(--border-primary);
}

/* Recent DX subheader */
.dx-recent-header {
    font-size: 15px;
    font-weight: bold;
    color: var(--accent-secondary);
    font-family: var(--font-primary);
    margin-bottom: 8px;
}

.dx-table-wrap {
    overflow-x: auto;
}

.dx-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 13px;
}

.dx-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid var(--border-accent);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dx-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
    color: var(--text-primary);
}

.dx-row:hover {
    background: var(--bg-secondary);
}

.dx-call {
    font-weight: bold;
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .dx-table {
        font-size: 13px;
    }

    .dx-table th,
    .dx-table td {
        padding: 5px 6px;
    }
}

/* ============================================
   Blog — mobile layout
   ============================================ */
@media (max-width: 540px) {
    .blog-post-inner {
        flex-direction: column;
    }

    .blog-thumb-link {
        order: -1;
    }

    .blog-thumb {
        width: 100%;
        height: 180px;
    }

    .blog-post-title {
        font-size: 18px;
    }

    .blog-post-excerpt {
        font-size: 14px;
    }

    .blog-post {
        padding: 16px 0;
    }
}

/* ============================================
   Mobile — layout containment & overflow fixes
   ============================================ */
@media (max-width: 768px) {

    /* Force dashboard columns to stay within viewport */
    .dashboard-col,
    .section.dashboard-col {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Inner card (Propagation Outlook wrapper) */
    .inner-card {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* SSTV carousel containment */
    .sstv-carousel {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .sstv-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* Time-based outlook carousel */
    .time-based-outlook {
        overflow: hidden;
        max-width: 100%;
    }

    .outlook-carousel,
    .carousel-viewport,
    .carousel-track,
    .carousel-slide {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Sun times bar */
    .sun-times {
        font-size: 13px;
        word-break: break-word;
    }

    /* Aurora card — center all column content */
    .aurora-content {
        text-align: center;
    }

    .aurora-radio-advice {
        text-align: center;
    }

    .ara-headline {
        text-align: center;
    }

    .ara-bands {
        align-items: center;
    }

    /* Stack band + note vertically on small screens */
    .ara-row {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
    }

    .ara-band {
        min-width: unset;
    }

    .ara-tip {
        text-align: center;
    }
}

/* ============================================
   Band Conditions Bar
   ============================================ */

.band-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    overflow-x: auto;
    scrollbar-width: none;
}

.band-bar::-webkit-scrollbar {
    display: none;
}

.band-bar-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.band-pills {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.band-pill {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.15s;
}

.band-pill:hover {
    filter: brightness(1.2);
}

.band-pill.rating-excellent { background: var(--status-excellent); color: #000; }
.band-pill.rating-good      { background: var(--status-good);      color: #fff; }
.band-pill.rating-fair      { background: var(--status-fair);      color: #000; }
.band-pill.rating-poor      { background: var(--status-poor);      color: #fff; }
.band-pill.rating-closed    { background: #3a3a3a;                 color: #888; }