:root {
  --page-bg: #ffffff;
  --ink: #0b0b0b;
  --muted: #6d747b;
  --hairline: rgba(11, 11, 11, 0.16);
  --content-width: 1376px;
  --header-h: 96px;
  --curtain-bg: #1b2530;
  --curtain-muted: #a7b0b8;
  --curtain-line: rgba(255,255,255,.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Noto Sans SC", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.site-shell { min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* HEADER */
.site-header-shell {
  position: sticky; top: 0; z-index: 60; width: 100%;
  background: #fff; color: var(--ink); border-bottom: 1px solid transparent;
  transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease;
}
.site-header-shell.is-curtain { background: var(--curtain-bg); color: #fff; border-color: var(--curtain-line); }
.site-header {
  width: min(var(--content-width), calc(100vw - 56px)); height: var(--header-h); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-lockup img { width: 214px; height: auto; flex: none; }
.brand-name { font-size: 16px; line-height: 1.18; font-weight: 600; letter-spacing: -.01em; max-width: 180px; }
.header-right { display: flex; align-items: center; gap: 28px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-trigger, .nav-direct, .language-switch, .mobile-menu-trigger {
  border: 0; background: transparent; cursor: pointer; padding: 11px 10px; min-height: 44px;
  font-size: 16px; line-height: 1; font-weight: 600; letter-spacing: -.015em;
}
.nav-trigger::after, .nav-direct::after { content: ""; display: block; height: 1px; width: 0; margin-top: 7px; background: currentColor; transition: width 180ms ease; }
.nav-trigger:hover::after, .nav-trigger:focus-visible::after, .nav-direct:hover::after, .nav-direct:focus-visible::after, .nav-direct.is-current::after { width: 100%; }
.language-switch { white-space: nowrap; font-size: 15px; }
.language-switch span { opacity: .45; margin: 0 4px; }
.mobile-menu-trigger { display: none; }

/* CURTAIN */
.nav-curtain {
  position: fixed; z-index: 55; inset: var(--header-h) 0 0; background: var(--curtain-bg); color: #fff;
  transform: translateY(-102%); opacity: 0; pointer-events: none;
  transition: transform 360ms cubic-bezier(.22,.68,0,1), opacity 220ms ease;
  overflow: auto;
}
.nav-curtain.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-curtain-inner { width: min(var(--content-width), calc(100vw - 56px)); min-height: calc(100vh - var(--header-h)); margin: 0 auto; padding: 32px 0 40px; display: flex; flex-direction: column; }
.curtain-topline { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--curtain-line); }
.curtain-mode { margin: 0; text-align: center; color: var(--curtain-muted); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.curtain-close, .curtain-back { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 34px; line-height: 1; padding: 6px; }
.curtain-back { visibility: hidden; font-size: 26px; }
.curtain-heading-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; padding: 48px 0 32px; }
.curtain-index { color: var(--curtain-muted); font-size: 13px; font-weight: 700; letter-spacing: .14em; padding-top: 12px; }
.curtain-heading-row h2 { margin: 0; font-size: clamp(58px, 8vw, 112px); line-height: .88; font-weight: 600; letter-spacing: -.055em; }
.curtain-intro { margin: 18px 0 0; color: var(--curtain-muted); font-size: 18px; }
.curtain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 26px 0 48px; }
.curtain-group { border-top: 1px solid var(--curtain-line); padding-top: 18px; }
.curtain-group-label { margin: 0 0 18px; color: var(--curtain-muted); font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.curtain-links { display: grid; gap: 6px; }
.curtain-link { width: fit-content; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.025em; padding: 4px 0; }
.curtain-link:hover, .curtain-link:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.curtain-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 20px; border-top: 1px solid var(--curtain-line); padding-top: 22px; color: var(--curtain-muted); }
.curtain-primary-link { color: #fff; font-weight: 600; }
.curtain-footer p { margin: 0; font-size: 12px; letter-spacing: .03em; }
.mobile-root-nav { display: none; }

/* HERO */
.hero { width: 100%; padding: 76px 0 0; background: #fff; }
.gallery-heading {
  width: min(var(--content-width), calc(100vw - 56px)); margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.gallery-viewport {
  width: min(var(--content-width), calc(100vw - 56px)); height: 488px; margin: 0 auto;
  overflow: hidden; position: relative; touch-action: pan-y;
}
/* FIX1 — restore the client-approved Gallery entry/exit edge treatment exactly from the approved desktop baseline.
   This is a viewport effect only; it is independent of the removed Active Focus model. */
.gallery-viewport::before,
.gallery-viewport::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 34px;
  pointer-events: none;
}
.gallery-viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.62), rgba(255,255,255,0));
}
.gallery-viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,.62), rgba(255,255,255,0));
}
.gallery-track {
  height: 100%; display: flex; align-items: center; gap: 56px; width: max-content;
  will-change: transform;
}
.poster-link {
  flex: 0 0 590px; display: flex; flex-direction: column; gap: 0; position: relative;
}
.poster-mount { display: block; width: 100%; aspect-ratio: 16 / 9; background: transparent; }
.poster-mount img {
  width: 100%; height: 100%; object-fit: cover;
  outline: 1px solid rgba(11,11,11,.05); outline-offset: -1px;
}
.poster-copy { padding-top: 16px; display: grid; gap: 6px; }
.poster-date { font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .11em; }
.poster-title { font-size: 20px; line-height: 1.13; font-weight: 600; letter-spacing: -.022em; }
.poster-meta { color: var(--muted); font-size: 10px; line-height: 1.25; font-weight: 700; letter-spacing: .14em; }
.poster-link:hover .poster-title, .poster-link:focus-visible .poster-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.gallery-toggle {
  border: 0; background: transparent; cursor: pointer; padding: 8px 0 5px;
  font-size: 12px; border-bottom: 1px solid currentColor;
}
.gallery-swipe-hint { display: none; font-size: 11px; font-weight: 700; letter-spacing: .12em; }

