/* ============================================================
   iTHUS 2026  —  Academic White Paper aesthetic
   Static, refined, text-forward. Minimal motion.
   ============================================================ */

/* ----------  Design tokens  ---------- */
:root {
  /* palette — warm white paper + ink + observatory blue + signal gold */
  --bg:            #f7f5f0;   /* warm paper */
  --bg-2:          #f1eee6;   /* slightly deeper paper, alt sections */
  --bg-card:       #ffffff;   /* lifted cards */
  --ink:           #1a1a1a;   /* primary ink */
  --ink-2:         #3a3a3a;   /* secondary */
  --ink-3:         #6b6b6b;   /* tertiary / meta */
  --ink-4:         #9a958a;   /* faint / hairline labels */
  --rule:          #d9d4c7;   /* hairline rules on paper */
  --rule-2:        #c9c3b3;   /* slightly stronger rule */
  --blue:          #1a3a5c;   /* observatory blue */
  --blue-soft:     #2c5377;
  --gold:          #b08433;   /* signal gold (accent) */
  --gold-soft:     #c9a45a;

  /* type */
  --serif:   "Cormorant Garamond", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --sans:    "Inter", -apple-system, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono:    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  /* layout */
  --maxw:     1180px;
  --gutter:   clamp(20px, 5vw, 64px);
  --read:     760px;          /* measure for prose */
  --nav-h:    56px;           /* sticky topbar height, for anchor offset */

  /* timing */
  --t-fast: 180ms;
  --t-med:  320ms;
  --ease:   cubic-bezier(.2, .7, .2, 1);
}

/* ----------  Reset-ish  ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* ensure the hidden attribute always wins, even over display rules below */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Offset anchored scroll so the sticky topbar never covers the target. */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* subtle paper texture via layered gradients (no image loads) */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(176,132,51,.025), transparent 40%),
    radial-gradient(circle at 88% 88%, rgba(26,58,92,.022), transparent 45%);
  background-attachment: fixed;
}
::selection { background: rgba(26,58,92,.14); color: var(--ink); }
/* dark surfaces: the default ink-on-dark selection would vanish */
.topbar ::selection,
.footer ::selection,
.preview-banner ::selection,
.admin-toast ::selection {
  background: rgba(201,164,90,.45);
  color: #f7f5f0;
}

/* ----------  Internal-preview toast (floating)  ---------- */
.preview-banner { display: none; }
html.on-preview .preview-banner {
  display: block;
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  max-width: 300px;
  background: #11140f;
  border: 1px solid #3a3d33;
  border-left: 3px solid var(--gold);
  padding: 13px 36px 13px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
html.on-preview .preview-banner.is-dismissed { display: none; }
.preview-banner__tag {
  display: block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 5px;
}
.preview-banner__note {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px; line-height: 1.55;
  color: #9a958a;
}
.preview-banner__close {
  position: absolute; top: 4px; right: 6px;
  background: none; border: none;
  color: #6b675e; font-size: 16px; line-height: 1;
  cursor: pointer; padding: 5px;
}
.preview-banner__close:hover { color: var(--gold-soft); }
@media (max-width: 640px) {
  html.on-preview .preview-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ----------  Top bar (merged meta + nav, dark)  ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #11140f;          /* near-black olive */
  border-bottom: 1px solid #000;
  color: #cfc9bb;
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f7f5f0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .01em;
  flex: 0 0 auto;
}
.topbar__mark {
  width: 19px; height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 90, .55);
  flex: 0 0 auto;
  object-fit: cover;
}
.topbar__word em {
  font-style: normal;
  color: var(--gold);
  font-size: .82em;
  letter-spacing: .04em;
  margin-left: 1px;
}

.topbar__links {
  flex: 1;
  display: flex;
  gap: 26px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}.topbar__links a { flex: 1 1 0; text-align: center; }

