@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
    --bg-charcoal: #121212;
    --window-beige: #D6D2C4;
    --text-dark: #2B2B2B;
    --accent-maroon: #7A1F1F;
    --beige-light: #F2F0E9;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-charcoal);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

/* Maroon Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--accent-maroon);
    color: var(--beige-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand { color: var(--beige-light); font-weight: 800; font-size: 1.5rem; }
.nav-links a { color: var(--beige-light); text-decoration: none; font-weight: 500; margin-left: 20px; }
.menu-toggle { color: var(--beige-light); cursor: pointer; font-size: 1.5rem; }

/* Hero Branding */
.hero {
    text-align: center;
    padding: 30px 20px 20px 20px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--beige-light);
    letter-spacing: -0.05em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 5px; /* Tightened margin below the H1 */
}

.hero p {
    font-size: 1.25rem;
    color: var(--window-beige);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
}

.side-box, .window {
    background-color: var(--window-beige);
    color: var(--text-dark);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4);
}
.side-box ul li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.side-box ul li:last-child {
    border-bottom: none;
}
.freq-list {
    list-style: none;
    padding-top: 10px;
}

.freq-list li {
    display: flex;
    justify-content: space-between; /* This forces the separation */
    align-items: baseline;          /* Aligns text by the bottom of the letters */
    padding: 4px 0;
    font-family: var(--font-mono);  /* Using your mono font for freq alignment */
    font-size: 0.9rem;
}
.schedule-list {
    list-style: none;
    padding-top: 10px;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0; /* Increased from 10px to 16px */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.85rem; /* Slightly larger text */
    line-height: 1.4;
}

.schedule-list li:last-child { border-bottom: none; }

/* Centered, more prominent note */
.net-note-centered {
    text-align: center;
    font-size: 0.9rem; /* Increased size */
    font-weight: 600;  /* Bolder */
    margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 15px;
    font-style: italic;
    color: var(--text-dark);
}

.day-time {
    color: var(--accent-maroon);
    font-weight: 500;
}

.event {
    text-align: right;
    color: var(--text-dark);
    font-weight: 600;
}

.net-note {
    font-size: 0.75rem;
    margin-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 10px;
    font-style: italic;
    color: var(--text-dark);
}

.window { padding: 50px; }

h2 { color: var(--accent-maroon); font-weight: 800; margin-bottom: 15px; }
footer { color: #555; }
.join-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.join-form label { font-weight: 800; color: var(--accent-maroon); }
.join-form input { padding: 10px; border: 1px solid #ccc; border-radius: 5px; }
.join-form button { 
    background-color: var(--accent-maroon); 
    color: white; 
    padding: 12px; 
    border: none; 
    border-radius: 5px; 
    font-weight: 800;
    cursor: pointer;
}
#rosterTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#rosterTable th, #rosterTable td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

#rosterTable thead {
    background-color: var(--accent-maroon);
    color: white;
}

#rosterTable tr:nth-child(even) {
    background-color: #f4f4f4;
}
/* --- Mobile Responsive Overrides --- */

@media screen and (max-width: 768px) {
    /* Stack the grid into one column */
    .main-grid {
        grid-template-columns: 1fr !important;
        padding: 0 15px;
    }

    /* Adjust the hero text for smaller screens */
    .hero h1 {
        font-size: 3rem; /* Reduced from 5rem */
    }

    /* Make the navbar links stack or handle them better */
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

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

    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    /* Padding adjustments for mobile readability */
    .window {
        padding: 25px; /* Reduced from 50px */
    }
}
/* --- Mobile Responsive Table Overrides --- */

.table-container {
    width: 100%;
    overflow-x: auto; /* Allows horizontal swipe on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

@media screen and (max-width: 600px) {
    #rosterTable th, #rosterTable td {
        padding: 8px 6px; /* Tightens padding for narrow screens */
        font-size: 0.85rem; /* Shrinks font to fit more data */
    }
}