/* ==========================================================================
   BU+ — Boğaziçi Üniversitesi Kültür-Sanat Komisyonu
   Tek dosya, sade düzen. Hover'lar yalnızca renk / kenarlık / alt çizgi değiştirir.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper: #f7f6f3;
  --paper-2: #ecebe6;
  --card: #ffffff;
  --ink: #14202f;
  --ink-2: #344052;
  --muted: #667085;
  --line: #e2e1dc;
  --line-2: #cbcac3;
  --accent: #0e78ab;      /* BU+ logosunun mavisi (metinde okunur ton) */
  --brand: #29abe2;       /* logo mavisi */
  --link: #1b5fae;
  --boun: #1e4f91;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t: .18s ease;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d131f; --paper-2: #182234; --card: #121a29; --ink: #e9edf3; --ink-2: #c3cad6; --muted: #8e99ab;
    --line: #243045; --line-2: #34415a; --link: #7fb0ff; --boun: #7fb0ff; --accent: #5cc3f0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d131f; --paper-2: #182234; --card: #121a29; --ink: #e9edf3; --ink-2: #c3cad6; --muted: #8e99ab;
  --line: #243045; --line-2: #34415a; --link: #7fb0ff; --boun: #7fb0ff; --accent: #5cc3f0; color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.005em; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }
.plus { color: var(--accent); }
.eyebrow { display: block; font: 600 .8rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: border-color var(--t), background var(--t), color var(--t);
}
.btn:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-small { height: 36px; padding: 0 12px; font-size: .88rem; }
.btn .i { width: 18px; height: 18px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: transparent; color: var(--ink-2); transition: border-color var(--t), background var(--t), color var(--t);
}
.icon-btn:hover { border-color: var(--line-2); background: var(--card); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.link-arrow .i { width: 18px; height: 18px; transition: transform var(--t); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .i { transform: translateX(3px); }
.kbd { font: 600 .72rem/1 var(--sans); padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted); background: var(--card); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.seal { width: 46px; height: 46px; flex: none; }
.brand .logo { height: 44px; width: auto; padding-left: 14px; border-left: 1px solid var(--line-2); box-sizing: content-box; }
.brand-text { font-size: .8rem; line-height: 1.3; color: var(--ink-2); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: var(--radius); background: none;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); transition: background var(--t), color var(--t);
}
.nav-link .i { width: 16px; height: 16px; transition: transform var(--t); }
.nav-link:hover, .has-mega.open > .nav-link { background: var(--paper-2); color: var(--ink); }
.nav-link.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.has-mega.open > .nav-link .i { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform var(--t); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* mega menu: a small hover bridge keeps it open while the pointer moves down */
.has-mega { position: relative; }
.has-mega::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: min(720px, 92vw);
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 32px rgba(15, 25, 40, .14);
  padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.has-mega.open .mega { opacity: 1; visibility: visible; }
.mega a { display: block; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; transition: background var(--t); }
.mega a:hover { background: var(--paper); }
.mega a b { display: flex; align-items: center; gap: 8px; font: 600 1rem/1.3 var(--serif); }
.mega a b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.mega a span { display: block; font-size: .82rem; color: var(--muted); padding-left: 17px; }
.mega .mega-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; font-weight: 600; font-size: .92rem; }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--paper); overflow-y: auto; padding: 12px 0 40px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.3rem/1.2 var(--serif); }
.mobile-menu .m-label { margin: 24px 0 4px; }
.mobile-menu .m-sub { display: flex; align-items: center; gap: 10px; font: 600 1rem var(--sans); padding: 11px 0; color: var(--ink-2); }
.mobile-menu .m-sub::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

.admin-bar { background: var(--ink); color: var(--paper); font-size: .86rem; }
.admin-bar .wrap { display: flex; gap: 18px; align-items: center; min-height: 36px; flex-wrap: wrap; }
.admin-bar span { opacity: .7; margin-right: auto; }
.admin-bar a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar .i { width: 15px; height: 15px; }