.topbar__links a {
  text-decoration: none;
  color: #b8b3a6;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}
.topbar__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 1px; background: var(--gold-soft);
  transition: right var(--t-med) var(--ease);
}
.topbar__links a:hover, .topbar__links a.is-active { color: #f7f5f0; }
.topbar__links a:hover::after, .topbar__links a.is-active::after { right: 0; }

.topbar__tail {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.topbar__loc {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a857a;
  white-space: nowrap;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid #3a3d33;
  border-radius: 2px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.lang-toggle__opt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 5px 9px;
  color: #8a857a;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-toggle__opt.is-active {
  background: var(--gold);
  color: #11140f;
}

@media (max-width: 1000px) {
  .topbar__loc { display: none; }
}
/* the nav now carries 8 items; free up space earlier than before */
@media (max-width: 1240px) {
  .topbar__loc { display: none; }
  .topbar__links { gap: clamp(14px, 2vw, 22px); }
}
/* hamburger button (hidden on desktop; the media query below shows it) */
.topbar__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px; height: 34px;
  padding: 0 7px;
  background: transparent;
  border: 1px solid #3a3d33;
  border-radius: 2px;
  cursor: pointer;
}
.topbar__menu span {
  display: block;
  height: 1.5px;
  background: #cfc9bb;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.topbar.nav-open .topbar__menu span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.topbar.nav-open .topbar__menu span:nth-child(2) { opacity: 0; }
.topbar.nav-open .topbar__menu span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.topbar__menu:hover { border-color: var(--gold); }
.topbar__menu:hover span { background: var(--gold-soft); }

@media (max-width: 860px) {
  .topbar__inner { justify-content: space-between; gap: 14px; }
  /* the link row becomes a dropdown panel, toggled by the hamburger */
  .topbar__links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #11140f;
    border-bottom: 1px solid #000;
    box-shadow: 0 16px 34px rgba(0,0,0,.4);
    padding: 6px 0;
  }
  .topbar.nav-open .topbar__links { display: flex; }
  .topbar__links a { padding: 12px var(--gutter); font-size: 14px; flex: none; text-align: left; }
  .topbar__links a::after { display: none; }
  .topbar__links a.is-active { color: var(--gold-soft); }
  .topbar__menu { display: inline-flex; }
}

/* ----------  Hero  ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) var(--gutter) clamp(72px, 10vh, 120px);
}
.hero__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  /* faint constellation of dots — pure CSS, no assets */
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(26,58,92,.18), transparent 60%),
    radial-gradient(1px 1px at 84% 16%, rgba(26,58,92,.14), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 64%, rgba(176,132,51,.16), transparent 60%),
    radial-gradient(1px 1px at 28% 78%, rgba(26,58,92,.12), transparent 60%),
    radial-gradient(1px 1px at 48% 40%, rgba(26,58,92,.10), transparent 60%),
    radial-gradient(1px 1px at 92% 80%, rgba(176,132,51,.12), transparent 60%);
  opacity: .9;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 36px;
}
.hero__rule { width: 56px; height: 1px; background: var(--blue); display: inline-block; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.3vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 18ch;
}
.hero__title-en, .hero__title-zh { display: block; }
html[lang="en"]  .hero__title-zh { display: none; }
html[lang^="zh"] .hero__title-en { display: none; }
.hero__title-line { display: block; }
.hero__initial {
  font-style: italic;
  color: var(--blue);
  font-weight: 500;
  font-size: 1.08em;
}

.hero__sub { margin-bottom: 56px; }
.hero__zh {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--ink-3);
  letter-spacing: .02em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px;
}
.hero__meta-item {
  flex: 1 1 200px;
  padding-right: 28px;
}
.hero__meta-divider {
  width: 1px;
  background: var(--rule);
  margin: 4px 0;
  align-self: stretch;
}
.hero__meta-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.hero__meta-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: .005em;
}
.hero__meta-note {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 13px 22px;
  text-decoration: none;
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--blue);
  color: #f7f5f0;
  border: 1px solid var(--blue);
}
.btn--primary:hover { background: #14304a; border-color: #14304a; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-2);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero__scroll {
  margin-top: clamp(48px, 8vh, 96px);
  display: flex;
  justify-content: center;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--blue), transparent);
  display: inline-block;
}

/* hero two-column: acrostic title (left) + poster plate (right) */
.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__poster {
  width: clamp(280px, 30vw, 420px);
  flex: 0 0 auto;
}
.hero__poster img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 22px 54px rgba(10, 14, 26, .22);
}

/* narrow screens: hide the poster so the hero stays focused */
@media (max-width: 900px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__poster { display: none; }
}

