/* =========================================================================
   SGS Conference — public site
   Palette and fonts follow the Stage F design direction. Every colour derives
   from the six tokens, which the layout writes onto :root from Settings, so
   the whole look is admin-editable.
   Display: Fraunces (scholarly serif, personality, tight leading)
   Body/UI: Inter (humanist sans)
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* fallbacks; the layout overrides these inline from Settings */
  --ink: #0B1F3A; --brand: #0B2E63; --brand-green: #1B7A3E;
  --gold: #C9A227; --paper: #F7F9FC; --line: #E3E9F2;

  --ink-70: color-mix(in srgb, var(--ink) 70%, white);
  --shadow: 0 1px 2px rgba(11,31,58,.04), 0 8px 24px rgba(11,31,58,.06);
  --radius: 14px;
  --wrap: 1160px;

  /* type scale: 3.5rem hero -> 2rem section -> 1.125rem body */
  --t-hero: clamp(2.5rem, 6vw, 3.5rem);
  --t-sect: clamp(1.75rem, 3.2vw, 2rem);
  --t-sub:  1.25rem;
  --t-body: 1.0625rem;
  --t-small: .875rem;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site h1, .site h2, .site h3, .site .display {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 600;
}

.site a { color: var(--brand); text-decoration: none; }
.site a:hover { text-decoration: underline; }
.site p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Visible keyboard focus everywhere. */
.site :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: #fff; padding: 10px 16px;
  border-radius: 8px; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- eyebrow */
/* Eyebrow TEXT uses a darker gold on light grounds — the bright --gold is only
   2.42:1 on white, which fails AA. The rule beside it keeps the bright gold,
   and on dark grounds (hero, CTA, footer) the bright gold is reinstated below
   at 5.48:1 on navy. */
