* {
    box-sizing: border-box; /* Prevents padding from causing width overflow */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* The "Nuclear Option" to stop the wobble */
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: #0a1a2f;
    color: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Ensure numbers in tables are perfectly aligned (Tabular Figures) */
.tornado-table td {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}

.header {
    background-color: #0d223b;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #d32f2f;
}

    .header h1 {
        margin: 0;
        font-size: 28px;
        color: #ffffff;
    }

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 40px 20px 20px 30px; /* top, right, bottom, left */
    background-color: #11243d;
    border-radius: 6px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 10px;
    border-left: 4px solid #d32f2f;
    padding-left: 10px;
}

/* --------------------------------------------- */
/* HIGH-CONTRAST ACCESSIBLE COLOR PALETTE        */
/* --------------------------------------------- */

a {
    color: #FFD166; /* bright amber */
    font-weight: 600;
    text-decoration: none;
}

    a:hover {
        color: #FFE39F;
        text-decoration: underline;
    }


.top-nav {
    background: #111;
    padding: 8px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 2px solid #444;
}

    .top-nav img.brand-logo {
        height: 32px;
        width: 32px;
        flex-shrink: 0;
    }

    .top-nav a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

        .top-nav a:hover {
            text-decoration: underline;
        }

    .top-nav .cta-small {
        margin-left: auto;
        background: #ffcc00;
        color: #000;
        padding: 6px 12px;
        border-radius: 4px;
        font-weight: bold;
    }




/* --------------------------------------------- */
/* CTA BANNER                                    */
/* --------------------------------------------- */