@media (max-width: 640px) {
  .hero__meta-divider { display: none; }
  .hero__meta-item { flex-basis: 100%; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .hero__meta-item:last-child { border-bottom: none; }
}

/* ----------  Section frame  ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) var(--gutter);
  position: relative;
}
.section--alt {
  max-width: none;
  margin-left: auto; margin-right: auto;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  align-items: baseline;
  margin-bottom: clamp(40px, 6vh, 72px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.section__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold);
  grid-column: 1;
}
.section__title {
  grid-column: 2;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.005em;
  color: var(--ink);
}
.section__kicker {
  grid-column: 2;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-3);
  font-style: italic;
  font-family: var(--serif);
}
@media (max-width: 600px) {
  .section__head { grid-template-columns: 1fr; }
  .section__num, .section__title, .section__kicker { grid-column: 1; }
  .section__num { margin-bottom: 4px; }
}

/* ----------  Prose (About)  ---------- */
.prose { max-width: var(--read); }
.prose p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-2);
  margin: 0 0 1.4em;
  text-align: justify;
  hyphens: auto;
  text-justify: inter-character;
}
/* Chinese mode: drop justification & hyphenation (they don't suit CJK) */
html[lang^="zh"] .prose p { text-align: left; hyphens: manual; }
.prose__lead {
  font-family: var(--serif) !important;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem) !important;
  line-height: 1.4 !important;
  color: var(--ink) !important;
  font-weight: 400;
  margin-bottom: 1.6em !important;
  text-align: left !important;
}
.pullquote {
  margin: 2.4em 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--gold);
}
.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  text-align: left;
}

/* ----------  Themes  ---------- */
.themes-intro {
  /* no horizontal margins of its own: inherits the centered 1180px box
     from .section--alt > *, so it stays flush with the theme cards */
  margin-bottom: clamp(28px, 4vh, 44px);
  padding-right: clamp(24px, 10vw, 200px);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.themes-intro[data-zh] { letter-spacing: .01em; }

.themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.theme {
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
}
.theme__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}
.theme__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 6px;
}
.theme__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.theme__body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 24px;
  flex: 1;
}
.theme__tags {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.theme__tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding: 3px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--bg-card);
}
@media (max-width: 880px) {
  .themes { grid-template-columns: 1fr; }
}

/* ----------  Programme  ---------- */
.prog-legend {
  display: flex; flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 36px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.prog-legend__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--key   { background: var(--blue); }
.dot--talk  { background: var(--gold); }
.dot--disc  { background: transparent; border: 1.5px solid var(--blue); box-sizing: border-box; }
.dot--break { background: var(--rule-2); }

.prog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.prog__day {
  background: var(--bg);
  display: flex; flex-direction: column;
}
.prog__day-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
}
.prog__day-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.prog__day-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
}
.prog__rows { display: flex; flex-direction: column; padding: 12px 14px 14px; gap: 12px; }
/* pre-conference day (Nov 10) spans the whole grid width */
.prog__day--pre { grid-column: 1 / -1; }
.prog__day--pre .prog__rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) {
  .prog__day--pre .prog__rows { grid-template-columns: 1fr; }
}

/* morning / afternoon / evening sub-panels — slightly separated cards */
.prog__group {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.prog__group-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.prog__session-no { display: block; }
.prog__session-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.3;
}
.prog__group .prog__row:last-child { border-bottom: none; }
.prog__group .prog__row { padding: 10px 14px; }
.prog__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  align-items: baseline;
}
.prog__row:last-child { border-bottom: none; }
.prog__time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .02em;
  white-space: nowrap;
}
.prog__time--pm { color: var(--ink-3); }
.prog__cell { color: var(--ink-2); line-height: 1.45; }
.prog__cell--key  { color: var(--ink); font-weight: 500; border-left: 2px solid var(--blue); padding-left: 10px; margin-left: -12px; }
.prog__cell--talk { border-left: 2px solid var(--gold); padding-left: 10px; margin-left: -12px; }
.prog__cell--disc { color: var(--blue); font-style: italic; font-family: var(--serif); font-size: 14px; }
.prog__cell--break { color: var(--ink-4); }

.prog__note {
  max-width: var(--read);
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}

@media (max-width: 880px) {
  .prog { grid-template-columns: 1fr; }
}

/* ----------  Speakers  ---------- */
.speakers-block { margin-bottom: clamp(40px, 6vh, 64px); }
.speakers-block__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.speakers-block__note {
  font-size: 14.5px;
  color: var(--ink-3);
  max-width: var(--read);
  margin-bottom: 24px;
  font-style: italic;
  font-family: var(--serif);
}
.speakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  perspective: 1100px;
}
.speaker {
  position: relative;
  background: var(--rule);
  border-radius: 2px;
  padding: 1px;                      /* 露出 1px 荧光边缘 */
  display: flex;
  flex-direction: column;
}
.speaker::before,
.speaker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
}
.speaker::before {                   /* 大半径柔光（覆盖卡面） */
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
              rgba(201, 164, 90, .20), transparent 45%);
  z-index: 3;
}
.speaker::after {                    /* 小半径亮金（透出边缘成荧光描边） */
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
              rgba(201, 164, 90, .38), transparent 45%);
  z-index: 1;
}
.speaker:hover::before,
.speaker:hover::after { opacity: 1; }

