/* ==========================================================================
   Beijing Shoulder Course 2026 - Annual Academic Meeting
   Palette and type scale are taken from the printed flyer (2-page A5 PDF).
   ========================================================================== */

:root {
  /* Brand colours sampled from the printed flyer */
  --navy: #082D6B;        /* deep navy - footer band, headings   */
  --navy-deep: #061F4C;   /* darker navy for gradients           */
  --ink: #17365F;         /* body / heading text                 */
  --blue: #0752B4;        /* accent blue - labels, rules         */
  --blue-deep: #003DAB;   /* hero blue, from the gradient asset  */
  --cyan: #43D4F4;        /* accent cyan - rules, links          */
  --bg: #F1F6FC;          /* page background                     */
  --surface: #FFFFFF;
  --line: #D3E2F5;        /* card borders                        */
  --muted: #5B7190;       /* secondary text                      */

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(8, 45, 107, .06), 0 4px 14px rgba(8, 45, 107, .06);
  --shadow-md: 0 2px 6px rgba(8, 45, 107, .07), 0 16px 38px rgba(8, 45, 107, .10);
  --shadow-lg: 0 30px 70px rgba(4, 24, 60, .32);

  --wrap: 1140px;
  --gutter: 20px;
  --section-y: clamp(56px, 8vw, 104px);

  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--cyan); color: var(--navy); }

/* ----------------------------------------------------------- utilities -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--cyan);
}
.eyebrow--onDark { color: var(--cyan); }
.eyebrow--onDark::before { background: var(--cyan); }

.eyebrow .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .7;
}

.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--primary { background: var(--blue); box-shadow: 0 10px 24px rgba(7, 82, 180, .28); }
.btn--primary:hover { background: #06459B; box-shadow: 0 14px 30px rgba(7, 82, 180, .34); }

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--blue);
}
.btn--outline:hover { border-color: var(--blue); background: rgba(7, 82, 180, .06); }

.btn--cyan {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(67, 212, 244, .28);
}
.btn--cyan:hover { background: #6BDEF7; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
}
.chip--muted {
  border-color: transparent;
  background: rgba(7, 82, 180, .10);
  color: var(--blue);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}

/* Cards -------------------------------------------------------------- */
.card {
  position: relative;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* The printed flyer's "Date & Venue" panel carries a blue bar on its left edge. */
.card--accent { border-left: 0; }
.card--accent::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--blue);
}