.cta-banner {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(90deg, #D32F2F, #B71C1C);
    border-radius: 6px;
    text-align: center;
}

.cta-button {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

    .cta-button:hover {
        text-decoration: underline;
    }

.link-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.link-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-list li a:hover {
    background: #1a1a1a;
    border-color: #D32F2F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.link-list .count {
    font-size: 0.85rem;
    color: #D32F2F;
    font-weight: 800;
}

/* --------------------------------------------- */
/* TABLE READABILITY                             */
/* --------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
}

    table th {
        background: #0F2A45;
        color: #FFFFFF;
        padding: 8px 12px;
    }

    .link-list a:active {
        background: #D32F2F !important;
        color: #fff !important;
    }

    table tr:nth-child(even) {
        background: #11263F;
    }

    table tr:nth-child(odd) {
        background: #0A1A2F;
    }

    table td {
        color: #D0D7E3;
        padding: 6px 12px;
    }

/* Global Anchored Navigation (Desktop + Mobile) */
.top-nav {
    position: sticky !important;
    top: 0;
    z-index: 1100;
    background: #000;
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 2px solid #D32F2F;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.container {
    padding-top: 50px !important; /* Extra breathing room below anchored nav */
    padding-bottom: 140px !important; /* Space for bottom CTA */
}

/* Global Fixed Bottom CTA */
.cta-banner-bottom {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #D32F2F;
    padding: 18px 10px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
}

/* Desktop Table Alignment */
.tornado-table {
    display: table !important;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #0a1a2f;
    border: 1px solid #333;
    table-layout: fixed;
}

.tornado-table tr {
    display: table-row !important;
}

.tornado-table th, .tornado-table td {
    display: table-cell !important;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Enforce Desktop Column Widths */
.tornado-table th:nth-child(1), .tornado-table td:nth-child(1) { width: 15%; } 
.tornado-table th:nth-child(2), .tornado-table td:nth-child(2) { width: 15%; } 
.tornado-table th:nth-child(3), .tornado-table td:nth-child(3) { width: 15%; } 
.tornado-table th:nth-child(4), .tornado-table td:nth-child(4) { width: 45%; } 
.tornado-table th:nth-child(5), .tornado-table td:nth-child(5) { width: 10%; } 

@media (max-width: 768px) {
    /* Mobile Overrides */
    .top-nav {
        padding: 8px 10px;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .top-nav span {
        width: 100%;
        text-align: center;
        font-size: 1rem !important;
    }

    .container {
        padding: 15px 10px 100px 10px !important;
    }

    /* Mobile Table: Maintain Horizontal Rows */
    .tornado-table {
        display: table !important;
        font-size: 0.75rem !important; /* Tighter font for mobile rows */
    }

    .tornado-table thead {
        display: table-header-group !important; /* Show headers on mobile */
    }

    .tornado-table tr {
        display: table-row !important;
    }

    .tornado-table td {
        display: table-cell !important;
        padding: 6px 4px !important; /* Ultra-tight padding for horizontal fit */
        width: auto !important;
        border-bottom: 1px solid #222 !important;
    }

/* Responsive Titles */
h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal !important; /* Force wrapping on long dates */
    max-width: 100%;
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Table Scroll Wrapper to prevent page "floating" */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 15px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.1rem !important; /* Scaled for mobile date fit */
        margin-top: 10px;
        padding-right: 10px; /* Buffer for date wrapping */
    }

    /* Hide redundant small CTA in top nav on mobile */
    .top-nav .cta-small {
        display: none !important;
    }

    /* Hide redundant Date column on mobile Daily views to save space */
    .tornado-table th:nth-child(1), 
    .tornado-table td:nth-child(1) {
        display: none !important;
    }

    /* Adjust remaining columns to fill the space */
    .tornado-table th:nth-child(2), .tornado-table td:nth-child(2) { width: 20%; } 
    .tornado-table th:nth-child(3), .tornado-table td:nth-child(3) { width: 20%; } 
    .tornado-table th:nth-child(4), .tornado-table td:nth-child(4) { width: 50%; } 
    .tornado-table th:nth-child(5), .tornado-table td:nth-child(5) { width: 10%; } 
}

    .cta-button {
        font-size: 1.1rem;
        display: inline-block;
        line-height: 1.2;
        width: 100%;
        font-weight: 900;
    }

    /* Tighten up container padding for mobile and add space for fixed CTA */
    .container {
        padding: 20px 15px 100px 15px; /* Added 100px bottom padding */
        margin: 10px auto;
    }
    
    /* Ensure tables don't cause horizontal overflow */
    table {
        display: block;
        width: 100%;
    }

    .tornado-table thead {
        display: none;
    }

    /* Lock the Date Header to the top on mobile */
    .container h1 {
        position: sticky;
        top: 48px; /* Just below thinner top-nav */
        background: #0a1a2f;
        z-index: 1050;
        padding: 6px 15px; /* Thinner H1 */
        margin: 0 -15px 10px -15px !important;
        font-size: 1.1rem; /* Slightly smaller h1 */
        border-bottom: 2px solid #D32F2F;
        text-align: left;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    /* UNIFIED "GOLD" 2-LINE LAYOUT (Daily, State, Season) */
    .tornado-table tr {
        display: flex !important;
        flex-flow: row wrap !important;
        padding: 4px 12px !important; /* Unified Ultra-Tight Padding */
        margin-bottom: 1px !important;
        background: #0d1a2f !important;
        border-left: 3px solid #D32F2F;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* LINE 1: The Metadata (Date | Start | End) */
    .tornado-table td:nth-child(1),
    .tornado-table td:nth-child(2),
    .tornado-table td:nth-child(3) {
        display: inline-block !important;
        width: auto !important;
        margin-right: 8px !important;
        font-size: 0.75rem !important; /* Surgical font for high-density */
        color: #8892b0 !important;
        padding-bottom: 2px !important;
        border: none !important;
        white-space: nowrap !important;
    }

    /* Highlight Start Time */
    .tornado-table td:nth-child(2) {
        color: #FFD166 !important;
        font-weight: 800 !important;
    }

    /* LINE 2: The Geography (Location | State) - FORCED WRAP */
    .tornado-table td:nth-child(4) {
        display: block !important;
        width: 85% !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        border: none !important;
        padding-top: 2px !important;
    }

    .tornado-table td:nth-child(5) {
        display: block !important;
        width: 15% !important;
        text-align: right !important;
        font-weight: 900 !important;
        color: #D32F2F !important;
        border: none !important;
        padding-top: 2px !important;
    }

    /* Global Mobile Cleanup */
    .tornado-table thead {
        display: none !important;
    }
}
    }

    /* Hide redundant elements */
    .tornado-table td:nth-child(3) { display: none; }
    .tornado-table td:nth-child(1)::after, 
    .tornado-table td:nth-child(2)::after { display: none; }
}

/* Informative States List */
.link-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.link-list li {
    margin: 0;
}

.link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d1a2f;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    transition: all 0.2s;
}

.link-list a:hover {
    background: #1e3a5f;
    border-color: #D32F2F;
}

.link-list a .count {
    font-size: 0.8rem;
    color: #FFD166;
    background: rgba(255, 210, 102, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 210, 102, 0.2);
}