.eyebrow {
  font-family: Inter, sans-serif; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--gold-ink, #7A5C10);
  margin: 0 0 .75rem; display: flex; align-items: center; gap: 10px;
}
.eyebrow::after { content: ""; height: 1px; flex: 1; background: var(--gold); opacity: .35; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after, .eyebrow.center::before { content: ""; height: 1px; width: 48px; flex: none;
  background: var(--gold); opacity: .35; }

/* ---------------------------------------------------------------- buttons */
/* Register = solid green fill + white text (5.39:1). Login = outline/ghost.
   No tinted text on a tinted fill anywhere. */
.btn-site {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  font: 600 .95rem/1 Inter, sans-serif; letter-spacing: .01em; text-align: center;
  background: var(--brand-green); color: #ffffff;
  box-shadow: 0 1px 2px rgba(11,31,58,.10), 0 6px 16px rgba(27,122,62,.22);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn-site:hover { filter: brightness(1.08); color: #fff; text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 2px 4px rgba(11,31,58,.12), 0 10px 22px rgba(27,122,62,.28); }
.btn-site:active { transform: translateY(0); }

/* Ghost/outline on light ground: navy text + navy hairline (10.3:1). */
.btn-site.outline { background: transparent; color: var(--brand); border-color: var(--brand);
  box-shadow: none; }
.btn-site.outline:hover { background: var(--brand); color: #fff; filter: none; }

/* Ghost on a dark ground (hero, CTA band): white text + white hairline. */
.btn-site.outline.light, .btn-site.ghost {
  background: rgba(255,255,255,.06); color: #ffffff; border-color: rgba(255,255,255,.72); box-shadow: none; }
.btn-site.outline.light:hover, .btn-site.ghost:hover {
  background: #ffffff; color: var(--brand); border-color: #fff; filter: none; }
.btn-site.outline.dark { background: transparent; color: var(--brand); border-color: var(--brand); }

.btn-site.navy { background: var(--brand); border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(11,31,58,.10), 0 6px 16px rgba(11,46,99,.22); }
.btn-site.sm { padding: 10px 18px; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) {
  .btn-site, .btn-site:hover { transform: none; transition: none; }
}

/* ------------------------------------------------------------------- nav */
.topbar {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.topbar .inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brandmark { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brandmark img { height: 42px; width: auto; display: block; }
.brandmark .bm-text { line-height: 1.15; }
.brandmark .bm-org { font: 700 .95rem Fraunces, serif; color: var(--ink); display: block; }
.brandmark .bm-sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.brandmark:hover { text-decoration: none; }

.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav > li { position: relative; list-style: none; }
.mainnav a, .mainnav .navtop {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: .92rem; font-weight: 500;
  color: var(--ink); background: none; border: 0; cursor: pointer; font-family: inherit;
}
.mainnav a:hover, .mainnav .navtop:hover { background: var(--paper); text-decoration: none; color: var(--brand); }
.mainnav .navtop[aria-expanded="true"] { background: var(--paper); color: var(--brand); }
.mainnav .caret { font-size: .6rem; margin-left: 5px; opacity: .5; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 268px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  list-style: none; margin: 0; display: none;
}
.dropdown li a { padding: 9px 12px; font-size: .9rem; border-radius: 8px; }
.mainnav li.open .dropdown { display: block; }

.navactions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.navactions .login { font-size: .92rem; font-weight: 500; padding: 10px 12px; color: var(--ink); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: block; }
  .mainnav, .navactions { display: none; }
  body.nav-open .mobilemenu { display: block; }
  .mobilemenu {
    display: none; position: fixed; inset: 74px 0 0; background: #fff; z-index: 99;
    overflow-y: auto; padding: 20px 24px 60px;
  }
  .mobilemenu ul { list-style: none; margin: 0; padding: 0; }
  .mobilemenu > ul > li { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .mobilemenu a { display: block; padding: 12px 4px; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
  .mobilemenu .sub a { padding-left: 18px; font-size: .95rem; color: var(--ink-70); font-weight: 400; }
  .mobilemenu .grouplabel { font: 600 .72rem Inter, sans-serif; text-transform: uppercase;
    letter-spacing: .14em; color: var(--gold); padding: 14px 4px 4px; }
  .mobilemenu .mm-actions { display: flex; gap: 10px; margin-top: 24px; }
}
@media (min-width: 1001px) { .mobilemenu { display: none !important; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff;
  padding: clamp(64px, 10vw, 116px) 0 clamp(56px, 8vw, 96px); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 78% 12%, rgba(27,122,62,.34), transparent 62%),
              linear-gradient(160deg, var(--brand) 0%, var(--ink) 100%);
  z-index: 0; }
.hero > * { position: relative; z-index: 2; }
.hero .circuit { position: absolute; inset: 0; z-index: 1; opacity: .3; pointer-events: none; }
.hero .heroimg { position: absolute; inset: 0; z-index: 1; object-fit: cover; width: 100%; height: 100%;
  opacity: .16; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .eyebrow, .cta-band .eyebrow, .pagehead .eyebrow, .sitefoot h4 { color: var(--gold); }
.hero .eyebrow::after { background: var(--gold); }

.hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr);
  gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 { font-size: var(--t-hero); margin-bottom: .35em; max-width: 15ch; }
.hero .theme { font-family: Fraunces, serif; font-style: italic; font-size: clamp(1.1rem,2.2vw,1.4rem);
  color: #DCE6F7; max-width: 46ch; margin-bottom: 1.5rem; line-height: 1.45; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: #C7D7F5; font-size: .95rem;
  margin-bottom: 2rem; }
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd-cell { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 18px 10px; text-align: center; }
.cd-cell b { display: block; font: 600 clamp(1.6rem,3.4vw,2.1rem)/1 Fraunces, serif;
  color: #fff; font-variant-numeric: tabular-nums; }
.cd-cell small { display: block; margin-top: 6px; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: #B9CBEA; }
.cd-note { margin-top: 14px; font-size: .8rem; color: #B9CBEA; text-align: center; }

/* --------------------------------------------------------------- sections */
.sect { padding: clamp(56px, 8vw, 92px) 0; }
.sect.tint { background: #fff; }
.sect-head { max-width: 62ch; margin-bottom: 44px; }
.sect-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sect-head h2 { font-size: var(--t-sect); }
.sect-head p { color: var(--ink-70); margin: 0; }

/* thin circuit divider between sections */
.divider { height: 22px; overflow: hidden; opacity: .5; }
.divider svg { width: 100%; height: 22px; display: block; }

.grid { display: grid; gap: 22px; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card-site { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); }
.sect.tint .card-site { background: var(--paper); }

/* objectives / numbered prose */
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.numbered li { counter-increment: n; position: relative; padding-left: 52px; margin-bottom: 18px; }
.numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font: 600 .95rem Fraunces, serif; color: var(--gold); border: 1px solid var(--line);
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; }

/* sub-theme cards */
.theme-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.theme-card > summary { cursor: pointer; padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start;
  list-style: none; }
.theme-card > summary::-webkit-details-marker { display: none; }
.theme-card .num { font: 600 .8rem Inter, sans-serif; color: var(--gold); letter-spacing: .1em;
  padding-top: 4px; flex: 0 0 auto; }
.theme-card h3 { font-size: 1.15rem; margin: 0; flex: 1; }
.theme-card .chev { color: var(--brand); transition: transform .2s ease; flex: 0 0 auto; }
.theme-card[open] .chev { transform: rotate(180deg); }
.theme-card .tc-body { padding: 0 26px 24px 26px; color: var(--ink-70); }
.theme-card .tc-body ul { margin: 0; padding-left: 20px; }
.theme-card .tc-body li { margin: 5px 0; }
@media (prefers-reduced-motion: reduce) { .theme-card .chev { transition: none; } }

/* people */
.person { text-align: center; }
.person .photo { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--brand) 0%, var(--ink) 100%); margin-bottom: 16px;
  display: grid; place-items: center; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person .photo .initials { font: 600 2rem Fraunces, serif; color: rgba(255,255,255,.62); letter-spacing: .04em; }
.person .role { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold);
  font-weight: 600; margin-bottom: 6px; }
.person h3 { font-size: 1.05rem; margin: 0 0 4px; }
.person .title { font-size: .88rem; color: var(--ink-70); margin: 0; }
.person .affil { font-size: .82rem; color: var(--ink-70); opacity: .8; margin: 2px 0 0; }

/* dates timeline */
.timeline { border-left: 1px solid var(--line); padding-left: 0; margin: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 26px 30px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.timeline .d { font: 600 .95rem Inter, sans-serif; color: var(--brand); font-variant-numeric: tabular-nums; }
.timeline .l { color: var(--ink-70); font-size: .95rem; }
.timeline li.past .d { color: var(--ink-70); opacity: .6; }

/* pricing */
.price-card { display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.price-card .desc { font-size: .85rem; color: var(--ink-70); margin: 0 0 16px; }
.price-card .rows { border-top: 1px solid var(--line); margin-top: auto; }
.price-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: .9rem; }
.price-card .row:last-child { border-bottom: 0; }
.price-card .row .amt { font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.price-note { font-size: .85rem; color: var(--ink-70); margin-top: 18px; }

/* venue */
.venue-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .venue-grid { grid-template-columns: 1fr; } }
.venue-img { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--brand), var(--ink)); display: grid; place-items: center; }
.venue-img img { width: 100%; height: 100%; object-fit: cover; }

/* closing CTA */
.cta-band { background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band .circuit { position: absolute; inset: 0; opacity: .22; }
.cta-band > .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: var(--t-sect); max-width: 22ch; margin: 0 auto .8rem; }
.cta-band p { color: #C7D7F5; max-width: 56ch; margin: 0 auto 26px; }

/* prose pages */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1.5rem 0; padding: 4px 0 4px 20px;
  color: var(--ink-70); font-style: italic; }
.editable-note { background: #FFFBEB; border: 1px dashed #E8D48B; border-radius: 10px;
  padding: 12px 16px; font-size: .9rem; color: #7A5C10; }

/* placeholder pages */
.coming { text-align: center; padding: clamp(48px,8vw,84px) 24px; border: 1px dashed var(--line);
  border-radius: var(--radius); background: #fff; }
.coming .mark { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }

/* page header band */
.pagehead { background: var(--brand); color: #fff; padding: clamp(48px,7vw,76px) 0 clamp(40px,6vw,60px);
  position: relative; overflow: hidden; }
.pagehead::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--brand), var(--ink)); z-index: 0; }
.pagehead > * { position: relative; z-index: 2; }
.pagehead .circuit { position: absolute; inset: 0; z-index: 1; opacity: .26; }
.pagehead h1 { color: #fff; font-size: clamp(2rem,4.4vw,2.9rem); margin: 0; max-width: 20ch; }
.pagehead p { color: #C7D7F5; max-width: 60ch; margin: .7rem 0 0; }

/* footer */
.sitefoot { background: var(--ink); color: #A9BBD6; padding: 64px 0 34px; font-size: .92rem; }
.sitefoot h4 { font: 600 .74rem Inter, sans-serif; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); margin: 0 0 14px; }
.sitefoot a { color: #DCE6F7; }
.sitefoot .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 820px) { .sitefoot .fgrid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { margin: 7px 0; }
.sitefoot .fbottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; }
.sitefoot .motto { font-family: Fraunces, serif; font-style: italic; color: var(--gold); }

/* circuit motif animation — disabled under reduced motion */
.circuit .flow { stroke-dasharray: 4 10; animation: dash 9s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -140; } }
@media (prefers-reduced-motion: reduce) { .circuit .flow { animation: none; } }

/* =========================================================================
   Stage F.2 — announcement bar, hero slider, image slots, rhythm, motion
   ========================================================================= */

/* ------------------------------------------------------ announcement bar */
.annbar { background: var(--ink); color: #E8EEF9; font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.annbar.hidden { display: none; }
.annbar-inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ann-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(201,162,39,.18); }
.ann-viewport { flex: 1; overflow: hidden; position: relative; }
.ann-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; align-items: center; }
.ann-item { white-space: nowrap; letter-spacing: .04em; }
.ann-cta { flex: 0 0 auto; color: #fff; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; font-size: .72rem; border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: 5px 14px; }
.ann-cta:hover { background: var(--brand-green); border-color: var(--brand-green);
  text-decoration: none; color: #fff; }
.ann-x { flex: 0 0 auto; background: none; border: 0; color: #8FA6C9; font-size: 20px;
  line-height: 1; cursor: pointer; padding: 2px 4px; }
.ann-x:hover { color: #fff; }

/* Narrow screens: one message at a time, gently marqueed. */
@media (max-width: 760px) {
  .ann-track { gap: 0; }
  .ann-item { display: none; }
  .ann-item.on { display: block; animation: annslide 16s linear infinite; }
  .ann-cta { padding: 5px 11px; }
}
@keyframes annslide { 0% { transform: translateX(8%); } 100% { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ann-item.on { animation: none; white-space: normal; }
}

/* ------------------------------------------------------------ hero slider */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide.fallback { background: linear-gradient(160deg, var(--brand) 0%, var(--ink) 100%); opacity: 1; }
.hero.has-img::after { background:
  linear-gradient(180deg, rgba(11,31,58,.62) 0%, rgba(11,31,58,.78) 55%, rgba(11,31,58,.92) 100%); }
.hero .hero-copy, .hero .hero-count { position: relative; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(11,31,58,.35); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease; }
.hero-arrow:hover { background: rgba(255,255,255,.2); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
@media (max-width: 760px) { .hero-arrow { display: none; } }

.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 9px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.38); padding: 0; transition: width .2s ease, background .2s ease; }
.hero-dot.on { background: var(--gold); width: 26px; border-radius: 999px; }

/* -------------------------------------------------------- section rhythm */
.sect.tint { background: #ffffff; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px; align-items: start; }
.feature-img { margin: 0 0 8px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-img img { width: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.objectives ol { padding-left: 20px; }
.objectives li { margin: 6px 0; }
.topiclist { columns: 2; column-gap: 28px; }
@media (max-width: 620px) { .topiclist { columns: 1; } }

/* card life */
.lift { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lift:hover { transform: translateY(-3px); border-color: var(--gold);
  box-shadow: 0 6px 14px rgba(11,31,58,.07), 0 18px 40px rgba(11,31,58,.10); }
@media (prefers-reduced-motion: reduce) { .lift, .lift:hover { transform: none; transition: none; } }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.static { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* venue image slots */
.venue-shots { display: grid; gap: 14px; }
.venue-img.ph { position: relative; }
.venue-img.ph .ph-label { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.72); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.venue-img.small { aspect-ratio: 16/9; }

/* CTA band with a photo behind it */
.cta-band.has-img .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; }
.cta-band.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,31,58,.86), rgba(11,46,99,.92)); }
.cta-band .circuit { z-index: 2; }
.cta-band > .wrap { z-index: 3; }
.cta.center { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------- message from the Chief Host */
.welcome-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 56px; align-items: start; }
@media (max-width: 900px) { .welcome-grid { grid-template-columns: 1fr; gap: 34px; } }
.welcome-portraits { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.portrait { margin: 0; }
.portrait img, .portrait .monogram { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  display: block; object-fit: cover; }
.portrait .monogram { display: grid; place-items: center; font: 600 2.6rem Fraunces, serif;
  color: rgba(255,255,255,.72); letter-spacing: .05em;
  background: linear-gradient(150deg, var(--brand) 0%, var(--ink) 100%); }
.portrait figcaption { padding-top: 14px; }
.portrait .p-role { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); font-weight: 600; }
.portrait .p-name { display: block; font-family: Fraunces, serif; font-size: 1.02rem; font-weight: 600;
  color: var(--ink); margin-top: 3px; line-height: 1.25; }
.portrait .p-title { display: block; font-size: .84rem; color: var(--ink-70); margin-top: 2px; }
.goldrule { display: block; width: 64px; height: 3px; background: var(--gold); border-radius: 2px;
  margin-bottom: 22px; }
.pullquote > p:first-of-type { font-family: Fraunces, serif; font-size: 1.2rem; line-height: 1.5;
  color: var(--ink); }

/* ------------------------------------------------------------ fees table */
.feetable { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .94rem; }
.feetable th, .feetable td { padding: 13px 16px; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line); text-align: left; vertical-align: top; }
.feetable th:last-child, .feetable td:last-child { border-right: 0; }
.feetable thead th { background: var(--brand); color: #fff; font: 600 .78rem Inter, sans-serif;
  text-transform: uppercase; letter-spacing: .08em; border-bottom: 0;
  border-right-color: rgba(255,255,255,.16); }
.feetable thead th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: #C7D7F5; font-size: .78rem; margin-top: 3px; }
.feetable thead th.current { background: var(--brand-green); }
.feetable thead th.current .tag { display: block; font-size: .62rem; letter-spacing: .12em; color: #DCFCE7; }
.feetable tbody tr:nth-child(4n+1) td, .feetable tbody tr:nth-child(4n+2) td { background: var(--paper); }
.feetable tbody tr:last-child td { border-bottom: 0; }
.feetable td.r, .feetable th.r { text-align: right; }
.feetable td.amt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand);
  white-space: nowrap; }
.feetable td.cur { background: rgba(27,122,62,.08) !important; }
.feetable td.cat { font-weight: 600; }
.feetable td.cat small { display: block; font-weight: 400; color: var(--ink-70); margin-top: 3px; }
.feekey { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 16px 0 0;
  font-size: .85rem; color: var(--ink-70); }
.feekey .chip-cur { display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  background: rgba(27,122,62,.25); border: 1px solid var(--brand-green); margin-right: 6px;
  vertical-align: -2px; }
.adminnote { background: #FFFBEB; border: 1px dashed #E8D48B; border-radius: 10px; padding: 10px 14px;
  font-size: .85rem; color: #7A5C10; margin-top: 18px; }

/* --------------------------------------------------------- rich footer */
.sitefoot { border-top: 3px solid var(--gold); }
.sitefoot .fgrid { grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; }
@media (max-width: 900px) { .sitefoot .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sitefoot .fgrid { grid-template-columns: 1fr; } }
.fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; }
.fbrand img { height: 44px; width: auto; }
.fbrand small { color: var(--gold); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.fcol p { font-size: .88rem; line-height: 1.6; }
.fsocial { color: var(--gold); font-weight: 600; }
.fhighlights { list-style: none; margin: 0; padding: 0; }
.fhighlights li { margin: 0 0 10px; }
.fhighlights .hl-l { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); }
.fhighlights .hl-v { display: block; color: #DCE6F7; font-size: .88rem; }
.muted-light { color: #8FA6C9; font-size: .88rem; }
.sitefoot .fbottom { align-items: center; }
.sitefoot .fsmall a { color: #A9BBD6; margin-right: 14px; font-size: .82rem; }

/* ------------------------------------------------------- signup progress */
.stepbar { display: flex; gap: 0; margin: 0 0 26px; list-style: none; padding: 0; counter-reset: s; }
.stepbar li { flex: 1; position: relative; padding: 0 8px 0 0; counter-increment: s;
  font-size: .82rem; color: var(--muted, #64748b); }
.stepbar li .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid #E3E9F2; font-weight: 700; font-size: .78rem; margin-right: 8px; background: #fff; }
.stepbar li.done .n { background: #1B7A3E; border-color: #1B7A3E; color: #fff; }
.stepbar li.now .n { background: #0B2E63; border-color: #0B2E63; color: #fff; }
.stepbar li.now { color: #0B1F3A; font-weight: 600; }
.stepbar li::after { content: ""; position: absolute; left: 0; right: 8px; bottom: -10px; height: 2px;
  background: #E3E9F2; }
.stepbar li.done::after { background: #1B7A3E; }
.stepbar li.now::after { background: #0B2E63; }
@media (max-width: 620px) { .stepbar { flex-direction: column; gap: 8px; }
  .stepbar li::after { display: none; } }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* =========================================================================
   Stage G — button contrast fix (root cause)

   `.site a { color: var(--brand) }` has specificity (0,0,1,1) and was beating
   `.btn-site { color:#fff }` at (0,0,1,0). Every <a> styled as a button was
   therefore rendering NAVY text: navy-on-green in the hero and CTA bands, and
   navy-on-navy in the announcement bar (effectively invisible).

   These anchor-qualified rules win the cascade. Register is green fill + white
   text everywhere; Login is always the secondary ghost.
   ========================================================================= */

/* Primary (Register) — solid green, white text, in every context. */
.site a.btn-site,
.site a.btn-site:visited,
.site button.btn-site {
  background: var(--brand-green);
  color: #ffffff;
  border-color: transparent;
}
.site a.btn-site:hover,
.site a.btn-site:focus,
.site button.btn-site:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Secondary (Login / tertiary links) on a LIGHT ground: navy text, navy hairline. */
.site a.btn-site.outline,
.site a.btn-site.outline:visited,
.site button.btn-site.outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.site a.btn-site.outline:hover,
.site button.btn-site.outline:hover {
  background: var(--brand);
  color: #ffffff;
}

/* Secondary on a DARK ground (hero, CTA band, mobile menu over navy). */
.site a.btn-site.outline.light,
.site a.btn-site.outline.light:visited,
.site a.btn-site.ghost,
.site a.btn-site.ghost:visited {
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, .72);
}
.site a.btn-site.outline.light:hover,
.site a.btn-site.ghost:hover {
  background: #ffffff;
  color: var(--brand);
  border-color: #ffffff;
}

/* The nav sits on a light bar, so the ghost Login uses the navy pair there. */
.topbar .navactions a.btn-site.outline {
  color: var(--brand);
  border-color: var(--brand);
}
.topbar .navactions a.btn-site.outline:hover { background: var(--brand); color: #fff; }

/* Announcement strip: solid green pill on the navy bar, white text.
   Previously transparent with navy text — invisible against the navy. */
.site a.ann-cta,
.site a.ann-cta:visited {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
}
.site a.ann-cta:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  text-decoration: none;
}

/* =========================================================================
   Stage G — key-date timeline, venue slideshow, account hub, two tracks
   ========================================================================= */

/* ---------------------------------------------------- vertical timeline */
.ktimeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ktimeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line); border-radius: 2px; }
.ktimeline li { position: relative; padding: 0 0 26px 34px; }
.ktimeline li:last-child { padding-bottom: 0; }
.ktimeline .node { position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.ktimeline li.past .node { background: var(--line); border-color: var(--line); }
.ktimeline li.next .node { border-color: var(--gold); background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201,162,39,.18); }
.ktimeline .kd-date { display: block; font: 600 .95rem Inter, sans-serif; color: var(--brand);
  font-variant-numeric: tabular-nums; }
.ktimeline .kd-label { display: block; color: var(--ink-70); font-size: .95rem; }
.ktimeline .kd-note { display: block; color: var(--ink-70); font-size: .85rem; opacity: .8; margin-top: 2px; }
.ktimeline li.past .kd-date { opacity: .55; }
.ktimeline li.tba .kd-date { color: var(--ink-70); font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; font-size: .8rem; }
.ktimeline li.next .kd-label { color: var(--ink); font-weight: 600; }
.kd-tag { display: inline-block; margin-left: 8px; font-style: normal; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #fff;
  background: var(--brand-green); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; }

/* --------------------------------------------------- venue slideshow */
.venueshow { position: relative; }
.vs-frame { position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: linear-gradient(150deg, var(--brand), var(--ink)); }
.vs-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .55s ease; }
.vs-slide.on { opacity: 1; }
.vs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  color: #fff; font-size: .88rem;
  background: linear-gradient(to top, rgba(11,31,58,.82), transparent); }
.vs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  background: rgba(11,31,58,.4); color: #fff; font-size: 21px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; }
.vs-arrow:hover { background: rgba(255,255,255,.22); }
.vs-arrow.prev { left: 12px; } .vs-arrow.next { right: 12px; }
.vs-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.vs-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--line); transition: width .2s ease, background .2s ease; }
.vs-dot.on { background: var(--gold); width: 24px; border-radius: 999px; }
.venue-img.solo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; }
.venue-img.solo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.venue-img.solo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  color: #fff; font-size: .88rem; background: linear-gradient(to top, rgba(11,31,58,.82), transparent); }
@media (prefers-reduced-motion: reduce) { .vs-slide { transition: none; } }

/* =========================================================================
   Stage K — rich page bodies: tables, managed images, responsive embeds and
   the editor's class-based formatting. These names are the same allowlist the
   sanitizer enforces (Site::CLASS_EXACT / CLASS_PREFIX), so anything that
   survives a save has a style here and nothing else can borrow one.
   ========================================================================= */

/* Tables ---------------------------------------------------------------- */
.prose table, .prose .quill-better-table {
  width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .95rem;
}
.prose table th, .prose table td {
  border: 1px solid var(--line, #e2e8f0); padding: 9px 12px; text-align: left; vertical-align: top;
}
.prose table th { background: #f1f5f9; font-weight: 700; }
.prose table tr:nth-child(even) td { background: #fafbfd; }
.prose table caption { caption-side: bottom; padding-top: 8px; font-size: .85rem; color: var(--muted, #64748b); }
/* A wide table scrolls inside its own box rather than pushing the page sideways. */
.prose .quill-better-table-wrapper { overflow-x: auto; margin: 1.6rem 0; }
.prose .quill-better-table-wrapper table { margin: 0; }

/* Images ---------------------------------------------------------------- */
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.2rem 0; display: block; }

/* Embeds ---------------------------------------------------------------- */
.sgs-embed { position: relative; width: 100%; padding-top: 56.25%; margin: 1.6rem 0;
  border-radius: 12px; overflow: hidden; background: #0B1F3A; }
.sgs-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Editor formatting classes --------------------------------------------- */
.prose .ql-align-center  { text-align: center; }
.prose .ql-align-right   { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-align-center img, .prose .ql-align-center > img { margin-left: auto; margin-right: auto; }

.prose .ql-font-serif { font-family: "Fraunces", Georgia, "Times New Roman", serif; }
.prose .ql-font-mono  { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.prose .ql-size-small { font-size: .82em; }
.prose .ql-size-large { font-size: 1.35em; }
.prose .ql-size-huge  { font-size: 1.9em; line-height: 1.25; }

.prose .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2 { padding-left: 6em; }
.prose .ql-indent-3 { padding-left: 9em; }
.prose .ql-indent-4 { padding-left: 12em; }
.prose .ql-indent-5 { padding-left: 15em; }
.prose .ql-indent-6 { padding-left: 18em; }
.prose .ql-indent-7 { padding-left: 21em; }
.prose .ql-indent-8 { padding-left: 24em; }

.prose pre, .prose .ql-syntax {
  background: #0B1F3A; color: #E2E8F0; padding: 14px 16px; border-radius: 10px;
  overflow-x: auto; font-size: .88rem; line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }

/* --- Stage N: the shareable CFP page --------------------------------------
   Reuses the site's own .pagehead / .sect / .prose / .btn-site vocabulary; the
   only new pieces are the theme line, the CTA row and the sub-theme list. */
.cfp-theme { font-family: Fraunces, Georgia, serif; font-style: italic;
  font-size: 1.2rem; margin: .6rem 0 1.4rem; }
.cfp-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cfp-cta .btn-site.disabled { opacity: .55; cursor: not-allowed; }
.btn-site.ghost { background: transparent; border: 1px solid currentColor; }
.cfp-subthemes li { margin-bottom: .9rem; }
.prose tr.is-next th, .prose tr.is-next td { background: #f0fdf4; }
