/* ============================================================
   SCHEDULE + SPEAKERS — driven live from the Black Sheep Hub
   Dark navy surfaces, amber accents, Space Grotesk.
   ============================================================ */

/* ------------------------------------------------------------------
   The theme paints section tints on a .layer-overlay ::before pseudo.
   It has no z-index and no pointer-events rule, so it stacks ABOVE the
   section's own content and swallows every click -- which is why the
   Day 2 tab looked dead. The tint is decoration; it must never be a
   click target, and our interactive content sits above it.
   ------------------------------------------------------------------ */
.layer-overlay::before,
.layer-overlay::after {
    pointer-events: none;
}
#schedule .container,
#speaker .container {
    position: relative;
    z-index: 2;
}

/* ---------- shared badges ---------- */
.sched-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 4px;
    background: var(--bs-surface-light);
    color: var(--bs-text-secondary);
    white-space: nowrap;
}
.sched-badge-ce { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.sched-badge-series { background: rgba(245, 158, 11, 0.18); color: var(--bs-accent-light); }
.sched-badge-room { background: rgba(255, 255, 255, 0.07); color: var(--bs-text-secondary); text-transform: none; letter-spacing: 0.01em; }
.sched-badge-room i { color: var(--bs-accent) !important; margin-right: 3px; }

/* ---------- intro + stats ---------- */
.sched-intro { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sched-intro p {
    color: var(--bs-text-secondary) !important;
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 28px;
}
.sched-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}
.sched-stat {
    background: var(--bs-dark-lighter);
    border: 1px solid var(--bs-surface-light);
    border-radius: 8px;
    padding: 16px 26px;
    min-width: 108px;
}
.sched-stat strong {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-accent);
}
.sched-stat span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-text-muted);
    font-weight: 700;
}

/* ---------- multi-part course warning ---------- */
.sched-series-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto 38px;
    padding: 18px 22px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.34);
    color: var(--bs-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}
.sched-series-alert i {
    color: var(--bs-accent) !important;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}
.sched-series-alert strong { color: var(--bs-accent-light); display: block; margin-bottom: 4px; }
.sched-trec {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    color: var(--bs-text-muted);
}

/* ---------- day tabs ---------- */
.sched-days {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}
.sched-day-btn {
    background: var(--bs-dark-lighter);
    border: 1px solid var(--bs-surface-light);
    border-radius: 8px;
    padding: 14px 30px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
}
.sched-day-btn:hover { border-color: var(--bs-accent); }
.sched-day-btn.is-active {
    background: var(--bs-accent);
    border-color: var(--bs-accent);
}
.sched-day-num {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bs-text-muted);
}
.sched-day-date {
    display: block;
    margin-top: 3px;
    font-size: 16px;
    font-weight: 700;
    color: var(--bs-text-primary);
}
.sched-day-btn.is-active .sched-day-num,
.sched-day-btn.is-active .sched-day-date { color: var(--bs-dark) !important; }

/* ---------- schedule rows ---------- */
.sched-panel { display: none; }
.sched-panel.is-active { display: block; }

.sched-row {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--bs-surface-light);
}
.sched-row:first-child { border-top: 0; }

.sched-time { padding-top: 4px; }
.sched-time-start {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--bs-text-primary);
    line-height: 1.2;
}
.sched-time-end {
    display: block;
    font-size: 13px;
    color: var(--bs-text-muted);
    margin-top: 2px;
}

.sched-row-break { padding: 14px 0; align-items: center; }
.sched-row-break .sched-time { padding-top: 0; font-size: 14px; color: var(--bs-text-muted); font-weight: 600; }
.sched-break {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-text-muted);
}
.sched-break i { font-size: 6px; color: var(--bs-accent) !important; vertical-align: middle; margin-right: 8px; }