.speaker-content {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border-radius: inherit;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.speaker__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.speaker__name-cn {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-3);
  font-weight: 400;
}
.speaker__role {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-bottom: 10px;
}
.speaker__honor {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--gold);
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
  /* uniform two-line reserve so cards in a row align */
  min-height: calc(2 * 1.5em + 12px);
}

/* Deputy / "presented by" speaker */
.speaker--deputy { position: relative; }
.speaker__deputy {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.speaker__deputy-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.speaker__deputy-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--blue);
  font-weight: 500;
}
.speaker__deputy-role {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.speakers-block__footnote {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
  font-family: var(--serif);
}

.speakers--institute {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.institute-tag {
  background: var(--bg);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--ink-2);
  display: flex;
  align-items: center;
}
.institute-tag::before {
  content: "";
  width: 6px; height: 6px;
  border: 1px solid var(--gold);
  margin-right: 10px;
  flex: 0 0 auto;
}

/* ----------  Venue  ---------- */
.venue {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.venue__divider { background: var(--rule); width: 1px; align-self: stretch; min-height: 160px; }
.venue__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.venue__value {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 400;
}
.venue__detail {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  max-width: 42ch;
}
/* discount code line inside the Venue section */
.venue__code {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--gold);
  background: rgba(176,132,51,.06);
  border-radius: 2px;
}
.venue__code-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.venue__code-value {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--ink);
}
@media (max-width: 700px) {
  .venue { grid-template-columns: 1fr; }
  .venue__divider { display: none; min-height: 0; height: 1px; width: 100%; }
}

/* practical info strip inside the Venue section */
.venue__practical {
  margin-top: clamp(36px, 6vh, 56px);
  padding-top: clamp(28px, 4vh, 40px);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.venue__practical-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.venue__practical-text {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}
@media (max-width: 980px) { .venue__practical { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .venue__practical { grid-template-columns: 1fr; } }

/* ---- registration section (index) ---- */
.reg-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 36px;
}
.reg-step { background: var(--bg); padding: clamp(24px, 3.5vw, 36px); }
.reg-step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.reg-step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 8px;
}
.reg-step__body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}
@media (max-width: 880px) { .reg-steps { grid-template-columns: 1fr; } }

.reg-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.reg-cta__note {
  font-size: 15px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: .02em;
}
.reg-cta .btn { font-size: 16.5px; padding: 15px 28px; }

/* ----------  Committees  ---------- */
.committees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 48px;
}
.committee {
  background: var(--bg);
  padding: 30px 28px;
}
.committee__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.25;
}
.committee__members {
  list-style: none;
  margin: 0;
  padding: 0;
}
.committee__members li {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.committee__members li:last-child { border-bottom: none; }
.committee__cn {
  font-size: 13px;
  color: var(--ink-3);
  margin-left: 6px;
}
.committee__more { font-style: italic; color: var(--ink-3); }
.committee__inst {
  display: block;
  font-weight: 500;
  color: var(--ink);
}
.committee__names {
  display: block;
  margin-top: 2px;
}
.committee__tbd { color: var(--ink-4); font-style: italic; }

.committee__note {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
  font-style: italic;
}
@media (max-width: 700px) { .committees { grid-template-columns: 1fr; } }

.committees__host {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 8px;
}
.committees__host-name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink);
  margin: 0 0 4px;
  font-weight: 400;
}
.committees__host--gap {
  margin-top: 26px;
}
.committees__host--email {
  margin-top: 38px;
}
.committees__email {
  color: var(--ink);
  text-decoration: none;
}
.committees__email:hover { color: var(--gold); }
.committees__host-zh {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-3);
  margin: 0;
}

/* ----------  Contact  ---------- */
.contact {
  max-width: var(--read);
}
.contact__email {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 26px 28px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--blue);
  border-radius: 2px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  margin-bottom: 22px;
}
.contact__email:hover { border-left-color: var(--gold); }
.contact__email-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.contact__email-value {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--ink);
}
.contact__note {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
  font-style: italic;
  font-family: var(--serif);
}

