/* ==========================================================================
   1. Reset & Global Base Styles
   ========================================================================== */
:root {
    /* Core colors */
    --bg: #121212;
    --surface: #1a1a1a;
    --text: #e0e0e0;
    --muted: #a0a0a0;

    /* Accent palette */
    --accent: #0f7a42;
    --accent-rgb: 15,122,66;
    --accent-dark: #0b5d32;
    --accent-soft: #1f8c58;
    --pool-green: var(--accent);
    --pool-green-dark: var(--accent-dark);
    --pool-green-soft: var(--accent-soft);

    /* Borders and UI */
    --border: #2a2a2a;
    --bg-color-card: rgba(26,26,26,0.68);

    /* Holiday / no-play schedule rows */
    --holiday-amber: #d8a657;
    --holiday-amber-soft: rgba(216,166,87,0.10);

    /* Overlay opacities (0.0 - 1.0) */
    --overlay-body: 0.50;
    --overlay-hero: 0.75;
    --overlay-section: 0.75;

    /* Composed backgrounds (use overlay variables above) */
    --bg-hero: radial-gradient(circle at top center, rgba(var(--accent-rgb), 0.20), transparent 35%),
                linear-gradient(135deg, rgba(22,22,22,var(--overlay-hero)) 0%, rgba(10,10,10,var(--overlay-hero)) 100%),
                url('../images/site/felt-texture.jpg');
    --bg-section: linear-gradient(135deg, rgba(22,22,22,var(--overlay-section)) 0%, rgba(10,10,10,var(--overlay-section)) 100%),
                url('../images/site/felt-texture.jpg');
    --bg-body: linear-gradient(rgba(18,18,18,var(--overlay-body)), rgba(18,18,18,var(--overlay-body))),
                url('../images/site/felt-texture.jpg');
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-body);
    background-attachment: fixed;
    background-size: auto;
    background-repeat: repeat;
    color: var(--text);
    line-height: 1.6;
}

/* Typography elements */
h1,
h2,
h3,
h4 {
    font-family: 'Bodoni Moda', serif;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Interactive Global Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn.full-width-btn {
    text-align: center;
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ==========================================================================
   2. Main Header & Image Logo Navigation Layout
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%;
    background-color: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03);
}

/* Unwraps the <nav> element so it never counts as its own flex item in
   .navbar. Without this, .navbar has 3 flex children once .menu-toggle
   becomes visible on mobile (.logo, .menu-toggle, <nav>) — and since
   .nav-links goes position:fixed inside it, <nav> collapses to ~0 width
   but still claims a slot in justify-content:space-between, shoving the
   hamburger away from the true right edge instead of sitting flush there. */
.navbar nav {
    display: contents;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #b0b0b0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-soft);
}

/* Hamburger UI button elements */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. Hero Banners (Homepage & Subpages)
   ========================================================================== */
/* ==========================================================================
   3. Hero Banners (Homepage & Subpages) - Clean Dark Theme (No Images)
   ========================================================================== */
.hero {
    /* Uses a modern high-contrast gradient block with pool table green accents */
    background: var(--bg-hero);
    background-attachment: fixed;
    background-size: auto;
    background-repeat: repeat;
    height: 40vh; /* Adjusted slightly shorter for cleaner text layout balance */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Optional stylistic accent lines to make the pure color hero look premium */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background-color: var(--accent);
}

.subpage-hero {
    /* Uses a sleek matching solid deep charcoal shade with a touch of green */
    background: var(--bg-hero);
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Reusable in-page section intro — same dark surface, heading treatment and
   accent divider as .hero/.subpage-hero, scaled down for use above a single
   section rather than as a full-page banner. Values are currently duplicated
   from .hero/.hero-content rather than shared via a common base class — a
   candidate for consolidation later, but .hero/.subpage-hero are used across
   several pages so left untouched for now. */
.section-intro {
    background: var(--bg-hero);
    background-attachment: fixed;
    background-size: auto;
    background-repeat: repeat;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    padding: 36px 30px;
    margin-bottom: 40px;
}

.section-intro h2,
.section-intro h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.section-intro p {
    font-size: 16px;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

.section-intro::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--accent);
    margin: 20px auto 0;
}


