/* Boğaziçi Lectures
   Colours follow the series' posters and the university identity:
   navy #1b2f6b, orange #e07a2b. Type: Source Serif 4 / Source Sans 3. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --ink: #1a1f2e;
  --ink-2: #3a4152;
  --muted: #687083;
  --line: #e1e4ea;
  --line-strong: #c9ced8;
  --navy: #1b2f6b;
  --navy-dark: #14234f;
  --accent: #e07a2b;
  --link: #1b4fa0;
  --head-ink: #ffffff;
  --head-muted: #c3cbe0;
  --radius: 4px;
  --header-h: 68px;
  --wrap: 1180px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151f; --bg-alt: #171c28; --ink: #e8ebf1; --ink-2: #c5cad6; --muted: #959cad;
    --line: #262d3c; --line-strong: #364056; --navy: #1b2f6b; --navy-dark: #0f1a3a; --link: #8fb3ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11151f; --bg-alt: #171c28; --ink: #e8ebf1; --ink-2: #c5cad6; --muted: #959cad;
  --line: #262d3c; --line-strong: #364056; --navy: #1b2f6b; --navy-dark: #0f1a3a; --link: #8fb3ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 60px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; }
.skip:focus { top: 10px; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[lang="tr"] .en-only, html:not([lang="tr"]) .tr-only { display: none !important; }

/* type */
.display { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.kicker, .eyebrow { font: 600 .8rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.eyebrow { font-size: .75rem; margin-bottom: .35rem; }
.lead { font-size: 1.1rem; color: var(--head-muted); max-width: 60ch; margin: .8rem 0 0; }
.subtitle { font: italic 400 clamp(1.1rem, 2vw, 1.35rem)/1.4 var(--serif); color: var(--head-muted); margin: .6rem 0 0; }
.subtitle.tr { font-size: 1.05rem; opacity: .85; margin-top: .3rem; }
.text-link { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 600; border: 1px solid var(--accent); }
.btn:hover { background: #c96a20; border-color: #c96a20; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(127, 127, 127, .1); }
.chip { border: 1px solid var(--line-strong); background: var(--bg); padding: .35rem .8rem; border-radius: var(--radius); font-size: .9rem; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--navy); color: var(--head-ink); border-bottom: 3px solid var(--accent); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: .2rem; margin-left: auto; }
.main-nav a { padding: .45rem .8rem; font-weight: 600; font-size: .95rem; color: var(--head-muted); }
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.tools { display: flex; align-items: center; gap: .3rem; }
.tool { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .5rem; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; font-size: .8rem; font-weight: 700; }
.tool:hover { background: rgba(255, 255, 255, .1); }
html[lang="tr"] .lang-toggle .l-en, html:not([lang="tr"]) .lang-toggle .l-tr { display: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }
.mobile-nav { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .12); }
.mobile-nav nav { display: flex; flex-direction: column; padding: .5rem 0 1rem; }
.mobile-nav a { padding: .75rem 0; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.mobile-nav a[aria-current] { color: var(--accent); }

/* page heads */
.hero, .page-hero, .profile-hero, .lecture-hero { background: var(--navy-dark); color: var(--head-ink); }
.page-hero .wrap { padding: 2.75rem 0 2.5rem; }
.page-hero .display { font-size: clamp(2rem, 4vw, 2.8rem); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; padding: 3.5rem 0; }
.hero-speaker { margin: 1.4rem 0 1rem; }
.hero-speaker a { display: block; font: 600 1.2rem var(--serif); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.hero-speaker span { color: var(--head-muted); font-size: .95rem; }
.meta-row { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 0 0 1.75rem; color: var(--head-muted); }
.meta-row li { display: inline-flex; align-items: center; gap: .45rem; }
.meta-row .i { color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.poster-frame { display: block; background: #000; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.poster-frame img { width: 100%; height: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .88rem; color: var(--head-muted); margin-bottom: 1rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
.notfound .cta-row { margin-top: 1.5rem; }

/* sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; padding-bottom: .7rem; border-bottom: 2px solid var(--navy); }
:root[data-theme="dark"] .section-head { border-bottom-color: var(--line-strong); }
.section-head h2 { font-size: 1.75rem; }
.section-head .more { color: var(--link); font-weight: 600; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* lecture cards */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.5rem; }
.lgrid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.lcard { background: var(--bg); border: 1px solid var(--line); }
.lcard:hover { border-color: var(--line-strong); }
.lcard:hover h3 { color: var(--link); }
.lcard-link { display: flex; flex-direction: column; height: 100%; }
.lcard-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lcard-year { display: none; }
.badges { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 3px; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .95); color: #1b2f6b; }
.badge .i { width: 13px; height: 13px; }
.lcard-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.lcard h3 { font-size: 1.15rem; line-height: 1.3; }
.lcard-sub { color: var(--muted); font-size: .92rem; margin: .35rem 0 0; line-height: 1.4; }
.lcard-foot { margin-top: auto; padding-top: .8rem; display: flex; justify-content: space-between; gap: .8rem; font-size: .88rem; color: var(--muted); }
.lcard-foot .who { font-weight: 600; color: var(--ink-2); }
.lcard-foot time { white-space: nowrap; }

/* home: speakers list */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .1rem 2rem; }
.people a { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.people img { width: 52px; height: 52px; object-fit: cover; object-position: top; border-radius: 50%; flex: none; background: var(--line); }
.people b { display: block; font-weight: 600; }
.people small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.people a:hover b { color: var(--link); }
.about-teaser { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; }
.about-teaser h2 { font-size: 1.75rem; }
.about-text { font: 400 1.2rem/1.6 var(--serif); color: var(--ink-2); max-width: 68ch; }

/* video */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.6rem; }
.vgrid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.vgrid-1 { grid-template-columns: 1fr; max-width: 820px; }
.video { margin: 0; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #14234f center / cover no-repeat; }
.video-facade.no-poster { background: #14234f; }
.video-facade .play { position: absolute; left: 50%; top: 50%; width: 60px; height: 42px; margin: -21px 0 0 -30px; border-radius: 8px; display: grid; place-items: center; background: rgba(20, 20, 20, .8); color: #fff; }
.video-facade:hover .play { background: #e03a2f; }
.video-facade .play .i { width: 22px; height: 22px; }
.video-facade .provider { display: none; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.video figcaption { margin-top: .6rem; }
.video figcaption b { display: block; font-weight: 600; }
.video figcaption span { display: block; color: var(--muted); font-size: .92rem; }
.video-ext { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; color: var(--link); font-size: .85rem; }
.video-ext .i { width: 13px; height: 13px; }
.video-ext:hover { text-decoration: underline; }

/* filters */
.filters-bar { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.filter-tools { display: flex; gap: .5rem; flex: none; }
.select select, .inline-search input { height: 36px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem; }
.select select { padding: 0 .6rem; }
.inline-search { position: relative; display: flex; align-items: center; }
.inline-search .i { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--muted); }
.inline-search input { padding: 0 .8rem 0 2rem; width: 200px; }
.archive { padding-bottom: 3rem; }
.year-group { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.year-label { font-size: 1.9rem; color: var(--navy); align-self: start; position: sticky; top: calc(var(--header-h) + 80px); }
:root[data-theme="dark"] .year-label { color: var(--link); }
.year-group[hidden], .lcard[hidden], .scard[hidden] { display: none; }
.empty { padding: 3rem 0; text-align: center; }

/* speakers grid */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 2rem 1.5rem; padding: 2.5rem 0 4rem; }
.scard a { display: block; }
.scard-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.scard img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.scard-body { padding-top: .75rem; }
.scard h3 { font-size: 1.25rem; }
.scard a:hover h3 { color: var(--link); }
.scard-role { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; line-height: 1.4; }
.scard-lecture { margin: .4rem 0 0; font: italic 400 .95rem/1.4 var(--serif); color: var(--ink-2); }

/* profile / lecture head */
.profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; padding: 2.75rem 0; }
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.profile-copy .lead { margin-top: .5rem; }
.facts, .details { margin: 1.5rem 0 0; }
.facts > div, .details > div { display: grid; grid-template-columns: 120px 1fr; gap: .8rem; padding: .55rem 0; border-top: 1px solid rgba(255, 255, 255, .15); align-items: baseline; }
.facts dt, .details dt { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--head-muted); }
.facts dd, .details dd { margin: 0; }
.facts dd a, .details dd a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.details > div { grid-template-columns: 20px 110px 1fr; }
.details .i { color: var(--accent); width: 16px; height: 16px; transform: translateY(2px); }
.details small, .facts small { display: block; color: var(--head-muted); font-size: .88rem; }
.lecture-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; padding: 2.75rem 0; }

/* section tabs */
.tabbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.tabbar .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabbar a { padding: .85rem 1rem; font-weight: 600; font-size: .95rem; color: var(--muted); white-space: nowrap; }
.tabbar a:first-child { padding-left: 0; }
.tabbar a:hover, .tabbar a.is-active { color: var(--ink); }
.tabbar a.is-active { box-shadow: inset 0 -2px 0 var(--accent); }

/* content */
.content-narrow { max-width: 900px; padding-bottom: 1rem; }
.block { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block-title { font-size: 1.55rem; margin-bottom: 1.2rem; display: flex; align-items: baseline; gap: .5rem; }
.count { font: 600 .85rem var(--sans); color: var(--muted); }
.prose { font: 400 1.1rem/1.75 var(--serif); color: var(--ink-2); max-width: 70ch; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); }
.prose .lead-in { display: block; font: 700 .85rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin: 1.4rem 0 .2rem; }
.lang-sep { border: 0; border-top: 1px solid var(--line-strong); margin: 1.8rem 0; }
.callout { background: var(--bg-alt); border-left: 3px solid var(--accent); padding: 1.1rem 1.4rem; }
.note { font-style: italic; color: var(--muted); padding-top: 1.2rem; }

/* gallery */
.gallery { columns: 3 200px; column-gap: 10px; }
.g-item { position: relative; display: block; margin-bottom: 10px; break-inside: avoid; background: var(--bg-alt); cursor: zoom-in; }
.g-item img { width: 100%; height: auto; }
.g-item:hover img { opacity: .9; }
.g-cap { display: block; padding: .35rem .1rem 0; font-size: .85rem; color: var(--muted); background: var(--bg); }
.press-grid { columns: 4 170px; }
.press-row { margin-bottom: 2rem; }
.press-row h3 { font-size: 1.2rem; margin-bottom: .8rem; display: flex; gap: .5rem; align-items: baseline; }
.press-row h3 a:hover { color: var(--link); }

/* docs / audio */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.docs a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--line); }
.docs a:hover { border-color: var(--link); }
.docs .i:first-child { width: 24px; height: 24px; color: #c0392b; }
.docs .i:last-child { display: none; }
.docs span { flex: 1; display: flex; flex-direction: column; }
.docs b { color: var(--link); }
.docs small { color: var(--muted); }
.audio-list { display: grid; gap: 1rem; margin-top: 1.2rem; }
.audio-list:first-child { margin-top: 0; }
.audio-embed { width: 100%; border: 0; display: block; }
.audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 1.5rem; }
.audio-item p { margin-bottom: .5rem; }
.audio-item a { color: var(--link); }

/* speaker strip, pager */
.speaker-strip { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; padding: 1rem; border: 1px solid var(--line); background: var(--bg-alt); }
.speaker-strip img { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.speaker-strip b { display: block; font: 600 1.3rem var(--serif); }
.speaker-strip span { color: var(--muted); font-size: .92rem; }
.speaker-strip p { margin: .6rem 0; color: var(--ink-2); }
.speaker-strip .link { display: inline-flex; align-items: center; gap: .3rem; color: var(--link); font-weight: 600; }
.speaker-strip .link .i { width: 15px; height: 15px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem 0 3.5rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: .2rem; padding: .4rem 0; }
.pager small { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pager b { font: 600 1.1rem/1.3 var(--serif); }
.pager a:hover b { color: var(--link); }
.pager-prev small::before { content: "‹ "; }
.pager-next { text-align: right; }
.pager-next small::after { content: " ›"; }

/* media page */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.75rem 1.5rem; }
.album { display: grid; gap: .6rem; }
.album-stack { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.album-stack img { width: 100%; height: 100%; object-fit: cover; }
.album b { display: block; font-weight: 600; }
.album:hover b { color: var(--link); }
.album span { display: block; color: var(--ink-2); font-size: .93rem; line-height: 1.4; }
.album small { color: var(--muted); }

/* about page */
.about-page { padding-bottom: 3rem; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.col-title { font-size: 1.3rem; margin-bottom: .8rem; }
.about-cols .big { font: 400 1.15rem/1.7 var(--serif); color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tl-year { font: 600 1.4rem var(--serif); color: var(--navy); }
:root[data-theme="dark"] .tl-year { color: var(--link); }
.timeline li > div { display: grid; gap: .5rem; }
.timeline a { display: block; }
.timeline a b { font-weight: 600; margin-right: .4rem; }
.timeline a span { color: var(--muted); font-style: italic; }
.timeline a:hover b { color: var(--link); }
.field-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.field-cloud a { padding: .35rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.field-cloud a:hover { border-color: var(--link); color: var(--link); }

/* footer */
.site-footer { background: var(--navy-dark); color: var(--head-muted); padding: 3rem 0 0; margin-top: 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-grid h4 { color: #fff; font: 700 .85rem var(--sans); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; }
.uni-link { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 600; line-height: 1.2; }
.uni-link img { width: 48px; height: 48px; }
.footer-uni p { margin-top: .7rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }

/* search */
.search-panel { position: fixed; inset: 0; z-index: 90; background: rgba(10, 15, 30, .55); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-panel[hidden] { display: none; }
.search-box { width: min(620px, 100%); background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.search-field { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem .3rem 1rem; border-bottom: 1px solid var(--line); }
.search-field > .i { color: var(--muted); }
.search-field input { flex: 1; height: 50px; border: 0; background: transparent; color: var(--ink); font: 400 1.1rem var(--sans); outline: none; }
.search-field .tool { color: var(--ink); border-color: var(--line); }
.search-results { list-style: none; margin: 0; padding: .3rem; max-height: 55vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem; }
.search-results li.is-active a, .search-results a:hover { background: var(--bg-alt); }
.search-results img, .search-results .ph { width: 40px; height: 40px; object-fit: cover; object-position: top; flex: none; background: var(--bg-alt); }
.search-results b { display: block; font-weight: 600; line-height: 1.3; }
.search-results small { color: var(--muted); }
.search-results .kind { margin-left: auto; font-size: .75rem; color: var(--muted); }
.search-results mark { background: #ffe6a8; color: inherit; }
.search-hint { padding: .6rem 1rem; margin: 0; border-top: 1px solid var(--line); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .92); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: 20px 6px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; height: 100%; justify-content: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; }
.lightbox figcaption { color: #ddd; font-size: .92rem; text-align: center; }
.lb-close { position: absolute; right: 14px; top: 14px; }
.lb-count { position: absolute; left: 18px; top: 22px; color: #aaa; font-size: .9rem; }
.lightbox .tool { width: 44px; height: 44px; color: #fff; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .lecture-grid { grid-template-columns: 1fr; }
  .hero-visual, .lecture-poster { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 240px; }
  .year-group { grid-template-columns: 1fr; gap: .8rem; padding: 1.6rem 0; }
  .year-label { position: static; }
  .filters { flex-direction: column; align-items: stretch; }
  .filter-tools { width: 100%; }
  .inline-search { flex: 1; }
  .inline-search input { width: 100%; }
  .about-cols, .about-teaser { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .brand img { height: 38px; }
  .tools .tool { min-width: 36px; height: 36px; }
  .facts > div { grid-template-columns: 1fr; gap: .1rem; }
  .details > div { grid-template-columns: 20px 1fr; }
  .details dd { grid-column: 2; }
  .speaker-strip { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: .4rem; }
  .gallery { columns: 2 130px; column-gap: 8px; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
}
@media print {
  .site-header, .site-footer, .tabbar, .filters-bar, .pager, .video-facade { display: none !important; }
  .hero, .page-hero, .profile-hero, .lecture-hero { background: none; color: #000; }
}

/* university + series logos side by side */
.brands { display: flex; align-items: center; gap: .9rem; }
.bu-mark img { width: 46px; height: 46px; }
.brand-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .3); }
.footer-brand .brand img { height: 44px; width: auto; }
.uni-link img { width: 56px; height: 56px; }
@media (max-width: 560px) {
  .bu-mark img { width: 38px; height: 38px; }
  .brands { gap: .6rem; }
  .brand-sep { height: 28px; }
}
@media (max-width: 380px) { .brand-sep, .bu-mark { display: none; } }
.bu-mark, .uni-link img { background: #fff; border-radius: 50%; }
.bu-mark { display: block; padding: 2px; border-radius: 50%; line-height: 0; }
.bu-mark img { width: 44px; height: 44px; }
.uni-link img { padding: 2px; }
@media (max-width: 560px) { .bu-mark img { width: 36px; height: 36px; } }
.uni-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .uni-grid { grid-template-columns: 1fr; } }