/* ----------  Footer  ---------- */
.footer {
  background: #11140f;
  color: #b8b3a6;
  border-top: 1px solid #000;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.footer__brand {
  display: flex; align-items: center; gap: 14px;
  margin-right: auto;
}
.footer__mark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--gold-soft);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.footer__mark::after {
  content: ""; position: absolute; inset: 50% 0 50% 0;
  background: var(--gold-soft); height: 1.5px; margin-top: -.75px;
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #f7f5f0;
  letter-spacing: .01em;
}
.footer__full {
  font-size: 11.5px;
  color: #8a857a;
  letter-spacing: .02em;
  max-width: 38ch;
}
.footer__meta {
  display: flex; flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a857a;
  text-align: right;
}
.footer__copy {
  flex-basis: 100%;
  padding-top: 24px;
  border-top: 1px solid #2a2d24;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: #6b675e;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__copy-sep { color: #4a4d44; }
@media (max-width: 700px) {
  .footer__meta { text-align: left; }
}

/* ----------  Reveal-on-scroll (very subtle)  ---------- */
@media (prefers-reduced-motion: no-preference) {
  .section, .hero__title, .hero__meta, .hero__cta {
    /* no transform by default; only a faint opacity lift on enter */
  }
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Registration form (register.html)
   ============================================================ */

.reg-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) var(--gutter) 0;
}
.reg-head__num, .admin-head__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.reg-head__num::after, .admin-head__num::after {
  content: "";
  display: inline-block;
  width: 56px; height: 1px;
  background: var(--gold);
  margin-left: 14px;
  vertical-align: middle;
  opacity: .6;
}
.reg-head__title, .admin-head__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 20px;
}
.reg-head__kicker, .admin-head__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 62ch;
  margin: 0 0 36px;
}
.reg-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.reg-head__meta-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.reg-head__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.reg-alert {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--gold);
  background: rgba(176,132,51,.07);
  font-size: 14px;
  color: var(--ink-2);
}

.reg-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) var(--gutter) clamp(80px, 10vh, 140px);
}
.reg-main.is-done { max-width: 900px; }