/* PROGRAMME */
.upcoming, .calendar-agenda { width: min(var(--content-width), calc(100vw - 56px)); margin: 0 auto; padding: 104px 0 170px; }
.section-heading { display: grid; grid-template-columns: 120px 1fr auto; align-items: end; gap: 22px; border-bottom: 1px solid var(--ink); padding-bottom: 22px; }
.section-heading.compact { padding-top: 0; }
.section-id, .footer-section-id { display: flex; gap: 8px; align-items: center; font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .13em; }
.section-slash { color: #a0a0a0; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 3.7vw, 52px); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.text-link { font-size: 12px; font-weight: 700; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.event-list { border-bottom: 1px solid var(--ink); }
.event-row { min-height: 116px; display: grid; grid-template-columns: 50px 130px 150px minmax(0, 1fr) 110px 34px; gap: 18px; align-items: center; border-top: 1px solid var(--hairline); transition: background-color 160ms ease, color 160ms ease; }
.event-row:first-child { border-top: 0; }
.event-row:hover, .event-row:focus-visible { background: var(--curtain-bg); color: #fff; }
.event-no { font-size: 11px; color: var(--muted); }
.event-row time { display: flex; align-items: baseline; gap: 7px; }
.event-row time span { font-size: 36px; line-height: 1; letter-spacing: -.045em; }
.event-row time small, .event-type, .event-meta { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.event-row:hover .event-no, .event-row:hover .event-type, .event-row:hover .event-meta, .event-row:focus-visible .event-no, .event-row:focus-visible .event-type, .event-row:focus-visible .event-meta { color: #bdc6cf; }
.event-row h3 { margin: 0; font-size: clamp(20px, 1.7vw, 27px); line-height: 1.06; letter-spacing: -.028em; font-weight: 600; }
.event-meta { text-align: right; line-height: 1.45; }
.event-arrow { font-size: 22px; color: #939393; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--hairline); background: #fff; }
.site-footer-inner { width: min(var(--content-width), calc(100vw - 56px)); margin: 0 auto; padding: 66px 0 30px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px 72px; }
.footer-identity h2 { margin: 28px 0 18px; font-size: clamp(30px, 3vw, 46px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.footer-identity p { margin: 0; font-size: 16px; line-height: 1.55; }
.footer-contact-list { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr) minmax(0, 1fr); gap: 18px 28px; margin-top: 2px; }
.footer-contact-list p { margin: 0; }
.footer-contact-list a { border-bottom: 1px solid rgba(11,11,11,.22); }
.footer-contact-link { display: inline-block; margin-top: 28px; font-size: 12px; font-weight: 700; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.footer-action-row { display: flex; gap: 22px; margin-top: 28px; }
.footer-action-row a, .footer-link-stack a { font-size: 12px; font-weight: 700; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 3px; width: fit-content; }
.footer-services { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-content: start; padding-top: 31px; }
.footer-services section { border-top: 1px solid var(--ink); padding-top: 16px; }
.footer-label { margin: 0 0 20px; font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--muted); }
.footer-large-link { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -.03em; }
.footer-link-stack { display: grid; gap: 12px; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: 22px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.footer-legal a { font-size: 11px; font-weight: 700; letter-spacing: .09em; }

/* CALENDAR */
.calendar-main, .links-main { width: min(var(--content-width), calc(100vw - 56px)); margin: 0 auto; }
.calendar-hero, .links-hero { padding: 76px 0 50px; border-bottom: 1px solid var(--ink); }
.calendar-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 26px; }
.calendar-title-row h1, .links-hero h1 { margin: 0; font-size: clamp(54px, 7vw, 104px); line-height: .9; letter-spacing: -.055em; font-weight: 600; }
.links-hero h1 { margin-top: 26px; }
.month-controls { display: flex; gap: 8px; }
.month-controls button { width: 46px; height: 46px; border: 1px solid var(--ink); background: #fff; cursor: pointer; font-size: 22px; }
.calendar-lede { max-width: 720px; margin: 30px 0 0 142px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.ongoing-panel { padding: 42px 0; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 120px 1fr; gap: 22px; }
.calendar-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--muted); }
.ongoing-item { display: grid; grid-template-columns: 140px 1fr 30px; gap: 20px; align-items: center; }
.ongoing-item time { font-size: 18px; font-weight: 600; }
.ongoing-item strong { display: block; font-size: 22px; font-weight: 600; }
.ongoing-item span { display: block; margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .13em; color: var(--muted); }
.month-grid-section { padding: 46px 0 0; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--hairline); }
.weekday { min-height: 48px; padding: 14px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--muted); }
.day { position: relative; min-height: 142px; padding: 14px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.day > span { font-size: 22px; }
.day i { position: absolute; left: 14px; bottom: 38px; width: 8px; height: 8px; border-radius: 50%; background: var(--curtain-bg); }
.day small { position: absolute; left: 30px; bottom: 34px; font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.day.is-outside { background: #fafafa; }
.calendar-agenda { padding-top: 92px; }

/* LINKS PAGE */
.institutional-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); margin: 50px 0 140px; }
.institutional-card { min-height: 180px; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 32px; border-bottom: 1px solid var(--hairline); padding: 30px 18px 30px 0; }
.institutional-card:nth-child(odd) { border-right: 1px solid var(--hairline); padding-right: 30px; }
.institutional-card:nth-child(even) { padding-left: 30px; }
.institutional-card img { max-height: 70px; width: auto; max-width: 210px; object-fit: contain; }
.institutional-card span { font-size: 18px; line-height: 1.3; }

/* TABLET */
@media (max-width: 1180px) {
  :root { --content-width: 100%; }
  .site-header, .nav-curtain-inner, .gallery-heading, .gallery-viewport, .upcoming, .calendar-agenda, .site-footer-inner, .calendar-main, .links-main { width: calc(100vw - 40px); }
  .brand-lockup img { width: 176px; }
  .brand-name { display: none; }
  .main-nav { gap: 2px; }
  .nav-trigger, .nav-direct { font-size: 14px; padding-inline: 7px; }
  .event-row { grid-template-columns: 40px 100px 110px minmax(0,1fr) 90px 28px; }
}

/* MOBILE */
@media (max-width: 860px) {
  :root { --header-h: 82px; }
  .site-header { width: calc(100vw - 28px); height: var(--header-h); }
  .brand-lockup { gap: 10px; min-width: 0; }
  .brand-lockup img { width: 132px; }
  .brand-name { display: block; font-size: 13px; max-width: 140px; }
  .main-nav { display: none; }
  .mobile-menu-trigger { display: inline-flex; align-items: center; }
  .language-switch { display: none; }
  .header-right { gap: 6px; }

  .nav-curtain { inset-top: var(--header-h); }
  .nav-curtain-inner { width: calc(100vw - 28px); padding-top: 18px; }
  .curtain-topline { grid-template-columns: 44px 1fr 44px; padding-bottom: 16px; }
  .curtain-mode { font-size: 10px; }
  .mobile-root-nav { display: grid; gap: 0; padding: 14px 0 30px; }
  .mobile-root-nav > button, .mobile-root-nav > a { border: 0; border-bottom: 1px solid var(--curtain-line); background: transparent; color: #fff; padding: 17px 0; text-align: left; font-size: clamp(30px, 10vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
  .mobile-root-meta { display: flex; align-items: center; gap: 12px; padding-top: 24px; color: var(--curtain-muted); }
  .mobile-root-meta button { border: 0; background: transparent; color: inherit; padding: 8px 0; font-size: 14px; }
  .curtain-detail { display: none; }
  .nav-curtain.show-detail .mobile-root-nav { display: none; }
  .nav-curtain.show-detail .curtain-detail { display: block; }
  .nav-curtain.show-detail .curtain-back { visibility: visible; }
  .curtain-heading-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0 18px; }
  .curtain-index { padding-top: 0; }
  .curtain-heading-row h2 { font-size: clamp(50px, 15vw, 78px); }
  .curtain-intro { font-size: 15px; }
  .curtain-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 14px; }
  .curtain-link { font-size: 26px; }
  .curtain-footer { display: grid; align-items: start; }

  .hero { padding-top: 42px; }
  .gallery-heading { width: calc(100vw - 28px); margin-bottom: 14px; }
  .gallery-heading .gallery-toggle { display: none; }
  .gallery-swipe-hint { display: inline; }
  .gallery-viewport {
    width: 100%; height: auto; margin: 0; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y;
    padding: 0 7vw 10px;
  }
  .gallery-viewport::before, .gallery-viewport::after { display: none; }
  .gallery-viewport::-webkit-scrollbar { display: none; }
  .gallery-track { height: auto; display: flex; align-items: flex-start; gap: 18px; transform: none !important; padding: 0; }
  .poster-link { flex: 0 0 84vw; width: 84vw; scroll-snap-align: center; }
  .poster-link[data-clone="true"] { display: none; }
  .poster-copy { padding-top: 13px; gap: 5px; }
  .poster-date { font-size: 11px; }
  .poster-title { font-size: 18px; }
  .poster-meta { font-size: 9px; }

  .upcoming, .calendar-agenda { width: calc(100vw - 28px); padding: 72px 0 100px; }
  .section-heading { grid-template-columns: 1fr auto; grid-template-areas: "id link" "title title"; gap: 16px 12px; }
  .section-id { grid-area: id; }
  .section-heading h2 { grid-area: title; font-size: 36px; }
  .section-heading .text-link { grid-area: link; }
  .event-row { min-height: 0; grid-template-columns: 56px 72px 1fr 26px; grid-template-areas: "date type meta arrow" "title title title arrow"; gap: 8px 12px; padding: 22px 0; }
  .event-no { display: none; }
  .event-row time { grid-area: date; }
  .event-row time span { font-size: 28px; }
  .event-type { grid-area: type; }
  .event-row h3 { grid-area: title; font-size: 20px; padding-top: 5px; }
  .event-meta { grid-area: meta; text-align: right; }
  .event-arrow { grid-area: arrow; align-self: center; }

  .site-footer-inner { width: calc(100vw - 28px); grid-template-columns: 1fr; gap: 46px; padding-top: 46px; }
  .footer-identity h2 { font-size: 34px; }
  .footer-contact-list { grid-template-columns: 1fr; gap: 12px; }
  .footer-services { grid-template-columns: 1fr; padding-top: 0; }
  .footer-bottom { grid-column: 1; }
  .footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  .calendar-main, .links-main { width: calc(100vw - 28px); }
  .calendar-hero, .links-hero { padding-top: 42px; }
  .calendar-title-row { align-items: end; }
  .calendar-title-row h1, .links-hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .calendar-lede { margin-left: 0; font-size: 16px; }
  .ongoing-panel { grid-template-columns: 1fr; gap: 14px; }
  .ongoing-item { grid-template-columns: 90px 1fr 20px; }
  .ongoing-item strong { font-size: 18px; }
  .month-grid { overflow: hidden; }
  .weekday { padding: 8px 4px; min-height: 36px; font-size: 9px; text-align: center; }
  .day { min-height: 68px; padding: 7px; }
  .day > span { font-size: 15px; }
  .day i { left: 7px; bottom: 12px; width: 6px; height: 6px; }
  .day small { display: none; }
  .institutional-page-grid { grid-template-columns: 1fr; margin-bottom: 90px; }
  .institutional-card, .institutional-card:nth-child(odd), .institutional-card:nth-child(even) { grid-template-columns: 140px 1fr; min-height: 128px; padding: 22px 0; border-right: 0; }
  .institutional-card img { max-width: 130px; max-height: 52px; }
  .institutional-card span { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============================================================
   R2-D1 — DESKTOP CORE EXPERIENCE RECLOSURE
   Only authorized desktop reclosure changes live below.
   Client-reviewed Gallery motion/fade remains untouched above.
   ============================================================ */
:root {
  /* Director asked to test a less-black Curtain. This remains a candidate, not a client-frozen color. */
  --curtain-bg: #26333d;
  --curtain-muted: #b7c0c6;
}

/* Keep the institution name readable; do not solve width pressure by shrinking approved nav text. */
@media (max-width: 1240px) and (min-width: 861px) {
  .site-header, .nav-curtain-inner, .gallery-heading, .gallery-viewport, .upcoming, .library-feature, .calendar-agenda, .site-footer-inner, .calendar-main, .links-main, .detail-main {
    width: calc(100vw - 40px);
  }
  .brand-lockup img { width: 186px; }
  .brand-name { display: block; font-size: 15px; max-width: 170px; }
  .main-nav { display: none; }
  .mobile-menu-trigger { display: inline-flex; align-items: center; }
  .language-switch { font-size: 15px; }
}

/* Featured visual is a dedicated 16:9 CMS asset in production.
   Current prototype source files are preserved without cropping until the client supplies the real 16:9 exports. */
.poster-mount { overflow: hidden; }
.poster-mount img { object-fit: contain; background: #fff; }
.poster-copy { max-width: 100%; }
.poster-date { font-size: 13px; }
.poster-title { font-size: 21px; }
.poster-meta { font-size: 11px; }

/* Interactive calendar */
.day.has-event { appearance: none; width: 100%; color: inherit; font: inherit; text-align: left; background: #fff; cursor: pointer; }
.day.has-event:hover, .day.has-event:focus-visible { background: #f4f6f7; outline: 1px solid var(--ink); outline-offset: -1px; }
.calendar-day-panel { padding: 72px 0 120px; }
.calendar-day-list { border-bottom: 1px solid var(--ink); }
.calendar-day-event { min-height: 92px; display: grid; grid-template-columns: 130px minmax(0,1fr) 36px; grid-template-areas: "time title arrow" "time meta arrow"; gap: 5px 22px; align-items: center; border-top: 1px solid var(--hairline); padding: 18px 0; }
.calendar-day-event > span { grid-area: time; font-size: 17px; font-weight: 700; }
.calendar-day-event strong { grid-area: title; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.calendar-day-event small { grid-area: meta; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.calendar-day-event i { grid-area: arrow; font-style: normal; font-size: 22px; }
.calendar-day-event:hover, .calendar-day-event:focus-visible { background: var(--curtain-bg); color: #fff; }
.calendar-day-event:hover small, .calendar-day-event:focus-visible small { color: #d2d8dc; }
.calendar-empty { margin: 0; padding: 28px 0; color: var(--muted); font-size: 16px; }

/* Representative detail page */
.detail-main { width: min(var(--content-width), calc(100vw - 56px)); margin: 0 auto; padding: 58px 0 150px; }
.detail-back { display: inline-block; margin-bottom: 52px; font-size: 12px; font-weight: 700; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.detail-hero { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 42px; }
.detail-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; padding-top: 13px; }
.detail-hero h1 { margin: 0; font-size: clamp(50px, 6.3vw, 92px); line-height: .94; letter-spacing: -.05em; font-weight: 600; max-width: 1100px; }
.detail-facts { grid-column: 2; margin-top: 38px; display: grid; grid-template-columns: minmax(240px,.8fr) 1.2fr; gap: 30px 50px; }
.detail-facts > div { border-top: 1px solid var(--hairline); padding-top: 13px; }
.detail-facts span { display:block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; margin-bottom: 10px; }
.detail-facts strong { display:block; font-size: 18px; line-height:1.35; font-weight:600; }
.detail-facts small { display:block; margin-top:5px; color:var(--muted); font-size:14px; }
.detail-media-copy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px,.6fr); gap: 72px; align-items: start; padding-top: 54px; }
.detail-visual { margin: 0; background:#fff; }
.detail-visual img { width:100%; height:auto; outline:1px solid rgba(11,11,11,.06); outline-offset:-1px; }
.detail-copy { padding-top: 8px; }
.detail-lede { margin:0 0 34px; font-size: clamp(22px,2vw,30px); line-height:1.28; letter-spacing:-.02em; }
.detail-cta { display:inline-block; margin-top:14px; padding-bottom:5px; border-bottom:1px solid currentColor; font-size:12px; font-weight:700; letter-spacing:.09em; }

/* Desktop client-review helpers: no visible internal notes are added to the public surfaces. */

@media (max-width: 860px) {
  .poster-date { font-size: 13px; }
  .poster-title { font-size: 19px; }
  .poster-meta { font-size: 11px; }
  .detail-main { width: calc(100vw - 28px); padding: 36px 0 100px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero h1 { font-size: clamp(42px, 12vw, 64px); }
  .detail-facts { grid-column: 1; grid-template-columns: 1fr; }
  .detail-media-copy { grid-template-columns: 1fr; gap: 32px; }
  .calendar-day-event { grid-template-columns: 82px 1fr 26px; }
}

/* ============================================================
   R2-D1-R1 — DESKTOP FUNCTIONAL COVERAGE COMPLETION
   Adds business-service surfaces without reopening frozen Gallery.
   Calendar stays in the white Content Mode by design; dark Curtain
   remains the navigation/find mode.
   ============================================================ */
.registration-panel {
  margin-top: 42px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0 28px;
}
.service-eyebrow,
.registration-deadline {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.registration-panel h2 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 600;
}
.registration-deadline { margin-top: 18px; color: var(--ink); }
.registration-body { margin: 14px 0 0; max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--muted); }

.service-main,
.partner-main {
  width: min(var(--content-width), calc(100vw - 56px));
  margin: 0 auto;
  padding: 64px 0 140px;
}
.service-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0 58px;
  border-bottom: 1px solid var(--ink);
}
.service-hero .section-id { align-self: start; padding-top: 10px; }
.service-hero h1 {
  margin: 0;
  font-size: clamp(58px, 7.2vw, 108px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 600;
  max-width: 1050px;
}
.service-hero > p {
  grid-column: 2;
  margin: 14px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}
.service-block {
  min-height: 250px;
  padding: 38px 44px 44px 0;
  border-bottom: 1px solid var(--hairline);
}
.service-block:nth-child(odd) { border-right: 1px solid var(--hairline); padding-right: 44px; }
.service-block:nth-child(even) { padding-left: 44px; }
.service-block h2 { margin: 0 0 20px; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.service-block p { margin: 0; font-size: 17px; line-height: 1.55; }
.service-block a { text-decoration: none; border-bottom: 1px solid currentColor; }
.service-link { display: inline-block; margin-top: 28px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.service-form {
  padding: 52px 0 0;
  max-width: 980px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}
.form-grid label {
  display: grid;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 12px 0;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}
.form-grid textarea { resize: vertical; min-height: 120px; }
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus { border-bottom-width: 2px; }
.form-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.form-actions p { margin: 0; max-width: 520px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  min-height: 48px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.primary-button:hover,
.primary-button:focus-visible { background: var(--curtain-bg); }

.partner-main .institutional-page-grid { margin-top: 0; }

@media (max-width: 860px) {
  .service-main,
  .partner-main { width: calc(100vw - 28px); padding: 38px 0 100px; }
  .service-hero { grid-template-columns: 1fr; padding-bottom: 38px; }
  .service-hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .service-hero > p { grid-column: 1; font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-block,
  .service-block:nth-child(odd),
  .service-block:nth-child(even) { min-height: 0; padding: 28px 0; border-right: 0; }
  .service-block h2 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; gap: 22px; }
  .form-grid .span-2 { grid-column: 1; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
}

/* ============================================================
   R2-D1-R2 — PRIMARY NAVIGATION REBALANCE + LIBRARY PROMINENCE
   - Official transparent logo export integrated without recoloring.
   - BIBLIOTHEK promoted to first-level navigation.
   - ENTDECKEN retained as secondary content under ÜBER UNS.
   - Homepage gains a prominent Bibliothek service section.
   Frozen Gallery behavior remains unchanged.
   ============================================================ */

/* Official transparent brand artwork supplied by the client. */
.brand-lockup img {
  width: 248px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}
.brand-name {
  max-width: 160px;
  font-size: 15px;
  line-height: 1.16;
  font-weight: 600;
}
.nav-trigger.is-current::after { width: 100%; }

/* Homepage: Bibliothek as a first-class cultural service, not a hidden utility link. */
.library-feature {
  width: min(var(--content-width), calc(100vw - 56px));
  margin: 0 auto;
  padding: 0 0 132px;
}
.library-feature-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: end;
  gap: 22px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 30px 0 26px;
}
.library-feature-head h2 {
  margin: 0;
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: .94;
  letter-spacing: -.05em;
  font-weight: 600;
}
.library-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  gap: 72px;
  padding-top: 32px;
}
.library-feature-intro {
  margin: 0;
  max-width: 520px;
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 1.33;
  letter-spacing: -.025em;
}
.library-feature-actions {
  border-top: 1px solid var(--hairline);
}
.library-feature-actions a {
  min-height: 102px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
  transition: background-color 180ms ease, color 180ms ease, padding 180ms ease;
}
.library-feature-actions a:hover,
.library-feature-actions a:focus-visible {
  background: var(--curtain-bg);
  color: #fff;
  padding-left: 18px;
  padding-right: 18px;
}
.library-feature-actions span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.library-feature-actions strong {
  font-size: clamp(21px, 1.7vw, 28px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.025em;
}
.library-feature-actions i {
  font-size: 22px;
  font-style: normal;
  text-align: right;
}

@media (max-width: 1240px) and (min-width: 861px) {
  .library-feature { width: calc(100vw - 40px); }
  .brand-lockup img { width: 214px; }
  .brand-name { font-size: 14px; max-width: 150px; }
}

@media (max-width: 860px) {
  .brand-lockup img { width: 150px; max-height: 48px; }
  .brand-name { font-size: 12px; max-width: 125px; }
  .library-feature { width: calc(100vw - 28px); padding-bottom: 92px; }
  .library-feature-head { grid-template-columns: 1fr; gap: 14px; padding: 24px 0 20px; }
  .library-feature-head h2 { font-size: 42px; }
  .library-feature-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .library-feature-intro { font-size: 20px; }
  .library-feature-actions a { grid-template-columns: 1fr 28px; min-height: 92px; gap: 6px 12px; }
  .library-feature-actions span { grid-column: 1 / -1; }
  .library-feature-actions strong { font-size: 21px; }
  .library-feature-actions i { grid-column: 2; grid-row: 2; }
}


/* ============================================================
   R2-D1-R3 — HEADER BRAND ALIGNMENT + HOMEPAGE SERVICE SIMPLIFICATION
   - Client-requested brand placement restored: official logo left, German institution name beside it.
   - The oversized homepage Bibliothek block is replaced by a compact service layer.
   - BIBLIOTHEK remains first-level navigation; Gallery and approved motion/fade are untouched.
   ============================================================ */

/* Header brand lockup: keep the official artwork intact and separate the German institution name spatially. */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 0;
  flex: 0 1 auto;
}
.brand-lockup img {
  width: 236px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  flex: none;
}
.brand-name {
  max-width: 168px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.012em;
  flex: none;
}

@media (max-width: 1240px) and (min-width: 861px) {
  .brand-lockup { gap: 24px; }
  .brand-lockup img { width: 210px; }
  .brand-name { max-width: 150px; font-size: 14px; }
}

@media (max-width: 860px) {
  .brand-lockup { gap: 12px; }
  .brand-lockup img { width: 148px; max-height: 48px; }
  .brand-name { max-width: 128px; font-size: 12px; line-height: 1.15; }
}


/* ============================================================
   R2-D1-R4 — HOMEPAGE INFORMATION HIERARCHY DEDUPLICATION
   Homepage is intentionally reduced to Gallery → Demnächst → Footer.
   Important services remain discoverable through first-level navigation
   and one persistent global footer rather than repeated mid-page blocks.
   ============================================================ */

/* ============================================================
   R2-D1-R5 — HEADER BRAND LOCKUP RECLOSURE
   Scope: restore the client-requested institutional identity relation
   without altering the official logo artwork, primary IA, Gallery,
   Curtain behavior, Programme, Calendar, service pages, or Footer.
   ============================================================ */

/* Wide desktop: Logo + current-language institution name read as one brand unit. */
@media (min-width: 1360px) {
  .brand-lockup {
    gap: 20px;
    flex: 0 0 auto;
  }
  .brand-lockup img {
    width: 236px;
  }
  .brand-name {
    max-width: none;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.015em;
  }
}

/* Compact full-navigation desktop: preserve the full nav without weakening the brand name. */
@media (max-width: 1359px) and (min-width: 1241px) {
  .brand-lockup {
    gap: 18px;
    flex: 0 1 auto;
  }
  .brand-lockup img {
    width: 214px;
  }
  .brand-name {
    max-width: 180px;
    white-space: normal;
    font-size: 16px;
    line-height: 1.16;
    font-weight: 600;
    letter-spacing: -.015em;
  }
}

/* Intermediate desktop/tablet header: keep the institution name visible and readable. */
@media (max-width: 1240px) and (min-width: 861px) {
  .brand-lockup {
    gap: 18px;
    flex: 0 1 auto;
  }
  .brand-lockup img {
    width: 210px;
  }
  .brand-name {
    display: block;
    max-width: none;
    white-space: nowrap;
    font-size: 17px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.015em;
  }
}

/* Mobile geometry is not redesigned in this desktop node; retain a compact, wrappable lockup. */
@media (max-width: 860px) {
  .brand-lockup { gap: 12px; }
  .brand-lockup img { width: 148px; max-height: 48px; }
  .brand-name {
    display: block;
    max-width: 128px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 600;
  }
}

/* ============================================================
   R2-D1-R5-R1 — INTEGRATED INSTITUTIONAL BRAND LOCKUP
   R5 made the institution name too independent, reading like a
   second wordmark. R5-R1 restores a single institutional lockup:
   official artwork + quieter current-language institution name.
   Scope remains Header brand composition only.
   ============================================================ */

/* Keep the source phrase intact on mobile; desktop/tablet turns it into a controlled two-line identifier. */
.brand-name-line { display: inline; }

@media (min-width: 1360px) {
  .brand-lockup {
    gap: 14px;
    flex: 0 0 auto;
  }
  .brand-lockup img {
    width: 236px;
  }
  .brand-name {
    display: block;
    max-width: 224px;
    padding-left: 0;
    border-left: 0;
    white-space: normal;
    font-size: 16px;
    line-height: 1.10;
    font-weight: 500;
    letter-spacing: -.012em;
    opacity: .90;
  }
  .brand-name-line {
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 1359px) and (min-width: 1241px) {
  .brand-lockup {
    gap: 12px;
    flex: 0 1 auto;
  }
  .brand-lockup img {
    width: 214px;
  }
  .brand-name {
    display: block;
    max-width: 210px;
    padding-left: 0;
    border-left: 0;
    white-space: normal;
    font-size: 15px;
    line-height: 1.10;
    font-weight: 500;
    letter-spacing: -.012em;
    opacity: .90;
  }
  .brand-name-line {
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 1240px) and (min-width: 861px) {
  .brand-lockup {
    gap: 12px;
    flex: 0 1 auto;
  }
  .brand-lockup img {
    width: 210px;
  }
  .brand-name {
    display: block;
    max-width: 218px;
    padding-left: 0;
    border-left: 0;
    white-space: normal;
    font-size: 16px;
    line-height: 1.10;
    font-weight: 500;
    letter-spacing: -.012em;
    opacity: .90;
  }
  .brand-name-line {
    display: block;
    white-space: nowrap;
  }
}

/* Mobile remains outside this Desktop reclosure; retain inherited compact wrapping. */
@media (max-width: 860px) {
  .brand-name {
    padding-left: 0;
    border-left: 0;
    opacity: 1;
  }
  .brand-name-line { display: inline; white-space: normal; }
}


/* ============================================================
   HEADER-INTEGRATION-R1 — BRAND / NAVIGATION SPATIAL REBALANCE
   - Real official seal asset + deterministic bilingual wordmark.
   - Pure-white header; no decorative background layer.
   - Brand, primary navigation and language switch are separate zones.
   - Existing Gallery / Programme / Curtain / Footer remain untouched.
   ============================================================ */
:root {
  --brand-red: #c5222a;
  --header-brand-gap: 14px;
  --header-brand-main-w: 220px;
  --header-brand-city-w: 70px;
  --header-brand-rule-w: 2px;
  --header-brand-col-gap: 12px;
}

/* Reset the obsolete complete-logo + auxiliary-name rules from R5/R5-R1. */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--header-brand-gap);
  min-width: 0;
  flex: 0 0 auto;
  color: currentColor;
}
.brand-lockup .brand-seal {
  width: 62px;
  height: 62px;
  max-height: none;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-wordmark {
  width: calc(var(--header-brand-main-w) + var(--header-brand-rule-w) + var(--header-brand-city-w) + (var(--header-brand-col-gap) * 2));
  display: grid;
  grid-template-rows: 34px 18px;
  row-gap: 2px;
  align-content: center;
  flex: 0 0 auto;
}
.brand-wordmark-row {
  display: grid;
  grid-template-columns: var(--header-brand-main-w) var(--header-brand-rule-w) var(--header-brand-city-w);
  column-gap: var(--header-brand-col-gap);
  align-items: center;
  min-width: 0;
}
.brand-wordmark-main,
.brand-wordmark-city {
  white-space: nowrap;
  line-height: 1;
}
.brand-wordmark-rule {
  width: var(--header-brand-rule-w);
  height: 100%;
  min-height: 15px;
  background: var(--brand-red);
  justify-self: center;
}
.brand-wordmark-zh .brand-wordmark-main,
.brand-wordmark-zh .brand-wordmark-city {
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: .09em;
}
.brand-wordmark-zh .brand-wordmark-city { letter-spacing: .12em; }
.brand-wordmark-de .brand-wordmark-main,
.brand-wordmark-de .brand-wordmark-city {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 11.8px;
  font-weight: 700;
  letter-spacing: .055em;
}
.brand-wordmark-de .brand-wordmark-city { letter-spacing: .16em; }

.site-header {
  gap: 0;
}
.header-right {
  margin-left: auto;
  gap: 34px;
  flex: 0 0 auto;
}
.main-nav {
  gap: 10px;
}
.nav-trigger,
.nav-direct {
  padding-inline: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
}
.language-switch {
  font-size: 15px;
  font-weight: 600;
  padding-inline: 4px;
}

/* Full desktop: keep a clear visual break between identity and functions. */
@media (min-width: 1241px) {
  .site-header { min-height: 96px; }
  .header-right { margin-left: clamp(72px, 7vw, 132px); }
}

/* Intermediate width uses the existing MENU mode; keep the full brand readable. */
@media (max-width: 1240px) and (min-width: 861px) {
  :root {
    --header-brand-main-w: 204px;
    --header-brand-city-w: 64px;
    --header-brand-col-gap: 10px;
  }
  .brand-lockup { gap: 12px; }
  .brand-lockup .brand-seal { width: 58px; height: 58px; }
  .brand-wordmark { grid-template-rows: 31px 17px; }
  .brand-wordmark-zh .brand-wordmark-main,
  .brand-wordmark-zh .brand-wordmark-city { font-size: 28px; }
  .brand-wordmark-de .brand-wordmark-main,
  .brand-wordmark-de .brand-wordmark-city { font-size: 10.8px; }
  .header-right { margin-left: auto; gap: 22px; }
}

/* Mobile: use the seal as the compact approved brand mark; full mobile lockup is a later responsive decision. */
@media (max-width: 860px) {
  .brand-lockup { gap: 0; }
  .brand-lockup .brand-seal { width: 46px; height: 46px; }
  .brand-wordmark { display: none; }
  .header-right { margin-left: auto; gap: 10px; }
}
