/* Meeting 21.09.2026: additions scoped to the theatre template. */
html { scroll-padding-top: 6rem; }
.header, .topbar { flex-shrink: 0; }
.header .logo__text { display: flex; flex-direction: column; gap: .2rem; }
.header .logo__sub { display: block; font-family: var(--sans); font-size: .66rem; font-weight: 400; line-height: 1.2; color: var(--paper-mute); letter-spacing: 0; }
.institute-link { color: #fff; font-weight: 600; white-space: nowrap; }
.topbar__links { letter-spacing: .035em; gap: .5rem; }
.footer .footer__inner h4 { color: #fff; }
/* The opening photograph keeps the large, full-bleed hero from design.css.
   Uncropped portraits/posters below must not change this decorative backdrop. */
.hero__lead p + p { margin-top: .6rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.prose { overflow-wrap: anywhere; }
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; list-style: revert; }
.prose a, .course-description a:not(.btn), .person-course-head a, .venue__documents a { text-decoration: underline; text-underline-offset: .2em; }
.content-image { max-width: 48rem; margin-top: 2rem; }
.content-image img { width: 100%; height: auto; }

.schedule-views { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.schedule-filter-panel { margin-bottom: 1.5rem; }
.schedule-filter-panel > summary { cursor: pointer; min-height: 44px; padding: .5rem 0; font-weight: 600; }
.schedule-filter-panel > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.schedule-filter-panel .schedule-filters { margin-top: .75rem; }
.schedule-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.schedule-filters label { display: flex; flex-direction: column; gap: .35rem; font-size: .83rem; font-weight: 600; min-width: 0; }
.schedule-filters input, .schedule-filters select { width: 100%; min-width: 0; min-height: 44px; padding: .6rem .75rem; border: 1px solid var(--line-2); border-radius: 0; background: #fff; font: inherit; font-weight: 400; }
.schedule-filters input:focus-visible, .schedule-filters select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.schedule-filters__actions { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; }
.schedule-filters__actions .btn { min-height: 44px; }
.afisha-row > div { min-width: 0; }
.afisha-row__title, .calendar-event__title { overflow-wrap: anywhere; }
.sales-status { display: inline-block; font-size: .83rem; line-height: 1.4; padding: .4rem 0; color: var(--paper-mute); }
.sales-status[data-sales-status="cancelled"] { color: var(--brand); }
.pushkin-badge { display: inline-block; padding: .1rem .5rem; border: 1px solid currentColor; color: var(--brand); font-size: .78rem; }
.course-link { display: inline-block; font-size: .83rem; color: var(--brand); text-decoration: underline; text-underline-offset: .2em; margin: .4rem .75rem 0 0; }
.schedule-timezone { font-size: .8rem; color: var(--paper-mute); margin-top: .75rem; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.calendar-toolbar .chip { min-width: 44px; min-height: 44px; text-align: center; }
.calendar-title { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.2; }
.calendar-empty { padding: 1rem; margin-bottom: 1rem; background: var(--surface); }
.calendar-grid { border-collapse: collapse; table-layout: fixed; width: 100%; background: #fff; }
.calendar-grid th { font-size: .78rem; font-weight: 600; padding: .65rem .15rem; border: 1px solid var(--line); background: var(--surface); }
.calendar-grid abbr { text-decoration: none; }
.calendar-day { border: 1px solid var(--line); vertical-align: top; height: 110px; padding: .4rem; }
.calendar-day--outside { background: #fafafa; }
.calendar-day__number { display: flex; align-items: center; gap: .3rem; min-height: 40px; padding: .3rem .5rem; color: var(--text-dark); font-size: .9rem; font-weight: 600; }
.calendar-day__number:focus-visible, .calendar-day__number[aria-pressed="true"] { outline: 2px solid var(--brand); outline-offset: -2px; }
.calendar-day__count { display: none; }
.calendar-day__muted { display: block; font-size: .82rem; padding: .5rem; color: #aaa; }
.calendar-day__events { list-style: none; margin: .2rem 0 0; padding: 0; }
.calendar-event { display: flex; flex-direction: column; gap: .3rem; padding: .65rem .1rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.calendar-event time { color: var(--brand); font-size: .8rem; font-weight: 700; }
.calendar-event__title { font-family: var(--serif); font-size: .9rem; font-weight: 700; line-height: 1.35; }
.calendar-event__title:hover { color: var(--brand); }
.calendar-event__stage { font-size: .72rem; color: var(--paper-mute); }
.calendar-event .btn { padding: .45rem .2rem; font-size: .68rem; letter-spacing: 0; white-space: normal; }
.calendar-event .sales-status { font-size: .73rem; }
.calendar-selection { display: none; }
.calendar-without-js { margin-top: 1.5rem; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.course-card { display: flex; flex-direction: column; gap: .75rem; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 1.4rem; background: #fff; }
.course-card:hover { border-color: var(--brand); }
.course-card__name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.course-card__more { color: var(--brand); font-size: .85rem; margin-top: auto; }
.course-description { padding: 1.5rem; margin-bottom: 2rem; border-left: 3px solid var(--brand); background: var(--surface); }
.course-description p, .course-description .btn { margin-top: .75rem; }
.person-card__courses { padding: 0 1rem 1rem; }
.person-card__courses:empty { display: none; }
.person-portrait { width: min(100%, 400px); margin-inline: auto; aspect-ratio: 3 / 4; background: var(--surface); }
.person-portrait img { width: 100%; height: 100%; object-fit: contain; }
.person-course-head { margin-top: 1rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.person-card .person-card__photo img,
.troupe-grid .person-card:hover .person-card__photo img,
.rep-card .rep-card__media img,
.rep-grid a.rep-card:hover .rep-card__media img,
main .frame img { object-fit: contain; filter: none; transform: none; }
.person-card__photo > picture, .person-portrait > picture, .rep-card__media > picture, .frame > picture { display: block; width: 100%; height: 100%; }
.rep-card__media { display: block; }

/* Show details keep the original full-width backdrop and overlaid text. */
.show-cover { background-color: #282828; }
.show-cover h1 { overflow-wrap: anywhere; }
.show-cover .course-link, .show-cover .pushkin-badge { color: #fff; }
.show-layout > *, .about > * { min-width: 0; }
.show-dates li { flex-wrap: wrap; }
.show-dates .btn { white-space: normal; }
.cast-table th[scope="row"] { width: 42%; padding: .85rem .5rem .85rem 0; letter-spacing: 0; text-transform: none; font-size: .95rem; font-weight: 400; }
.cast-table td, .cast-table th { overflow-wrap: anywhere; }

.media-section { margin-top: 2.5rem; }
.media-section .h2 { margin-bottom: 1.25rem; font-size: 1.6rem; }
.video-player { aspect-ratio: 16 / 9; background: #1a1a1a; }
.video-player__start { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 1rem; color: #fff; background: #1a1a1a; }
.video-player__start:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.video-player__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--brand); border-radius: 50%; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.media-gallery img { width: 100%; height: auto; }
.media-gallery figcaption { font-size: .85rem; color: var(--paper-mute); margin-top: .5rem; }
.viewer-quote { padding: 1rem 1.25rem; margin-top: 1rem; border-left: 3px solid var(--brand); background: var(--surface); }
.viewer-quote cite { display: block; margin-top: .5rem; font-size: .85rem; }

.venue-list { display: grid; gap: 1rem; }
.venue { border: 1px solid var(--line); background: #fff; }
.venue > summary { padding: 1.25rem 1.5rem; font-family: var(--serif); font-size: 1.35rem; cursor: pointer; }
.venue > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.venue__body { padding: .5rem 1.5rem 1.5rem; }
.venue__photo, .venue__plan { display: block; max-width: 54rem; margin-bottom: 1rem; }
.venue__photo img, .venue__plan img { width: 100%; height: auto; object-fit: contain; }
.venue__plan span { color: var(--brand); text-decoration: underline; }
.venue__facts { display: grid; gap: .8rem; margin: 1rem 0; }
.venue__facts dt { font-weight: 600; }
.venue__facts dd { overflow-wrap: anywhere; }
.venue__body h3 { margin: 1.5rem 0 .8rem; }
.venue__documents { display: grid; gap: .5rem; }
.venue__status { color: var(--paper-mute); }
.feedback-context { margin-bottom: 1rem; font-size: .9rem; }
.feedback-form input[type="tel"] { width: 100%; border: 1px solid var(--line-dark); padding: .55rem .75rem; font: inherit; }
.kassa-notice { padding: 2rem; max-width: 44rem; margin: auto; overflow: auto; }
.kassa-notice h1 { font-family: var(--serif); font-size: 1.75rem; }
.kassa-notice p { margin: 1rem 0; }
.kassa-notice .btn { margin: .3rem; white-space: normal; }
/* The generic embed's 760px minimum must not clip purchases in landscape. */
.kassa-page .intickets-embed .intickets-frame-container,
.kassa-page .intickets-embed .intickets-frame-wrapper,
.kassa-page .intickets-embed .intickets-next-container-3 { height: auto !important; min-height: 0 !important; max-height: none !important; }
.kassa-page .intickets-embed .intickets-frame-wrapper iframe,
.kassa-page .intickets-embed .intickets-next-container-3 iframe,
.kassa-page .intickets-embed .intickets-next-container-3 #intickets-frame { height: calc(100% + 4.75rem) !important; min-height: 0 !important; max-height: none !important; }
.intickets-embed { position: relative; }
.intickets-embed__fallback { position: absolute; inset: 0; padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: #fff; visibility: hidden; opacity: 0; animation: theatre-fallback-visible 0s 8s forwards; text-align: center; }
.intickets-embed__fallback .btn { white-space: normal; }
.intickets-embed:has(iframe) .intickets-embed__fallback { display: none; }
@keyframes theatre-fallback-visible { to { visibility: visible; opacity: 1; } }

@media (max-width: 1120px) {
    .header .header__panel { display: none; }
    .header .nav-toggle { display: flex; }
    .header.is-open .header__panel { display: flex; position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-width: none; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .25rem 1.375rem 1.25rem; z-index: 101; box-shadow: 0 16px 32px rgba(0,0,0,.12); max-height: calc(100dvh - 112px); overflow-y: auto; }
    .header.is-open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .header.is-open .nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); box-shadow: none; }
    .header.is-open .header__cta { display: flex; position: static; margin: 1rem 0 0; width: 100%; }
}
@media (max-width: 768px) {
    .schedule-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .calendar-day { height: 56px; padding: .1rem; }
    .calendar-day__number { width: 100%; min-height: 48px; padding: .15rem; justify-content: center; font-size: .85rem; flex-direction: column; gap: 0; }
    .calendar-day__count { display: inline-block; font-size: .6rem; line-height: 1.2; color: var(--brand); }
    .calendar-day__events { display: none; }
    .calendar-selection { display: block; margin-top: 1.25rem; }
    .calendar-selection h3 { font-family: var(--serif); margin-bottom: .5rem; }
    .calendar-selection .calendar-event { padding: 1rem 0; }
    .calendar-selection .calendar-event__title { font-size: 1.1rem; }
    .calendar-selection .btn { align-self: flex-start; min-height: 44px; padding: .55rem 1rem; font-size: .85rem; }
}
@media (max-width: 560px) {
    .hero__actions .btn { padding: .75rem 1rem; font-size: .8rem; white-space: normal; }
    .hero__eyebrow { font-size: .65rem; letter-spacing: .1em; }
    .course-grid, .schedule-filters { grid-template-columns: 1fr; }
    .schedule-filters input, .schedule-filters select, .feedback-form input[type="tel"] { font-size: 16px; }
    .person-card__courses { padding-inline: .85rem; }
    .course-card { padding: 1rem; }
    .venue > summary { font-size: 1.15rem; padding: 1rem; }
    .venue__body { padding: .5rem 1rem 1rem; }
    .page-actions .btn { white-space: normal; }
    .media-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
