/* SDF design (Justin), from the SDF2028 home page design. */
/* Fonts, self-hosted (no request to Google): Fraunces for headings, Inter for text, both SIL Open Font License 1.1,
   variable fonts (weights 400-700). Latin is preloaded in base.html; latin-ext loads only for characters outside it.
   No italic is installed, so the browser must not fake one. */
@font-face {
  font-family: "Fraunces";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/fraunces-latin-wght-normal.eb2486760f75.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext-wght-normal.9cab501e1829.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Layout: a one-page event marketing site — fixed dark-purple brand sections
     (header/hero/programme/footer) alternating with light paper content sections,
     by design rather than by viewer theme, with a 6-colour brand stripe as a
     recurring accent motif. */
:root {
  --ink-900: #2a1748;
  --ink-800: #3b2166;
  --ink-700: #4f2d86;
  --paper: #fbf8f5;
  --paper-dim: #f3eee7;
  --paper-line: #e7dfef;
  --gold: #c88a3d;
  --gold-light: #e3b573;
  --gold-pale: #f3e1bf;
  --gold-text: #8f6129; /* gold for small text on paper: 5:1 contrast (accessibility) */
  --text-dark: #241934;
  --text-muted: #655c74;
  --text-on-ink: #f9f6f2;
  --text-on-ink-muted: #c9bbdd;
  --c-purple: #5c2e91;
  --c-lavender: #8771a9;
  --c-pink: #de9db2;
  --c-teal: #4f9e8d;
  --c-gold: #dda24e;
  --c-terracotta: #c5432a;
  --radius: 2px;
  --maxw: 1240px;
  --font-heading: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* links to an anchor (/#venue-anchor) stop below the sticky header (about 74px tall), not behind it */
  scroll-padding-top: calc(75px + env(safe-area-inset-top, 0px));
}
body {
  font-synthesis: none;
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink-900);
}
.btn-gold:hover {
  background: var(--gold-light);
}
.btn-outline {
  border-color: rgba(249, 246, 242, 0.45);
  color: var(--text-on-ink);
}
.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ---------- logo mark (real brand artwork, purple PNG inverted to white for dark surfaces) ---------- */
.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
  filter: brightness(0) invert(1);
}

/* ---------- entrance animation (always visible at rest; motion plays once triggered) ---------- */
.reveal {
  opacity: 1;
}
.reveal.animate-in {
  animation: settleIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes settleIn {
  from {
    opacity: 0.001;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.animate-in {
    animation: none;
  }
}

/* ---------- guilloche texture ---------- */
.guilloche {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(
      circle at 12% 20%,
      transparent 0,
      transparent 6px,
      rgba(222, 157, 178, 0.55) 7px,
      transparent 8px,
      transparent 14px
    ),
    repeating-radial-gradient(
      circle at 88% 78%,
      transparent 0,
      transparent 6px,
      rgba(227, 181, 115, 0.55) 7px,
      transparent 8px,
      transparent 14px
    );
  animation: drift 22s ease-in-out infinite alternate;
}
.fine-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(222, 157, 178, 0.1) 0px,
    rgba(222, 157, 178, 0.1) 1px,
    transparent 1px,
    transparent 5px
  );
}
.duotone {
  background: linear-gradient(
    150deg,
    var(--ink-700) 0%,
    var(--c-purple) 45%,
    var(--c-terracotta) 130%
  );
}
@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(18px, 14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .guilloche {
    animation: none;
  }
}

