/* ==========================================================================
   Schedule (list) + Calendar pages. Builds on home.css: the page wraps its
   content in .home for the shared colors, headings, buttons, and show cards.
   ========================================================================== */

/* ---------- Hero ---------- */

.sched-hero {
    background-color: var(--home-navy);
    background-size: cover;
    background-position: center bottom;
    padding: 2.5rem 0 3rem;
}

/* Hero cards center as a group, so a short week (fewer than six shows)
   doesn't leave a gap on the right. Same column counts as the homepage. */
.sched-hero .hu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sched-hero .hu-card {
    flex: 0 0 calc((100% - 14px) / 2);
}

@media (min-width: 768px) {
    .sched-hero .hu-card { flex-basis: calc((100% - 36px) / 3); }
}

@media (min-width: 1200px) {
    .sched-hero .hu-card { flex-basis: calc((100% - 90px) / 6); }
}

.sched-hero-compact {
    padding: 2.25rem 0;
}

.sched-hero-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.sched-hero-compact .sched-hero-head {
    margin-bottom: 0;
}

.sched-hero .home-heading {
    color: #fff;
}

.sched-hero .home-kicker {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Tools: search, dates, view toggle, categories ---------- */

.sched-tools {
    background: #fff;
    border-bottom: 1px solid var(--home-line);
    padding: 1.25rem 0;
    scroll-margin-top: 90px;
}

.sched-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sched-search {
    position: relative;
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.sched-search > i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--home-muted);
    pointer-events: none;
}

.sched-search input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem 0.6rem 2.4rem;
    border: 1px solid var(--home-line);
    border-radius: 4px;
    background: var(--home-cream);
    font-size: 0.95rem;
    color: var(--home-text);
}

.sched-search input:focus {
    outline: none;
    border-color: var(--home-gold);
    box-shadow: 0 0 0 3px rgba(215, 157, 40, 0.2);
    background: #fff;
}

.sched-actions {
    display: flex;
    gap: 0.5rem;
}

.sched-tool-btn,
.sched-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--home-line);
    border-radius: 4px;
    background: #fff;
    color: var(--home-navy);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sched-tool-btn {
    flex: 1;
}

.sched-tool-btn:hover,
.sched-view-btn:hover {
    border-color: var(--home-gold);
    color: var(--home-navy);
}

.sched-tool-btn.is-active {
    border-color: var(--home-gold);
    background: rgba(215, 157, 40, 0.12);
}

.sched-view {
    display: inline-flex;
}

.sched-view-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.sched-view-btn:last-child {
    border-radius: 0 4px 4px 0;
    margin-left: -1px;
}

.sched-view-btn.is-active {
    background: var(--home-navy);
    border-color: var(--home-navy);
    color: var(--home-gold-light);
}

@media (min-width: 768px) {
    .sched-toolbar {
        flex-direction: row;
        align-items: center;
    }

    .sched-search {
        max-width: 520px;
    }

    .sched-actions {
        margin-left: auto;
    }

    .sched-tool-btn {
        flex: 0 0 auto;
    }
}

/* Category pills: one scrollable row on phones, wrapping on wider screens */
.sched-cats {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

@media (min-width: 768px) {
    .sched-cats {
        flex-wrap: wrap;
        overflow: visible;
    }
}

.sched-pill {
    flex-shrink: 0;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    background: var(--home-cream);
    color: var(--home-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sched-pill:hover {
    border-color: var(--home-gold);
    color: var(--home-navy);
}

.sched-pill.is-active {
    background: var(--home-navy);
    border-color: var(--home-navy);
    color: var(--home-gold-light);
}

.sched-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    border-left: 3px solid var(--home-gold);
    background: var(--home-cream);
    font-size: 0.9rem;
    color: var(--home-text);
}

.sched-clear {
    font-weight: 700;
    font-size: 0.85rem;
    color: #a4661b;
    text-decoration: none;
    white-space: nowrap;
}

.sched-clear:hover {
    color: var(--home-navy);
}

/* ---------- List ---------- */

.sched-list {
    background: var(--home-cream);
    padding: 2.25rem 0 3.5rem;
}

.sched-list-heading {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-navy);
}

.sl-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Phones: a two-row grid. The square thumbnail sits beside the text and is
   sized to match it; the button runs full width underneath, so it never
   stretches the text column past the image. .sl-body steps aside
   (display: contents) so its children join the grid directly. */
.sl-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 12px 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(7, 18, 46, 0.06);
    transition: box-shadow 0.2s ease;
}

.sl-row:hover {
    box-shadow: 0 6px 18px rgba(7, 18, 46, 0.12);
}

.sl-row.is-hidden {
    display: none;
}

.sl-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background: var(--home-navy-2);
}

.sl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sl-body {
    display: contents;
}

.sl-info {
    min-width: 0;
}

.sl-cta {
    grid-column: 1 / -1;
}

.sl-cat {
    margin: 0 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a4661b;
}

.sl-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.sl-title a {
    color: var(--home-text);
    text-decoration: none;
}

.sl-title a:hover {
    color: #a4661b;
}