/* ---- form sections ---- */
.form-section { margin-bottom: clamp(40px, 6vh, 64px); }
.form-section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 18px;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.form-section__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold);
  grid-column: 1;
}
.form-section__title {
  grid-column: 2;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  color: var(--ink);
  line-height: 1.15;
}
.form-section__kicker {
  grid-column: 2;
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
@media (max-width: 600px) {
  .form-section__head { grid-template-columns: 1fr; }
  .form-section__num, .form-section__title, .form-section__kicker { grid-column: 1; }
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: clamp(20px, 3.5vw, 34px);
}

/* ---- fields ---- */
.field { margin-bottom: 20px; min-width: 0; position: relative; }
.field:last-child { margin-bottom: 0; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.field--wide { grid-column: 1 / -1; }
@media (max-width: 680px) {
  .field-grid { grid-template-columns: 1fr; gap: 0; }
}

.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) {
  .field-grid--3 { grid-template-columns: 1fr; gap: 0; }
}
.cond-reveal { margin-top: 12px; }
.cond-reveal[hidden] { display: none; }
.companion {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.45);
  padding: 16px 18px 4px;
  margin-top: 14px;
}
.companion__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.companion__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.companion__remove {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: 2px 0;
}
.companion__remove:hover { color: #a33; }
.companion-actions {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.companion-actions .btn { flex: none; }
.companion-actions__hint { flex: 1 1 260px; margin: 0; }

/* ---- bilingual calendar panel (register page) ---- */
.reg-main .date-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Crect x='1' y='2' width='12' height='11' fill='none' stroke='%236b6b6b' stroke-width='1.2'/%3E%3Cline x1='1' y1='5.5' x2='13' y2='5.5' stroke='%236b6b6b' stroke-width='1.2'/%3E%3Cline x1='4.5' y1='1' x2='4.5' y2='3.5' stroke='%236b6b6b' stroke-width='1.2'/%3E%3Cline x1='9.5' y1='1' x2='9.5' y2='3.5' stroke='%236b6b6b' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.date-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  width: min(320px, 100%);
  margin-top: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.dp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.dp-select {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 3px 4px;
  cursor: pointer;
}
.dp-select:focus { outline: none; border-color: var(--blue); }
.dp-nav {
  width: 28px;
  height: 26px;
  border: 1px solid var(--rule-2);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-2);
}
.dp-nav:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.dp-nav:disabled { opacity: .35; cursor: default; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  text-align: center;
  padding: 4px 0;
}
.dp-day {
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 0;
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
}
.dp-day:hover:not(:disabled) { background: rgba(26,58,92,.08); }
.dp-day:disabled { color: var(--ink-4); opacity: .4; cursor: default; }
.dp-day.is-selected { background: var(--gold); color: #fff; }
.dp-day.is-empty { visibility: hidden; }

/* ---- speaker card: role badge, pending-confirmation badge + closing placeholder ---- */
.speaker { position: relative; }
.speaker__rolechip {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 3px 7px;
  border: 1px solid var(--rule-2);
  color: var(--ink-3);
  background: var(--bg);
}
.speaker__rolechip--keynote {
  color: var(--gold);
  background: rgba(176,132,51,.07);
  border-color: rgba(176,132,51,.45);
}
.speaker__rolechip--talk {
  color: var(--blue);
  background: rgba(26,58,92,.06);
  border-color: rgba(26,58,92,.35);
}
.speaker__rolechip--attendee {
  color: #3d6b4f;
  background: rgba(61,107,79,.07);
  border-color: rgba(61,107,79,.30);
}
.speaker__tbc {
  position: absolute;
  top: 40px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6a1f;
  background: rgba(176,132,51,.12);
  border: 1px solid rgba(176,132,51,.45);
  border-radius: 2px;
  padding: 3px 7px;
}
.speaker__name { padding-right: 86px; }
.speaker--more { border-style: dashed; }
.speaker--more .speaker-content { justify-content: center; }

/* "(empty)" placeholder row in participants.csv — keeps a grid slot open */
.speaker--blank::before,
.speaker--blank::after { content: none; }   /* no gold glow */
.speaker--blank {
  background: var(--bg-card);
  border: 1.5px dashed var(--rule);
  padding: 0;
}
.speaker--blank .speaker-content {
  background: transparent;
  padding: 0;
}
.speaker__name--more {
  font-style: italic;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.speaker__role--more { margin-top: 10px; }

/* ---- register page: larger reading sizes (senior-friendly) ---- */
.reg-main .form-section__kicker { font-size: 16px; line-height: 1.55; }
.reg-main .field label, .reg-main .field__label { font-size: 13px; }
.reg-main .field input[type="text"],
.reg-main .field input[type="email"],
.reg-main .field input[type="tel"],
.reg-main .field input[type="date"],
.reg-main .field select,
.reg-main .field textarea { font-size: 16px; padding: 12px 13px; }
.reg-main .field__hint { font-size: 15px; line-height: 1.55; }
.reg-main .pill { font-size: 16px; padding: 10px 16px; }
.reg-main .consent { font-size: 15px; }
.reg-main .field__msg { font-size: 14px; }
.reg-main .companion__title, .reg-main .companion__remove { font-size: 13px; }
.reg-main .submit-row__note { font-size: 14px; }
.load-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin: 2px 0 18px;
  flex-wrap: wrap;
}
.load-row .btn { flex: none; }
.load-note--ok {
  color: #2c6e49;
  background: rgba(44,110,73,.07);
  border: 1px solid rgba(44,110,73,.35);
  border-radius: 2px;
  padding: 3px 8px;
}
.reg-main .dp-title { font-size: 14px; }
.reg-main .dp-dow { font-size: 12px; }
.reg-main .dp-day { font-size: 15px; padding: 8px 0; }
.reg-head .hero__meta-label { font-size: 12px; }

.field label, .field__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.req { color: var(--gold); font-style: normal; margin-left: 3px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 11px 12px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,58,92,.08);
}
.field textarea { resize: vertical; min-height: 72px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6b6b' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.field__hint {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-4);
  margin-top: 6px;
}
.field--error input, .field--error select, .field--error textarea {
  border-color: #a33b2e;
  box-shadow: 0 0 0 3px rgba(163,59,46,.08);
}
/* error messages float below the field (tooltip-style) so showing them
   never changes the field's height — no shifting, no misaligned rows */
.field__msg {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 5;
  margin-top: 3px;
  max-width: 100%;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #a33b2e;
  background: #fdf6f4;
  border: 1px solid rgba(163,59,46,.28);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  pointer-events: none;
}

/* ---- invitation banner on the register form ---- */
.invite-banner {
  border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--gold);
  background: rgba(176,132,51,.07);
  padding: 13px 16px;
  margin-bottom: 22px;
}
.invite-banner__tag {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.invite-banner__text {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---- pills / radio rows ---- */
/* (these are <label>s inside .field — opt out of the uppercase field labels;
   needs specificity ≥ .field label above) */
.field .pill, .field .hotel-card, .field .night, .field .check {
  text-transform: none;
  letter-spacing: normal;
}
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--bg);
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) {
  border-color: var(--blue);
  background: rgba(26,58,92,.06);
  color: var(--ink);
}
.pill__alt { font-style: normal; font-size: 11px; color: var(--ink-4); }
.pill:has(input:checked) .pill__alt { color: var(--ink-3); }
.pill:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- hotel cards ---- */
.hotel-list { display: grid; gap: 12px; }
.hotel-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--bg);
  padding: 16px 18px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.hotel-card:hover { border-color: var(--blue-soft); }