/* ---------- stripe accents ---------- */
.stripe-bar {
  display: flex;
  height: 6px;
}
.stripe-bar span {
  flex: 1;
}
.stripe-bar span:nth-child(1) {
  background: var(--c-purple);
}
.stripe-bar span:nth-child(2) {
  background: var(--c-lavender);
}
.stripe-bar span:nth-child(3) {
  background: var(--c-pink);
}
.stripe-bar span:nth-child(4) {
  background: var(--c-teal);
}
.stripe-bar span:nth-child(5) {
  background: var(--c-gold);
}
.stripe-bar span:nth-child(6) {
  background: var(--c-terracotta);
}
.stripe-bar-v {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.stripe-bar-v span {
  flex: 1;
}
.stripe-bar-v span:nth-child(1) {
  background: var(--c-purple);
}
.stripe-bar-v span:nth-child(2) {
  background: var(--c-lavender);
}
.stripe-bar-v span:nth-child(3) {
  background: var(--c-pink);
}
.stripe-bar-v span:nth-child(4) {
  background: var(--c-teal);
}
.stripe-bar-v span:nth-child(5) {
  background: var(--c-gold);
}
.stripe-bar-v span:nth-child(6) {
  background: var(--c-terracotta);
}

/* ---------- announcement bar ---------- */
.announce {
  background: var(--ink-900);
  color: var(--text-on-ink-muted);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(227, 181, 115, 0.25);
}
.announce strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: linear-gradient(
    100deg,
    rgba(42, 23, 72, 0.94),
    rgba(92, 46, 145, 0.94),
    rgba(79, 45, 134, 0.94),
    rgba(59, 33, 102, 0.94),
    rgba(42, 23, 72, 0.94)
  );
  background-size: 300% 100%;
  animation: heroGradient 26s ease infinite;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(227, 181, 115, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  header {
    animation: none;
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 16px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--text-on-ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo span {
  font-family: var(--font-text);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-on-ink-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover {
  color: var(--text-on-ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 22px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-ink);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: var(--text-on-ink);
  overflow: hidden;
  padding: 96px 32px 88px;
  background: linear-gradient(
    120deg,
    var(--ink-900),
    var(--c-purple),
    var(--ink-700),
    var(--c-terracotta),
    var(--ink-900)
  );
  background-size: 300% 300%;
  animation: heroGradient 20s ease infinite;
}
@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero,
  .cta-band {
    animation: none;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    160deg,
    rgba(42, 23, 72, 0.55) 0%,
    rgba(59, 33, 102, 0.35) 45%,
    rgba(42, 23, 72, 0.55) 100%
  );
}
/* Optional background video (Hero block → Background video): covers the gradient, under the overlay */
.hero-video,
.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce), (max-width: 767px) {
  .hero-video {
    display: none;
  }
}
/* Over the video (bright, busy footage): lighter text and a soft shadow behind it, so it stays readable */
.hero.has-video .hero-inner {
  text-shadow: 0 1px 3px rgba(20, 10, 40, 0.75), 0 0 18px rgba(20, 10, 40, 0.45);
}
.hero.has-video .eyebrow,
.hero.has-video h1 em,
.hero.has-video .hero-meta .num {
  color: #f6dcae;
}
.hero.has-video p.lead,
.hero.has-video .hero-meta .lbl {
  color: var(--text-on-ink);
}
.hero.has-video .btn {
  text-shadow: none;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero .eyebrow {
  color: var(--gold-light);
  margin-bottom: 22px;
  display: block;
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  color: var(--text-on-ink);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-on-ink-muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(227, 181, 115, 0.22);
}
.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta .num {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.hero-meta .lbl {
  font-size: 12px;
  color: var(--text-on-ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-ring {
  position: absolute;
  right: -110px;
  top: 50%;
  width: 440px;
  height: 440px;
  z-index: 1;
  transform-origin: center center;
  margin-top: -220px;
  opacity: 0.14;
  filter: brightness(0) invert(1);
  animation: spin 120s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ring {
    animation: none;
  }
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--ink-900);
  padding: 32px 32px 42px;
  border-top: 1px solid rgba(227, 181, 115, 0.12);
}
.trust p {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-ink-muted);
  margin-bottom: 22px;
}
.trust-row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.trust-row span {
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: var(--text-on-ink-muted);
  padding: 9px 18px;
  border: 1px solid rgba(227, 181, 115, 0.18);
  border-radius: 2px;
  letter-spacing: 0.01em;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.trust-row span:hover {
  border-color: var(--gold-light);
  color: var(--text-on-ink);
}

/* ---------- section shell ---------- */
section {
  padding: 84px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head .eyebrow {
  display: block;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 16px;
}
.divider {
  height: 1px;
  background: var(--paper-line);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about-copy p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 24px;
}
.about-copy p.intro {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--ink-900);
  line-height: 1.45;
  margin-bottom: 26px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-line);
  margin-top: 8px;
}
.stat-row div {
  padding: 22px 0;
  border-right: 1px solid var(--paper-line);
  min-width: 0;
}
.stat-row div:last-child {
  border-right: none;
}
.stat-row .num {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--gold);
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat-row .lbl {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
.plate {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 2px;
  max-width: 100%;
  border: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.plate .fine-lines,
.plate .guilloche {
  opacity: 0.5;
}
.plate-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plate-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(42, 23, 72, 0.4) 0%,
    rgba(92, 46, 145, 0.08) 45%,
    rgba(197, 67, 42, 0.22) 100%
  );
}
.plate-label {
  position: relative;
  z-index: 2;
  color: var(--text-on-ink-muted);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 1px dashed rgba(227, 181, 115, 0.4);
  padding: 16px 22px;
}

/* ---------- topics ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.topic-card {
  background: var(--paper);
  padding: 30px 26px;
  border-top: 3px solid transparent;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  min-width: 0;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(42, 23, 72, 0.1);
}
.topic-card:nth-child(1) {
  border-top-color: var(--c-purple);
}
.topic-card:nth-child(2) {
  border-top-color: var(--c-teal);
}
.topic-card:nth-child(3) {
  border-top-color: var(--c-gold);
}
.topic-card:nth-child(4) {
  border-top-color: var(--c-terracotta);
}
.topic-card:nth-child(5) {
  border-top-color: var(--c-lavender);
}
.topic-card:nth-child(6) {
  border-top-color: var(--c-pink);
}
.topic-card .ic {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 18px;
}
.topic-card:nth-child(1) .ic {
  color: var(--c-purple);
}
.topic-card:nth-child(2) .ic {
  color: var(--c-teal);
}
.topic-card:nth-child(3) .ic {
  color: var(--c-gold);
}
.topic-card:nth-child(4) .ic {
  color: var(--c-terracotta);
}
.topic-card:nth-child(5) .ic {
  color: var(--c-lavender);
}
.topic-card:nth-child(6) .ic {
  color: var(--c-pink);
}
.topic-card h3 {
  font-size: 17px;
  margin-bottom: 9px;
}
.topic-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- programme ---------- */
.prog {
  background: var(--ink-900);
  color: var(--text-on-ink);
}
.prog .section-head p {
  color: var(--text-on-ink-muted);
}
.prog .eyebrow {
  color: var(--gold-light);
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  background: transparent;
  border: 1px solid rgba(227, 181, 115, 0.3);
  color: var(--text-on-ink-muted);
  padding: 11px 20px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-900);
}
.day-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.day-panel.active {
  display: block;
}
.day-panel.shown {
  opacity: 1;
  transform: translateY(0);
}
.sess {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(227, 181, 115, 0.16);
}
.sess:last-child {
  border-bottom: 1px solid rgba(227, 181, 115, 0.16);
}
.sess time {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 15px;
}
.sess > div > h3 {
  color: var(--text-on-ink);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}
.sess .who {
  color: var(--text-on-ink-muted);
  font-size: 13.5px;
}
.sess-ph {
  border-top-style: dashed;
  border-top-color: rgba(227, 181, 115, 0.25);
}
.sess-ph:last-child {
  border-bottom-style: dashed;
  border-bottom-color: rgba(227, 181, 115, 0.25);
}
.sess-ph time {
  color: var(--text-on-ink-muted);
}
.sess-ph > div > h3 {
  color: var(--text-on-ink-muted);
  font-weight: 400;
}
.prog-foot {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.prog-foot p {
  color: var(--text-on-ink-muted);
  font-size: 13.5px;
}

/* ---------- venue ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.venue-plate {
  aspect-ratio: 5/4;
  position: relative;
  border: 1px solid var(--paper-line);
  overflow: hidden;
  max-width: 100%;
}
.venue-copy h3 {
  font-size: 24px;
  margin-bottom: 6px;
}
.venue-copy .addr {
  color: var(--text-muted);
  margin: 10px 0 26px;
  font-size: 15.5px;
}
.venue-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.venue-facts .f {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--paper-line);
}
.venue-facts .f:first-child {
  border-top: none;
}
.venue-facts .ic {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex: none;
  margin-top: 2px;
}
.venue-facts .f-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.venue-facts .f-val {
  font-size: 15.5px;
  color: var(--ink-900);
}

/* ---------- fees ---------- */
.fees-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.fee-card {
  border: 1px solid var(--paper-line);
  padding: 26px 20px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  min-width: 0;
}
.fee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(42, 23, 72, 0.1);
}
.fee-card.hi {
  background: var(--ink-900);
  border-color: var(--ink-900);
}
.fee-tier {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fee-card.hi .fee-tier {
  color: var(--gold-light);
}
.fee-price {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.fee-card.hi .fee-price {
  color: var(--text-on-ink);
}
.fee-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.fee-card.hi .fee-desc {
  color: var(--text-on-ink-muted);
}
.fee-badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink-900);
  padding: 4px 10px;
  border-radius: 2px;
  width: fit-content;
}

/* ---------- sponsors (open slots — no sponsors confirmed yet) ---------- */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sponsor-cell {
  background: var(--paper);
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
  transition:
    border-color 0.25s,
    color 0.25s,
    background 0.25s;
  border: 1.5px dashed var(--paper-line);
  border-radius: 2px;
  min-width: 0;
}
.sponsor-cell .plus {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.sponsor-cell .label {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sponsor-cell:nth-child(6n + 1) {
  border-color: color-mix(in srgb, var(--c-purple) 35%, var(--paper-line));
}
.sponsor-cell:nth-child(6n + 2) {
  border-color: color-mix(in srgb, var(--c-teal) 35%, var(--paper-line));
}
.sponsor-cell:nth-child(6n + 3) {
  border-color: color-mix(in srgb, var(--c-gold) 35%, var(--paper-line));
}
.sponsor-cell:nth-child(6n + 4) {
  border-color: color-mix(in srgb, var(--c-terracotta) 35%, var(--paper-line));
}
.sponsor-cell:nth-child(6n + 5) {
  border-color: color-mix(in srgb, var(--c-lavender) 35%, var(--paper-line));
}
.sponsor-cell:nth-child(6n + 6) {
  border-color: color-mix(in srgb, var(--c-pink) 35%, var(--paper-line));
}
.sponsor-cell:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--paper-dim);
}

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(
    120deg,
    var(--ink-800),
    var(--ink-900),
    var(--c-purple)
  );
  background-size: 220% 220%;
  animation: heroGradient 18s ease infinite;
  color: var(--text-on-ink);
  text-align: center;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  color: var(--text-on-ink);
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 18px;
}
.cta-band p {
  color: var(--text-on-ink-muted);
  font-size: 16.5px;
  margin-bottom: 34px;
}
.cta-band .btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */
footer {
  background: var(--ink-900);
  color: var(--text-on-ink-muted);
  padding: 64px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(227, 181, 115, 0.14);
}
.foot-brand .logo {
  margin-bottom: 16px;
}
.foot-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.foot-col h2 {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
  font-family: var(--font-text);
}
.foot-col a,
.foot-col p {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-on-ink-muted);
}
.foot-col a:hover {
  color: var(--text-on-ink);
}
.foot-contact {
  margin-top: 32px;
}
.foot-contact a {
  overflow-wrap: anywhere;
}

/* Contact form (sites/sdf/forms/contact.html): the footer's right-hand half, on the dark ink. */
.foot-form {
  scroll-margin-top: 36px; /* after sending (#contact-form): a little space, on top of the header's scroll-padding-top */
}
.foot-form h2 {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
  font-family: var(--font-text);
}
.foot-form-intro {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.foot-form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.foot-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.foot-form-wide {
  grid-column: 1 / -1;
}
.foot-form .site-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foot-form .site-form-field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-ink-muted);
}
.foot-form input[type="text"],
.foot-form input[type="email"],
.foot-form textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--text-on-ink);
  background: rgba(249, 246, 242, 0.06);
  border: 1px solid rgba(227, 181, 115, 0.22);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.foot-form textarea {
  min-height: 112px;
  resize: vertical;
}
.foot-form input:focus,
.foot-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
  background: rgba(249, 246, 242, 0.1);
}
.foot-form input[aria-invalid="true"],
.foot-form textarea[aria-invalid="true"] {
  border-color: var(--c-pink);
}
.foot-form-error,
.foot-form .site-form-error {
  color: var(--c-pink);
  font-size: 13.5px;
}
.foot-form > form > .foot-form-error {
  margin-bottom: 14px;
}
.foot-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 6px;
  font-size: 13.5px;
  line-height: 1.6;
  cursor: pointer;
}
.foot-form-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
}
.foot-form-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}
.foot-form-send .btn {
  margin-left: auto;
}
.foot-form .btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.foot-form-success {
  padding: 18px 20px;
  border: 1px solid rgba(227, 181, 115, 0.35);
  border-left: 3px solid var(--gold);
  background: rgba(227, 181, 115, 0.08);
  color: var(--text-on-ink);
  font-size: 15px;
  line-height: 1.6;
}