.sl-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.25rem;
    font-size: 0.85rem;
    color: var(--home-muted);
}

.sl-meta li {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.sl-meta i {
    color: var(--home-navy);
}

.sl-meta .sl-sub {
    flex-basis: 100%;
    font-style: italic;
}

.sl-excerpt {
    display: none;
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--home-muted);
}

.sl-cta .home-btn {
    width: 100%;
}

.sl-more {
    text-align: center;
    margin-top: 1.75rem;
}

.sched-empty {
    text-align: center;
    color: var(--home-muted);
    padding: 2rem 1rem;
}

.sched-empty p {
    margin-bottom: 1rem;
}

/* Tablet and up: one row. Inset square image, details, button on the right. */
@media (min-width: 768px) {
    .sl-row {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 14px 1.5rem 14px 14px;
    }

    .sl-thumb {
        flex: 0 0 140px;
        width: 140px;
    }

    .sl-body {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .sl-info {
        flex: 1;
    }

    .sl-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sl-cta {
        flex: 0 0 170px;
    }
}

/* ==========================================================================
   Calendar
   ========================================================================== */

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.cal-month {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--home-navy);
    text-align: center;
}

.cal-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border: 2px solid var(--home-gold);
    border-radius: 4px;
    color: var(--home-navy);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.cal-nav-btn:hover {
    background: var(--home-gold);
    color: var(--home-navy);
}

.cal-nav-btn.is-disabled {
    border-color: var(--home-line);
    color: #b8b2a3;
    pointer-events: none;
}

.cal-grid {
    display: none;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid var(--home-line);
    border-left: 1px solid var(--home-line);
    background: #fff;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(7, 18, 46, 0.06);
}

@media (min-width: 768px) {
    .cal-grid { display: grid; }
}

.cal-dow {
    padding: 0.55rem 0;
    background: var(--home-navy);
    color: var(--home-gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-day {
    position: relative;
    min-height: 120px;
    max-height: 170px;
    overflow-y: auto;
    padding: 1.9rem 0.4rem 0.4rem;
    border-right: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.cal-day.is-outside {
    background: #f6f3ec;
}

.cal-day.has-events {
    background: #fffdf8;
}

.cal-day-num {
    position: absolute;
    top: 0.4rem;
    right: 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--home-muted);
}

.cal-day.is-today .cal-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    top: 0.2rem;
    right: 0.3rem;
    border-radius: 50%;
    background: var(--home-gold);
    color: var(--home-navy);
}

.cal-event {
    display: block;
    margin-bottom: 0.3rem;
    padding: 0.25rem 0.4rem;
    border-left: 3px solid var(--home-gold);
    border-radius: 0 3px 3px 0;
    background: rgba(13, 26, 68, 0.06);
    text-decoration: none;
    line-height: 1.2;
}

.cal-event:hover {
    background: rgba(215, 157, 40, 0.18);
}

.cal-event-time {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #a4661b;
}

.cal-event-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--home-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-list-heading {
    margin-top: 0.5rem;
}

/* Calendar list rows: a date block stands in for the thumbnail */
.cal-date {
    align-self: stretch;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.25rem;
    background: var(--home-navy);
    color: #fff;
    text-align: center;
    line-height: 1.1;
}

.cal-date-dow,
.cal-date-mon {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-gold-light);
}

.cal-date-day {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0.1rem 0;
}

.cal-matinee {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.45rem;
    border-radius: 3px;
    background: var(--home-gold);
    color: var(--home-navy);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Calendar rows use a narrower first column for the date block */
.cal-row {
    grid-template-columns: 76px minmax(0, 1fr);
}

@media (min-width: 768px) {
    .cal-date {
        flex: 0 0 96px;
        min-height: 96px;
    }
}

/* ==========================================================================
   Show + its dates card (snippets/show_dates_card.html): SEO landing pages
   and promo/deal pages. Show details on top, date-block rows underneath.
   ========================================================================== */

.show-dates {
    margin-bottom: 1.75rem;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(7, 18, 46, 0.06);
}

.show-dates-head {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 2px solid var(--home-gold);
}

.show-dates-head .sl-thumb {
    border-radius: 6px;
}

.show-dates-head .sl-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.35rem 0 0.5rem;
}

.show-dates-learn,
.show-dates-more {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a4661b;
    text-decoration: none;
}

.show-dates-learn:hover,
.show-dates-more:hover {
    color: var(--home-navy);
}

.show-dates-more {
    display: block;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--home-line);
    background: var(--home-cream);
    text-align: center;
}

.show-dates .sl-list {
    gap: 0;
}

.show-dates .sl-row {
    border: 0;
    border-bottom: 1px solid var(--home-line);
    border-radius: 0;
    box-shadow: none;
}

.show-dates .sl-row:last-child {
    border-bottom: 0;
}

@media (min-width: 768px) {
    .show-dates-head {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 1.5rem;
        padding: 1.25rem 1.5rem;
    }

    .show-dates .cal-date {
        flex-basis: 84px;
        min-height: 84px;
    }
}
