/* HTML timetable and presentation list on program.html. */
/* Keep jumps between the long timetable, program and presentation list immediate. */
html {
    scroll-behavior: auto;
}

.program-wrapper {
    max-width: 1240px;
    min-width: 0;
}

.program-wrapper [id] {
    scroll-margin-top: 175px;
}

.program-wrapper [hidden] {
    display: none;
}

.program-navigation {
    position: sticky;
    top: 80px;
    z-index: 5;
    margin-bottom: 2rem;
    padding: 0.75rem 0;
    background: #f1ebdf;
    border-bottom: 2px solid var(--gold);
}

.program-view-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
}

.program-view-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 0.4rem;
    border: 1px solid #cbb995;
    border-radius: 4px;
    background: var(--warm-white);
    color: var(--charcoal);
    font: 600 0.9rem 'Noto Sans JP', sans-serif;
    text-align: center;
    text-decoration: none;
}

.program-view-links a:hover {
    background: var(--gold-light);
}

#tab-downloads {
    gap: 0.4rem;
}

.program-tab-pdf-icon {
    width: 24px;
    height: 27px;
    flex-shrink: 0;
}

.program-pdf-icon {
    width: 32px;
    height: 36px;
    flex-shrink: 0;
}

.program-view-links a[aria-selected="true"],
.program-jump-links a[aria-selected="true"] {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: white;
}

.program-utility-links,
.program-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    margin: 1rem 0 1.5rem;
}

.program-wrapper a:focus-visible,
.program-wrapper select:focus-visible,
.program-wrapper button:focus-visible,
.schedule-scroll:focus-visible,
#presentation-search:focus-visible {
    outline: 3px solid #89672e;
    outline-offset: 4px;
}

.program-utility-links a,
.program-back-link a,
.general-session .program-note a {
    color: #73552e;
    text-underline-offset: 4px;
}

.program-jump-links a {
    padding: 0.4rem 0.8rem;
    border: 1px solid #cbb995;
    border-radius: 4px;
    background: var(--warm-white);
    color: var(--charcoal);
    font-size: 0.9rem;
    text-decoration: none;
}

.program-jump-links a:hover {
    background: var(--gold-light);
}

.program-back-link {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: right;
}

.schedule-day {
    margin-top: 2rem;
}

.schedule-scroll-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.schedule-viewport {
    position: relative;
    isolation: isolate;
}

.schedule-scroll {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #cbb995;
    border-radius: 6px;
    scrollbar-color: var(--gold-dark) var(--warm-gray);
}

.schedule-scroll-hint {
    display: none;
}

.schedule-table {
    width: 100%;
    min-width: 1440px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8rem;
    line-height: 1.7;
    background: var(--warm-white);
}

.schedule-table th,
.schedule-table td {
    border-right: 1px solid #d7cbb5;
    border-bottom: 1px solid #d7cbb5;
    vertical-align: top;
}

.schedule-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.8rem 0.4rem;
    background: var(--charcoal);
    color: white;
    text-align: center;
    font-size: 0.95rem;
}

.schedule-room {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

.schedule-time-col {
    width: 62px;
}

.schedule-table .schedule-time {
    position: sticky;
    left: 0;
    z-index: 1;
    padding: 0.5rem 0.2rem;
    background: #eee7db;
    color: var(--charcoal);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 1px 0 0 #cbb995;
}

.schedule-table thead .schedule-time {
    z-index: 3;
    background: var(--charcoal);
    color: white;
}

.schedule-event {
    padding: 0.65rem;
    overflow-wrap: anywhere;
}

.schedule-range {
    margin-bottom: 0.2rem;
    color: #715129;
    font-size: 0.75rem;
    font-weight: 700;
}

.schedule-label {
    font-weight: 700;
}

.schedule-label a {
    display: inline-block;
    padding: 0.15rem 0;
    color: #543c1d;
    text-underline-offset: 3px;
}

.schedule-label a:hover {
    text-decoration-thickness: 2px;
}

.schedule-title,
.schedule-subtitle,
.schedule-people,
.schedule-abstracts {
    margin-top: 0.35rem;
}

.schedule-subtitle {
    font-weight: 600;
}

.schedule-people,
.schedule-speakers {
    color: var(--text-secondary);
}

.schedule-speakers {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.schedule-speakers li {
    display: grid;
    grid-template-columns: 3.5em minmax(0, 1fr);
    gap: 0.4rem;
    margin: 0.15rem 0;
}

.schedule-code {
    white-space: nowrap;
}

.schedule-credit,
.schedule-update {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid #d7cbb5;
    color: var(--text-secondary);
}

.schedule-update a {
    color: #543c1d;
    text-underline-offset: 3px;
}

.schedule-oral {
    background: #eff4ed;
}

.schedule-seminar {
    background: #f9f0df;
}

.schedule-meeting {
    background: #e9e5de;
}

.schedule-empty {
    background: #f3f1ed;
}

.schedule-table tfoot td {
    background: #eee7db;
}

#program > .program-group > .program-group-title {
    font-size: 1.25rem;
    border-bottom-width: 1px;
}

.program-card,
.general-talk-body {
    overflow-wrap: anywhere;
}

.general-search {
    padding: 1.2rem;
    margin-top: 1.5rem;
    border: 1px solid #cbb995;
    border-radius: 6px;
    background: var(--warm-white);
}

.general-search label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

#presentation-search {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #99866a;
    border-radius: 4px;
    font: 1rem 'Noto Sans JP', sans-serif;
    background: white;
    color: var(--text-primary);
}

