:root {
  --blue: #0b3a8f;
  --blue-deep: #072761;
  --blue-ink: #051a42;
  --gold: #c89b2e;
  --gold-soft: #e6c76a;
  --ivory: #fbf8f1;
  --paper: #ffffff;
  --text: #1c2740;
  --muted: #5b6785;
  --line: rgba(11, 58, 143, 0.14);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
/* The colour behind the page: it shows when a phone is pulled past the footer, so it matches the footer. The body keeps the ivory page colour. */
html { scroll-behavior: smooth; background: var(--blue-ink); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--ivory);
  min-height: 100vh;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  max-width: 1360px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span {
  font-family: var(--serif); font-weight: 600; font-size: 1.4rem;
  letter-spacing: 0.18em; color: var(--blue);
}
nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
nav a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-deep);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
nav a:hover { border-color: var(--gold); }
.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 9px 18px !important; border-radius: 2px; border: 0 !important;
}
.nav-cta:hover { background: var(--blue-deep); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--blue); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(200,155,46,.18), transparent 60%),
    linear-gradient(180deg, var(--blue-deep), var(--blue-ink));
  color: #fff; text-align: center;
  padding: 72px 0 96px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-emblem {
  width: min(300px, 62vw); margin: 0 auto 28px;
  background: var(--paper); border-radius: 50%;
  padding: 18px; box-shadow: 0 0 0 4px var(--gold), 0 24px 60px rgba(0,0,0,.4);
}
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05;
  letter-spacing: 0.1em; margin: 0 0 18px;
}
.hero p.lead {
  max-width: 620px; margin: 0 auto 34px;
  font-size: 1.1rem; color: rgba(255,255,255,.82);
}
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 2px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: #dab75c; color: var(--blue-ink); }
.btn-gold:hover { background: #e6c76a; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--gold); }
.section-head h2 {
  font-family: var(--serif); font-weight: 600; color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3rem); margin: 0; line-height: 1.15;
}
.rule {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 16px; color: var(--gold);
}
.rule::before, .rule::after { content: ""; width: 60px; height: 1px; background: var(--gold); }

/* About */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-grid .pillars { position: sticky; top: 96px; }
.about-grid p { color: var(--muted); font-size: 1.05rem; margin: 0 0 16px; }
.pillars { display: grid; gap: 16px; }
.pillar {
  border-left: 3px solid var(--gold); background: var(--ivory);
  padding: 18px 22px;
}
.pillar h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 4px; color: var(--blue); }
.pillar p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Events */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 28px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(7,39,97,.12); }
.card.featured { border-top-color: var(--gold); }
.date {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.card h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin: 0 0 10px; color: var(--blue-deep); }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; flex: 1; }
.card .more {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--blue);
}
.card .more::after { content: " →"; }

/* Countdown band */
.countdown { background: var(--blue-deep); color: #fff; padding: 56px 0; text-align: center; }
.count-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.count b {
  display: block; font-family: var(--serif); font-size: 3rem;
  color: var(--gold-soft); font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums;
}
.count-date { margin: 28px 0 0; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); font-variant-numeric: lining-nums; }
.count-btn { margin-top: 26px; }
.count span { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.count-done { font-family: var(--serif); font-size: 2rem; color: var(--gold-soft); margin: 0; }

/* Gallery: frames on the home page (3 columns, a photo fills its frame and a caption sits on it) */
#gallery .wrap { container-type: inline-size; }
/* A normal frame is always 1.45 times wider than high (about 348x240 on a large screen), so the admin frames show the same crop at any width */
.gallery { --g-gap: clamp(8px, 1.3cqw, 14px); --g-cols: 3; display: grid; grid-template-columns: repeat(var(--g-cols), 1fr); grid-auto-rows: calc((100cqw - (var(--g-cols) - 1) * var(--g-gap)) / var(--g-cols) / 1.45); grid-auto-flow: dense; gap: var(--g-gap); }
.shot {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: flex; align-items: flex-end; padding: 14px;
  color: rgba(255,255,255,.85); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.shot:nth-child(even) { background: linear-gradient(135deg, #1a4fb0, var(--blue)); }
.shot::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(230,199,106,.45); z-index: 3; pointer-events: none;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; display: block; }
.shot .cap { position: relative; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.shot.has-cap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(8,24,60,.78), transparent); z-index: 1; pointer-events: none; }
a.shot { color: rgba(255,255,255,.95); }
.shot.wide, .shot.big { grid-column: span 2; }
.shot.tall, .shot.big { grid-row: span 2; }
@media (min-width: 881px) { .shot.auto-wide { grid-column: span 2; } }
.gallery-more { margin-top: 28px; }
/* The full gallery page: whole photos in their own shape, in the same frames, with the caption on the photo */
.gp-grid { columns: 3 260px; column-gap: 14px; }
.gp-grid a { display: block; position: relative; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: var(--ivory); }
.gp-grid a::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(230,199,106,.6); z-index: 3; pointer-events: none; }
.gp-grid img { width: 100%; height: auto; display: block; }
.gp-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 18px 16px; color: rgba(255,255,255,.95); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; background: linear-gradient(to top, rgba(8,24,60,.78), transparent); }

