/* =========================================================
   PROGRAM PAGE
   ========================================================= */

.program-page {
    padding-bottom: 48px;
}

.program-page-intro {
    padding: 42px 0 28px;
}

.program-page-intro h1 {
    margin: 7px 0 10px;
    color: var(--primary);
    font-size: clamp(40px, 9vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.program-page-intro > p:last-child {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   DAY SELECTOR
   ========================================================= */

.program-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0 0 36px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.program-day {
    min-height: 72px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    text-align: center;
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.program-day + .program-day {
    border-left: 1px solid var(--border);
}

.program-day:hover {
    background: var(--surface-soft);
}

.program-day.active {
    background: var(--primary);
    color: #ffffff;
}

.program-day.active:hover {
    background: var(--primary);
}

.program-day-weekday {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.program-day-date {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
}


/* =========================================================
   DATE HEADING
   ========================================================= */

.program-date-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.program-date-number {
    color: var(--accent);
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.04em;
}

.program-date-weekday {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.program-date-full {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}


/* =========================================================
   SCHEDULE
   ========================================================= */

.program-schedule {
    max-width: 900px;
}

.program-event {
    display: grid;
    grid-template-columns: 72px 1fr;
    border-top: 1px solid var(--border);
}


/* =========================================================
   TIME
   ========================================================= */

.program-event-time {
    padding: 20px 14px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.program-event-time-start,
.program-event-time-end {
    display: block;
}

.program-event-time-dash {
    display: block;
    margin: 2px 0;
    color: var(--border);
    font-weight: 400;
}


/* =========================================================
   EVENT CONTENT
   ========================================================= */

.program-event-content {
    padding: 20px 0 22px 20px;
    border-left: 2px solid var(--surface-soft);
}

.program-event-type {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.program-event-content h2 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.program-event-details {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.program-event-speaker {
    margin: 8px 0 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.program-event-location {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   BREAKS / LUNCH / DINNER
   ========================================================= */

.program-break {
    background: var(--surface-soft);
}

.program-break .program-event-time {
    padding-top: 17px;
    padding-bottom: 17px;
}

.program-break .program-event-content {
    padding-top: 17px;
    padding-bottom: 17px;
    border-left-color: var(--border);
}

.program-break .program-event-type {
    color: var(--text-light);
}

.program-break .program-event-content h2 {
    color: var(--text-soft);
    font-size: 16px;
}


/* =========================================================
   GROUPED EVENTS
   ========================================================= */

.program-event-group .program-event-content {
    padding-bottom: 24px;
}

.program-sessions {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.program-session {
    padding: 17px 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.program-session h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.program-session-details {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.program-session-speaker {
    margin: 8px 0 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}

.program-session-location {
    margin: 8px 0 0;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   PRESENTATIONS
   ========================================================= */

.program-presentations {
    margin-top: 15px;
    border-top: 1px solid var(--border);
}

.program-presentation {
    padding: 13px 0 12px;
    border-bottom: 1px solid var(--border);
}

.program-presentation:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.program-presentation h4 {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.program-presentation p {
    margin: 5px 0 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   TWO-COLUMN SESSIONS
   ========================================================= */

.program-event-group:has(.program-sessions > .program-session:nth-child(2))
    .program-sessions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.program-day:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.program-session:focus-within {
    border-color: var(--accent);
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 760px) {

    .program-page {
        padding-bottom: 32px;
    }

    .program-page-intro {
        padding: 32px 0 24px;
    }

    .program-page-intro h1 {
        font-size: 46px;
    }

    .program-days {
        margin-bottom: 30px;
    }

    .program-day {
        min-height: 66px;
    }

    .program-day-weekday {
        font-size: 10px;
    }

    .program-day-date {
        font-size: 13px;
    }

    .program-date-heading {
        margin-bottom: 22px;
    }

    .program-date-number {
        font-size: 34px;
    }

    .program-date-weekday {
        font-size: 18px;
    }

    .program-event-group:has(.program-sessions > .program-session:nth-child(2))
        .program-sessions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .program-page {
        padding-bottom: 24px;
    }

    .program-page-intro {
        padding: 28px 0 22px;
    }

    .program-page-intro h1 {
        font-size: 42px;
    }

    .program-page-intro > p:last-child {
        font-size: 14px;
    }

    .program-days {
        margin-bottom: 27px;
    }

    .program-day {
        min-height: 62px;
    }

    .program-day-weekday {
        font-size: 9px;
        letter-spacing: 0.03em;
    }

    .program-day-date {
        margin-top: 3px;
        font-size: 12px;
    }

    .program-date-heading {
        margin-bottom: 18px;
        gap: 12px;
    }

    .program-date-number {
        font-size: 32px;
    }

    .program-date-weekday {
        font-size: 18px;
    }

    .program-date-full {
        font-size: 12px;
    }

    .program-event {
        grid-template-columns: 58px 1fr;
    }

    .program-event-time {
        padding: 18px 10px 18px 0;
        font-size: 12px;
    }

    .program-event-content {
        padding: 18px 0 19px 15px;
    }

    .program-event-type {
        margin-bottom: 5px;
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .program-event-content h2 {
        font-size: 17px;
        line-height: 1.35;
    }

    .program-event-details {
        font-size: 12px;
    }

    .program-event-speaker {
        font-size: 13px;
    }

    .program-event-location {
        font-size: 12px;
    }

    .program-break .program-event-time {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .program-break .program-event-content {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .program-break .program-event-content h2 {
        font-size: 15px;
    }

    .program-sessions {
        margin-top: 16px;
        gap: 10px;
    }

    .program-session {
        padding: 15px;
        border-radius: 10px;
    }

    .program-session h3 {
        font-size: 15px;
    }

    .program-session-details {
        font-size: 12px;
    }

    .program-session-speaker {
        font-size: 12px;
    }

    .program-session-location {
        font-size: 11px;
    }

    .program-presentations {
        margin-top: 13px;
    }

    .program-presentation {
        padding: 11px 0;
    }

    .program-presentation h4 {
        font-size: 13px;
        line-height: 1.4;
    }

    .program-presentation p {
        font-size: 11px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .program-page-intro h1 {
        font-size: 38px;
    }

    .program-day {
        min-height: 59px;
    }

    .program-day-weekday {
        font-size: 8px;
    }

    .program-day-date {
        font-size: 11px;
    }

    .program-event {
        grid-template-columns: 52px 1fr;
    }

    .program-event-time {
        padding-right: 7px;
        font-size: 11px;
    }

    .program-event-content {
        padding-left: 13px;
    }

    .program-event-content h2 {
        font-size: 16px;
    }

    .program-session {
        padding: 13px;
    }
}