#presentation-count {
    margin-top: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.general-day {
    margin-top: 2.5rem;
}

.general-session {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #cbb995;
    border-radius: 6px;
    background: var(--warm-white);
}

.general-session h4 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.general-session .program-meta {
    margin-bottom: 0.6rem;
}

.general-chairs {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.general-talks {
    list-style: none;
    margin-top: 1.2rem;
}

.general-talk {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid #e3d9c7;
    font-family: 'Noto Sans JP', sans-serif;
}

.general-code {
    display: inline-block;
    padding: 0.1rem 0.7rem;
    border-radius: 3px;
    background: var(--charcoal);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}

.general-registration {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.program-section {
    padding-top: 2rem;
}

.has-program-tabs > [data-program-panel] {
    margin-bottom: 0;
}

#abstract-book .program-linklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0 2rem;
}

#abstract-book .program-linklist li {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    row-gap: 0.6rem;
    margin: 0;
    padding: 1.2rem;
    background: var(--warm-white);
    border: 1px solid #cbb995;
    border-radius: 6px;
}

#abstract-book .program-linklist li::before {
    position: static;
}

#abstract-book .program-link-btn {
    justify-content: center;
    width: 100%;
    margin-top: 0;
    padding: 0.7rem;
    font-size: 0.9rem;
    text-align: center;
}

#abstract-book .program-linklist .program-note {
    margin-top: 0;
}

.program-filter {
    margin: 1rem 0 1.5rem;
}

.program-filter label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.program-filter select {
    width: 100%;
    max-width: 640px;
    padding: 0.7rem;
    border: 1px solid #99866a;
    border-radius: 4px;
    background: var(--warm-white);
    color: var(--charcoal);
    font: 1rem 'Noto Sans JP', sans-serif;
}

.program-filter select:disabled {
    opacity: 0.6;
}

#program .program-card:hover {
    transform: none;
}

.general-search-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.general-search-status #presentation-count {
    margin: 0;
}

#presentation-clear {
    padding: 0.4rem 0.7rem;
    border: 1px solid #99866a;
    border-radius: 4px;
    color: var(--charcoal);
    background: white;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .program-navigation {
        position: static;
    }

    .program-wrapper [id] {
        scroll-margin-top: 95px;
    }

    .program-wrapper #program-navigation {
        scroll-margin-top: 145px;
    }
}

.general-talk-title {
    font-size: 0.98rem;
    font-weight: 500;
}

.general-author {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .program-view-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .program-view-links a {
        padding: 0.75rem 0.3rem;
        font-size: 0.8rem;
    }

    .program-view-links #tab-downloads {
        grid-column: span 2;
    }

    #abstract-book .program-linklist {
        grid-template-columns: 1fr;
    }

    #abstract-book .program-linklist li {
        grid-template-rows: none;
        grid-row: auto;
    }

    .schedule-scroll-hint {
        position: absolute;
        inset: 1px;
        z-index: 4;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        border-radius: 5px;
        background: radial-gradient(ellipse at center, rgba(41, 35, 26, 0.62), rgba(41, 35, 26, 0.36));
        box-shadow: inset 0 0 0 1px rgba(255, 245, 221, 0.18);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        color: #fffaf0;
        text-align: center;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 450ms ease, visibility 0s linear 450ms;
    }

    .schedule-scroll-hint.is-visible {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .schedule-scroll-hint-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: min(70vh, 100%);
        padding: 1.5rem 1rem;
        font-family: 'Noto Sans JP', sans-serif;
        text-shadow: 0 1px 12px rgba(25, 20, 13, 0.35);
        transform: translateY(6px);
        transition: transform 600ms ease;
    }

    .is-visible .schedule-scroll-hint-content {
        transform: translateY(0);
    }

    .schedule-scroll-gesture {
        width: 120px;
        height: 108px;
        margin-bottom: 0.6rem;
        overflow: visible;
    }

    .schedule-scroll-gesture-guides {
        stroke: #e7cc98;
        stroke-width: 1.3;
        opacity: 0.7;
    }

    .schedule-scroll-gesture-hand {
        fill: rgba(255, 250, 240, 0.08);
        stroke: #fffaf0;
        stroke-width: 2;
    }

    .schedule-scroll-gesture-touch {
        fill: none;
        stroke: #e7cc98;
        stroke-width: 1;
        opacity: 0.5;
    }

    .is-visible .schedule-scroll-gesture-hand {
        animation: schedule-swipe-gesture 5.5s ease-in-out 2;
    }

    .schedule-scroll-hint-label {
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        line-height: 1.8;
    }

    .schedule-scroll-hint-caption {
        margin-top: 0.4rem;
        color: #f0e5d0;
        font-size: 0.72rem;
        letter-spacing: 0.04em;
        line-height: 1.8;
    }

    @keyframes schedule-swipe-gesture {
        0%, 12%, 100% { transform: translateX(0); }
        35% { transform: translateX(-12px); }
        65% { transform: translateX(12px); }
    }

    .general-session {
        padding: 1rem;
    }

    .general-talk {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .general-talk-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .general-registration {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .schedule-scroll-hint,
    .schedule-scroll-hint-content {
        transition: none;
    }

    .is-visible .schedule-scroll-gesture-hand {
        animation: none;
    }
}