.foot-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 32px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(201, 187, 221, 0.72);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .about-grid,
  .venue-grid {
    grid-template-columns: 1fr;
  }
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-form-col {
    grid-column: 1 / -1;
  }
  .hero-ring {
    display: none;
  }
  .sess {
    grid-template-columns: 76px 1fr;
  }
}
@media (max-width: 560px) {
  .wrap,
  .nav,
  .hero,
  .hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .topics-grid,
  .fees-grid,
  .sponsors-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .foot-form-grid {
    grid-template-columns: 1fr;
  }
  .stat-row div {
    border-right: none;
    border-top: 1px solid var(--paper-line);
  }
  .stat-row div:first-child {
    border-top: none;
  }
}

/* ---------- added for the live site: menu dropdowns, mobile menu, popups, data states ---------- */
.nav-drop {
  position: relative;
}
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 200px;
  padding: 10px 0;
  background: var(--ink-900);
  border: 1px solid rgba(227, 181, 115, 0.18);
  border-radius: var(--radius);
  z-index: 60;
}
.nav-drop-menu a {
  display: block;
  padding: 8px 16px;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  display: block;
}
@media (max-width: 900px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px 32px;
    background: var(--ink-900);
  }
  .nav-links.open .nav-drop-menu {
    display: block;
    position: static;
    border: none;
    padding: 6px 0 0 12px;
  }
}
dialog {
  max-width: 640px;
  border: none;
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text-dark);
}
dialog::backdrop {
  background: rgba(42, 23, 72, 0.6);
}
.sess .who button,
.sess > div > h3 button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(227, 181, 115, 0.5);
  text-underline-offset: 3px;
}
.fee-sold {
  opacity: 0.55;
}
.sponsor-logo {
  background: #fff;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--paper-line);
  border-radius: 2px;
}
.sponsor-logo img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}
.sdf-rich p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 20px;
}
.sdf-rich > p:first-child {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--ink-900);
  line-height: 1.45;
}
.sdf-rich h2,
.sdf-rich h3 {
  margin: 24px 0 12px;
}
.sdf-rich ul,
.sdf-rich ol {
  color: var(--text-muted);
  margin: 0 0 20px 20px;
}

