.program-section {
    background: var(--light-gray);
    counter-reset: talk;
}

.program-block {
    max-width: 860px;
    margin: 0 auto 28px;
}

.program-block:last-of-type {
    margin-bottom: 0;
}

.program-blocks { display: grid; gap: 12px; }
.program-blocks > .program-block { width: 100%; margin: 0 auto; }
.program-blocks > .program-item,
.program-blocks > .program-session > summary {
    min-height: 96px;
    align-content: center;
    align-items: center;
    padding: 12px 48px 12px 24px;
}
.program-blocks > .program-item > .program-title { margin-bottom: 0; }

.program-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--blue);
}

.program-block-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.program-block-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 14px;
    border-radius: 50px;
}

.program-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 4px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--blue);
    transition: all var(--transition);
}

.program-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.program-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue);
    padding-top: 2px;
    white-space: nowrap;
}

.program-content {
    min-width: 0;
}

.program-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.5;
}

.program-speaker {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.program-org {
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 500;
}

.program-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.program-item--break {
    background: linear-gradient(135deg, #fef9ef 0%, #fdf3dc 100%);
    border-left-color: #f59e0b;
}

.program-item--break .program-time {
    color: #b45309;
}

.program-item--break .program-title {
    color: #92400e;
}

.program-item--lunch {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
    padding: 28px 24px;
}

.program-item--lunch .program-time {
    color: #15803d;
}

.program-item--lunch .program-title {
    color: #166534;
    font-size: 1.1rem;
}

.program-item--special {
    background: linear-gradient(135deg, var(--blue-light) 0%, #dbe8ff 100%);
    border-left-color: var(--blue-dark);
}

.program-item--special .program-title {
    color: var(--blue-dark);
}

.program-item:not(.program-item--break):not(.program-item--lunch):not(.program-item--special) {
    counter-increment: talk;
}

.program-item:not(.program-item--break):not(.program-item--lunch):not(.program-item--special) .program-title::before {
    content: counter(talk) ". ";
    color: var(--blue);
    font-weight: 700;
}

.program-note {
    margin: 24px auto 0;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    max-width: 860px;
}

.program-note--pending {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 32px;
    padding: 22px 26px;
    background: white;
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}

.program-note--pending strong {
    color: var(--text);
    font-size: 1rem;
}

.program-session > summary {
    cursor: pointer;
    position: relative;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 48px 20px 24px;
    margin-bottom: 0;
    list-style: none;
    border: 0;
    border-left: 4px solid var(--blue-dark);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-light) 0%, #dbe8ff 100%);
    transition: box-shadow var(--transition), transform var(--transition);
}
.program-session > summary:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.program-session > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.program-session[open] > summary { margin-bottom: 8px; }
.program-session > summary .program-block-time { grid-column: 1; grid-row: 1; padding: 0; border-radius: 0; background: none; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.program-session-name { grid-column: 2; grid-row: 1; font-size: 1.05rem; font-weight: 600; line-height: 1.5; color: var(--blue-dark); }
.program-blocks > .program-item > .program-content > .program-title,
.program-blocks > .program-session .program-session-name { font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.program-event-description { font-size: .95rem; line-height: 1.5; color: var(--text-light); margin: 8px 0 0; }
.program-opening-guests { display: grid; gap: 12px; }
.program-opening-guest { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 20px; padding: 20px 24px; background: white; border-left: 4px solid var(--blue); border-radius: 10px; }
.program-opening-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
.program-opening-info { min-width: 0; overflow-wrap: anywhere; }
.program-opening-guest .program-speaker { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.program-opening-guest .program-meta { font-size: 1rem; font-style: normal; line-height: 1.5; margin: 0; }
.program-blocks > .program-item > .program-time,
.program-blocks > .program-session > summary .program-block-time { font-size: 1.05rem; }
.program-talk.program-item { grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; align-items: start; padding: 24px; }
.program-talk .program-content > .program-time { padding: 0 24px 0 0; margin-bottom: 6px; }
.program-photo { grid-column: 1; grid-row: 1; align-self: center; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--blue-light); }
#speaker-25 .program-photo { object-view-box: inset(5% 20% 50% 20%); object-position: center; }
.program-talk { position: relative; }
.program-talk > .program-content { grid-column: 2; grid-row: 1; align-self: center; padding-right: 0; overflow-wrap: anywhere; }
.program-talk .program-speaker { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; line-height: 1.35; color: var(--text); }
.program-talk .program-org { font-size: 1rem; line-height: 1.5; margin-bottom: 4px; }
.program-talk .program-meta { font-size: .95rem; line-height: 1.5; font-style: normal; margin-bottom: 12px; }
.program-identity { margin-bottom: 6px; }
.program-talk-details { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.program-talk .program-content > .program-meta { margin-bottom: 0; }
.program-talk-title { cursor: pointer; list-style: none; font-size: 1.25rem; font-weight: 600; line-height: 1.5; color: var(--text); margin-bottom: 8px; text-align: left; hyphens: none; overflow-wrap: normal; word-break: normal; }
@media (min-width: 769px) {
    .program-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
    .program-identity .program-speaker,
    .program-identity .program-org { margin: 0; }
}
.program-session > summary::-webkit-details-marker,
.program-talk-title::-webkit-details-marker { display: none; }
.program-session > summary::after,
.program-talk-title::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
    transition: transform var(--transition);
}
.program-talk-title::after { top: 24px; right: 24px; }
.program-session > summary::after { top: 50%; right: 24px; transform: translateY(-50%) rotate(45deg); }
.program-session[open] > summary::after { transform: translateY(-50%) rotate(225deg); }
.program-talk-details[open] > summary::after { transform: rotate(225deg); }
.program-description { margin: 12px 0; padding: 16px; border-radius: 8px; background: var(--blue-light); font-size: 1rem; line-height: 1.7; text-align: justify; hyphens: auto; }
.program-email { font-size: .95rem; overflow-wrap: anywhere; }
.program-contact { margin: 12px 0; }
.program-talk-details:not([open]) > .program-description { display: none; }
@media (max-width: 640px) {
    .program-opening-guest { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 20px 16px; gap: 12px; }
    .program-opening-photo { width: 144px; height: 144px; }
    .program-blocks > .program-item,
    .program-blocks > .program-session > summary { min-height: 140px; padding: 12px 44px 12px 16px; }
    .program-session > summary { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 44px 16px 16px; }
    .program-session-name { grid-column: 1; grid-row: 2; }
    .program-session > summary::after { top: 50%; right: 20px; }
    .program-talk.program-item { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 16px; }
    .program-talk .program-content > .program-time { grid-column: 1; grid-row: 1; margin: 0; }
    .program-photo { width: 144px; height: 144px; }
    .program-talk > .program-content { display: contents; }
    .program-talk .program-identity { grid-column: 1; grid-row: 3; text-align: center; margin: 0; }
    .program-talk .program-content > .program-meta { grid-column: 1; grid-row: 4; text-align: center; }
    .program-talk > .program-photo { grid-column: 1; grid-row: 2; justify-self: center; }
    .program-talk > .program-talk-details { grid-row: 5; }
    .program-talk-title { text-align: center; }
    .program-talk .program-speaker { font-size: 1.15rem; }
    .program-talk-title::after { top: 20px; right: 20px; }
}
@media print {
    .program-session > .program-item { display: grid !important; }
    .program-talk-details > .program-description { display: block !important; }
}