/* ---------- layout ---------- */
main { min-height: 60vh; outline: none; }
.section { padding: clamp(44px, 6vw, 76px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.notice { padding: 12px 16px; margin: 16px 0 0; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); background: var(--card); font-weight: 600; }
.notice-success { border-left-color: #1f7a4d; }
.notice-error { border-left-color: #b42318; }
.notice-warn { border-left-color: #b7791f; }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 5vw, 60px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hero h1 { margin: 0 0 22px; line-height: 0; }
.hero-logo img { height: clamp(72px, 9vw, 96px); width: auto; }
.hero-lead { font-size: 1.12rem; line-height: 1.65; max-width: 62ch; color: var(--ink-2); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.list-title { font: 600 .8rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 40px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hero-list { list-style: none; margin: 0; padding: 0; }
.hero-list a { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.hero-list .d { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-list .t { font-weight: 600; }
.hero-list .c { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hero-list .c::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hero-list a:hover .t { text-decoration: underline; }
.hero-poster { display: block; text-decoration: none; }
.hp-img { display: block; border: 1px solid var(--line); background: var(--paper-2); transition: border-color var(--t); }
.hp-img img { width: 100%; height: auto; }
.hero-poster:hover .hp-img { border-color: var(--ink); }
.hp-cap { display: block; margin-top: 12px; }
.hp-cap small { display: block; color: var(--muted); font-size: .86rem; margin-bottom: 2px; }
.hp-cap b { font: 600 1.08rem/1.35 var(--serif); }
.hero-poster:hover .hp-cap b { text-decoration: underline; }

/* ---------- program cards ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.program-card {
  display: flex; flex-direction: column; padding: 22px; background: var(--card); text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--c); transition: background var(--t);
}
.program-card:hover { background: var(--paper); }
.pc-logo { display: block; margin: 0 0 16px; }
.pc-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; object-position: left; }
.program-card h3 { font-size: 1.3rem; margin: 0 0 8px; transition: color var(--t); }
.program-card:hover h3 { color: var(--c); }
.pc-summary { font-size: .94rem; color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { margin-top: auto; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
:root[data-theme="dark"] .pc-logo img, :root[data-theme="dark"] .prog-logo img { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pc-logo img, :root:not([data-theme="light"]) .prog-logo img { filter: invert(1) hue-rotate(180deg); } }

/* ---------- event cards ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.ev-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.ev-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); transition: border-color var(--t); }
.ev-media img { width: 100%; height: 100%; object-fit: cover; }
.ev-card:hover .ev-media { border-color: var(--ink); }
.noimg { width: 100%; height: 100%; min-height: 60px; background: repeating-linear-gradient(45deg, var(--paper-2) 0 10px, var(--card) 10px 20px); }
.ev-date { position: absolute; top: 8px; left: 8px; min-width: 48px; padding: 6px 8px 5px; text-align: center; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.ev-date b { display: block; font: 600 1.2rem/1 var(--serif); }
.ev-date span { font-size: .64rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.ev-badges { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; background: rgba(0, 0, 0, .66); color: #fff; font-size: .72rem; font-weight: 700; }
.badge .i { width: 13px; height: 13px; }
.ev-body { padding-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--c, var(--muted)); text-decoration: none; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
a.tag:hover { text-decoration: underline; }
.ev-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 6px 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card:hover h3 { text-decoration: underline; }
.ev-venue { display: flex; gap: 5px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.ev-venue .i { width: 14px; height: 14px; margin-top: 3px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-ctrl { display: flex; align-items: center; gap: 6px; }
.rail-ctrl .link-arrow { margin-left: 8px; }

.ev-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ev-row { display: grid; grid-template-columns: 96px 54px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ev-row .d { font: 600 1.2rem/1.1 var(--serif); }
.ev-row .d small { display: block; font: 600 .76rem/1.4 var(--sans); color: var(--muted); margin-top: 3px; }
.ev-row img, .ev-row .noimg { width: 54px; height: 72px; object-fit: cover; border: 1px solid var(--line); }
.ev-row h3 { font-size: 1.08rem; margin: 4px 0 2px; }
.ev-row .arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); transition: background var(--t), color var(--t), border-color var(--t); }
.ev-row:hover h3 { text-decoration: underline; }
.ev-row:hover .arrow { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- about strip / panels ---------- */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.about-strip h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.about-strip p { color: var(--ink-2); line-height: 1.7; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); }
.panel h3 { font-size: 1.45rem; margin-bottom: 10px; }
.panel p { color: var(--ink-2); }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .i { color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-row a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); transition: border-color var(--t), color var(--t); }
.social-row a:hover { border-color: var(--ink); color: var(--ink); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }
.price-row { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.price { flex: 1; min-width: 120px; padding: 12px 16px; border: 1px solid var(--line); }
.price b { display: block; font: 600 1.6rem/1.1 var(--serif); }
.price span { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity var(--t); }
.video:hover img { opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; transition: background var(--t); }
.video:hover .play { background: var(--accent); }
.video .play svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 4px; }

/* ---------- page hero / crumbs ---------- */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; margin-top: 14px; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .86rem; font-weight: 600; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { opacity: .5; }

/* ---------- program page ---------- */
.prog-hero { background: var(--c); color: #fff; padding: clamp(28px, 4vw, 48px) 0; }
.prog-hero .crumbs { color: rgba(255, 255, 255, .85); }
.prog-hero .crumbs a:hover { color: #fff; }
.prog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 14px 0 10px; }
.prog-facts { margin: 0; color: rgba(255, 255, 255, .9); font-weight: 600; }
.prog-switch { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.prog-switch::-webkit-scrollbar { display: none; }
.prog-switch a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: border-color var(--t), color var(--t); }
.prog-switch a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.prog-switch a:hover { border-color: var(--c); color: var(--ink); }
.prog-switch a.on { background: var(--c); border-color: var(--c); color: #fff; }
.prog-switch a.on::before { background: #fff; }
.story { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
.story aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.prog-logo { display: inline-flex; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); }
.prog-logo img { height: 52px; width: auto; max-width: 200px; object-fit: contain; }
.collapse { position: relative; max-height: 520px; overflow: hidden; }
.collapse.open { max-height: none; }
.collapse:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--paper)); }

/* ---------- prose ---------- */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); max-width: 72ch; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose div { margin: 0 0 1em; }
.prose div > div, .prose div:empty { margin: 0; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong, .prose b { color: var(--ink); }
.prose h2, .prose h3, .prose h4 { font-size: 1.3rem; color: var(--ink); margin: 1.6em 0 .6em; }
.prose img { height: auto; margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid var(--accent); font-family: var(--serif); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }

/* ---------- archive toolbar ---------- */
.toolbar { margin: 0; padding: 14px 0; border-block: 1px solid var(--line); background: var(--paper); position: sticky; top: var(--header-h); z-index: 20; }
.toolbar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; height: 44px; padding: 0 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color var(--t); }
.field:hover, .field:focus-within { border-color: var(--ink); }
.field .i { color: var(--muted); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; }
.select {
  height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); color: inherit; font: 600 .92rem var(--sans);
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color var(--t);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.select:hover { border-color: var(--ink); }
.seg { display: inline-flex; height: 44px; padding: 3px; gap: 2px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); }
.seg a { display: inline-grid; place-items: center; width: 38px; border-radius: 2px; color: var(--muted); transition: background var(--t), color var(--t); }
.seg a:hover { color: var(--ink); background: var(--paper); }
.seg a.on { background: var(--ink); color: var(--paper); }
.seg .i { width: 18px; height: 18px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink-2); font-size: .86rem; font-weight: 600; text-decoration: none; transition: border-color var(--t), color var(--t), background var(--t);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip .n { font-size: .76rem; color: var(--muted); }
.chip:hover { border-color: var(--c, var(--ink)); color: var(--ink); }
.chip.on { background: var(--c, var(--ink)); border-color: var(--c, var(--ink)); color: #fff; }
.chip:not([style]).on { color: var(--paper); }
.chip.on i { background: #fff; }
.chip.on .n { color: inherit; opacity: .8; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 24px 0 4px; }
.result-meta b { font: 600 1.3rem var(--serif); }
.clear-btn { font-weight: 600; font-size: .9rem; color: var(--accent); text-decoration: none; }
.clear-btn:hover { text-decoration: underline; }
.year-block { margin-top: 36px; }
.year-head { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.year-head h2 { font-size: 1.8rem; }
.empty { text-align: center; padding: 48px 20px; border: 1px solid var(--line); background: var(--card); margin-top: 24px; }
.empty h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pagination { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 40px 0 10px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 600; text-decoration: none; transition: border-color var(--t); }
.pagination a:hover { border-color: var(--ink); }
.pagination .cur { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination .gap { border: 0; background: none; }

/* ---------- event detail ---------- */
.ev-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 4vw, 56px); }
.ev-hero .bg { position: absolute; inset: -60px; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.2); opacity: .14; }
.ev-hero-grid { display: grid; grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: 20px; }
.poster-frame { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--paper-2); cursor: zoom-in; transition: border-color var(--t); }
.poster-frame img { width: 100%; height: auto; }
.poster-frame:hover { border-color: var(--ink); }
.poster-frame .zoom { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity var(--t); }
.poster-frame:hover .zoom, .poster-frame:focus-visible .zoom { opacity: 1; }
.ev-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.12; margin: 14px 0 22px; }
.meta-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.meta-list > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--card); }
.meta-list .i { color: var(--c, var(--accent)); margin-top: 2px; }
.meta-list small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.meta-list b { font-weight: 600; line-height: 1.35; }
.meta-list a { text-decoration: none; }
.meta-list a:hover { text-decoration: underline; }
.ev-lead { font-size: 1.06rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 22px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: var(--header-h); z-index: 10; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px; border: 0; background: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color var(--t); }
.tabs button .n { font-size: .74rem; padding: 1px 7px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--c, var(--accent)); opacity: 0; transition: opacity var(--t); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { opacity: 1; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.side-card { padding: 20px; background: var(--card); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 76px); }
.side-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.side-card p { font-size: .94rem; color: var(--muted); }
.gallery { columns: 4 200px; column-gap: 10px; }
.gallery button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 1px solid var(--line); background: var(--paper-2); break-inside: avoid; cursor: zoom-in; transition: border-color var(--t); }
.gallery img { width: 100%; height: auto; }
.gallery button:hover { border-color: var(--ink); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.files { display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--t); }
.file:hover { border-color: var(--ink); }
.file .ext { width: 42px; height: 42px; display: grid; place-items: center; background: var(--paper-2); color: var(--accent); font-weight: 700; font-size: .72rem; text-transform: uppercase; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--t); }
.pager a:hover { border-color: var(--ink); }
.pager a.next { flex-direction: row-reverse; text-align: right; }
.pager img { width: 54px; height: 72px; object-fit: cover; flex: none; }
.pager small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pager b { font: 600 1.02rem/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- about / tickets ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 10px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color var(--t); }
a.contact-card:hover { border-color: var(--ink); }
.contact-card .ic { width: 42px; height: 42px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); flex: none; }
.contact-card small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card b { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: rgba(8, 12, 24, .5); }
.search-panel { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.search-field .i { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: transparent; color: inherit; font: 500 1.12rem var(--sans); }
.search-field input::-webkit-search-cancel-button { display: none; }
.close-search { cursor: pointer; }
.search-results { overflow-y: auto; padding: 6px; }
.sr-group { padding: 12px 10px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.sr-item:hover, .sr-item.sel { background: var(--paper-2); }
.sr-item img { width: 38px; height: 50px; object-fit: cover; flex: none; background: var(--paper-2); }
.sr-item .dot { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--radius); background: var(--c, var(--paper-2)); color: #fff; font: 600 1.1rem var(--serif); }
.sr-item b { display: block; font-weight: 600; line-height: 1.3; }
.sr-item small { color: var(--muted); font-size: .82rem; }
.sr-empty { padding: 36px; text-align: center; color: var(--muted); }

/* ---------- lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; background: rgba(5, 8, 16, .94); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: .88rem; font-weight: 600; }
.lb-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background var(--t); }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 99; transform: translate(-50%, 20px); padding: 11px 18px; background: var(--ink); color: var(--paper); font-weight: 600; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 96px); padding: 56px 0 28px; background: #14202f; color: #e9edf3; }
:root[data-theme="dark"] .site-footer { background: #070b14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #070b14; } }
.site-footer .muted { color: rgba(233, 237, 243, .65); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-grid h4 { font: 700 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(233, 237, 243, .6); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-grid a:hover { text-decoration: underline; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 17px; height: 17px; fill: currentColor; opacity: .85; }
.footer-bottom { display: flex; align-items: center; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(233, 237, 243, .15); }
.footer-bottom p { margin: 0 0 0 auto; }
.boun { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 600 1.05rem/1.25 var(--serif); }
.boun img { width: 56px; height: 56px; padding: 3px; border-radius: 50%; background: #fff; }
.boun small { display: block; font: 500 .82rem var(--sans); color: rgba(233, 237, 243, .65); }
.boun:hover span { text-decoration: underline; }
.to-top { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(233, 237, 243, .25); border-radius: var(--radius); transition: border-color var(--t), background var(--t); }
.to-top .i { transform: rotate(180deg); }
.to-top:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* dark mode: give the seal a light disc so the blue reads */
:root[data-theme="dark"] .site-header .seal { background: #fff; border-radius: 50%; padding: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header .seal { background: #fff; border-radius: 50%; padding: 2px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }
.notfound .big { font: 700 6rem/1 var(--serif); color: var(--muted); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { margin-left: auto; }
  .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 860px) {
  .hero-grid, .about-strip, .split, .about-grid, .story, .ev-hero-grid { grid-template-columns: 1fr; }
  .hero-poster { max-width: 320px; }
  .story aside { position: static; }
  .poster-frame { max-width: 340px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .seal { width: 38px; height: 38px; }
  .brand { gap: 10px; }
  .brand .logo { height: 36px; padding-left: 10px; }
  .brand-text { display: none; }
  .programs-grid { grid-template-columns: 1fr; }
  .hero-list a { grid-template-columns: 1fr; gap: 2px; }
  .hero-list .c { order: -1; }
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .ev-card h3 { font-size: .98rem; }
  .ev-row { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; }
  .ev-row .d { display: none; }
  .toolbar { position: static; }
  .select { flex: 1; }
  .seg { flex: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom p { margin: 0; flex: 1 1 100%; order: 3; }
  .pager { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .videos { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