/* Breadcrumb Subpage Navigation */
.breadcrumb-bar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.breadcrumb-bar .container {
    padding: 0 20px;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   4. Homepage Grid Features Display
   ========================================================================== */
.features {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-color-card);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card h3 {
    font-size: 22px;
}

/* Card Link Reset overrides */
a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==========================================================================
   5. Homepage Gallery Slider
   ========================================================================== */
.gallery-section {
    padding: 10px 0 60px;
}

.gallery-slider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-track {
    position: relative;
    flex: 1;
    min-height: 420px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.75);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.gallery-slide.is-active {
    opacity: 1;
    transform: translateX(0);
}

.slider-btn {
    border: 1px solid var(--border);
    background: rgba(26, 26, 26, 0.96);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot.is-active,
.slider-dot:hover {
    background: var(--accent);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .gallery-slider {
        gap: 10px;
    }

    .slider-track {
        min-height: 300px;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* ==========================================================================
   6. Food & Drink Subpage Structural CSS Layout
   ========================================================================== */
.menu-section {
    background-color: #121212;
    padding: 40px 0 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--muted);
    font-size: 16px;
}

.menu-category h3 {
    font-size: 24px;
    color: var(--accent);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.menu-item {
    margin-bottom: 25px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.item-name {
    font-family: 'Bodoni Moda', serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.item-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
}

.item-description {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.5;
}

/* ==========================================================================
   6. Event Reservation Form UI Layout
   ========================================================================== */
.form-section {
    background: var(--bg-section);
    padding: 80px 20px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--surface);
    padding: 50px 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-container h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: #a0a0a0;
    font-size: 15px;
    margin-bottom: 40px;
}

.event-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 35px;
}

.form-group label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b0b0b0;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: #121212;
    border: 1px solid #3a3a3a;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.2);
}

.form-group input[type="date"]::-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='10' height='10' fill='white'><polygon points='0,0 10,0 5,5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.submit-btn {
    width: 100%;
    max-width: 250px;
}

/* ==========================================================================
   7. Leagues Directory Interface Styles
   ========================================================================== */
.leagues-section {
    background: var(--bg-body);
    background-attachment: fixed;
    background-size: auto;
    background-repeat: repeat;
    padding: 40px 0 80px 0;
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.league-card {
    background-color: var(--bg-color-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 35px 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.league-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.league-tag {
    align-self: flex-start;
    background-color: rgba(15, 122, 66, 0.15);
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.league-card:hover .league-tag {
    background-color: var(--accent);
}

.league-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.league-format {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.league-card p {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.view-details {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.league-card:hover .view-details {
    color: var(--accent);
    padding-left: 5px;
}

/* ==========================================================================
    8. Individual Sub-League Profile & Dashboard Data Displays
========================================================================== */
.league-detail-section {
    padding: 40px 0 80px 0;
}

.league-profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background-color: var(--surface);
    padding: 45px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 50px;
}

.detail-badge {
    display: inline-block;
    background-color: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.league-profile-grid h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 16px;
    color: #b0b0b0;
    max-width: 750px;
    margin-bottom: 30px;
}

.info-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.info-tag {
    background-color: #121212;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background-color 0.3s ease, border-color 0.3sease;
}

.profile-sidebar-cta {
    background-color: #121212;
    border: 1px solid #3a3a3a;
    padding: 30px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-sidebar-cta h3 {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 10px;
}

.profile-sidebar-cta p {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.league-data-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.data-block h2 {
    font-size: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 25px;
}

/* High Contrast Responsive Data Tables */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.league-table th {
    background-color: var(--surface);
    color: #b0b0b0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    border-bottom: 2px solid var(--border);
}

.league-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    color: #e0e0e0;
}

.league-table tr:hover td {
    background-color: var(--surface);
}

.team-highlight {
    font-weight: 700;
    color: #ffffff;
}

/* League Guidelines List Layout */
.guidelines-list {
    list-style: none;
}

.guidelines-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
}

.guidelines-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 10px;
}

.guidelines-list li strong {
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

/* ==========================================================================
    8b. Sunday League — Two-Division Standings Layout
========================================================================== */
.standings-row {
    display: flex;
    gap: 30px;
}

.standings-block {
    margin-bottom: 50px;
}

.division-card {
    flex: 1;
    background-color: var(--bg-color-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.division-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.division-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}

.division-header span {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--muted);
}

.division-card .table-wrapper {
    overflow-x: auto;
}

.league-table th.num,
.league-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.standings-row tr.lead td {
    color: var(--accent-soft);
    font-weight: 700;
}

.players-block {
    margin-bottom: 50px;
}

/* Player Stats by Team — link-out cards (division-card header reused,
   body replaced with an outbound button instead of a table) */
.link-out-card-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.link-out-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.link-out-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.link-out-btn .external-icon {
    font-size: 14px;
    line-height: 1;
}

.link-out-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

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

/* ==========================================================================
    8c. Sunday League — "Next Matchup" Schedule Teaser
    (.division-header is reused here for the card's Week/Date title bar —
    same title-plus-meta pattern as the standings cards above.)
========================================================================== */
.schedule-teaser {
    margin-bottom: 50px;
}

.schedule-card {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-color-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.schedule-matches {
    padding: 8px 0;
}

.schedule-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.schedule-matches .schedule-match:last-child {
    border-bottom: none;
}

.schedule-match .team {
    flex: 1;
    text-align: right;
}

.schedule-match .team.away {
    text-align: left;
}

.schedule-match .home-tag {
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--accent-soft);
    margin-right: 6px;
    font-weight: 700;
}

.schedule-match .vs {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    flex: 0 0 auto;
    letter-spacing: 0.06em;
}

.schedule-match.bye-row .team.bye {
    flex: none;
    width: 100%;
    text-align: center;
    color: var(--muted);
    font-style: italic;
}

.schedule-footer {
    padding: 16px 20px;
    text-align: center;
}

.schedule-footer a {
    font-size: 13px;
    color: var(--accent-soft);
    text-decoration: none;
    border: 1px solid var(--accent-soft);
    padding: 8px 18px;
    border-radius: 999px;
    display: inline-block;
    transition: background 0.3s ease;
}

.schedule-footer a:hover {
    background: rgba(var(--accent-rgb), 0.15);
}

@media (max-width: 500px) {
    .schedule-match {
        flex-direction: column;
        gap: 2px;
        padding: 10px 20px;
    }

    .schedule-match .team,
    .schedule-match .team.away {
        text-align: center;
    }
}

/* ==========================================================================
    8d. Sunday League — Full Season Schedule
    Reuses .division-header (week title + date row) and .schedule-match
    (team rows) from the standings/teaser components above rather than
    introducing near-duplicate classes.
========================================================================== */
.schedule-list {
    background-color: var(--bg-color-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.week-block {
    border-bottom: 1px solid var(--border);
}

.week-block:last-child {
    border-bottom: none;
}

.week-block .schedule-matches {
    padding-bottom: 6px;
}

.holiday-block {
    padding: 16px 22px;
    background: var(--holiday-amber-soft);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

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

.holiday-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--holiday-amber);
}

.holiday-date {
    font-size: 12px;
    color: var(--muted);
}

/* Played state — driven by main.js comparing data-date to today.
   Shared by the full schedule's week blocks and the "Next Matchup" teaser. */
.week-block.played .division-header h3,
.schedule-card.played .division-header h3 {
    color: var(--accent-soft);
}

.week-block.played .division-header span::after,
.schedule-card.played .division-header span::after {
    content: " · played";
    color: var(--muted);
    font-style: italic;
}

.week-block.played .schedule-match .team,
.schedule-card.played .schedule-match .team {
    color: var(--muted);
}

.schedule-legend {
    margin-top: 20px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.played {
    background: var(--accent-soft);
}

.legend-dot.holiday {
    background: var(--holiday-amber);
}

/* ==========================================================================
    8e. League Information — reusable across all division pages
    (General Rules + FargoRate App cards are identical everywhere; only
    Division Bylaws changes per division. .division-card/.link-out-btn are
    reused from the standings/player-stats components above.)
========================================================================== */
.info-block {
    margin-bottom: 50px;
}

.info-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.info-card {
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-card h3 {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 0;
}

.info-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 4px;
}

.coming-soon-badge {
    display: inline-block;
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: not-allowed;
    user-select: none;
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* FargoRate App card content — injected by js/main.js into any
   [data-fargorate-app-card] placeholder (see FARGORATE_APP_CARD_HTML),
   so these rules style the same markup wherever it lands. */
.fargorate-logo {
    height: 80px;
    width: auto;
}

.app-badge-link {
    display: inline-flex;
    transition: opacity 0.2s ease;
}

.app-badge-link:hover {
    opacity: 0.85;
}

.app-badge {
    height: 40px;
    width: auto;
    display: block;
}

/* ==========================================================================
    8f. Live-data loading / error states (standings, schedule teaser, full
    schedule) — js/main.js swaps these in while fetching public/data/*.json
    and falls back to them if a fetch fails or the payload looks malformed.
========================================================================== */
.data-loading,
.data-error,
.schedule-loading,
.team-loading,
.team-note {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    font-size: 14px;
}

.data-error {
    color: var(--holiday-amber);
}

.schedule-loading,
.data-error:not(td) {
    padding: 20px;
}

/* ==========================================================================
    9. About, Hours, Quick Form & Embedded Maps Footprint Layout
========================================================================== */
.contact-section {
    background: var(--bg-section);
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info-block h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-intro {
    color: #a0a0a0;
    font-size: 15px;
    margin-bottom: 35px;
}

.info-group-item {
    margin-bottom: 30px;
}

.info-group-item h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.info-group-item p,
.map-text-link,
.contact-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
}

.contact-link:hover,
.map-text-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.hours-list {
    list-style: none;
    max-width: 400px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    color: #b0b0b0;
}

.hours-list li span:first-child {
    color: #ffffff;
    font-weight: 700;
}

/* Right Side Mini Form Layout */
.contact-form-mini {
    background-color: #121212;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.contact-form-mini h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.quick-form .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.quick-form input,
.quick-form textarea {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.quick-form input:focus,
.quick-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.quick-form textarea {
    margin-bottom: 15px;
    resize: none;
}

/* Fluid Embedded Maps Frame Wrapper */
.map-wrapper-frame {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 250px;
}

.map-wrapper-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#map {
  width: 100%;
  height: 400px; /* Must not be 0 or auto */
  background-color: #eee; /* Helps verify if the div itself is visible */
}

/* ==========================================================================
    10. Global Footer Styling
========================================================================== */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    font-size: 13px;
    color: #666;
}

/* ==========================================================================
    11. Smart Responsive Mobile Media Layout Queries
========================================================================== */
/* Stage 1: Tablets and Smaller Viewports */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 20px;
    }

    .logo img {
        height: 45px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #1a1a1a;
        transition: right 0.4s cubic-bezier(0.1, 1, 0.1, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 20px;
    }

    /* Hamburger animation mechanics into 'X' layout */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent);
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .league-profile-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .league-profile-grid h1 {
        font-size: 32px;
    }

    .league-data-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Stage 2: Small Mobile Handsets Viewports */
@media (max-width: 600px) {
    .form-container {
        padding: 30px 20px;
    }
}

/* Stage 3: Micro Handset Viewports */
@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quick-form .input-row {
        grid-template-columns: 1fr;
    }
}