.card__eyebrow {
  color: var(--blue);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card__lead {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.card__body { margin-top: 10px; color: var(--ink); font-size: 1rem; }
.card__note { margin-top: 12px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.card__tag {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 246, 252, .82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(160%);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(8, 45, 107, .07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 46px; height: 47px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 45, 107, .05);
}
.lang-switch button {
  min-width: 36px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.lang-switch button:hover { color: var(--navy); }
.lang-switch button.is-on {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 14px rgba(8, 45, 107, .22);
}
html[data-lang="zh"] .hero__title,
html[data-lang="zh"] .brand__text span { text-transform: none; letter-spacing: .02em; }
.site-nav__list { display: flex; align-items: center; gap: 26px; }
.site-nav__list a {
  position: relative;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  padding: 6px 0;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav__list a:hover { color: var(--navy); text-decoration: none; }
.site-nav__list a:hover::after,
.site-nav__list a.is-active::after { transform: scaleX(1); }
.site-nav__list a.is-active { color: var(--navy); font-weight: 700; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; justify-content: center; }
.nav-toggle__bars i {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  min-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 84px) 0 clamp(70px, 8vw, 96px);
  background: var(--blue-deep);
}

/* Hero artwork extracted from the printed flyer. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-gradient.png") center / cover no-repeat, var(--blue-deep);
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 8% 12%, rgba(4, 24, 60, .80) 0%, rgba(4, 24, 60, .48) 42%, rgba(4, 24, 60, 0) 72%),
    linear-gradient(180deg, rgba(4, 24, 60, .32) 0%, rgba(4, 24, 60, .10) 45%, rgba(4, 24, 60, .55) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero__copy { position: relative; max-width: 640px; }
/* cyan rule, echoing the divider beside the flyer's hero lockup */
.hero__copy::before {
  content: "";
  position: absolute;
  left: -22px; top: 6px;
  width: 4px; height: 74px;
  border-radius: 4px;
  background: var(--cyan);
  opacity: .9;
}

.hero__title {
  margin: 0 0 6px;
  font-size: clamp(2.5rem, 6.6vw, 4.4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__year {
  display: block;
  color: var(--cyan);
  font-size: .62em;
  letter-spacing: .02em;
}

.hero__subtitle {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  font-weight: 600;
  letter-spacing: .01em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta .ic { color: var(--cyan); font-size: .5rem; }

.countdown {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  max-width: 460px;
}
.countdown__label {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .74);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.countdown__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.countdown__list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07);
}
.countdown__num {
  color: #fff;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.countdown__unit {
  margin-top: 3px;
  color: rgba(255, 255, 255, .68);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 22px; height: 36px;
  margin-left: -11px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(11px); opacity: .35; }
}

/* --------------------------------------------------------------- facts -- */
.facts {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.facts__item {
  position: relative;
  padding: 30px 24px 32px;
  border-left: 1px solid var(--line);
}
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts__num {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.facts__item strong {
  display: block;
  color: var(--navy);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.facts__item span:last-child { color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------- section -- */
.section { padding: var(--section-y) 0; }
.section--tint {
  background: #E7EFFA;
  border-block: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section__title {
  max-width: 22ch;
  color: var(--navy);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
}
.section__intro { color: var(--muted); font-size: 1rem; }

/* ------------------------------------------------- programme timeline -- */
.agenda-shell { position: relative; }

.agenda-dayband {
  margin: 0 0 28px;
}
.agenda-dayband__date {
  color: var(--navy);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.agenda-dayband__date::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan) 0%, #2aa8e8 58%, var(--blue) 100%);
}

.agenda-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-left: 4px solid var(--cyan);
  border-radius: 12px;
  background: #fff;
  color: #2b4c78;
  font-size: .86rem;
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
}
.agenda-notice__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
}

.agenda-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.agenda-toolbar__lbl {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.agenda-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}

.ag-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
}
.ag-badge.lecture { background: #e8f0ff; color: #14418f; }
.ag-badge.discussion { background: #e6f4ec; color: #1c6b45; }
.ag-badge.case { background: #fdeaf7; color: #a5307c; }
.ag-badge.break,
.ag-badge.lunch { background: #eef1f6; color: #61708a; }
.ag-badge.ceremony { background: #e6fbff; color: #0b6a94; }
.ag-badge.special { background: #fff2e0; color: #8a5a08; }
.ag-badge.sessionhead { background: #10377e; color: #fff; }

.ag-timeline {
  --ag-time: 10rem;
  --ag-gap: 2rem;
  --ag-indent: 24px;
  --ag-dot-parent: 16px;
  --ag-dot-child: 8px;
  position: relative;
}
.ag-timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--ag-time) + var(--ag-gap) / 2 - 1px);
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue) 55%, #c9d8ef);
  opacity: .55;
}

.ag-slot {
  display: grid;
  grid-template-columns: var(--ag-time) minmax(0, 1fr);
  column-gap: var(--ag-gap);
  padding: 7px 0;
}
.ag-slot__time {
  padding-top: 18px;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}
.ag-slot__time span {
  display: inline;
  margin-left: 2px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.ag-slot__body {
  position: relative;
  padding: 15px 18px 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ag-slot__body:hover {
  border-color: #b9d0ee;
  box-shadow: var(--shadow-md);
}
.ag-slot__body::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--ag-gap) / 2 - 6px);
  top: 24px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--bg);
}
.ag-slot--lecture .ag-slot__body { border-left-color: #0752b4; }
.ag-slot--lecture .ag-slot__body::before { border-color: #0752b4; }
.ag-slot--discussion .ag-slot__body { border-left-color: #1c6b45; background: #f7fcf9; }
.ag-slot--discussion .ag-slot__body::before { border-color: #1c6b45; }
.ag-slot--case .ag-slot__body { border-left-color: #a5307c; background: #fff8fc; }
.ag-slot--case .ag-slot__body::before { border-color: #a5307c; }
.ag-slot--ceremony .ag-slot__body { border-left-color: var(--cyan); }
.ag-slot--ceremony .ag-slot__body::before { border-color: var(--cyan); }
.ag-slot--special .ag-slot__body { border-left-color: #c98412; background: #fffaf1; }
.ag-slot--special .ag-slot__body::before { border-color: #c98412; }
.ag-slot--break .ag-slot__body,
.ag-slot--lunch .ag-slot__body {
  border-left-color: #93a3bb;
  background: #f7f9fc;
}
.ag-slot--break .ag-slot__body::before,
.ag-slot--lunch .ag-slot__body::before { border-color: #93a3bb; }

.ag-slot__head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.ag-slot__head h3 {
  flex: 1;
  min-width: 200px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}
.ag-slot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 10px 0 0;
  color: #3d4d68;
  font-size: .86rem;
}
.ag-slot__meta--panel { color: var(--muted); font-size: .82rem; }
.ag-role {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3fa;
  color: #5b7190;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.ag-slot--parent {
  margin: 18px 0 4px;
  padding: 4px 0;
}
.ag-slot--parent .ag-slot__time {
  padding-top: 20px;
  color: var(--navy);
  font-size: 1.05rem;
}
.ag-slot--parent .ag-slot__time span {
  display: inline;
  margin-left: 2px;
}
.ag-slot--parent .ag-slot__body {
  padding: 18px 22px;
  border: 1px solid #c5d8f0;
  border-left: 4px solid var(--blue);
  background: #e7f0fb;
  box-shadow: var(--shadow-sm);
}
.ag-slot--parent .ag-slot__body:hover { border-color: #9dc0e6; }
.ag-slot--parent .ag-slot__body h3 {
  color: var(--navy);
  font-size: 1.1rem;
}
.ag-slot--parent .ag-slot__body::before {
  top: 28px;
  width: var(--ag-dot-parent);
  height: var(--ag-dot-parent);
  border: 4px solid var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--bg);
}
.ag-slot--parent .ag-badge.sessionhead {
  background: var(--blue);
  color: #fff;
}

.ag-children {
  position: relative;
  margin: 0 0 20px;
}

.ag-slot--child { padding: 5px 0; }
.ag-slot--child .ag-slot__time {
  padding-top: 14px;
  color: #7b8ea6;
  font-size: .92rem;
}
.ag-slot--child .ag-slot__body {
  padding: 13px 16px;
  border: 1px solid #e4e8ee;
  border-left-width: 3px;
  background: #f4f6f8;
  box-shadow: none;
}
.ag-slot--child .ag-slot__body:hover {
  border-color: #d4dbe4;
  box-shadow: none;
}
.ag-slot--child .ag-slot__body::before {
  left: calc(-1 * var(--ag-gap) / 2 - 4px);
  top: 20px;
  width: var(--ag-dot-child);
  height: var(--ag-dot-child);
  border: 2px solid #9aafc8;
  background: #eef3f8;
  box-shadow: 0 0 0 3px var(--bg);
}
.ag-slot--child.ag-slot--lecture .ag-slot__body,
.ag-slot--child.ag-slot--discussion .ag-slot__body,
.ag-slot--child.ag-slot--case .ag-slot__body,
.ag-slot--child.ag-slot--break .ag-slot__body,
.ag-slot--child.ag-slot--lunch .ag-slot__body,
.ag-slot--child.ag-slot--ceremony .ag-slot__body,
.ag-slot--child.ag-slot--special .ag-slot__body {
  background: #f4f6f8;
}
.ag-slot--child.ag-slot--lecture .ag-slot__body::before,
.ag-slot--child.ag-slot--discussion .ag-slot__body::before,
.ag-slot--child.ag-slot--case .ag-slot__body::before,
.ag-slot--child.ag-slot--break .ag-slot__body::before,
.ag-slot--child.ag-slot--lunch .ag-slot__body::before,
.ag-slot--child.ag-slot--ceremony .ag-slot__body::before,
.ag-slot--child.ag-slot--special .ag-slot__body::before {
  border-color: #9aafc8;
}

.ag-group {
  display: grid;
  grid-template-columns: var(--ag-time) minmax(0, 1fr);
  column-gap: var(--ag-gap);
  margin: 2px 0;
  padding: 0;
  background: none;
}
.ag-group > .ag-slot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--ag-time) minmax(0, 1fr);
  column-gap: var(--ag-gap);
}
.ag-group__head {
  grid-column: 2;
  margin: 4px 0 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #eef1f4;
}
.ag-group__head .ag-slot__meta { margin: 0; }
.ag-group__head .ag-slot__meta + .ag-slot__meta { margin-top: 6px; }

.ag-pname {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 1px 9px;
  border: 1px solid rgba(7, 82, 180, .16);
  border-radius: 999px;
  background: #f3f8ff;
  color: var(--blue);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, transform .14s ease;
}
.ag-pname:hover {
  background: #e4efff;
  border-color: var(--blue);
  text-decoration: none;
}
.ag-pname:focus-visible { outline-offset: 2px; }
.ag-slot--parent .ag-pname {
  background: #fff;
  border-color: rgba(7, 82, 180, .18);
}

.pm[hidden] { display: none; }
.pm {
  position: fixed;
  inset: 0;
  z-index: 240;
}
.pm__mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 54, .5);
  backdrop-filter: blur(3px);
}
.pm__box {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: min(720px, 92vw);
  max-height: 84vh;
  padding-top: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(6, 20, 48, .35);
  transform: translate(-50%, -50%);
}
.pm__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8fa0b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.pm__close:hover { background: #f1f5fb; color: var(--ink); }
.pm__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(180px, 70%);
  margin: 2px auto 14px;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
}
.pm__avatar--letter {
  width: 72px;
  height: 72px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), #2f7fd0);
  box-shadow: 0 8px 22px rgba(16, 55, 126, .22);
}
.pm__avatar--photo {
  background: transparent;
}
.pm__avatar--photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  background: #f4f7fb;
}
.pm__head {
  padding: 18px 26px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.pm__head h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
}
.pm__head p {
  margin: 0;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.pm__body {
  padding: 6px 26px 22px;
  overflow-y: auto;
}
.pm__bio {
  margin: 8px 0 4px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f9fd;
}
.pm__bio-label {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.pm__affil {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
}
.pm__intro {
  margin: 0;
  color: #3d4d68;
  font-size: .95rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.pm__cv {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.pm__cv:hover { background: var(--blue); }
.cv-view {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(8, 24, 54, .78);
}
.cv-view__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #fff;
}
.cv-view__bar p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.cv-view__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.cv-view__frame {
  display: block;
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
.pm__sched-label {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 800;
}
.pm__empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.pm-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pm-list li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 10px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pm-list li:last-child { border-bottom: 0; }
.pm-time {
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.45;
  padding-top: 1px;
}
.pm-title {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}
.pm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.pm-role {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}
.pm-role-dot { color: #c3cedd; }
body.modal-open { overflow: hidden; }

/* ------------------------------------------------------------- faculty -- */
.faculty-group { scroll-margin-top: 96px; }
.faculty-band { margin: 0 0 22px; }
.faculty-band--next { margin-top: clamp(40px, 6vw, 64px); }
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.faculty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.faculty-card:hover {
  transform: translateY(-3px);
  border-color: #b9d0ee;
  box-shadow: var(--shadow-md);
}
.faculty-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e7effa center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(8, 45, 107, .08);
}
.faculty-card__photo--letter {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy), #2f7fd0);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}
.faculty-card__name {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}
.faculty-card__org {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.faculty-card__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.faculty-card__role {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

/* ----------------------------------------------------------- programme -- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card--feature { padding: 30px 28px 32px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card--feature:hover {
  transform: translateY(-4px);
  border-color: #B9D0EE;
  box-shadow: var(--shadow-md);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(7, 82, 180, .10);
  color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.card__text { color: var(--muted); font-size: .96rem; }

.timeline-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px dashed #B9D0EE;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  color: var(--muted);
  font-size: .92rem;
}

/* --------------------------------------------------------------- venue -- */
.venue {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: stretch;
}

/* Stylised map panel - no external tiles, so the page works offline. */
.venue__map {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, #E9F1FC 0%, #DCE8F8 100%);
  box-shadow: var(--shadow-sm);
}
.venue__map-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(7, 82, 180, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 82, 180, .10) 1px, transparent 1px),
    linear-gradient(rgba(7, 82, 180, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 82, 180, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px;
  transform: rotate(-11deg);
}
.venue__map::after {
  /* river / avenue sweep */
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 16%;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(67, 212, 244, .30), rgba(7, 82, 180, .12));
  transform: rotate(-9deg);
  filter: blur(1px);
}
.venue__pin {
  position: absolute;
  left: 50%; top: 46%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.venue__pin-dot {
  position: relative;
  width: 18px; height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 6px 18px rgba(8, 45, 107, .35);
}
.venue__pin-dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border: 2px solid rgba(7, 82, 180, .45);
  border-radius: 50%;
  animation: pinPulse 2.6s ease-out infinite;
}
@keyframes pinPulse {
  0% { transform: scale(.6); opacity: .85; }
  100% { transform: scale(1.5); opacity: 0; }
}
.venue__pin-label {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(8, 45, 107, .25);
}
.venue__map-caption {
  position: absolute;
  left: 22px; bottom: 20px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.venue__info {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.venue__name {
  color: var(--navy);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.venue__address { margin-top: 12px; color: var(--ink); }
.venue__city {
  margin-top: 10px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.venue__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 28px; }
.venue__date {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.venue__date strong { color: var(--navy); }

/* ---------------------------------------------------------------- host -- */
.host {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.host__card { padding: 30px 28px; }
.host__name {
  color: var(--navy);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.015em;
}
.host__role {
  margin-top: 8px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- footer -- */
.site-footer {
  border-top: 3px solid var(--cyan);
  background: var(--navy);
  color: #fff;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  padding-block: 22px;
  text-align: center;
}
.site-footer__org {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-footer__org .sep { margin-inline: 6px; color: var(--cyan); }
.site-footer__meta { color: rgba(255, 255, 255, .66); font-size: .82rem; }
.site-footer__pager {
  flex: 1 0 100%;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}
.site-footer__pager a {
  color: inherit;
  text-decoration: none;
}
.site-footer__pager a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- toast --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 14px);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ------------------------------------------------------------- reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 1024px) {
  .hero__copy::before { display: none; }
  .venue { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .agenda-toolbar__lbl { flex: 1 0 100%; }
  .agenda-legend { margin-left: 0; }
}

@media (max-width: 880px) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item { border-left: 0; padding-inline: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ag-timeline { --ag-time: auto; --ag-gap: 8px; --ag-indent: 16px; }
  .ag-timeline::before { display: none; }
  .ag-slot,
  .ag-group,
  .ag-group > .ag-slot {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 8px;
    padding: 6px 0;
  }
  .ag-group__head { grid-column: 1; }
  .ag-slot--parent { margin-top: 12px; }
  .ag-slot--child .ag-slot__body::before,
  .ag-slot--parent .ag-slot__body::before { display: none; }
  .ag-slot__time {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef4fc;
    font-size: .82rem;
    text-align: left;
  }
  .ag-slot__time span { display: inline; margin: 0; }
  .ag-slot__body::before { display: none; }
  .agenda-legend { width: 100%; margin-left: 0; }
  .pm-list li { grid-template-columns: 1fr; gap: 4px; }
  .pm-time { font-size: .95rem; }
  .faculty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .faculty-card {
    gap: 6px;
    padding: 12px 12px 14px;
    border-radius: 14px;
  }
  .faculty-card__photo {
    width: 48px;
    height: 48px;
  }
  .faculty-card__photo--letter { font-size: 1.1rem; }
  .faculty-card__name {
    font-size: .92rem;
    overflow-wrap: anywhere;
  }
  .faculty-card__org { font-size: .75rem; }
  .faculty-card__role {
    padding: 2px 6px;
    font-size: .68rem;
  }
}

@media (max-width: 780px) {
  .site-nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__list a { padding: 12px 10px; border-radius: var(--radius-sm); }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover,
  .site-nav__list a.is-active { background: rgba(7, 82, 180, .07); text-decoration: none; }
  .nav-toggle { display: grid; place-items: center; }
  .lang-switch { margin-left: auto; }
  .site-nav { margin-left: 0; }

  .host { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__scroll { display: none; }
  .section__title { max-width: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts__list { grid-template-columns: 1fr; }
  .facts__item:nth-child(n+2) { border-top: 1px solid var(--line); }
  .countdown__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venue__actions .btn { width: 100%; }
  .site-footer__inner { flex-direction: column; align-items: center; }
}

/* ------------------------------------------------------ motion / print -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span, .venue__pin-dot::after { animation: none; }
  .btn:hover, .card--feature:hover { transform: none; }
}

@media (max-width: 720px) {
  .cv-view {
    padding: 0;
    background: #061f4c;
  }
  .cv-view__bar {
    margin: 0;
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: #082d6b;
  }
  .cv-view__bar p {
    min-width: 0;
    font-size: .92rem;
    line-height: 1.35;
  }
  .cv-view__close {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .14);
  }
  .cv-view__frame { border-radius: 0; }
}

@media print {
  .site-header, .hero__scroll, .toast, .lang-switch, .pm { display: none !important; }
  body { background: #fff; }
  .hero { background: #fff; color: var(--ink); }
  .hero__bg, .hero__veil { display: none; }
  .hero__title, .hero__subtitle, .hero__meta { color: var(--ink); }
  .hero__year { color: var(--blue); }
  .reveal { opacity: 1; transform: none; }
  .section, .facts { break-inside: avoid; }
}