/* ---------- popups (abstract, speaker): centred, in the SDF theme ---------- */
dialog.sdf-pop {
  margin: auto;
  position: fixed;
  inset: 0; /* centred (Tailwind's reset removes the browser's auto margin) */
  width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 820px);
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: auto;
  background: var(--paper);
  color: var(--text-dark);
  box-shadow: 0 30px 80px rgba(42, 23, 72, 0.45);
}
dialog.sdf-pop::backdrop {
  background: rgba(42, 23, 72, 0.72);
  backdrop-filter: blur(3px);
}
dialog.sdf-pop[open] {
  animation: popIn 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.sdf-pop[open] {
    animation: none;
  }
}
.sdf-pop .stripe-bar {
  position: sticky;
  top: 0;
  z-index: 2;
}
.sdf-pop-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  color: var(--ink-900);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sdf-pop-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.sdf-pop-body {
  padding: 30px 36px 32px;
}
.sdf-pop-body .eyebrow {
  display: block;
  margin-bottom: 10px;
  padding-right: 40px;
}
.sdf-pop-body h3 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--ink-900);
  margin-bottom: 8px;
  padding-right: 40px;
}
.sdf-pop-who {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.sdf-pop-person {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-bottom: 22px;
}
.sdf-pop-photo {
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-pale);
}
.sdf-pop .sdf-rich > p:first-child {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--text-muted);
}
@media (max-width: 560px) {
  .sdf-pop-body {
    padding: 24px 22px 26px;
  }
  .sdf-pop-person {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- “Register your interest” popup (sites/sdf/forms/interest.html): the footer form's layout on paper ---------- */
.sdf-pop-form {
  width: min(620px, calc(100vw - 32px));
}
.sdf-pop-form:focus {
  outline: none;
}
.pop-form h3 {
  margin-bottom: 18px;
}
.pop-form .eyebrow {
  display: block;
  margin-bottom: 10px;
  padding-right: 40px;
}
.pop-form .site-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pop-form .site-form-field label,
.pop-form-areas legend {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pop-form input[type="text"],
.pop-form input[type="email"] {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.pop-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.pop-form input[aria-invalid="true"] {
  border-color: var(--c-terracotta);
}
.pop-form-error,
.pop-form .site-form-error {
  color: var(--c-terracotta);
  font-size: 13.5px;
}
.pop-form > form > .pop-form-error {
  margin-bottom: 14px;
}
.pop-form-areas {
  margin: 20px 0 0;
  padding: 0;
  border: none;
}
.pop-form-areas legend {
  margin-bottom: 10px;
}
.pop-form-areas label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 22px 6px 0;
  font-size: 15px;
  cursor: pointer;
}
.pop-form-areas input,
.pop-form .foot-form-consent input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}
.pop-form .foot-form-consent {
  color: var(--text-muted);
}
.pop-form .btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.pop-form-success {
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid var(--gold-pale);
  border-left: 3px solid var(--gold);
  background: rgba(227, 181, 115, 0.1);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 560px) {
  .pop-form .foot-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- cookie banner (includes/cookie_banner.html) ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  background: var(--paper);
  color: var(--text-dark);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(42, 23, 72, 0.45);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.6;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner p {
  margin: 0;
  flex: 1;
}
.cookie-banner a {
  color: var(--ink-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex: none;
}
.cookie-banner .btn {
  padding: 10px 18px;
  justify-content: center;
  text-align: center;
}
.cookie-banner .btn-outline {
  color: var(--ink-900);
  border-color: var(--paper-line);
}
.cookie-banner .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner-buttons .btn {
    flex: 1;
  }
}

/* ---------- sponsor logos: always inside their card; a shared stand stacks its logos ---------- */
.sponsors-grid {
  --sponsor-card-height: 250px;
  --sponsor-logo-height: 140px;
}
.sponsor-logo {
  height: auto;
  min-height: var(--sponsor-card-height);
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 28px;
  padding: 28px 24px;
}
.sponsor-logo img {
  width: auto;
  max-width: 100%;
  max-height: var(--sponsor-logo-height);
  height: auto;
  object-fit: contain;
  flex: none;
}
.sponsor-logo.shared img {
  max-height: calc((var(--sponsor-card-height) - 110px) / 2);
}
.sponsor-name {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--ink-900);
  text-align: center;
}

/* ---------- review pages: article, figures, galleries, lightbox, attendees, downloads, columns ---------- */
.sdf-article {
  max-width: var(--maxw);
} /* the page width, like every other block */
/* Text section options: the photo's side and size beside the text, and a reading width for the text */
@media (min-width: 901px) {  /* side by side only where the grid has two columns */
  .about-grid.img-small { grid-template-columns: 1.5fr 0.6fr; }
  .about-grid.img-large { grid-template-columns: 1fr 1fr; }
  .about-grid.img-left { grid-template-columns: 0.9fr 1.1fr; }
  .about-grid.img-left.img-small { grid-template-columns: 0.6fr 1.5fr; }
  .about-grid.img-left.img-large { grid-template-columns: 1fr 1fr; }
  .about-grid.img-left > .plate { order: -1; }
}
.text-narrow .about-copy { max-width: 78ch; }
.sdf-article .sdf-rich h2,
.sdf-article .sdf-rich h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--ink-900);
}
.sdf-article .sdf-rich > p:first-child {
  font-size: 20px;
}
.sdf-article + .sdf-article {
  margin-top: 0;
}
section + section .sdf-article {
  padding-top: 0;
}