/* Fancier frames, only on the Photo Gallery page: a double gold line and a caption with a gold diamond */
.gp-grid a { box-shadow: 0 6px 18px rgba(11, 30, 70, .16); }
.gp-grid a::before {
  inset: 10px; border: 1px solid rgba(230,199,106,.7); outline: 1px solid rgba(230,199,106,.3); outline-offset: 4px;
  transition: inset .3s ease, border-color .3s ease, outline-color .3s ease;
}
.gp-grid a:hover::before { inset: 14px; border-color: #e6c76a; outline-color: rgba(230,199,106,.55); }
.gp-grid .cap { font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: none; padding: 40px 24px 22px; }
.gp-grid .cap::before { content: "\25C6"; color: #e6c76a; font-size: 0.6rem; margin-right: 9px; vertical-align: 2px; }

/* Stories */
.stories { background: var(--paper); }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
blockquote {
  margin: 0; padding: 32px; background: var(--ivory);
  border: 1px solid var(--line); position: relative;
}
blockquote::before {
  content: "“"; position: absolute; top: -6px; left: 20px;
  font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: 1;
}
blockquote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; margin: 18px 0 14px; color: var(--blue-deep); }
blockquote footer { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Join */
.join {
  background: linear-gradient(180deg, var(--blue-deep), var(--blue-ink));
  color: #fff; text-align: center;
}
.join h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 14px; }
.join p { max-width: 560px; margin: 0 auto 30px; color: rgba(255,255,255,.8); }

/* Footer */
footer.site-footer { background: var(--blue-ink); color: rgba(255,255,255,.7); padding: 40px 0; font-size: 0.85rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; row-gap: 14px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand b { font-family: var(--serif); letter-spacing: 0.18em; font-size: 1.2rem; color: #fff; font-weight: 600; }
.footer-partners { display: flex; align-items: center; gap: 10px; margin-left: 8px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.25); }
.footer-partners a { display: flex; }
.footer-brand .footer-partners img { width: auto; height: 48px; border-radius: 8px; padding: 4px; }
.footer-partners a:hover img, .footer-partners a:focus-visible img { box-shadow: 0 0 0 2px var(--gold-soft); }
.footer-links { display: flex; gap: 22px; }
@media (max-width: 1179px) { .footer-partners { margin-left: 0; padding-left: 0; border-left: 0; } }
/* On wide screens the two outer blocks share the space equally, so the links sit in the true centre. */
@media (min-width: 1180px) {
  .footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; }
  .footer-grid > :last-child { text-align: right; }
}
.footer-links a:hover { color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .menu-btn { display: block; }
  nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 12px 24px 20px; }
  nav li { padding: 10px 0; }
  .about-grid, .cards, .quotes { grid-template-columns: 1fr; }
  .gallery { --g-cols: 2; }
  section { padding: 64px 0; }
}

.join .contact-mail { margin: 22px auto 0; font-size: 0.95rem; letter-spacing: 0.06em; color: var(--gold-soft); user-select: all; }

/* Conference page */
.hero-small { padding: 64px 0 72px; }
.empty-note { max-width: 640px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.05rem; padding: 28px 24px; border: 1px dashed var(--line); background: var(--paper); }
.about .empty-note { background: var(--ivory); }

