@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jakarta-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jakarta-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/jakarta-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/jakarta-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/jakarta-800.ttf) format('truetype');
}

/* Small refinements only. Original palette, fonts, layout and content retained. */
html {
  scroll-padding-top: 100px;
}
.hero h1 {
  line-height: 1.25;
}
.section h2 {
  line-height: 1.2;
}
.hero p, .lead, .mini p {
  text-wrap: pretty;
}
.actions {
  align-items: center;
}
.btn {
  line-height: 1.4;
}
.mini h3 {
  line-height: 1.4;
}
.about h2 {
  margin-top: 18px;
}
.grid > div, .mini {
  min-width: 0;
}
label, .label {
  line-height: 1.5;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--t);
  outline-offset: 4px;
}
.btn, .next, .back, .submit {
  transition: filter .18s ease, transform .18s ease;
}
.btn:hover, .next:hover, .back:hover, .submit:hover {
  filter: brightness(.96);
}
.btn:active, .next:active, .back:active, .submit:active {
  transform: translateY(1px);
}
@media (max-width: 520px) {
  .nav {
    gap: 10px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand img {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
  }
  .brand b {
    line-height: 1.4;
  }
  nav {
    gap: 6px;
  }
  .hero .inner {
    padding-top: 46px;
    padding-bottom: 46px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .facts {
    gap: 10px;
  }
  #eligibility .cards {
    grid-template-columns: 1fr !important;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Header alignment; preserve the original brand and button treatments. */
header .nav {
  min-height: 84px;
  gap: 28px;
}
header .brand {
  min-width: 0;
  flex: 1 1 auto;
}
header .brand img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}
header .brand b {
  max-width: 330px;
  line-height: 1.35;
}
header .brand small {
  display: block;
  margin-top: 4px;
}
header nav {
  flex: 0 0 auto;
  gap: 20px;
}
header nav a {
  white-space: nowrap;
}
header nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
header nav .uydn-donate {
  margin-right: 0;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--p);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 1000px) {
  header .nav {
    flex-wrap: wrap;
    gap: 0 16px;
    padding: 12px 20px;
    min-height: 76px;
  }
  header .brand {
    flex: 1;
  }
  header .brand b {
    max-width: 300px;
    font-size: 13px;
  }
  header .brand small {
    font-size: 12px;
  }
  .menu-toggle:not([hidden]) {
    display: inline-flex;
  }
  header nav {
    flex: 1 0 100%;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0 4px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  header.nav-ready nav:not(.is-open) {
    display: none;
  }
  header nav a:not(.btn) {
    display: block;
    padding: 12px;
  }
}
@media (max-width: 520px) {
  header .nav {
    padding: 10px 16px;
    gap: 0 12px;
  }
  header .brand img {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  header .brand b {
    font-size: 11px;
    max-width: 210px;
  }
  header .brand small {
    display: none;
  }
  header nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  header nav a:not(.btn) {
    grid-column: 1 / -1;
    padding: 10px 4px;
  }
}

/* Approved split-panel hero concept. */
#home { display: block; min-height: 0; background: var(--p2); }
.hero-stage { position: relative; max-width: 1800px; margin: auto; display: grid; grid-template-columns: 55% 45%; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: 54px 30px 62px max(32px,calc((100vw - 1320px)/2)); background: var(--p2); }
.hero-copy::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(100% - 1px); width: 72px; background: var(--p2); clip-path: polygon(0 0,100% 0,0 100%); pointer-events: none; }
.hero-date { font-size: 11px; font-weight: 600; letter-spacing: .19em; line-height: 1.6; }
#home h1 { margin: 22px 0 0; max-width: none; font-size: clamp(62px,7.4vw,108px); line-height: .94; letter-spacing: -.055em; }
#home h1 .hero-place { display: block; color: #fff; }
#home h1 .hero-name { display: block; color: #fff; font-size: .79em; white-space: nowrap; margin-top: 5px; }
#home h1 .hero-year { color: var(--t); font-size: .64em; letter-spacing: -.045em; }
#home h1 .hero-subtitle { display: block; color: #fff; font-size: clamp(18px,2vw,29px); line-height: 1.3; letter-spacing: -.025em; margin-top: 10px; }
.hero-rule { width: 64px; height: 4px; background: var(--gold); margin: 24px 0; }
#home .theme { font-size: clamp(27px,3vw,43px); line-height: 1.12; letter-spacing: -.025em; margin: 0; }
#home .theme b:first-of-type { color: #fff; }
#home .theme b:nth-of-type(2) { color: var(--g); }
#home .theme b:nth-of-type(3) { color: var(--gold); }
#home .theme b { white-space: nowrap; }
#home p { font-size: 17px; line-height: 1.65; max-width: 490px; margin: 20px 0 26px; }
#home .actions { gap: 25px; margin: 0; align-items: center; }
#home .actions .btn { background: #fff; color: var(--p); border-radius: 12px; min-height: 50px; padding: 14px 23px; font-size: 14px; display: inline-flex; align-items: center; }
.hero-archive { font-size: 13px; font-weight: 600; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.6); }
.hero-photo { margin: 0; position: relative; min-width: 0; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; background: var(--p2); padding: 22px 28px; font-size: 12px; font-weight: 600; }
.hero-photo figcaption::before { content: ''; border-left: 2px solid var(--gold); margin-right: 16px; }
.hero-info { background: #fff; color: var(--ink); }
.hero-info-inner { max-width: 1380px; padding: 27px 30px; margin: auto; display: grid; grid-template-columns: 1.05fr 1fr 1.2fr 1fr; }
.hero-info-item { display: flex; gap: 16px; align-items: center; padding: 4px 24px; border-right: 1px solid var(--line); }
.hero-info-item:first-child { padding-left: 0; }
.hero-info-item:last-child { border-right: 0; padding-right: 0; }
.hero-info-item strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.hero-info-item div > span { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; }
.hero-info-item svg { width: 30px; height: 32px; fill: none; stroke: var(--p); stroke-width: 1.8; flex-shrink: 0; }
.hero-info-icon { font-size: 35px; line-height: 1; color: var(--p); }
#home .uydn-cd { margin: 0; width: 100%; }
#home .uydn-cd-label { color: var(--muted); font-size: 9px; letter-spacing: .08em; margin-bottom: 8px; }
#home .uydn-cd-grid { gap: 10px; }
#home .uydn-cd-box { border: 0; border-radius: 0; background: none; padding: 0; backdrop-filter: none; }
#home .uydn-cd-box b { color: var(--ink); font-size: 23px; }
#home .uydn-cd-box span { color: var(--muted); font-size: 7px; letter-spacing: .05em; }
#home .uydn-cd-msg { color: var(--p); padding: 0; background: none; border: 0; font-size: 14px; }
@media(min-width:1800px) { .hero-copy { padding-left: 100px; } }
@media(max-width:1100px) {
  .hero-copy { padding: 42px 20px 46px 28px; }
  .hero-copy::after { width: 40px; }
  #home .actions { gap: 16px; }
  .hero-info-inner { padding: 24px; }
  .hero-info-item { gap: 10px; padding: 4px 14px; }
  .hero-info-item strong { font-size: 13px; }
  .hero-info-item svg { width: 24px; }
}
@media(max-width:760px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 24px 40px; }
  .hero-copy::after { display: none; }
  #home h1 { font-size: clamp(58px,12vw,86px); }
  #home h1 .hero-subtitle { font-size: 22px; }
  #home .theme { font-size: 32px; }
  #home p { font-size: 16px; }
  .hero-photo { height: 280px; }
  .hero-photo figcaption { font-size: 11px; padding: 16px 20px; }
  .hero-info-inner { grid-template-columns: 1fr 1fr; padding: 8px 20px; }
  .hero-info-item { padding: 20px 12px; border-bottom: 1px solid var(--line); }
  .hero-info-item:nth-child(odd) { padding-left: 0; }
  .hero-info-item:nth-child(even) { border-right: 0; }
  .hero-info-item:nth-child(n+3) { border-bottom: 0; }
  .hero-info-item strong { font-size: 13px; }
  .hero-info-item div > span { font-size: 11px; }
  .hero-info-item svg { width: 23px; }
  .hero-info-icon { font-size: 28px; }
  #home .uydn-cd-box b { font-size: 19px; }
  #home .uydn-cd-grid { gap: 6px; }
}
@media(max-width:380px) {
  .hero-copy { padding-inline: 20px; }
  #home h1 { font-size: 56px; }
  #home h1 .hero-subtitle { font-size: 20px; }
  #home .theme { font-size: 29px; }
  #home .actions .btn { padding: 13px 17px; }
  .hero-archive { font-size: 12px; }
  .hero-info-item { gap: 8px; }
  .hero-info-item strong { font-size: 12px; }
}

/* Fine topographic contours from the approved hero reference. */
.hero-copy {
  background-image: url('images/hero-contours.svg');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 260px;
}
@media (max-width: 760px) {
  .hero-copy {
    background-size: 100% 210px;
  }
}

/* Conference overview and organiser: approved editorial concept. */
#details { max-width: none; background: #fff; padding: 66px max(24px,calc((100% - 1160px)/2)) 52px; }
.overview-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.section-kicker { display: block; color: var(--p); text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 700; }
.section-kicker::after { content: ''; display: block; width: 35px; height: 3px; background: var(--p); margin-top: 12px; }
#details h2 { font-size: clamp(32px,3.5vw,49px); line-height: 1.08; letter-spacing: -.035em; margin: 18px 0 0; }
.overview-intro p { font-size: 17px; line-height: 1.6; color: var(--p2); margin: 0; }
.overview-intro p + p { margin-top: 16px; }
.overview-intro strong { font-size: 19px; line-height: 1.5; font-weight: 700; }
.delegate-bar { display: flex; height: 12px; border-radius: 12px; overflow: hidden; margin: 36px 0 24px; }
.delegate-bar span:nth-child(1) { flex: 100; background: var(--p); }
.delegate-bar span:nth-child(2) { flex: 30; background: var(--t); }
.delegate-bar span:nth-child(3) { flex: 20; background: var(--gold); }
.delegate-breakdown { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.delegate-breakdown strong { display: block; font-size: clamp(48px,5vw,70px); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; color: var(--p2); }
.delegate-breakdown li:nth-child(2) strong { color: #008c9b; }
.delegate-breakdown li:nth-child(3) strong { color: #bd8200; }
.delegate-breakdown h3 { margin: 8px 0 4px; font-size: 20px; line-height: 1.3; color: var(--p2); }
.delegate-breakdown li > span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.organiser-section { background: #f8f5fb; padding: 32px 24px 40px; }
.organiser-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 42px; max-width: 1240px; margin: auto; align-items: stretch; }
.organiser-photo { width: 100%; height: 100%; min-height: 390px; max-height: 520px; object-fit: cover; border-radius: 10px; }
.organiser-copy { padding: 22px 0 24px; background: url('images/hero-contours.svg') right bottom / 90% 180px no-repeat; }
.organiser-copy .section-kicker::after { display: none; }
.organiser-copy .section-kicker::before { content: ''; display: block; width: 40px; height: 3px; background: var(--p); margin-bottom: 14px; }
.organiser-copy h2 { margin: 26px 0 20px; color: var(--p2); font-size: clamp(28px,2.8vw,38px); line-height: 1.12; letter-spacing: -.025em; }
.organiser-copy p { max-width: 470px; color: var(--p2); font-size: 18px; line-height: 1.6; margin: 0; }
.organiser-copy .organiser-motto { margin-top: 24px; font-size: 17px; font-weight: 700; }
.organiser-copy .socials { margin-top: 26px; gap: 28px; }
.organiser-copy .social { background: none; color: var(--p)!important; border-radius: 0; padding: 8px 0; font-size: 14px; font-weight: 700; }
.organiser-copy .social svg { display: none; }
.organiser-copy .social::after { content: '↗'; margin-left: 4px; }
.organiser-copy .social:hover { text-decoration: underline; text-underline-offset: 5px; }
@media(max-width:850px) {
  .overview-heading { gap: 30px; }
  .organiser-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .organiser-copy h2 { font-size: 28px; }
  .organiser-copy p { font-size: 16px; }
  .delegate-breakdown h3 { font-size: 17px; }
}
@media(max-width:600px) {
  #details { padding: 42px 20px 36px; }
  .overview-heading { grid-template-columns: 1fr; gap: 24px; }
  #details h2 { font-size: 36px; }
  .overview-intro p, .overview-intro strong { font-size: 16px; }
  .delegate-bar { margin: 28px 0 20px; height: 8px; }
  .delegate-breakdown { gap: 14px; }
  .delegate-breakdown strong { font-size: 42px; }
  .delegate-breakdown h3 { font-size: 14px; }
  .delegate-breakdown li > span { font-size: 12px; }
  .organiser-section { padding: 24px 20px; }
  .organiser-inner { grid-template-columns: 1fr; gap: 24px; }
  .organiser-photo { height: 270px; min-height: 0; }
  .organiser-copy { padding-top: 0; }
  .organiser-copy .socials { gap: 24px; }
}

/* Shared locally hosted typography on both pages and generated UI. */
body, button, input, select, textarea, body .uydn-banner, body .uydn-dp, body .uydn-vbar, body .uydn-back, body .uydn-testi { font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif; }
.hero-date, .section-kicker { font-weight: 700; }
h1, h2, h3 { letter-spacing: -.035em; }
#home h1 { font-weight: 800; }
#home h1 .hero-name { font-size: .74em; }
body .uydn-cd-box b, body .uydn-cd-box span { font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif; font-variant-numeric: tabular-nums; }
.tradition-gallery { background: #fff; }
.media-heading { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 48px; margin-bottom: 34px; }
.media-heading h2 { font-size: clamp(32px,3.6vw,48px); line-height: 1.12; margin: 20px 0 0; }
.media-heading > p { color: var(--p2); font-size: 17px; line-height: 1.65; margin: 0 0 4px; }
#tradition-night .tradition-grid { grid-template-columns: 1.65fr 1fr; grid-template-rows: repeat(2,230px); gap: 14px; }
#tradition-night .tradition-card { display: block; border: 0; padding: 0; border-radius: 8px; box-shadow: none; min-height: 0; width: 100%; height: 100%; }
#tradition-night .tradition-card:first-child { grid-row: 1 / 3; }
#tradition-night .tradition-card:last-child { grid-column: auto; }
#tradition-night .tradition-card img { width: 100%; height: 100%; object-fit: cover; }
#tradition-night .tradition-card::after { display: none; }
.tradition-card > span { position: absolute; bottom: 12px; right: 12px; background: var(--p); color: #fff; font-size: 24px; line-height: 1; padding: 8px; border-radius: 3px; }
.gallery-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; font-size: 12px; }
.gallery-footer p { margin: 0; color: var(--muted); }
.gallery-footer .gallery-socials { margin: 0; gap: 22px; color: var(--p); font-weight: 600; }
.stories-section { background: #f8f5fb; }
.stories-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
#story-video { display: block; width: 100%; height: 490px; object-fit: contain; background: var(--p2); border-radius: 8px; }
.story-caption h3 { font-size: 25px; color: var(--p2); margin: 20px 0 6px; }
.story-caption p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.story-list > h3 { color: var(--p2); font-size: 21px; margin: 0 0 14px; }
.story-choice { display: flex; align-items: center; width: 100%; gap: 14px; padding: 13px 10px; border: 0; border-top: 1px solid #e3d8eb; border-left: 3px solid transparent; text-align: left; background: transparent; color: var(--p2); cursor: pointer; }
.story-choice[aria-pressed="true"] { background: #eee2f6; border-left-color: var(--p); }
.story-choice:hover { background: #f0e8f5; }
.story-choice img { width: 56px; height: 60px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.story-person { flex: 1; min-width: 0; }
.story-person strong { display: block; font-size: 13px; line-height: 1.5; }
.story-person > span { display: block; font-size: 11px; color: #705483; line-height: 1.5; margin-top: 4px; }
.story-play { border: 1px solid var(--p); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }
.story-hint { font-size: 11px; line-height: 1.6; color: var(--muted); text-align: right; }
#story-error { color: var(--p); line-height: 1.6; font-size: 14px; }
@media(max-width:850px) {
  .stories-layout { grid-template-columns: 1fr 1fr; gap: 22px; }
  .media-heading { gap: 28px; }
  .story-choice { gap: 10px; padding: 12px 8px; }
  .story-choice img { width: 44px; height: 50px; }
}
@media(max-width:650px) {
  .media-heading, .stories-layout { grid-template-columns: 1fr; gap: 24px; }
  .media-heading h2 { font-size: 32px; }
  .media-heading > p { font-size: 15px; }
  #tradition-night .tradition-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px; gap: 10px; }
  #tradition-night .tradition-card:first-child { grid-column: 1 / -1; grid-row: 1; }
  .gallery-footer { flex-direction: column; align-items: flex-start; font-size: 11px; }
  #story-video { height: 430px; }
  .story-choice img { width: 52px; height: 56px; }
  .story-person strong { font-size: 14px; }
  .story-person > span { font-size: 12px; }
}
#tradition-night, .stories-section { background-image: url('images/hero-contours.svg'); background-position: right top; background-size: 260px 180px; background-repeat: no-repeat; }

/* Recap and eligibility, with the same fine contour motif as the concepts. */
.recapbox { grid-template-columns: 1.05fr 1fr; border-radius: 10px; }
.recapimg { position: relative; min-height: 480px; }
.recapimg > span { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 24px 22px; background: linear-gradient(transparent,rgba(0,0,0,.55)); font-size: 12px; }
.recaptxt { padding: 42px 36px; background: var(--p2) url('images/hero-contours.svg') right bottom / 100% 230px no-repeat; }
.recaptxt .year { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #4ee0df; }
.recaptxt h2 { font-size: clamp(28px,3vw,40px); line-height: 1.15; margin: 22px 0; }
.recaptxt p { font-size: 15px; line-height: 1.8; }
.recaptxt .recap-date { color: var(--gold); text-transform: uppercase; letter-spacing: .07em; font-size: 12px; font-weight: 700; margin: 0 0 18px; }
.recaptxt .recap-theme { color: #fff; font-size: 17px; font-weight: 800; margin: 14px 0 24px; }
.recaptxt .btn { background: #fff; color: var(--p2); border-radius: 10px; padding: 16px 22px; font-size: 14px; }
#eligibility { max-width: none; padding: 72px max(24px,calc((100% - 1160px)/2)); background: #f8f5fb url('images/section-contours.svg') left bottom / 330px 300px no-repeat; }
.eligibility-layout { display: grid; grid-template-columns: .85fr 1.6fr; gap: 60px; }
.eligibility-intro h2 { font-size: clamp(36px,4vw,52px); line-height: 1.12; margin: 28px 0 24px; }
.eligibility-intro > p { font-size: 18px; line-height: 1.65; color: var(--p2); margin: 0 0 28px; }
.eligibility-intro .btn { font-size: 14px; padding: 16px 20px; border-radius: 10px; }
.eligibility-list { list-style: none; margin: 0; padding: 0; }
.eligibility-list li { display: grid; grid-template-columns: 66px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid #e1d4eb; }
.eligibility-list li:first-child { border-top: 0; padding-top: 0; }
.requirement-number { color: #9270a5; font-weight: 800; font-size: 44px; line-height: 1.15; letter-spacing: -.04em; }
.eligibility-list li > div { border-left: 1px solid #decee8; padding-left: 24px; }
.eligibility-list h3 { color: var(--p2); font-size: 20px; line-height: 1.3; margin: 0 0 10px; }
.eligibility-list p { font-size: 14px; line-height: 1.75; margin: 0; color: var(--p2); }
.eligibility-note { background: #fff6df; border-left: 4px solid var(--gold); border-radius: 3px; color: #544321; padding: 18px 22px; font-size: 14px; line-height: 1.75; margin: 28px 0 0; }
.stories-section { background-image: url('images/section-contours.svg'),url('images/section-contours.svg'); background-position: right top,left bottom; background-size: 310px 230px,280px 220px; background-repeat: no-repeat; }
@media(max-width:850px) {
  .recapbox { grid-template-columns: 1fr; }
  .recapimg { min-height: 330px; }
  .eligibility-layout { gap: 32px; grid-template-columns: .85fr 1.4fr; }
  .eligibility-list li { grid-template-columns: 42px 1fr; gap: 12px; }
  .requirement-number { font-size: 32px; }
  .eligibility-list li > div { padding-left: 16px; }
}
@media(max-width:600px) {
  .recaptxt { padding: 30px 24px; }
  .recapimg { min-height: 280px; }
  #eligibility { padding: 44px 20px; background-size: 230px 220px; }
  .eligibility-layout { grid-template-columns: 1fr; gap: 36px; }
  .eligibility-intro h2 { font-size: 38px; }
  .eligibility-intro > p { font-size: 16px; }
  .eligibility-list h3 { font-size: 18px; }
  .eligibility-note { padding: 16px; font-size: 13px; }
  .stories-section { background-size: 180px 150px,190px 170px; }
}

/* Application: calm, clearly grouped fields and an honest six-step journey. */
#apply { max-width: none; padding: 76px 24px 90px; background: #f8f5fb url('images/section-contours.svg') right top / 380px 300px no-repeat; scroll-margin-top: 90px; }
#apply .formwrap { max-width: 1040px; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
#apply .formhead { background: none; padding: 0 0 34px; color: var(--p2); }
#apply .formhead h2 { color: var(--p2); font-size: clamp(32px,4vw,48px); line-height: 1.15; margin: 20px 0 14px; }
#apply .formhead p { color: #65566d; font-size: 17px; line-height: 1.6; }
#apply .progress-wrap { padding: 0; margin-bottom: 28px; }
.application-steps { display: flex; list-style: none; padding: 0; margin: 0 0 20px; gap: 12px; justify-content: space-between; }
.application-steps li { flex: 1; border-top: 1px solid #dacee1; padding-top: 14px; color: #75677e; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.application-steps li > span:first-child { width: 28px; height: 28px; border: 1px solid #cdbdd7; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; }
.application-steps li[aria-current] { color: var(--p); font-weight: 800; border-color: var(--p); }
.application-steps li[aria-current] > span:first-child { background: var(--p); color: white; border-color: var(--p); }
.application-steps li[data-complete] > span:first-child { background: #e9ddef; color: var(--p); }
#apply .progress { height: 3px; background: #e8dfed; }
#apply .progress span { background: var(--p); }
#apply .progress-meta { font-size: 11px; }
#apply .application-note { border: 0; border-left: 3px solid var(--gold); border-radius: 2px; background: #fff8e8; padding: 18px 22px; font-size: 13px; line-height: 1.75; margin-bottom: 28px; }
.application-note b { display: block; margin-bottom: 4px; color: #503d1d; font-size: 15px; }
#apply .form { background: white; border: 1px solid #e7dfee; border-radius: 12px; padding: 34px 38px; }
#apply .form h3 { font-size: 23px; margin: 0 0 30px; line-height: 1.4; }
#apply .form h3 span { margin-left: 12px; }
.required-note { float: right; font-size: 11px; color: #776a80; margin: 10px 0; }
#apply .grid { gap: 24px; }
#apply label { font-size: 12px; line-height: 1.6; color: #392b44; font-weight: 700; }
#apply input, #apply select, #apply textarea { border: 1px solid #d8cede; border-radius: 6px; min-height: 48px; font-size: 14px; padding: 12px 14px; }
#apply input[type=checkbox] { min-height: auto; accent-color: var(--p); }
#apply .form-group-title { border-top: 1px solid #eee7f1; padding-top: 24px; margin-top: 4px; color: var(--p2); font-size: 15px; font-weight: 800; }
#apply .navbuttons { border-top: 1px solid #eee7f1; padding-top: 24px; margin-top: 32px; }
#apply .next, #apply .submit { background: var(--p); border-radius: 6px; padding: 15px 28px; }
#apply .next:hover, #apply .submit:hover { background: var(--p2); }
#apply button:focus-visible { outline: 3px solid var(--t); outline-offset: 3px; }
@media(max-width:700px) {
 #apply { padding: 48px 18px 60px; background-size: 210px 200px; }
 #apply .form { padding: 24px 20px; }
 #apply .grid { grid-template-columns: 1fr; gap: 22px; }
 #apply .required-note { float: none; margin: 0 0 14px; }
 #apply .form h3 { font-size: 20px; }
 .application-steps { gap: 8px; }
 .application-steps li { flex-direction: column; align-items: flex-start; }
 .application-steps li > span:last-child { display: none; }
 #apply .formhead .section-kicker { font-size: 10px; letter-spacing: .07em; }
 #apply .application-note { padding: 16px; font-size: 12px; }
 #apply .navbuttons { position: static; }
}

/* A quiet, branded close to the conference page. */
.site-footer { padding: 64px 24px 30px; background: #35104f url('images/hero-contours.svg') right top / 550px 360px no-repeat; color: #fff; }
.footer-inner { max-width: 1160px; margin: auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 48px; }
.footer-wordmark { display: inline-block; font-size: 40px; font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-bottom: 22px; }
.footer-wordmark span { color: var(--gold); }
.footer-identity h2 { font-size: 21px; line-height: 1.4; margin: 0 0 12px; letter-spacing: -.02em; }
.footer-identity p { color: #e6d8ee; font-size: 14px; margin: 0 0 12px; }
.footer-organiser { color: #cbb6d8; font-size: 12px; }
.footer-eyebrow { display: block; color: #4ee0df; font-size: 11px; letter-spacing: .12em; font-weight: 700; margin-bottom: 18px; }
.footer-conference h2 { font-size: clamp(26px,3vw,38px); line-height: 1.2; margin: 0 0 18px; letter-spacing: -.04em; }
.footer-conference h2 span { color: var(--gold); }
.footer-conference p { font-size: 13px; color: #e6d8ee; margin: 0 0 24px; }
.footer-apply { display: inline-flex; align-items: center; gap: 28px; padding-bottom: 9px; border-bottom: 1px solid #b892cd; font-size: 14px; font-weight: 700; }
.footer-links { display: flex; justify-content: space-between; gap: 30px; padding: 26px 0; border-top: 1px solid #654377; border-bottom: 1px solid #654377; }
.footer-navigation, .footer-socials { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.site-footer .uydn-foot-links { display: contents; }
.site-footer .uydn-foot-links a { background: none; padding: 0; border: none; border-radius: 0; color: var(--gold); font-size: inherit; box-shadow: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: #d0bbdc; padding-top: 24px; }
.footer-bottom p { margin: 0; }
.footer-credit { max-width: 820px; color: #bba4c8; font-size: 10px; line-height: 1.7; margin: 20px 0 0; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #4ee0df; }
.site-footer a:focus-visible { outline: 2px solid #4ee0df; outline-offset: 6px; }
@media(max-width:700px) {
 .site-footer { padding: 44px 22px 90px; background-size: 320px 280px; }
 .footer-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
 .footer-links { flex-direction: column; gap: 24px; }
 .footer-navigation, .footer-socials { gap: 20px; font-size: 12px; }
 .footer-bottom { flex-direction: column; gap: 16px; }
}

/* Keep the contour drawing anchored to the canvas, below the hero copy. */
.hero-copy { background-image: none; isolation: isolate; }
.hero-copy::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: auto 0 0; height: 220px; background: url('images/hero-contours-refined.svg') left bottom / 100% 100% no-repeat; mask-image: linear-gradient(to bottom,transparent,#000 28%); }
@keyframes section-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion: no-preference) {
 .enter-once { animation: section-arrive 700ms cubic-bezier(.22,1,.36,1) var(--entrance-delay,0ms) both; }
 .hero .btn, .footer-apply, .recaptxt .btn, .eligibility-intro .btn { transition: transform 220ms ease, background-color 220ms ease, color 220ms ease; }
 .hero .btn:hover, .recaptxt .btn:hover, .eligibility-intro .btn:hover { transform: translateY(-2px); }
 .tradition-card img { transition: transform 600ms cubic-bezier(.22,1,.36,1); }
 .tradition-card:hover img { transform: scale(1.025); }
 .story-choice { transition: background-color 220ms ease, border-color 220ms ease; }
}
@media(max-width:780px) { .hero-copy::before { height: 160px; } }
@media(prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .enter-once { animation: none; }
 .hero .btn, .tradition-card img, .story-choice { transition: none; }
}
.privacy-entry button, .footer-navigation button { font: inherit; color: inherit; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
#apply .privacy-entry { font-size: 12px; margin-top: 12px; }
[data-privacy-open]:focus-visible { outline: 2px solid var(--t); outline-offset: 4px; }


/* Tree Planting Gallery — responsive image sizing */
.tree-gallery-section .tree-photo {
  display: block;
  width: 100%;
  height: 260px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  cursor: pointer;
}

.tree-gallery-section .tree-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tree-gallery-section .tree-photo:hover img {
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .tree-gallery-section .tree-photo {
    height: 200px;
  }
}
/* Keep tree-planting images at a moderate viewing size */
.tree-gallery-section .tree-photo img {
  max-width: 100%;
  object-fit: cover;
}

/* Limit the size of the enlarged image */
.tree-lightbox img,
.tree-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  margin: auto;
}

@media (max-width: 600px) {
  .tree-lightbox img,
  .tree-lightbox-image {
    max-width: 92vw;
    max-height: 65vh;
  }
}
