/* ==========================================================================
#141414 	Rich Black
#232323		Lighter Black

BRAND COLORS
#21553d		Dark Green 		Half tint:  #7b8d7b
#74675a		Dark Brown
#c59b6d		Light Brown
#fbb042		Bright Orange
#fbe188		Pale Yellow
#f15a2e		Dark Orange
#013954		Background Image Dark Blue
#28553e		MAIN LINK GREEN

100,300,400,600,700 – Font Weights Available
========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}
:root {
    --bs-dark-green: #21553d;
	--bs-dark-brown: #74675a;
	--bs-light-brown: #c59b6d;
	--bs-dark-orange: #f15a2e;
	--bs-bright-orange: #fbb042;
	--bs-pale-yellow: #fbe188;
	--bs-dark-blue: #013954;
    --bs-black: #000000;
    --bs-white: #ffffff;
    --bs-light-black: #232323;
    --shadow-text-dark: 2px 2px 4px rgba(0, 0, 0, 0.75);
    --s-border-radius: 0.6rem;
}
html {
    isolation: isolate;
}
html, body {
    margin: 0;
    padding: 0;
    background-color: #fff;
}
:is(body, p, a) {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--bs-light-black);
}
p {
    margin-top: 0;
    margin-bottom: 1em;
}
a {
    color: var(--bs-dark-green);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.6;
    font-size: 16px; /* consistent baseline for rem units */
    background-color: #fff;
    color: #232323;
}
/* ---------------- Footer Styling ---------------- */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    margin-top: 2rem;
    background: #f4f6f5;
    border-top: 2px solid var(--bs-dark-green);
    color: #232323;
    font-size: 0.9rem;
    line-height: 1.4;
}

footer a {
    color: var(--bs-dark-green);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Stack footer lines on smaller screens */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}






/* ---------------- Filters Styling ---------------- */
.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    background: #f4f6f5;
    border-bottom: 2px solid var(--bs-dark-green);
}

/* Remove default glow/focus ring and make selects brand-consistent */
.filters select {
    font-family: inherit;
    font-size: 0.95rem;
    color: #232323;
    background-color: #fff;
    border: 1px solid #21553d;
    border-radius: 6px;
    padding: 0.45rem 2rem 0.45rem 0.75rem; /* more right padding for arrow space */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%2321553d' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center; /* keep arrow visible and aligned */
    background-size: 10px 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    max-width: 100%; /* ensures responsive sizing */
}

/* Remove glow and adjust focus for accessibility */
.filters select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 85, 61, 0.2);
}

/* Subtle hover and active effect */
.filters select:hover {
    background-color: #fafcfb;
    border-color: #1a4432;
}

/* Label style if any text labels appear later */
.filters label {
    font-weight: 500;
    color: var(--bs-black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ---------------- Date Heading ---------------- */
.date-heading {
    background: var(--bs-dark-green);
    color: #fff;
    padding: 0.6rem 0.9rem;
    margin: 1.5rem 0 0.25rem;
    border-radius: 4px 4px 0 0;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02rem;
}

/* ---------------- Schedule List ---------------- */
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-header,
.schedule-row {
    display: grid;
    grid-template-columns: 2fr 0.5fr 1.9fr 0.8fr; /* Game | Time | Stadium | Tickets */
    align-items: center;
    padding: 0.45rem 0.75rem;
    column-gap: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ---------------- Header Row ---------------- */
.schedule-header {
	background: #000;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	padding: 0.25rem 0.75rem;
}

/* ---------------- Rows ---------------- */
.schedule-row:nth-child(even) {
    background: #f6f6f6;
}

.schedule-row:nth-child(odd) {
    background: #fff;
}
/* ---------------- Row Hover ---------------- */
.schedule-list li.schedule-row:hover {
	/* NOT USED - Not needed? 
    background-color: #eef5f0 !important; 
    transition: background-color 0.15s ease-in-out;
    */
}

.col-game strong {
    font-weight: 600;
}

.col-stadium a,
.col-tickets a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--bs-dark-green);
    font-weight: 600;
    text-decoration: none; /* remove underline by default */
}
.col-stadium a:hover,
.col-tickets a:hover {
    text-decoration: underline;
}
/* Underline only text on hover, not icon */
.col-tickets a:hover .ticket-text {
    text-decoration: underline;
}

/* Keep “Tickets” link compact */
.col-tickets a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ---------------- Error Message ---------------- */
.error-msg {
    color: #b00;
    background: #fee;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem;
}

/* ---------------- Responsive Adjustments ---------------- */
@media (max-width: 992px) {
    /* General text size scaling */
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    .filters {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .filters select {
        font-size: 0.85rem;
        padding: 0.35rem 1.8rem 0.35rem 0.6rem; /* more right padding for arrow */
        background-position: right 0.55rem center;
        background-size: 9px 5px; /* scale arrow down slightly for smaller screens */
    }

    .date-heading {
        font-size: 1rem;
        padding: 0.45rem 0.7rem;
        margin-top: 1rem;
    }

    .schedule-header,
    .schedule-row {
        grid-template-columns: 1.6fr 0.5fr 1.5fr 0.8fr; /* narrower time, more for game/stadium */
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem;
        column-gap: 0.75rem;
    }

    footer {
        font-size: 0.85rem;
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
    }
}



/* ---------------- Mobile Layout (under 768px) ---------------- */
@media (max-width: 768px) {

    /* Hide the black legend row */
    .schedule-header {
        display: none;
    }

    /* Stack each game entry vertically */
    .schedule-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
        font-size: 0.9rem;
        line-height: 1.4;
        border-bottom: 1px solid #ddd;
        white-space: normal; /* allow wrapping on smaller screens */
    }

    /* Add spacing between each stacked item */
    .schedule-row > span {
        display: block;
        margin: 0.2rem 0;
    }

    /* Distinguish the first line (Game) */
    .col-game {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    /* Label prefix for clarity */
    .col-time::before {
        content: "Time: ";
        font-weight: 500;
        color: #21553d;
    }
    .col-stadium::before {
        content: "Stadium: ";
        font-weight: 500;
        color: #21553d;
    }
    .col-tickets::before {
        content: "Tickets: ";
        font-weight: 500;
        color: #21553d;
    }

    /* Clean link presentation */
    .col-tickets a {
        display: inline-block;
        margin-top: 0.1rem;
        font-weight: 600;
        text-decoration: none;
    }

    /* Card-like subtle background separation */
    .schedule-row:nth-child(odd) {
        background: #f9f9f9;
    }

    .schedule-row:nth-child(even) {
        background: #fff;
    }
}


/* ---------------- Section spacing refinements ---------------- */
.date-group {
    margin-bottom: 0.75rem; /* tighten space between groups */
}

.date-heading {
    margin-top: 1.25rem;   /* smaller top margin */
    margin-bottom: 0;      /* remove bottom gap */
}

.date-heading + .schedule-list {
    /* border-top: 3px solid var(--bs-dark-green); */
    border-radius: 0 0 4px 4px;
}

/* Make alternating group backgrounds flow smoothly */
.date-group:nth-of-type(even) .schedule-row:nth-child(even) {
    background: #f7f7f7;
}
.date-group:nth-of-type(even) .schedule-row:nth-child(odd) {
    background: #ffffff;
}