.more-soon { margin: 24px 0 0; text-align: center; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Homepage: our own conference leads the upcoming events and spans the whole first row */
@media (min-width: 900px) {
  .cards-lead .card.featured { grid-column: 1 / -1; padding: 40px 48px; }
  .cards-lead .card.featured h3 { font-size: 2.3rem; }
  .cards-lead .card.featured p { max-width: 760px; font-size: 1.05rem; }
}

section[id] { scroll-margin-top: 72px; }

.doc-types { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.doc-types span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--line); color: var(--blue); background: var(--paper); }

.report { max-width: 720px; margin: 0 auto; }
.report p { color: var(--muted); font-size: 1.05rem; margin: 0 0 16px; }

/* Event details page (filled from the database) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory); border: 1px solid var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-group { font-family: var(--serif); font-size: 1.4rem; color: var(--blue); margin: 28px 0 8px; }
.doc-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.doc-list li { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 10px 16px; }
.doc-list a { color: var(--blue); font-weight: 500; overflow-wrap: anywhere; }

/* Registration form layout */
.layout-ribbon { background: var(--gold); color: var(--blue-ink); text-align: center; padding: 10px 16px; font-size: 0.85rem; font-weight: 600; }
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.reg-form { display: grid; gap: 22px; }
.reg-step { margin: 0; border: 1px solid var(--line); border-top: 4px solid var(--blue); background: var(--paper); padding: 24px 26px 26px; min-width: 0; }
.reg-step legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--blue-deep); display: flex; align-items: center; gap: 12px; }
.reg-step legend + * { clear: both; }
.reg-step .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; flex: none; }
.step-note { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.wish-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 861px) and (max-width: 1100px) { .wish-row { grid-template-columns: 1fr; } } /* the form column is narrow beside the side card: stack the three wishes so the placeholders fit */
.field.wishes { grid-column: 1 / -1; }
.reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 6px; }
.field .opt, .check .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; padding: 11px 13px; min-width: 0; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.check input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--blue); }
.check a { color: var(--blue); text-decoration: underline; }
.reg-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.reg-submit .step-note { margin: 0; }
.reg-submit .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.reg-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.side-card { background: var(--ivory); border-left: 3px solid var(--gold); padding: 18px 20px; }
.side-card h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 8px; color: var(--blue-deep); }
.side-card p, .side-card li { color: var(--muted); font-size: 0.92rem; margin: 0 0 6px; }
.side-card ol, .side-card ul { margin: 0; padding-left: 20px; }
.side-card a { color: var(--blue); text-decoration: underline; }
@media (max-width: 860px) {
  .reg-layout { grid-template-columns: 1fr; }
  .reg-side { position: static; }
  .reg-grid { grid-template-columns: 1fr; }
  .wish-row { grid-template-columns: 1fr; }
  .reg-step { padding: 20px 18px 22px; }
}

/* Big call-to-action on the conference page */
.btn-xl { padding: 22px 48px; font-size: 1.1rem; letter-spacing: 0.08em; }
.reg-cta { max-width: 680px; margin: 0 auto; text-align: center; }
.reg-cta > p:first-child { color: var(--muted); font-size: 1.1rem; margin: 0 0 26px; }
.reg-cta .reg-cta-note { margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 520px) { .btn-xl { display: block; padding: 20px 18px; font-size: 1rem; } }