.sdf-carousel {
  background: var(--paper-dim);
  padding: 26px 0 16px;
  border-bottom: 1px solid var(--paper-line);
}
.sdf-carousel > p {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sdf-carousel .logo-carousel {
  --logo-height: 54px;
  --logo-gap: 72px;
  --logo-seconds: 1.5s;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.sdf-stats {
  background: var(--paper-dim);
}
.sdf-stats .stat-row {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .sdf-stats .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sdf-gallery.in-column {
  padding: 0 0 32px;
}
.sdf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.sdf-gallery.in-column .sdf-gallery-grid {
  grid-template-columns: repeat(2, 1fr);
}
.sdf-gallery-grid a {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--paper-dim);
  border-radius: var(--radius);
}
.sdf-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sdf-gallery-grid a:hover img {
  transform: scale(1.04);
}
.sdf-gallery-more {
  margin-top: 22px;
  border-color: var(--ink-700);
  color: var(--ink-900);
}
.sdf-gallery-more:hover {
  border-color: var(--gold);
  color: var(--gold);
}
@media (max-width: 560px) {
  .sdf-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

dialog.sdf-lightbox {
  margin: auto;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: none;
  background: rgba(26, 14, 46, 0.96);
  color: var(--text-on-ink);
}
dialog.sdf-lightbox::backdrop {
  background: rgba(26, 14, 46, 0.96);
}
.sdf-lightbox figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 72px;
}
.sdf-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.sdf-lightbox figcaption {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-on-ink-muted);
}
.sdf-lightbox button {
  position: absolute;
  background: none;
  border: 1px solid rgba(227, 181, 115, 0.35);
  color: var(--text-on-ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
.sdf-lightbox button:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.sdf-lightbox .lb-close {
  top: 18px;
  right: 18px;
}
.sdf-lightbox .lb-prev {
  left: 18px;
  top: 50%;
  margin-top: -24px;
}
.sdf-lightbox .lb-next {
  right: 18px;
  top: 50%;
  margin-top: -24px;
}
@media (max-width: 560px) {
  .sdf-lightbox figure {
    padding: 64px 12px;
  }
  .sdf-lightbox .lb-prev,
  .sdf-lightbox .lb-next {
    top: auto;
    bottom: 18px;
    margin: 0;
  }
}

.sdf-attendee-cols {
  columns: 3 260px;
  column-gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sdf-attendee-cols li {
  break-inside: avoid;
  padding: 9px 0;
  border-top: 1px solid var(--paper-line);
  font-size: 15px;
  color: var(--ink-900);
}
.sdf-attendee-cols li span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.sdf-attendee-group {
  break-inside: avoid;
  margin-bottom: 24px;
}
.sdf-attendee-group h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.sdf-attendee-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* sponsors as names only: one row per tier, the tier name then its organisations */
.sdf-sponsor-tier {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 28px;
  padding: 14px 0;
  border-top: 1px solid var(--paper-line);
}
.sdf-sponsor-tier h3 {
  font-size: 16px;
  margin: 0;
}
.sdf-sponsor-tier > .sponsor-names:only-child {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .sdf-sponsor-tier {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* each name carries its "·" in the space on its left; the list starts that space early and clips it,
   so a name that begins a line loses its separator */
.sdf-sponsor-tier .sponsor-names {
  --sponsor-gap: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  margin: 0 0 0 calc(-1 * var(--sponsor-gap));
  padding: 0;
  clip-path: inset(0 0 0 var(--sponsor-gap));
  font-size: 15px;
  color: var(--ink-900);
}
.sdf-sponsor-tier .sponsor-names li {
  position: relative;
  padding-left: var(--sponsor-gap);
}
.sdf-sponsor-tier .sponsor-names li::before {
  content: "·";
  position: absolute;
  left: 0;
  width: var(--sponsor-gap);
  text-align: center;
  color: var(--text-muted);
}

.sdf-downloads .sdf-downloads-intro,
.sdf-downloads .section-head p {
  color: var(--text-on-ink-muted);
}
.sdf-download-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  columns: 2 340px;
  column-gap: 40px;
}
.sdf-download-list li {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(227, 181, 115, 0.16);
}
.sdf-download-list a {
  color: var(--text-on-ink);
}
.sdf-download-list a:hover {
  color: var(--gold-light);
}
.sdf-download-list span {
  color: var(--text-on-ink-muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.sdf-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.sdf-columns-grid.one_third {
  grid-template-columns: 1fr 2fr;
}
.sdf-columns-grid.two_thirds {
  grid-template-columns: 2fr 1fr;
}
.sdf-columns-grid > div {
  min-width: 0;
}
@media (max-width: 900px) {
  .sdf-columns-grid,
  .sdf-columns-grid.one_third,
  .sdf-columns-grid.two_thirds {
    grid-template-columns: 1fr;
  }
}

.sdf-figure {
  margin: 0;
  padding: 24px 0 72px;
}
.sdf-figure-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.sdf-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- spacing between blocks: one section's space, not two ---------- */
section {
  padding: 60px 0;
}
section + section:not(.prog):not(.cta-band):not(.sdf-stats):not(.hero) {
  padding-top: 20px;
}
section:has(> .sdf-article) {
  padding-top: 20px;
  padding-bottom: 20px;
}
.sdf-carousel + section:has(> .sdf-article),
.hero + section:has(> .sdf-article) {
  padding-top: 56px;
}
section:has(> .sdf-article) + .sdf-figure {
  padding-top: 24px;
}
.sdf-figure {
  padding: 24px 0 36px;
}
.sdf-figure + section {
  padding-top: 24px;
}
.sdf-gallery {
  padding: 40px 0;
}
.sdf-columns {
  padding: 20px 0 40px;
}
.sdf-columns .sdf-gallery.in-column {
  padding: 0;
}
.sdf-rich > :first-child {
  margin-top: 0;
}
.sdf-rich > :last-child {
  margin-bottom: 0;
}
.sdf-columns {
  padding: 16px 0 16px;
}
.sdf-columns-grid {
  align-items: start;
}
.sdf-columns-grid section {
  padding: 0 !important;
}
.sdf-columns-grid .sdf-figure.in-column {
  padding: 0;
}
.sdf-columns + section {
  padding-top: 28px;
}
section:has(> .sdf-article) + .sdf-columns,
.sdf-columns + section:has(> .sdf-article) {
  padding-top: 28px;
}

/* ---------- one size for every H2 (section titles, article headings, closing band); change it here ---------- */
:root {
  --h2-size: clamp(24px, 2.8vw, 32px);
}
.section-head h2,
.sdf-rich h2,
.sdf-article .sdf-rich h2,
.cta-band h2,
.about-copy > h2 {
  font-size: var(--h2-size);
}

/* ---------- password form (protected documents, "Download all", protected pages) ---------- */
.lock-backdrop {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  background: linear-gradient(
    120deg,
    var(--ink-900),
    var(--c-purple),
    var(--ink-700)
  );
}
.lock-card {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(20, 10, 40, 0.45);
  overflow: hidden;
  animation: popIn 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.lock-body {
  padding: 32px 34px 30px;
}
.lock-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 14px;
}
.lock-body .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.lock-body h2 {
  font-size: var(--h2-size);
  margin-bottom: 10px;
}
.lock-body > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 22px;
}
.lock-form label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.lock-form input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.lock-form input[type="password"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.lock-form input[aria-invalid="true"] {
  border-color: var(--c-terracotta);
}
.lock-error {
  color: var(--c-terracotta);
  font-size: 14px;
  margin: -6px 0 14px;
}
.lock-form .btn {
  width: 100%;
  justify-content: center;
}
.lock-help {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}
.lock-help a {
  color: var(--ink-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .lock-card {
    animation: none;
  }
}

/* ---------- slides link on a talk in the programme ---------- */
.sdf-slides {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 2px 10px 2px 8px;
  vertical-align: 1px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(227, 181, 115, 0.45);
  border-radius: var(--radius);
}
/* Download icon (arrow into a tray), painted in the text colour so it follows the hover state */
.sdf-slides::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  background-color: currentColor;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v8.5M4.5 6.5 8 10l3.5-3.5M2 11.5v2.5h12v-2.5'/%3E%3C/svg%3E");
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.sdf-slides:hover {
  background: var(--gold);
  color: var(--ink-900);
  border-color: var(--gold);
}
.sdf-downloads-note {
  margin-top: 18px;
  color: var(--text-on-ink-muted);
  font-size: 14px;
}

/* ---------- fee cards: names line up at the top, prices at the bottom; the badge is a tab on the top edge ---------- */
.fees-grid {
  padding-top: 12px;
}
.fee-card {
  position: relative;
  padding-top: 30px;
}
.fee-card .fee-badge {
  position: absolute;
  top: -11px;
  left: 20px;
}
.fee-card .fee-price {
  margin-top: auto;
  padding-top: 10px;
}
.download-file {
  color: var(--ink-900);
  font-size: 15px;
  margin-bottom: 12px;
  word-break: break-word;
}
.lock-back {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  border-color: var(--paper-line);
  color: var(--ink-900);
}
.lock-back:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.lock-form .btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