.hotel-card:has(input:checked) {
  border-color: var(--blue);
  background: rgba(26,58,92,.05);
}
.hotel-card input { position: absolute; opacity: 0; pointer-events: none; }
.hotel-card__mark {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  margin-top: 3px;
  border: 1.5px solid var(--rule-2);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--t-fast) var(--ease);
}
.hotel-card:has(input:checked) .hotel-card__mark { border-color: var(--blue); }
.hotel-card:has(input:checked) .hotel-card__mark::after {
  content: "";
  position: absolute; inset: 2.5px;
  background: var(--blue);
  border-radius: 50%;
}
.hotel-card:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.hotel-card__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.hotel-card__desc {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---- nights ---- */
.night-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.night {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--bg);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.night input { position: absolute; opacity: 0; pointer-events: none; }
.night__box {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  border: 1.5px solid var(--rule-2);
  border-radius: 2px;
  position: relative;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.night:has(input:checked) { border-color: var(--blue); background: rgba(26,58,92,.05); }
.night:has(input:checked) .night__box { border-color: var(--blue); background: var(--blue); }
.night:has(input:checked) .night__box::after {
  content: "";
  position: absolute;
  left: 3px; top: 0.5px;
  width: 4px; height: 7px;
  border: solid #f7f5f0;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(40deg);
}
.night:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- checkbox row ---- */
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.check input {
  flex: 0 0 auto;
  width: 15px; height: 15px;
  margin: 3px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ---- consent / submit ---- */
.consent {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-4);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.submit-row__note { font-size: 13px; color: var(--ink-3); font-style: italic; }
.btn--submit { padding: 15px 34px; font-size: 14.5px; }
.btn.is-busy { opacity: .65; cursor: wait; }
.form-error {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid #d8a79f;
  border-left: 3px solid #a33b2e;
  background: rgba(163,59,46,.06);
  color: #7c2d22;
  font-size: 14px;
}

/* ---- success panel ---- */
.success {
  padding: clamp(48px, 8vh, 96px) 0;
  max-width: 640px;
}
.success__rule {
  display: block;
  width: 56px; height: 1px;
  background: var(--gold);
  margin-bottom: 26px;
}
.success__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.success__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--ink);
  margin: 0 0 30px;
  line-height: 1.15;
}
.success__id-box {
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--blue);
  background: var(--bg-card);
  padding: 18px 22px;
  margin-bottom: 26px;
}
.success__id-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.success__id {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: .06em;
  color: var(--blue);
}
.success__note {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 34px;
}
.success__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Organiser dashboard (admin.html)
   ============================================================ */