.sched-tracks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.sched-class {
    background: var(--bs-dark-lighter);
    border: 1px solid var(--bs-surface-light);
    border-radius: 8px;
    padding: 22px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.sched-class:hover,
.sched-class:focus {
    transform: translateY(-3px);
    border-color: var(--bs-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    outline: none;
}
.sched-class-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sched-class-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bs-text-primary) !important;
    margin: 0 0 14px;
}
.sched-class-people { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.sched-person { display: inline-flex; align-items: center; gap: 9px; }
.sched-person img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background: var(--bs-surface-light);
    flex-shrink: 0;
}
.sched-person-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bs-surface-light);
    color: var(--bs-text-muted) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    font-weight: 700 !important;
    flex-shrink: 0;
}
.sched-person span { font-size: 14px; font-weight: 600; color: var(--bs-text-secondary); }
.sched-class-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--bs-accent) !important;
}
.sched-class-more i { margin-left: 4px; }

.sched-cta { text-align: center; margin-top: 48px; }
.sched-cta-note { margin-top: 18px; font-size: 14px; color: var(--bs-text-muted) !important; }
.sched-cta-note a { color: var(--bs-accent) !important; font-weight: 700; }

/* ---------- speakers (lead section) ---------- */
.spk-intro { text-align: center; max-width: 780px; margin: 0 auto 50px; }
.spk-eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bs-accent) !important;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.spk-intro h3 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.12;
    color: var(--bs-text-primary) !important;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.spk-intro p { color: var(--bs-text-secondary) !important; font-size: 17px; line-height: 1.65; margin: 0; }
.spk-intro em { color: var(--bs-accent-light) !important; font-style: normal; font-weight: 700; }

.spk-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.spk-stat {
    background: var(--bs-dark-lighter);
    border: 1px solid var(--bs-surface-light);
    border-radius: 8px;
    padding: 14px 24px;
    min-width: 100px;
}
.spk-stat strong { display: block; font-size: 28px; font-weight: 700; line-height: 1; color: var(--bs-accent); }
.spk-stat span {
    display: block;
    margin-top: 6px;
    font-size: 10.5px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--bs-text-muted);
    font-weight: 700;
}

.spk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 18px;
}
.spk-card {
    background: var(--bs-dark-lighter);
    border: 1px solid var(--bs-surface-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.spk-card:hover,
.spk-card:focus {
    transform: translateY(-5px);
    border-color: var(--bs-accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    outline: none;
}

.spk-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bs-surface-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spk-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    filter: saturate(0.92);
    transition: transform 0.45s ease, filter 0.35s ease;
}
.spk-card:hover .spk-photo img { transform: scale(1.06); filter: saturate(1.06); }
.spk-initials { font-size: 46px; font-weight: 700; color: var(--bs-text-muted); }
.spk-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 25, 0.94) 0%, rgba(10, 15, 25, 0.55) 26%, rgba(10, 15, 25, 0) 55%);
    pointer-events: none;
}
.spk-name {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.24;
    color: #ffffff !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.spk-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bs-accent);
    color: var(--bs-dark) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 4px;
}

.spk-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.spk-teaching {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--bs-text-muted) !important;
    margin: 0 0 14px;
}
.spk-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--bs-accent) !important;
}
.spk-more i { margin-left: 4px; transition: transform 0.2s ease; }
.spk-card:hover .spk-more i { transform: translateX(3px); }

.spk-cta { text-align: center; margin-top: 52px; }
.spk-cta-note { margin-top: 16px; font-size: 14px; color: var(--bs-text-muted) !important; }
.spk-cta-note a { color: var(--bs-accent) !important; font-weight: 700; }

