/* 8th Kuwait Primary Healthcare Conference — theme taken from the 2026 poster artwork */

@font-face {
  font-family: "Handel Gothic";
  src: url("../fonts/handel-gothic-heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #03213f;          /* poster body navy */
  --navy: #1f447d;         /* brand navy */
  --navy-deep: #0c2440;
  --blue: #64a5da;         /* brand light blue */
  --blue-pale: #e0eefa;
  --blue-mist: #eef5fc;
  --gold: #a98131;         /* poster headline gold */
  --gold-soft: #c9a55a;
  --teal: #0a6e6d;         /* poster tagline teal */
  --paper: #ffffff;
  --soft: #4a5f78;
  --line: rgba(31, 68, 125, .14);
  --shadow: 0 1px 2px rgba(3, 33, 63, .05), 0 12px 32px -12px rgba(3, 33, 63, .18);
  --radius: 14px;
  --display: "Handel Gothic", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: #f3f8fd;
  background-image:
    url("../img/pattern.svg"),
    radial-gradient(120% 80% at 50% 30%, #fdfeff 0%, #eef5fc 45%, #e0eefa 100%);
  background-size: 640px 640px, 100% 100%;
  background-attachment: scroll, fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.soft { color: var(--soft); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 40px);
}
.display.gold { color: var(--gold); }
.eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink); }
.measure { max-width: 64ch; }

/* gold rule with a centre dot, as on the poster */
.orn {
  display: flex; align-items: center; gap: 0;
  width: min(320px, 70%);
  margin: 22px auto;
  color: var(--gold);
}
.orn::before, .orn::after { content: ""; flex: 1; height: 1.5px; }
.orn::before { background: linear-gradient(90deg, transparent, currentColor); }
.orn::after { background: linear-gradient(90deg, currentColor, transparent); }
.orn i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; margin: 0 2px; flex: none; }
.orn.left { margin-left: 0; width: min(220px, 60%); }
.orn.left::before { background: currentColor; flex: 0 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: 600 13px/1.2 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 20px -10px rgba(169, 129, 49, .8); }
.btn-gold:hover { background: #94701f; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(31, 68, 125, .8); }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-line { background: rgba(255, 255, 255, .6); color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.top.is-scrolled { box-shadow: 0 10px 30px -18px rgba(3, 33, 63, .45); }
.top-in { display: flex; align-items: center; gap: 24px; height: var(--head-h); max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand .sep { width: 1px; height: 40px; background: rgba(3, 33, 63, .35); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: var(--navy); }
.top-actions { display: flex; gap: 10px; }
.top-actions .btn { min-height: 42px; padding: 10px 18px; font-size: 12px; }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  border: 1.5px solid var(--navy); border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}
.menu summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu[open] .bars { background: transparent; }
.menu[open] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: min(300px, calc(100vw - 32px));
  display: grid; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu nav a {
  padding: 12px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--blue-mist); color: var(--navy); }