.admin-main { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vh, 72px) var(--gutter) clamp(80px, 10vh, 120px); }
.admin-head { max-width: var(--maxw); margin: 0 auto; }
.admin-main .admin-head { padding: 0; margin-bottom: clamp(28px, 5vh, 48px); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: clamp(24px, 4vh, 40px);
}
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--bg-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 92px;
}
.stat__value {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--blue);
  font-weight: 500;
}
.stat__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.stat__sub {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---- toolbar ---- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.toolbar__search { flex: 1 1 240px; }
.toolbar__search input {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 9px 12px;
  outline: none;
}
.toolbar__search input:focus { border-color: var(--blue); }
.toolbar__filter select {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 9px 30px 9px 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6b6b' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.btn--small { padding: 8px 14px; font-size: 12.5px; }

/* ---- table ---- */
.table-wrap {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  overflow-x: auto;
}
.regtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 760px;
}
.regtable th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  white-space: nowrap;
}
.regtable td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-2);
}
.regtable tbody tr { cursor: pointer; transition: background var(--t-fast) var(--ease); }
.regtable tbody tr:hover { background: rgba(26,58,92,.045); }
.regtable tbody tr:last-child td { border-bottom: none; }
.regtable .mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.regtable strong { font-weight: 500; color: var(--ink); }
.dim { color: var(--ink-3); font-size: 12.5px; }
.table-empty {
  padding: 40px;
  text-align: center;
  color: var(--ink-3);
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
}
.table-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-4);
  font-style: italic;
}

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--rule-2);
  color: var(--ink-3);
  white-space: nowrap;
}
.chip.is-new { border-color: var(--gold-soft); color: var(--gold); background: rgba(176,132,51,.07); }
.chip.is-confirmed { border-color: #3a6b4a; color: #2c5a3c; background: rgba(44,90,60,.08); }
.chip.is-cancelled { border-color: #d0b7b2; color: #8a4a3e; background: rgba(138,74,62,.07); text-decoration: line-through; }

/* participant roles */
.chip--role-keynote { border-color: var(--gold-soft); color: var(--gold); background: rgba(176,132,51,.07); }
.chip--role-talk { border-color: var(--blue-soft); color: var(--blue); background: rgba(26,58,92,.06); }
.chip--role-attendee { color: var(--ink-3); }

/* ---- modal ---- */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(17,20,15,.45);
  backdrop-filter: blur(2px);
}
.modal__panel {
  position: relative;
  max-width: 680px;
  max-height: calc(100vh - 80px);
  margin: 40px auto;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-top: 3px solid var(--blue);
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}
.modal__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.modal__close {
  background: none; border: none;
  font-size: 22px; line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
}
.modal__close:hover { color: var(--blue); }
.modal__body {
  padding: 20px 24px;
  overflow-y: auto;
}
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: var(--bg-card);
}
.modal__notes { padding: 0 24px 16px; }
.modal__notes textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 13.5px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--bg-card);
  resize: vertical;
  outline: none;
}
.modal__notes textarea:focus { border-color: var(--blue); }
.modal__foot-left { display: flex; align-items: center; gap: 12px; }
.modal__status-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.modal__foot-left select {
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--bg);
  outline: none;
}
.modal__foot-right { display: flex; gap: 10px; }
.admin-danger:hover { border-color: #a33b2e; color: #a33b2e; }
@media (max-width: 640px) {
  .modal__panel { margin: 16px; max-height: calc(100vh - 32px); }
}

.dgroup { margin-bottom: 22px; }
.dgroup:last-child { margin-bottom: 0; }
.dgroup__title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.drow {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 5px 0;
  font-size: 13.5px;
}
.drow__label { color: var(--ink-4); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding-top: 2px; }
.drow__value { color: var(--ink-2); overflow-wrap: anywhere; }
.drow__value a { color: var(--blue); }

/* ---- invitations (admin) ---- */
.admin-subsection { margin-bottom: clamp(32px, 5vh, 48px); }
.admin-subsection__head { margin-bottom: 16px; }
.registrations-head {
  margin-top: clamp(8px, 2vh, 20px);
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid var(--rule);
}
.admin-subsection__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.admin-subsection__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 72ch;
  margin: 0;
}
.admin-subsection__count {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--blue);
}
.invite-create {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.invite-create__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.invite-create__grid input {
  width: 100%;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 8px 10px;
  outline: none;
}
.invite-create__grid input:focus { border-color: var(--blue); }
.invite-create__grid input[type="number"] { max-width: 110px; }
.invite-create__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .invite-create__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .invite-create__grid { grid-template-columns: 1fr; } }

.inv-link-cell { max-width: 340px; }
.inv-link {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  word-break: break-all;
  line-height: 1.45;
  margin-bottom: 6px;
}
.inv-open { color: var(--blue); }

/* ---- participant sign-in (participants.html) ---- */
.participants-main { max-width: 980px; }
.plogin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  padding: 16px 20px;
  margin-bottom: 22px;
}
.plogin--authed { border-left: 3px solid #2c5a3c; }
.plogin__text { display: flex; flex-direction: column; gap: 4px; min-width: 260px; flex: 1 1 320px; }
.plogin__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.plogin--authed .plogin__title { color: #2c5a3c; }
.plogin__note { font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.plogin__form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.plogin__form input {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 9px 12px;
  width: 230px;
  outline: none;
}
.plogin__form input:focus { border-color: var(--blue); }
.plogin__error {
  flex-basis: 100%;
  font-size: 12.5px;
  color: #a33b2e;
}
.plogin--authed .btn--ghost:hover { border-color: #2c5a3c; color: #2c5a3c; }

/* ---- participants section on the homepage ---- */
.pstrip {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  margin-bottom: 18px;
}
.pstrip__counts {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: auto;
}
.pstrip__counts em {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--blue);
  margin-right: 2px;
}
.pstrip__sep { color: var(--rule-2); }
.pstrip__login { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pstrip__login input {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 8px 10px;
  width: 190px;
  outline: none;
}
.pstrip__login input:focus { border-color: var(--blue); }
.pstrip__signed {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2c5a3c;
}
.pstrip__error {
  flex-basis: 100%;
  font-size: 12.5px;
  color: #a33b2e;
}

.admin-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: #11140f;
  color: #f7f5f0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 10px 18px;
  border: 1px solid #3a3d33;
  border-left: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
body.modal-open { overflow: hidden; }