/* Confirmation shown after registering */
.layout-ribbon a { text-decoration: underline; margin-left: 6px; }
.reg-done { grid-column: 1 / -1; max-width: 820px; margin: 0 auto; width: 100%; }
.reg-done h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; color: var(--blue-deep); margin: 6px 0 14px; }
.reg-done .done-lead { font-size: 1.15rem; color: var(--text); margin: 0 0 22px; }
.profile-box { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 24px 28px; margin-bottom: 20px; }
.profile-box h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--blue-deep); margin: 0 0 8px; }
.profile-box p { margin: 0 0 10px; color: var(--muted); }
.profile-box ul { margin: 0; padding-left: 22px; color: var(--text); }
.profile-box li { margin-bottom: 6px; }
.notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.notice-grid .notice { background: var(--ivory); border-left: 3px solid var(--gold); padding: 16px 18px; }
.notice-grid h4 { font-family: var(--serif); font-size: 1.25rem; color: var(--blue-deep); margin: 0 0 6px; }
.notice-grid p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.notice-grid a { color: var(--blue); text-decoration: underline; }
.done-back { margin: 26px 0 0; }
.btn-ghost-dark { border: 1px solid var(--blue); color: var(--blue); background: transparent; }
@media (max-width: 860px) { .notice-grid { grid-template-columns: 1fr; } .profile-box { padding: 20px 18px; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-err { margin: 6px 0 0; color: #b3261e; font-size: 0.85rem; font-weight: 500; }
.check .field-err { flex-basis: 100%; }
.reg-closed { max-width: 640px; text-align: center; padding: 56px 0 72px; }
.reg-closed h2 { font-family: var(--serif); font-size: 2.2rem; color: var(--blue-deep); margin: 0 0 12px; }
.reg-closed p { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.reg-closed a:not(.btn) { color: var(--blue); text-decoration: underline; }
/* the registration pages stay empty until the site says whether registration is open; the height keeps the footer from jumping */
main.reg-loading { min-height: 70vh; }
.reg-form[hidden], .reg-side[hidden], .reg-done[hidden], .reg-closed[hidden], .layout-ribbon[hidden] { display: none !important; }
.reg-done .eyebrow { color: #8f6a0e; }

.view-all-row { margin-top: 32px; }
.card[hidden] { display: none; }

/* Delegate profile page (layout) */
.dp-who { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dp .layout-ribbon { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center; }
.dp-controls { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.dp-controls label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.dp-controls select { font: inherit; padding: 3px 6px; border-radius: 3px; border: 1px solid rgba(5, 26, 66, 0.4); background: #fff; }
.dp-hero h1 { margin-bottom: 4px; }
.dp-pill { display: none; margin-top: 8px; padding: 6px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.dp[data-status="confirmed"] .dp-pill-confirmed { display: inline-block; background: #d6efdc; color: #14562a; }
.dp[data-status="pending"] .dp-pill-pending { display: inline-block; background: #f8e8bf; color: #6b4a00; }
.dp[data-status="waitlisted"] .dp-pill-waitlisted { display: inline-block; background: #dbe4f7; color: #12336f; }

.dp-wrap { padding-top: 36px; padding-bottom: 72px; }
.dp-assign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dp-tile { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 22px 26px; }
.dp-label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.dp-big { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; color: var(--blue-deep); font-weight: 600; }
.dp-big i { font-size: 0.55em; font-style: normal; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.dp-when-other { color: var(--muted); }
.dp[data-status="confirmed"] .dp-when-other, .dp:not([data-status="confirmed"]) .dp-when-confirmed { display: none; }
.dp-note { display: none; margin: 14px 0 0; padding: 12px 16px; background: var(--ivory); border-left: 3px solid var(--gold); color: var(--text); }
.dp[data-status="pending"] .dp-when-pending, .dp[data-status="waitlisted"] .dp-when-waitlisted { display: block; }
.dp-keep { margin: 18px 0 30px; padding: 14px 18px; background: #fff7e0; border: 1px solid #e6c76a; color: #4a3600; font-size: 0.95rem; }

.dp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.dp-main { display: grid; gap: 22px; min-width: 0; }
.dp-side { display: grid; gap: 18px; position: sticky; top: 90px; min-width: 0; }
.dp-card { background: var(--paper); border: 1px solid var(--line); padding: 24px 26px; min-width: 0; }
.dp-card-soft { background: var(--ivory); border-left: 3px solid var(--gold); border-top: 1px solid var(--line); padding: 20px 22px; }
.dp-card h2 { font-family: var(--serif); font-size: 1.7rem; color: var(--blue-deep); margin: 0 0 12px; line-height: 1.15; }
.dp-card-soft h2 { font-size: 1.35rem; margin-bottom: 10px; }
.dp-card p { color: var(--muted); }
.dp-sub { margin: 0 0 16px; }
.dp-hint { display: block; font-size: 0.82rem; color: var(--muted); }

.dp-item { padding: 14px 0; border-top: 1px solid var(--line); }
.dp-item:first-of-type { border-top: 0; padding-top: 4px; }
.dp-new { background: linear-gradient(90deg, #fff7e0, transparent 70%); margin: 0 -26px; padding-left: 26px; padding-right: 26px; }
.dp-item-top { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.dp-date { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.dp-badge { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; }
.dp-badge-new { background: var(--gold); color: var(--blue-ink); }
.dp-badge-changed { background: #f0d9d6; color: #7d1c14; }
.dp-item h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--blue-deep); margin: 0 0 4px; line-height: 1.2; }
.dp-item p { margin: 0; }

.dp-paper { display: none; }
.dp[data-paper="none"] .dp-paper-none, .dp[data-paper="received"] .dp-paper-received, .dp[data-paper="approved"] .dp-paper-approved, .dp[data-paper="changes"] .dp-paper-changes { display: block; }
.dp-drop { text-align: center; padding: 30px 18px; border: 2px dashed rgba(11, 58, 143, 0.35); background: var(--ivory); }
.dp-drop p { margin: 0 0 6px; color: var(--text); }
.dp-drop .btn { margin-top: 10px; }
.dp-file { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--ivory); border: 1px solid var(--line); margin-bottom: 12px; }
.dp-fileicon { flex: none; width: 44px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; border-radius: 3px; }
.dp-file b { display: block; color: var(--text); overflow-wrap: anywhere; }
.dp-status { margin: 0 0 10px; padding: 10px 14px; font-weight: 500; border-left: 3px solid; }
.dp-status-received { background: #e6edfb; color: #12336f; border-color: #12336f; }
.dp-status-approved { background: #d6efdc; color: #14562a; border-color: #14562a; }
.dp-status-changes { background: #f8e8bf; color: #6b4a00; border-color: #b27a00; }
.dp-orgnote { margin: 0 0 12px; padding: 10px 14px; background: var(--ivory); color: var(--text) !important; }
.dp-paper .btn:disabled { opacity: 0.55; cursor: not-allowed; }

.dp-group { font-family: var(--serif); font-size: 1.25rem; color: var(--blue); margin: 18px 0 6px; }
.dp-group:first-of-type { margin-top: 0; }
.dp-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dp-docs li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--paper); }
.dp-docs a { color: var(--blue); font-weight: 500; overflow-wrap: anywhere; }

.dp-dates { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.dp-dates li { position: relative; }
.dp-dates li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.dp-dates li.dp-done::before { background: var(--blue); border-color: var(--blue); }
.dp-dates li.dp-next::before { background: var(--gold); border-color: var(--gold); }
.dp-dates b { display: block; color: var(--text); font-weight: 600; }
.dp-dates span { font-size: 0.88rem; color: var(--muted); }
.dp-details { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.92rem; }
.dp-details dt { color: var(--muted); }
.dp-details dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .dp-grid { grid-template-columns: 1fr; }
  .dp-side { position: static; }
  .dp-assign { grid-template-columns: 1fr; }
  .dp-card { padding: 20px 18px; }
  .dp-new { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 600px) { .dp-who { display: none; } }
.dp[data-status="declined"] .dp-pill-declined { display: inline-block; background: #f0d9d6; color: #7d1c14; }
.dp-upload-msg { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.dp-upload-msg.dp-err { color: #b3261e; font-weight: 500; }
.dp-badge-changed { background: #f0d9d6; color: #7d1c14; }

.link-box { background: #fff7e0; border: 1px solid #e6c76a; padding: 16px 18px; margin: 0 0 18px; }
.link-box .link-lead { margin: 0 0 10px; color: #4a3600; }
.link-row { display: flex; gap: 10px; }
.link-row input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); }
.link-box .link-mail { margin: 10px 0 0; color: #4a3600; font-size: 0.92rem; }
.link-box p:last-child { margin-bottom: 0; }
.link-box[hidden] { display: none; }
@media (max-width: 600px) { .link-row { flex-direction: column; } }

/* Photo gallery view */
body.lb-open { overflow: hidden; }
.photo-grid a { cursor: zoom-in; }
.photo-grid a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(3, 8, 22, 0.97); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); background: #0b1230; opacity: 0; transform: scale(0.985); }
.lb-img.lb-in { opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.lb-close { top: 14px; right: 14px; font-size: 1.7rem; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; pointer-events: none; }
@media (max-width: 700px) { .lb-stage { padding: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; width: 42px; height: 42px; } .lb-prev { left: 14px; } .lb-next { right: 14px; } }

/* Event photos keep their own shape: columns of whole photos instead of cropped squares */
.photo-grid { display: block; columns: 3 240px; column-gap: 14px; }
.photo-grid a { display: block; aspect-ratio: auto; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: var(--ivory); border: 1px solid var(--line); }
.photo-grid img { width: 100%; height: auto; object-fit: initial; display: block; }

/* Drop box on the delegate page */
.dp-dropzone { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 120px; padding: 18px; border: 2px dashed rgba(11, 58, 143, 0.4); background: var(--ivory); border-radius: 6px; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.dp-dropzone:hover, .dp-dropzone:focus-visible, .dp-dropzone.over { border-color: var(--gold); background: #fff7e0; }
.dp-dropzone:disabled { opacity: 0.6; cursor: wait; }
.dp-dropzone .dp-plus { font-size: 2.4rem; line-height: 1; color: var(--blue); flex: none; }
.dp-dropzone .dp-droptext { display: grid; gap: 2px; }
.dp-dropzone .dp-droptext b { font-size: 1.05rem; color: var(--blue-deep); }
@media (max-width: 520px) { .dp-dropzone { flex-direction: column; text-align: center; gap: 6px; } }
.dp-unassigned { color: var(--muted); }

/* Header button: register for our conference */
.nav-register { background: #dab75c; color: var(--blue-ink) !important; padding: 9px 16px !important; border-radius: 2px; border: 0 !important; font-weight: 600; }
.nav-register:hover { background: #e6c76a; }
@media (max-width: 900px) and (min-width: 701px) { nav ul { gap: 16px; } .nav-register, .nav-cta { padding: 8px 12px !important; } }

nav a { white-space: nowrap; }
/* With seven menu items the header needs the menu button up to 1239px wide */
@media (min-width: 881px) and (max-width: 1239px) {
  .menu-btn { display: block; }
  nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 12px 24px 20px; }
  nav li { padding: 10px 0; }
}
@media (min-width: 1240px) { nav ul { gap: 18px; } }

/* Hero: the registration button is as wide as the two buttons above it */
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: fit-content; max-width: 100%; margin: 0 auto; }
.btn-block { display: block; text-align: center; }
@media (max-width: 560px) {
  .hero-actions { width: 100%; max-width: 340px; }
  .hero-actions .btn-row { flex-direction: column; gap: 14px; }
  .hero-actions .btn { display: block; width: 100%; text-align: center; padding-left: 10px; padding-right: 10px; letter-spacing: 0.1em; white-space: nowrap; }
}

/* Team page: member cards with a round photo, name, role and one line */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.member { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 28px 22px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.member h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin: 18px 0 4px; color: var(--blue-deep); }
.member .role { margin: 0 0 12px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.member p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.avatar { width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(135deg, #1a4fb0, var(--blue)); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .ini { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #b9cdf5; }
.team-members { background: var(--ivory); }
.about-more { margin-top: 36px; }

/* What is MUN page: intro text, four numbered steps (a real sequence) and a glossary */
.mun-intro { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; font-size: 1.08rem; color: var(--text); }
.mun-intro p { margin: 0; }
.mun-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.mun-step { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.mun-step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.95rem; }
.mun-step h3 { font-family: var(--serif); font-size: 1.5rem; margin: 8px 0 0; color: var(--blue-deep); }
.mun-step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.mun-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 900px) { .mun-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mun-steps { grid-template-columns: 1fr; } }
.team-single { max-width: 300px; }
section[hidden] { display: none !important; }

/* Conference page: committees and their countries */
.cm-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 1000px; margin: 0 auto; } /* three to a row; a last row with one or two cards is centred */
.cm-grid[hidden] { display: none; }
.cm-grid .cm-card { flex: 0 1 calc((100% - 48px) / 3); min-width: 260px; box-sizing: border-box; }
@media (max-width: 920px) { .cm-grid .cm-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .cm-grid .cm-card { flex-basis: 100%; } }
.cm-theme { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.cm-theme .eyebrow { margin-bottom: 10px; }
.cm-theme-text { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.2; color: var(--blue-deep); margin: 0; }
.cm-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 24px 22px; }
.cm-card { position: relative; }
.cm-card .cm-logo { position: absolute; top: 18px; right: 18px; width: 64px; height: 64px; object-fit: contain; }
.cm-card.has-logo h3 { padding-right: 78px; }
.cm-card h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin: 0 0 10px; color: var(--blue-deep); }
.cm-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.cm-card .cm-topic { color: var(--ink, inherit); font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: 16px; }
.cm-card { display: flex; flex-direction: column; }
.cm-card .cm-open { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--ivory); color: var(--blue-deep); border: 1px solid rgba(200, 155, 46, 0.7); border-radius: 0; font: inherit; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.cm-card .cm-topic:last-of-type { margin-bottom: 16px; }
.cm-card .cm-open:hover, .cm-card .cm-open:focus-visible { background: var(--gold); color: #fff; border-color: var(--gold); }
.cm-card .cm-n { background: var(--gold); color: #fff; font-size: 0.75rem; letter-spacing: 0; padding: 1px 9px; border-radius: 10px; }
.cm-card .cm-open:hover .cm-n, .cm-card .cm-open:focus-visible .cm-n { background: #fff; color: var(--gold); }
/* The pop-up with the countries of a committee: fills the screen, the sheet sits in the middle (at the bottom on a phone) */
html.cm-lock { overflow: hidden; }
.cm-dialog { border: 0; padding: 16px; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: rgba(5, 26, 66, 0.6); color: var(--text); align-items: center; justify-content: center; }
.cm-dialog[open] { display: flex; }
.cm-dialog::backdrop { background: transparent; }
.cm-sheet { background: var(--ivory); width: 100%; max-width: 640px; max-height: 100%; overflow-y: auto; border-top: 4px solid var(--gold); padding: 22px 24px 0; }
.cm-sheet h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; font-weight: 400; margin: 0 0 4px; color: var(--blue-deep); }
.cm-sheet .cm-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.cm-d-meta { margin: 6px 0 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.cm-d-list { list-style: none; margin: 14px 0 0; padding: 14px 0 6px; border-top: 1px solid var(--line); columns: 3; column-gap: 22px; font-size: 0.95rem; }
.cm-d-list li { display: flex; align-items: center; gap: 9px; padding: 4px 0; break-inside: avoid; }
.cm-flag { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #e9e5da; box-shadow: 0 0 0 1px rgba(11, 58, 143, 0.15); }
.cm-d-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 20px; background: var(--ivory); border-top: 1px solid var(--line); }
.cm-d-count { margin: 0; font-size: 0.85rem; color: var(--muted); }
.cm-d-close { padding: 11px 26px; background: var(--blue); color: #fff; border: 1px solid var(--blue); border-radius: 0; font: inherit; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.cm-d-close:hover, .cm-d-close:focus-visible { background: var(--blue-deep); }
@media (max-width: 640px) {
  .cm-dialog { padding: 0; align-items: flex-end; }
  .cm-sheet { max-width: none; max-height: 90%; padding: 20px 18px 0; }
  .cm-d-list { columns: 2; font-size: 0.9rem; }
  .cm-d-close { flex: 1; }
}
.cm-card .cm-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.photo-grid a[hidden] { display: none !important; }

/* Registration form: the rules box (deadline, fee, rules text) shown above the questions */
.reg-rules { border-left: 3px solid var(--gold); background: var(--paper); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 20px; display: grid; gap: 8px; }
.reg-rules p { margin: 0; color: var(--text); font-size: 0.95rem; }
.reg-rules[hidden] { display: none !important; }

/* Events dropdown in the header (navmenu.js): wide screens open it on hover or keyboard focus; in the phone-style menu the names are listed under Events */
nav li.has-drop { position: relative; }
nav .nav-drop { list-style: none; margin: 0; padding: 6px 0; gap: 0; flex-direction: column; }
nav .nav-drop li { padding: 0; }
nav .nav-drop a { display: block; padding: 8px 18px; text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; white-space: normal; border-bottom: 0; }
nav .nav-drop a:hover { background: var(--ivory); color: var(--blue); }
@media (min-width: 1240px) {
  nav .nav-drop-all { display: none; }
  nav .nav-drop { display: none; position: absolute; top: 100%; left: -12px; min-width: 240px; max-width: 320px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(11, 30, 70, 0.14); z-index: 60; }
  nav li.has-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
  nav li.has-drop:hover .nav-drop, nav li.has-drop:focus-within .nav-drop { display: flex; animation: nav-drop-in .22s ease-out; }
}
@media (max-width: 1239px) {
  nav .nav-drop { display: none; padding: 4px 0 0 14px; }
  nav li.drop-open .nav-drop { display: flex; animation: nav-drop-in .22s ease-out; }
  nav .nav-drop a { padding: 6px 0; font-size: 0.85rem; }
}
@keyframes nav-drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { nav .nav-drop { animation: none !important; } }
/* no gold underline under Events: the open list is the signal */
nav li.has-drop > a, nav li.has-drop > a:hover { border-color: transparent; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 44px; text-align: center; color: #fff; font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.06em; padding: 0 70px; pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.lb-cap:empty { display: none; }
@media (max-width: 700px) { .lb-cap { bottom: 62px; padding: 0 16px; } }
.lb-stage { padding-bottom: 100px; }
@media (max-width: 700px) { .lb-stage { padding-bottom: 116px; } }

/* Conference page: the four key-fact cards sit in one row on wide screens (two per row on tablets, one on phones) */
@media (min-width: 1000px) { .cards.cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 881px) and (max-width: 999px) { .cards.cards-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.housed-q { margin-top: 18px; }
.housed-q .check { margin-top: 8px; color: var(--text); }
.chair-warning { border: 1px solid var(--gold); border-left-width: 6px; background: var(--paper); padding: 16px 20px; margin-bottom: 22px; }
.chair-warning b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--blue-deep); margin-bottom: 4px; }
.chair-warning p { margin: 0; color: var(--text); }
.chair-warning a { color: var(--blue); text-decoration: underline; }
.chair-cta { max-width: 680px; margin: 44px auto 0; padding-top: 36px; border-top: 1px solid var(--line); text-align: center; }
.chair-cta h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 6px; color: var(--blue-deep); }
.chair-cta p { margin: 0 0 20px; color: var(--muted); font-size: 1.05rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; letter-spacing: 0.06em; }
.dp-chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); background: var(--ivory); border-radius: 6px; }
.dp-chosen span { overflow-wrap: anywhere; color: var(--blue-deep); font-weight: 600; }
.reg-grid[hidden] { display: none; }

/* Language switch in the header (i18n.js) */
.vm-lang { display: inline-flex; gap: 4px; margin-left: auto; margin-right: 16px; }
.vm-lang button { font: 600 12px/1 var(--sans, inherit); letter-spacing: 0.06em; padding: 7px 9px; border: 1px solid var(--line); background: transparent; color: var(--blue-deep); cursor: pointer; border-radius: 3px; }
.vm-lang button:hover { border-color: var(--gold); }
.vm-lang button[aria-pressed="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.vm-lang button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 880px) { .vm-lang { margin-right: 8px; } }
@media (max-width: 400px) {
  .site-header .brand span { font-size: 1.1rem; letter-spacing: 0.1em; }
  .site-header .brand img { width: 36px; height: 36px; }
  .vm-lang button { padding: 6px 7px; }
}

/* While a Bulgarian or French page is being translated it stays invisible for a moment (at most 2 seconds), so English text never flashes */
html.vm-wait body { opacity: 0; animation: vm-show 0.01s 2s forwards; }
@keyframes vm-show { to { opacity: 1; } }
/* Delegate page header: the language switch sits after the "Delegate profile" label */
.site-header .dp-who { margin-left: auto; }
.dp-who + .vm-lang { margin-left: 16px; margin-right: 0; }
@media (max-width: 560px) { .site-header .dp-who { display: none; } .dp-who + .vm-lang { margin-left: auto; } }

.about-rest[hidden] { display: none; }
.about-toggle { margin-top: 6px; }
