:root {
  color-scheme: light;
  --ink: #142d31;
  --muted: #466065;
  --accent: #08665e;
  --accent-strong: #07534d;
  --paper: #f4f7f6;
  --white: #fff;
  --line: #d7e2df;
  --soft-accent: #e7f4ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: var(--accent-strong); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #117970;
  outline-offset: 3px;
}
.wrap { width: min(1280px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: #fff; }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 66px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding-inline: 9px;
  border-radius: 7px;
  background: #13363a;
  color: #fff;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .084em;
}
.brand-name { font-size: .91rem; font-weight: 650; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: .89rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.header-link:hover, .player-meta a:hover { text-decoration: underline; }
.external { font-weight: 550; }

.hero {
  background-color: #123135;
  background-image: linear-gradient(90deg, #112e32 0%, rgba(17,46,50,.95) 26%, rgba(17,46,50,.52) 65%, rgba(17,46,50,.2) 100%), url("assets/hero.jpg");
  background-position: center, center 71%;
  background-size: cover;
  color: #fff;
}
.hero-inner { padding-block: 36px 40px; }
.event-date {
  margin: 0 0 10px;
  color: #c5e8dd;
  font-size: .82rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.02;
  text-wrap: balance;
}
.event-subtitle { margin: 13px 0 0; color: #e1f0ed; font-size: 1.1rem; }

.library {
  display: grid;
  grid-template-columns: minmax(275px, .8fr) minmax(0, 2fr);
  align-items: start;
  gap: 25px;
  padding-block: 26px 44px;
  min-height: 55vh;
}
.program, .detail {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 3px 18px rgba(20,45,49,.035);
}
.program-toggle { display: none; }
.program-header { padding: 19px 16px 16px; border-bottom: 1px solid var(--line); }
.program-title { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.program-title h2, .materials h3 { margin: 0; letter-spacing: -.025em; }
.program-title h2 { font-size: 1.28rem; }
.talk-count { color: var(--muted); font-size: .79rem; white-space: nowrap; }
.days {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 3px;
  margin: 15px 0 12px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.days button {
  padding: 4px 2px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
  white-space: nowrap;
}
.days button[aria-pressed="true"] { background: var(--white); border-color: var(--line); color: var(--accent-strong); }
.days button:hover { color: var(--accent-strong); }
.search-label, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.search-field { position: relative; }
.search-icon {
  position: absolute;
  top: 14px;
  left: 13px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.search-icon::after {
  content: "";
  position: absolute;
  height: 5px;
  width: 1.5px;
  top: 9px;
  left: 10px;
  transform: rotate(-45deg);
  background: var(--muted);
}
.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 12px 6px 36px;
  color: var(--ink);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.talk-list { max-height: 66vh; overflow-y: auto; padding: 8px 8px 10px; }
.day-heading {
  margin: 0;
  padding: 13px 9px 7px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.talk-item {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-height: 57px;
  padding: 10px 8px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
}
.talk-item:hover { background: var(--paper); }
.talk-item:focus-visible { outline-offset: -2px; }
.talk-item[aria-current="true"] { background: var(--soft-accent); border-color: #c4e6db; }
.talk-time { color: var(--accent-strong); padding-top: 2px; font-size: .76rem; font-weight: 690; font-variant-numeric: tabular-nums; }
.talk-name { display: block; font-size: .94rem; line-height: 1.2; font-weight: 690; }
.talk-topic { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.list-message { margin: 8px 4px; padding: 9px; color: var(--muted); font-size: .94rem; }

.detail { padding: clamp(16px, 2.25vw, 28px); }
.detail-header { margin-bottom: 19px; }
.talk-date { margin: 0 0 9px; color: var(--accent-strong); font-size: .82rem; font-weight: 700; }
.detail h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.55rem); line-height: 1.08; letter-spacing: -.04em; overflow-wrap: anywhere; }
.speaker { margin: 9px 0 0; color: var(--muted); font-weight: 640; font-size: .96rem; }
.summary { max-width: 78ch; margin: 9px 0 0; font-size: .95rem; line-height: 1.55; }
.player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #122527;
  border-radius: 11px;
}
.player-youtube { min-height: 200px; }
.player iframe, .player video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.player-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  gap: 2px 12px;
  color: var(--muted);
  font-size: .83rem;
}
.player-meta a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; text-decoration: none; font-weight: 650; }
.materials { border-top: 1px solid var(--line); padding-top: 15px; }
.materials h3 { font-size: 1.16rem; }
.documents { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 9px; margin-top: 12px; }
.document {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 57px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
}
.document:hover { background: var(--paper); border-color: #aac8c0; }
.file-type { color: var(--accent-strong); background: var(--soft-accent); padding: 4px; border-radius: 4px; font-size: .66rem; font-weight: 800; }
.file-title { display: block; font-size: .82rem; font-weight: 690; line-height: 1.2; }
.file-size { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }
.file-arrow { color: var(--accent-strong); font-size: .92rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  font-size: .77rem;
}
.footer-inner a { text-underline-offset: 2px; }

@media (max-width: 840px) {
  .wrap { width: calc(100% - 36px); }
  .library { gap: 15px; grid-template-columns: minmax(250px, .86fr) minmax(0, 1.5fr); }
}

@media (max-width: 690px) {
  .wrap { width: auto; margin-left: max(14px, env(safe-area-inset-left)); margin-right: max(14px, env(safe-area-inset-right)); }
  .masthead { min-height: 52px; }
  .brand { gap: 8px; }
  .brand-name, .header-link { font-size: .8rem; }
  .brand-mark { min-height: 30px; padding-inline: 7px; font-size: .73rem; }
  .hero {
    background-image: linear-gradient(90deg, rgba(17,46,50,.96), rgba(17,46,50,.74) 55%, rgba(17,46,50,.4)), url("assets/hero.jpg");
    background-position: center, 58% 70%;
  }
  .hero-inner { padding-block: 22px 23px; }
  .event-date { font-size: .71rem; letter-spacing: .06em; }
  .hero h1 { font-size: clamp(1.75rem, 7.65vw, 2.7rem); text-wrap: unset; }
  .event-subtitle { margin-top: 8px; font-size: .94rem; }
  .library { display: block; padding-block: 12px 24px; }
  .program-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin-bottom: 12px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    font-weight: 690;
    text-align: left;
  }
  .chevron {
    width: 8px;
    height: 8px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    margin-right: 4px;
    transform: translateY(-2px) rotate(45deg);
  }
  .program-toggle[aria-expanded="true"] .chevron { transform: translateY(2px) rotate(225deg); }
  .program-toggle[aria-expanded="false"] + .program { display: none; }
  .program { margin-bottom: 12px; }
  .talk-list { max-height: 47vh; max-height: 47dvh; }
  .days button { min-height: 44px; }
  .detail { border-radius: 12px; padding: 13px; }
  .detail-header { display: flex; flex-direction: column; margin-bottom: 12px; }
  .talk-date { margin-bottom: 6px; font-size: .78rem; }
  .detail h2 { font-size: clamp(1.35rem, 5.2vw, 2rem); }
  .speaker { margin-top: 7px; font-size: .88rem; }
  .summary { margin-top: 7px; font-size: .87rem; line-height: 1.45; }
  .player { border-radius: 7px; }
  .player-meta { font-size: .79rem; }
  .materials { padding-top: 12px; }
  .documents { grid-template-columns: 1fr; gap: 7px; margin-top: 9px; }
  .document { min-height: 54px; padding-inline: 10px; }
}


.site-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 25px); }
.site-nav [aria-current="page"] { color: var(--ink); }

@media (max-width: 355px) {
  .masthead .brand-name { display: none; }
}

.player .pending-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