.menu nav a.cta { margin-top: 6px; background: var(--gold); color: #fff; text-align: center; }


/* ---------- home hero: the artwork with the title over it ----------
   site.js feeds --mx/--my (pointer, -1..1), --px/--py (pointer in px) and --sy (scroll, px). */
.hero {
  --mx: 0; --my: 0; --px: 50%; --py: 45%; --sy: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: clamp(600px, calc(100svh - var(--head-h)), 920px);
  padding: clamp(40px, 6vh, 72px) 0 clamp(110px, 14vh, 150px);
  text-align: center; color: #fff;
  background: var(--navy-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -1; transform: translate3d(0, calc(var(--sy) * .35px), 0); }
.hero-pan {
  position: absolute; inset: -40px;
  transform: translate3d(calc(var(--mx) * -22px), calc(var(--my) * -14px), 0);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; animation: drift 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
/* navy veil, lifted where the pointer is so the artwork shows through */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 47%, rgba(4, 18, 40, .8), rgba(4, 18, 40, .3) 75%, rgba(4, 18, 40, 0) 100%),
    linear-gradient(180deg, rgba(4, 18, 40, .55) 0%, rgba(4, 18, 40, .45) 40%, rgba(4, 18, 40, .55) 75%, rgba(4, 18, 40, .62) 100%);
  -webkit-mask-image: radial-gradient(circle 260px at var(--px) var(--py), rgba(0, 0, 0, .45), #000 100%);
  mask-image: radial-gradient(circle 260px at var(--px) var(--py), rgba(0, 0, 0, .45), #000 100%);
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, rgba(238, 245, 252, 0), #eef5fc); }

.hero-inner {
  position: relative;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px + var(--sy) * -.12px), 0);
  opacity: calc(1 - var(--sy) / 700);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-inner > :nth-child(4) { animation-delay: .32s; }
.hero-inner > :nth-child(5) { animation-delay: .4s; }
.hero-inner > :nth-child(6) { animation-delay: .5s; }
.hero-inner > :nth-child(7) { animation-delay: .58s; }
.hero-inner > :nth-child(8) { animation-delay: .64s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.hero-title {
  margin: 0 auto;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 5.2vw, 66px);
  line-height: 1.08;
  letter-spacing: .07em;
  color: #e3c47e;
  background: linear-gradient(180deg, #f6e3ad 0%, #e0bd6d 45%, #b88d3a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .45));
}
.hero-title .ord { white-space: nowrap; background: linear-gradient(180deg, #fff, #dbe8f6); -webkit-background-clip: text; background-clip: text; }
.hero-title sup { font-size: .5em; letter-spacing: .4em; vertical-align: .9em; margin-right: .1em; }
.tagline {
  margin: 18px auto 0;
  font-size: clamp(13px, 1.7vw, 20px); font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; line-height: 1.7;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.hero .orn { color: #e0bd6d; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px;
  margin: 0; font-size: clamp(15px, 1.8vw, 20px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.hero-meta i { width: 6px; height: 6px; border-radius: 50%; background: #e0bd6d; }
.hero-meta span:last-child { font-weight: 500; color: #d6e8f7; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: var(--navy); }
.cme { position: absolute; right: 20px; bottom: -100px; width: clamp(104px, 10vw, 140px); filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .35)); }
.hero-inner > .cme { animation-delay: .65s; }
.cme img { width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-3deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(3, 33, 63, .55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.hero-logos { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2.4vw, 26px); width: fit-content; margin: 0 auto clamp(22px, 3.5vh, 34px); }
/* soft dark halo so the white marks stay legible over the bright sign in the artwork */
.hero-logos::before { content: ""; position: absolute; z-index: -1; inset: -34px -70px; background: radial-gradient(closest-side, rgba(4, 18, 40, .82), rgba(4, 18, 40, .5) 55%, rgba(4, 18, 40, 0)); }
.hero-logos img { height: clamp(52px, 5.4vw, 72px); width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.hero-logos .sep { width: 1.5px; align-self: stretch; margin: 6px 0; background: rgba(255, 255, 255, .55); }
.patron { margin: 0 0 6px; font-size: clamp(12px, 1.3vw, 15px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5; color: rgba(255, 255, 255, .88); text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.patron-name { margin: 0 0 clamp(18px, 3vh, 30px); font-size: clamp(17px, 2vw, 24px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }

/* key facts strip */
.facts-strip { position: relative; z-index: 2; margin-top: 8px; }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.facts > div { padding: 22px 26px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; text-transform: uppercase; letter-spacing: .03em; }
.countdown { display: flex; align-items: flex-start; gap: 8px; }
.countdown .unit { display: grid; justify-items: center; }
.countdown .num {
  min-width: 52px; padding: 4px 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: #fff; font-size: 24px; font-weight: 700; text-align: center; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.countdown .lbl { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--soft); }
.countdown .colon { font-size: 22px; font-weight: 700; color: var(--gold); padding-top: 4px; }

/* ---------- sections ---------- */
.band { padding: clamp(36px, 6vw, 72px) 0; }
.band.tight { padding-top: 0; }
.panel {
  position: relative;
  background: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 60px);
}
.panel.mist { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(238,245,252,.92)); }
.panel.edge::before {
  content: ""; position: absolute; left: clamp(26px, 5vw, 60px); right: clamp(26px, 5vw, 60px); top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head .orn { margin-top: 0; margin-bottom: 18px; }
.section-head p { margin: 14px auto 0; max-width: 60ch; }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.actions.center { justify-content: center; }

/* welcome */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.welcome h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; margin-bottom: 22px; }
.prose p { color: #24384f; text-align: justify; hyphens: auto; }
.prose p:last-child { margin-bottom: 0; }
.chair { position: sticky; top: calc(var(--head-h) + 24px); margin: 0; text-align: center; }
.portrait-arch {
  position: relative;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  background:
    url("../img/pattern.svg") center / 320px,
    radial-gradient(circle at 50% 30%, #ffffff 0%, #d6e7f7 70%, #c3dbf1 100%);
  aspect-ratio: 4 / 5;
}
.portrait-arch img { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.chair figcaption { margin-top: 18px; display: grid; gap: 2px; font-size: 14px; line-height: 1.45; }
.chair strong { font-size: 18px; color: var(--gold); letter-spacing: .02em; text-transform: uppercase; font-weight: 800; }
.chair .role { color: var(--soft); }
.chair .badge-role { margin-top: 8px; justify-self: center; padding: 4px 12px; border-radius: 999px; background: var(--blue-mist); color: var(--navy); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* objectives */
.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; counter-reset: t; }
.topics li {
  counter-increment: t;
  position: relative;
  flex: 0 1 calc((100% - 54px) / 4);
  padding: 26px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px; line-height: 1.6; color: #24384f;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.topics li::before {
  content: counter(t, decimal-leading-zero);
  display: block; margin-bottom: 14px; padding-bottom: 12px;
  font-family: var(--display); font-size: 30px; line-height: 1; color: var(--gold); letter-spacing: .06em;
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 28px 2px no-repeat;
}
.topics li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }

/* venue split */
.venue-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 4vw, 52px); align-items: center; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--blue-mist); box-shadow: inset 0 0 0 1px var(--line); }
.address { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.address svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 3px; }

/* ---------- inner page hero: same artwork, veil and motion as the home page, shorter ---------- */
.page-hero { min-height: clamp(340px, 50vh, 500px); padding: clamp(48px, 7vh, 72px) 0 clamp(84px, 11vh, 110px); }
.page-hero .hero-img { object-position: center 38%; }
.page-hero .eyebrow { color: #e0bd6d; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); margin-bottom: 16px; }
.page-hero .hero-title { font-size: clamp(30px, 5vw, 60px); }
.page-hero .lede { margin: 18px auto 0; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.page-hero .orn { margin-bottom: 0; }

/* generic info cells */
.cells { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.cells > div { padding: 18px 22px; border-left: 1px solid var(--line); }
.cells > div:first-child { border-left: 0; }
.cells dt { font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--teal); }
.cells dd { margin: 4px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.pending { text-align: center; font-size: 19px; color: var(--soft); margin: 0; }
.pending-wrap { text-align: center; padding: 20px 0; }
.pending-wrap svg { width: 56px; height: 56px; color: var(--gold); margin: 0 auto 16px; }

/* ---------- committees ---------- */
.group + .group { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.group-head { text-align: center; margin-bottom: 30px; }
.group-head .orn { margin-top: 0; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 22px; }
.person { text-align: center; flex: 0 1 calc((100% - 88px) / 5); }
.person .portrait-arch { margin-bottom: 14px; transition: transform .3s, box-shadow .3s; }
.person:hover .portrait-arch { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(3, 33, 63, .5); }
.person h3 { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.person p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--teal); font-weight: 500; }
.portrait-gap { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 18px; }
.portrait-gap svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 78%; color: rgba(31, 68, 125, .18); }
.portrait-gap span { position: relative; padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.head-card {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center;
  max-width: 560px; margin: 0 auto 34px; padding: 16px 26px 16px 16px;
  background: linear-gradient(90deg, var(--blue-mist), #fff);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
}
.head-card .portrait-arch { margin: 0; }
.head-card .label { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--teal); }
.head-card .name { margin: 0; font-size: 21px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; }
.members-label { text-align: center; margin: 0 0 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }
/* Board Committee: chairperson on top, board members in one row */
.chair-feature { width: min(300px, 78%); margin: 0 auto 44px; text-align: center; }
.chair-feature .portrait-arch { box-shadow: 0 0 0 6px #fff, 0 0 0 7.5px var(--gold), 0 24px 44px -24px rgba(3, 33, 63, .55); }
.chair-feature figcaption { display: grid; gap: 2px; margin-top: 22px; font-size: 14px; line-height: 1.45; }
.chair-feature .badge-role { justify-self: center; white-space: nowrap; margin-bottom: 10px; padding: 5px 14px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.chair-feature strong { font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.chair-feature .role { color: var(--soft); }
.people.one-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; }

/* ---------- workshops ---------- */
.summary { --n: 2; max-width: 520px; margin: 0 auto; }
.summary dd { font-size: 26px; }
.how { text-align: center; margin: 22px auto 0; max-width: 62ch; }
.day-group { margin-top: clamp(36px, 5vw, 56px); }
.day-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.day-title .chip { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 14px; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; line-height: 1; text-align: center; }
.day-title .chip b { display: block; font-family: var(--display); font-size: 24px; }
.day-title .chip small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .2em; margin-top: 4px; }
.day-title h2 { font-size: clamp(20px, 2.4vw, 26px); }
.day-title .dow { display: block; font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .3em; color: var(--teal); margin-bottom: 4px; }
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.session {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  transition: box-shadow .25s, transform .25s;
}
.session.invite { border-left-color: var(--blue); }
.session:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.session .time { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.session .dur { margin: 2px 0 0; font-size: 13px; color: var(--soft); }
.session h3 { font-size: 17.5px; line-height: 1.4; color: var(--ink); font-weight: 700; }
.session .facts-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; }
.session .facts-row div { display: flex; gap: 6px; font-size: 13.5px; }
.session .facts-row dt { color: var(--soft); }
.session .facts-row dd { margin: 0; font-weight: 600; color: var(--teal); }
.access { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--blue-mist); color: var(--navy); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* ---------- registration ---------- */
.status-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.status-panel .cells { --n: 3; }
.status-open { display: inline-flex; align-items: center; gap: 8px; }
.status-open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #1b9e5a; box-shadow: 0 0 0 4px rgba(27, 158, 90, .18); }
.reg-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); }
.reg-aside .display { font-size: clamp(28px, 3vw, 36px); }
.reg-aside .note { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--blue-mist); font-size: 14px; line-height: 1.6; color: #24384f; }
.reg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.reg .field { grid-column: span 6; margin: 0; min-width: 0; }
.reg .field.half { grid-column: span 3; }
.reg .field.narrow { grid-column: span 2; }
.reg fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.reg label, .reg legend { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.reg input[type="text"], .reg input[type="email"] {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #c9d8e8; border-radius: 10px; background: #fbfdff;
  font: 500 16px var(--body); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.reg input[type="text"]:focus, .reg input[type="email"]:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(100, 165, 218, .25); }
.reg .help { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; }
.reg .error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #b42318; min-height: 0; }
.reg .error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 12px 18px; border: 1.5px solid #c9d8e8; border-radius: 10px; background: #fbfdff; cursor: pointer; font-weight: 600 !important; letter-spacing: .04em !important; }
.choice input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--blue-mist); }
.session-day { margin: 18px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
.reg .sessions { gap: 10px; }
.opt {
  position: relative;
  display: grid !important; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center;
  margin: 0 !important; padding: 14px 16px;
  border: 1.5px solid #c9d8e8; border-radius: 12px; background: #fbfdff;
  cursor: pointer; font-weight: 500 !important; letter-spacing: 0 !important;
  transition: border-color .2s, background-color .2s;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .tick { grid-row: span 2; width: 26px; height: 26px; color: #a9bfd6; transition: color .2s; }
.opt .tick path { opacity: 0; transition: opacity .2s; }
.opt strong { font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.opt .soft { grid-column: 2; font-size: 13px; }
.opt .state { grid-row: 1 / span 2; grid-column: 3; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.opt:has(input:checked) { border-color: var(--navy); background: var(--blue-mist); }
.opt:has(input:checked) .tick { color: var(--navy); }
.opt:has(input:checked) .tick path { opacity: 1; }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt.shut { cursor: not-allowed; opacity: .7; grid-template-columns: minmax(0, 1fr) auto; }
.opt.shut .soft { grid-column: 1; }
.opt.shut .state { grid-column: 2; color: var(--soft); }
.pay { grid-column: span 6; margin-top: 8px; padding: 22px 24px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.pay .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.pay .total strong { font-family: var(--display); font-size: 30px; letter-spacing: .04em; color: var(--gold-soft); }
.pay .free { margin: 4px 0 16px; color: rgba(255, 255, 255, .75); font-size: 13px; }
.pay .form-error { color: #ffd6d2; }
.pay .btn { width: 100%; }

/* registration done */
.done { max-width: 720px; margin: 0 auto; text-align: center; }
.done .display { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.done .code { font-family: var(--display); font-size: 1.2em; letter-spacing: .1em; color: var(--gold); }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(20px, 4vw, 40px); }
.foot-art { display: flex; justify-content: center; padding: 0 20px; }
.foot-art img { width: min(760px, 100%); margin-bottom: -2px; }
.foot-band { background: linear-gradient(90deg, var(--navy-deep), #183874); color: rgba(255, 255, 255, .82); }
.foot-url { display: block; padding: 20px 20px 18px; text-align: center; font-size: clamp(14px, 2.6vw, 26px); font-weight: 500; letter-spacing: .3em; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .12); overflow-wrap: anywhere; }
.foot-url:hover { color: var(--gold-soft); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.foot-logos { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 12px; background: #fff; }
.foot-logos img { height: 46px; width: auto; }
.foot-logos .sep { width: 1px; height: 34px; background: rgba(3, 33, 63, .35); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-nav a { color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.foot-nav a:hover { color: var(--gold-soft); }
.contact { display: grid; gap: 6px; justify-items: end; }
.contact a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .88); text-decoration: none; font-size: 14px; }
.contact a:hover { color: var(--gold-soft); }
.contact svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; }
.foot-bar p { margin: 0; }
.powered { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .7); text-decoration: none; }
.powered img { height: 30px; width: auto; padding: 4px 6px; background: #fff; border-radius: 6px; }

/* team-review copy only (see source/build.py --preview) */
.preview-bar { padding: 8px 16px; background: var(--gold); color: #fff; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cme img, .hero-img, .hero-inner > *, .scroll-cue span { animation: none; }
  .hero-pan, .hero-inner { transition: none; }
  .btn, .session, .topics li, .person .portrait-arch { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .menu { display: block; margin-left: 0; }
}
@media (max-width: 960px) {
  .topics li { flex-basis: calc((100% - 18px) / 2); }
  .person { flex-basis: calc((100% - 44px) / 3); }
  .welcome { grid-template-columns: 1fr; }
  .chair { position: static; max-width: 300px; margin: 0 auto; order: -1; }
  .venue-split { grid-template-columns: 1fr; }
  .reg-wrap { grid-template-columns: 1fr; }
  .status-panel { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .contact { justify-items: center; }
  .session { grid-template-columns: 140px minmax(0, 1fr); }
  .session .how-to { grid-column: 2; }
}
@media (max-width: 720px) {
  :root { --head-h: 64px; }
  body { font-size: 15.5px; background-attachment: scroll, scroll; }
  .brand img { height: 38px; }
  .brand .sep { height: 30px; }
  .brand { gap: 10px; }
  .top-actions { display: none; }
  .menu { margin-left: auto; }
  .hero { min-height: 0; padding: 36px 0 96px; }
  .page-hero { padding: 44px 0 80px; }
  .hero-img { object-position: 46% 40%; }
  .cme { position: relative; right: auto; bottom: auto; margin: 28px auto 0; width: 104px; }
  .scroll-cue { display: none; }
  .hero:not(.page-hero) .hero-title { font-size: 6vw; letter-spacing: .04em; white-space: nowrap; }
  /* the lines around the title stay narrower than it */
  .hero .patron { max-width: 76vw; margin-inline: auto; font-size: 2.8vw; letter-spacing: .12em; }
  .hero .patron-name { font-size: 3.5vw; letter-spacing: .05em; white-space: nowrap; }
  .hero:not(.page-hero) .tagline { font-size: 2.9vw; letter-spacing: .14em; white-space: nowrap; }
  .hero-meta { flex-direction: column; gap: 2px; }
  .hero-meta i { display: none; }
  .tagline { letter-spacing: .2em; }
  .patron { letter-spacing: .06em; }
  .topics li { flex-basis: 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px; }
  .facts > div:first-child { border-top: 0; }
  .cells, .status-panel .cells { grid-template-columns: 1fr; }
  .cells > div { border-left: 0; border-top: 1px solid var(--line); }
  .cells > div:first-child { border-top: 0; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary > div:nth-child(2) { border-left: 1px solid var(--line); border-top: 0; }
  .session { grid-template-columns: 1fr; gap: 12px; padding: 18px 18px 18px 20px; }
  .session .how-to { grid-column: 1; }
  .head-card { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 16px 12px 12px; }
  .head-card .name { font-size: 17px; }
  .people { gap: 22px 14px; }
  .person { flex-basis: calc((100% - 14px) / 2); }
  .people.one-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person h3 { font-size: 14.5px; }
  .person p { font-size: 12.5px; }
  .reg .field.half, .reg .field.narrow { grid-column: span 6; }
  .prose p { text-align: left; }
  .foot-bar { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .brand img { height: 32px; }
  .menu .menu-label { display: none; }
  .hero-title { letter-spacing: .04em; }
  .tagline { letter-spacing: .14em; }
  .countdown .num { min-width: 44px; font-size: 21px; }
}