/* ---------- detail modal ---------- */
.bsc-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
}
.bsc-modal.is-open { display: block; }
.bsc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.86);
    backdrop-filter: blur(3px);
}
.bsc-modal-panel {
    position: relative;
    max-width: 720px;
    margin: 5vh auto;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bs-dark-lighter);
    border: 1px solid var(--bs-surface-light);
    border-radius: 10px;
    padding: 38px 40px 40px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.bsc-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: 0;
    font-size: 34px;
    line-height: 1;
    color: var(--bs-text-muted);
    cursor: pointer;
    padding: 4px 10px;
}
.bsc-modal-close:hover { color: var(--bs-accent); }
.bsc-modal-eyebrow {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bs-accent) !important;
    margin-bottom: 10px;
}
.bsc-modal-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.28;
    color: var(--bs-text-primary) !important;
    margin: 0 0 14px;
}
.bsc-modal-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.bsc-modal-warn {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.36);
    color: var(--bs-accent-light);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    margin-bottom: 22px;
}
.bsc-modal-warn i { margin-top: 2px; color: var(--bs-accent) !important; }
.bsc-modal-text p {
    color: var(--bs-text-secondary) !important;
    font-size: 15.5px;
    line-height: 1.68;
    margin: 0 0 14px;
}
.bsc-modal-people { margin-top: 26px; border-top: 1px solid var(--bs-surface-light); padding-top: 24px; }
.bsc-modal-person { display: flex; gap: 18px; margin-bottom: 22px; align-items: flex-start; }
.bsc-modal-person img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background: var(--bs-surface-light);
    flex-shrink: 0;
}
.bsc-modal-person h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--bs-text-primary) !important;
    margin: 0 0 8px;
}
.bsc-modal-person-lead { border-bottom: 1px solid var(--bs-surface-light); padding-bottom: 22px; margin-bottom: 24px; align-items: center; }
.bsc-modal-person-lead img { width: 96px; height: 96px; }
.bsc-modal-person-lead .bsc-modal-title { margin-bottom: 8px; }
.bsc-modal-bio p { color: var(--bs-text-secondary) !important; font-size: 14.5px; line-height: 1.62; margin: 0 0 10px; }
.bsc-modal-classlist { list-style: none; padding: 0; margin: 24px 0 0; }
.bsc-modal-classlist li {
    padding: 13px 0;
    border-top: 1px solid var(--bs-surface-light);
}
.bsc-modal-classlist strong { display: block; font-size: 15px; color: var(--bs-text-primary); font-weight: 700; }
.bsc-modal-classlist span { display: block; margin-top: 3px; font-size: 13px; color: var(--bs-text-muted); }
.bsc-modal-cta {
    display: inline-block;
    margin-top: 28px;
    background: var(--bs-accent);
    color: var(--bs-dark) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
}
.bsc-modal-cta:hover { background: var(--bs-accent-dark); color: var(--bs-dark) !important; text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .sched-row { grid-template-columns: 96px 1fr; gap: 16px; }
    .bsc-modal-panel { padding: 32px 26px 34px; margin: 3vh auto; max-height: 94vh; }
}
@media (max-width: 767px) {
    /* The theme ships .btn as white-space:nowrap, so the longer CTA labels
       ("Register for the Convention — $399") run past the viewport and give the
       whole page a horizontal scrollbar on a phone. Let them wrap. */
    .btn.btn-lg, .btn.btn-colored, .btn.btn-dark-light {
        white-space: normal;
        max-width: 100%;
    }

    .sched-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
    .sched-time { display: flex; align-items: baseline; gap: 10px; padding-top: 0; }
    .sched-time-end { margin-top: 0; }
    .sched-row-break { flex-direction: row; }
    .sched-tracks { grid-template-columns: 1fr; }
    .sched-stat { padding: 13px 20px; min-width: 92px; }
    .sched-stat strong { font-size: 24px; }
    .sched-day-btn { flex: 1 1 auto; padding: 12px 18px; }
    .spk-intro h3 { font-size: 27px; }
    .spk-intro p { font-size: 15.5px; }
    .spk-stat { padding: 12px 18px; min-width: 84px; }
    .spk-stat strong { font-size: 22px; }
    .spk-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
    .spk-name { font-size: 14.5px; left: 12px; right: 12px; bottom: 11px; }
    .spk-body { padding: 12px 13px 14px; }
    .spk-teaching { font-size: 12.5px; margin-bottom: 10px; }
    .spk-more { font-size: 12px; }
    .bsc-modal-panel { margin: 0; max-height: 100vh; border-radius: 0; border: 0; }
    .bsc-modal-title { font-size: 21px; }
    .bsc-modal-person { flex-direction: column; gap: 12px; }
}
