/* NVTA Pro-D Conference: site theme
   Tokens first, then components. Mobile-first; only max-width/min-width
   media queries (never max-device-width).

   The look comes from the NVTA's circular logo: teal mountains on a cream
   ground. Teal carries the type and the buttons, cream the hero and the
   quiet panels. The variable names are the ones the inherited components
   use, so only the values here changed. */

:root {
  --brand: #1f7a78;          /* the logo's teal, deep enough for white type */
  --brand-strong: #155856;   /* hover / pressed, links */
  --brand-soft: #e3f1f0;     /* tints */
  --sky: #7cc4c1;            /* the lighter mountain: decoration only, never text */
  --gold: #8a5a2b;           /* a warm brown for seats-left notes */
  --gold-soft: #f6ece1;
  --forest: #2c7a5a;         /* confirmations */
  --forest-deep: #143b3a;    /* the darkest teal: headings, primary buttons */
  --forest-soft: #e3f2ea;
  --sage: #cfe3e1;
  --cream: #f4efe6;          /* the logo's ground */
  --paper: #f8f8f5;          /* page background */
  --surface: #ffffff;
  --ink: #16211f;
  --ink-2: #3d4a48;
  --ink-3: #68746f;
  --line: #dfe5e2;
  --danger: #b42318;
  --success: #2c7a5a;

  --font-display: "Alegreya", Georgia, serif;
  --font-body: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 59, 58, .06), 0 1px 1px rgba(20, 59, 58, .04);
  --shadow: 0 10px 30px rgba(20, 59, 58, .08), 0 2px 6px rgba(20, 59, 58, .05);
  --shadow-lg: 0 24px 50px rgba(20, 59, 58, .14), 0 8px 20px rgba(20, 59, 58, .06);
  --gutter: 16px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; color: var(--forest-deep); }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
/* A dateline above a heading: set in the display face, not tracked caps. */
.eyebrow {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.05rem; color: var(--brand-strong); margin-bottom: .6rem;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .8rem 1.4rem; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest-deep); color: #fff; box-shadow: 0 4px 14px rgba(20, 59, 58, .22); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; box-shadow: 0 6px 18px rgba(20, 59, 58, .28); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--gold); color: #fff; text-align: center;
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  padding: .4rem var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 38px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; color: var(--forest-deep); }
@media (max-width: 480px) { .brand img { height: 30px; } .brand span { font-size: 1rem; } }
.nav { display: none; gap: .25rem; }
.nav a {
  padding: .5rem .8rem; border-radius: var(--radius-pill); text-decoration: none;
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-header .btn { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .site-header .btn { display: inline-flex; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: .9rem var(--gutter); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav .btn { margin: 1rem var(--gutter); display: inline-flex; }

/* ---------- Hero ----------
   The program's cover: a blue bar with the conference, date and place in
   white, the theme as the title, the seedling drawing, and the theme
   statement in italics. */
.hero { padding: 40px 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; gap: 28px; align-items: center; }
.hero-banner {
  display: inline-block; margin: 0 0 1.2rem; padding: .7rem 1.1rem; background: var(--brand); color: #fff;
  font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; line-height: 1.35;
}
.hero-banner b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.hero-meta { margin: 1rem 0 1.4rem; font-size: 1.05rem; color: var(--ink-2); }
.hero-meta b { color: var(--ink); font-weight: 700; }
.hero-meta .sep { margin: 0 .55rem; color: var(--sky); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-art { position: relative; justify-self: center; width: min(78%, 400px); }
.hero-art::before { content: ""; position: absolute; inset: 6% 4% 0; border-radius: 50%; background: var(--brand-soft); }
.hero-art img { position: relative; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 56px; }
  .hero .container { grid-template-columns: 1.25fr .75fr; gap: 48px; }
  .hero-art { justify-self: end; width: 100%; }
}

/* ---------- Countdown / stats strip ---------- */
.strip { background: var(--forest-deep); color: rgba(255, 255, 255, .9); }
.strip .container { padding-top: 20px; padding-bottom: 20px; }
.strip p { margin: 0; font-size: 1.1rem; line-height: 1.6; max-width: 70ch; }
.strip p + p { margin-top: .3rem; }
.strip b { color: #fff; }

/* ---------- Programme (home page session list) ---------- */
.programme { display: grid; gap: 32px; }
.programme-intro p { color: var(--ink-2); max-width: 36ch; }
.programme-blocks { display: grid; gap: 22px; }
.programme-block h3 { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; padding-bottom: .4rem; border-bottom: 2px solid var(--brand); }
.programme-block h3 span { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--ink-3); }
.programme-block ul { list-style: none; margin: 0; padding: 0; }
.programme-block li { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.programme-block li:last-child { border-bottom: 0; }
.programme-block li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.programme-block li a:hover { color: var(--brand-strong); text-decoration: underline; }
.programme-block .who { color: var(--ink-3); font-size: .9rem; }
.programme-block .who::before { content: "with "; }
.programme-block .online-note { display: inline-block; margin-left: .35rem; font-size: .75rem; font-weight: 600; color: var(--forest); background: var(--forest-soft); border-radius: var(--radius-pill); padding: .1rem .5rem; vertical-align: middle; }
@media (min-width: 900px) {
  .programme { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
  .programme-intro { position: sticky; top: 90px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px;
}
.card-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 700;
}
.badge-inperson { background: var(--brand-soft); color: var(--brand-strong); }
.badge-online { background: var(--forest-soft); color: var(--forest); }
.badge-full { background: var(--forest-deep); color: #fff; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Schedule timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 600; color: var(--ink-2); font-size: .95rem; font-variant-numeric: tabular-nums; line-height: 1.5; }
.timeline .tl-title { font-weight: 600; }
.timeline .tl-desc { color: var(--ink-2); font-size: .97rem; margin: 0; }
.timeline li.is-session {
  background: linear-gradient(90deg, var(--brand-soft), transparent 70%);
  border-radius: var(--radius-sm); padding-left: 12px; margin-left: -12px;
}
.timeline li.is-session .tl-title { color: var(--brand-strong); }
@media (min-width: 700px) { .timeline li { grid-template-columns: 180px 1fr; } }

/* ---------- Session cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 24px; }
.filter {
  padding: .45rem .9rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface);
  font: 500 .92rem var(--font-body); cursor: pointer; color: var(--ink-2);
}
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.capacity { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); }
.capacity i { width: 64px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: inline-block; }
.capacity i b { display: block; height: 100%; background: var(--forest); }
.capacity.is-low i b { background: var(--brand); }

/* ---------- Fees ---------- */
.fees { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fees th, .fees td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.fees th { font-size: .9rem; color: var(--ink-3); background: var(--cream); }
.fees tr:last-child td { border-bottom: 0; }
.fees td.price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fees td.price small { font-family: var(--font-body); font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.fees-note { font-size: .92rem; color: var(--ink-3); margin-top: 12px; }
.table-wrap { overflow-x: auto; }

.fees td.price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--ink-3); }
.early-bird-note { background: var(--gold-soft); border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .98rem; margin: 0 0 14px; }

/* ---------- Keynote / feature ---------- */
.feature { display: grid; gap: 28px; align-items: center; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; object-position: center 30%; }
@media (min-width: 800px) { .feature { grid-template-columns: 2fr 3fr; } }
.feature-second { margin-top: 56px; }
.feature .talk-title { font-weight: 600; margin: -4px 0 12px; }
@media (min-width: 800px) {
  .feature-flip { grid-template-columns: 3fr 2fr; }
  .feature-flip img { order: 2; }
}

/* ---------- Venue ---------- */
.venue-photo { display: block; width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.venue { display: grid; gap: 24px; }
.venue .map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px; background: var(--sage); }
.venue .map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
@media (min-width: 800px) { .venue { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 36px 28px; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); }
.cta-band .btn-primary { background: #fff; color: var(--brand-strong); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--cream); color: var(--brand-strong); }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; padding: 40px 0 28px; border-top: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .95rem; }
.site-footer .container { display: grid; gap: 24px; }
.site-footer .brand img { height: 26px; }
.site-footer a { color: var(--ink-2); }
.site-footer .cols { display: grid; gap: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer .legal { font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; }
@media (min-width: 700px) { .site-footer .cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.form-section { margin-bottom: 20px; }
.form-section h2 { font-size: 1.45rem; margin-bottom: .25rem; }
.form-section .hint { color: var(--ink-3); font-size: .95rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field .help, .block-pick .help, .waitlist-pick .help { font-size: .88rem; color: var(--ink-3); margin-top: .35rem; }
.field .error, .errorlist { color: var(--danger); font-size: .9rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.req { color: var(--brand); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font: 1rem var(--font-body); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(26, 111, 158, .18); }
input[aria-invalid="true"], select[aria-invalid="true"], .field.has-error input, .field.has-error select { border-color: var(--danger); }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--brand); flex: none; }

/* Tick boxes in a wrapping row: the dietary needs on the registration form. */
.check-list { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: .3rem; }
.check-list .check { align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-size: .95rem; cursor: pointer; }
.check-list .check:hover { border-color: var(--brand); }
.check-list .check input { width: 18px; height: 18px; margin-top: 0; }
.check-list .check:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); font-weight: 600; }

/* Choice cards (attendance mode) */
.choice-cards { display: grid; gap: 12px; }
@media (min-width: 560px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; inset: 0; }
.choice-card .box {
  display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; height: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.choice-card .box b { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.choice-card .box > span { display: block; color: var(--ink-3); font-size: .92rem; line-height: 1.45; }
.choice-card input:checked + .box { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(26, 111, 158, .12); }
.choice-card input:focus-visible + .box { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Session block picker */
.block-pick { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: #fff; }
.block-pick .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.block-pick .row b { font-size: 1.05rem; }
.block-pick .row time { color: var(--ink-3); font-size: .9rem; }

/* Sticky summary */
.summary { position: sticky; top: 84px; }
.summary h3 { margin-bottom: .75rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; font-size: .95rem; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .75rem; font-size: 1.15rem; }
.summary .total dd { font-family: var(--font-display); font-size: 1.6rem; }
.summary .btn { width: 100%; margin-top: 1rem; }
.summary .fine { font-size: .82rem; color: var(--ink-3); margin: .75rem 0 0; }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid; font-size: .97rem; margin-bottom: 18px; }
.alert-info { background: var(--brand-soft); border-color: #b9dcef; color: var(--brand-strong); }
.alert-error { background: #fdecea; border-color: #f5b8b1; color: var(--danger); }
.alert-success { background: var(--forest-soft); border-color: #b3d8c6; color: var(--forest); }

/* Page header (interior pages) */
.page-head { padding-top: 48px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; }

/* Rich text from the console */
.prose { max-width: 72ch; }
.prose img { border-radius: var(--radius-sm); max-width: 100%; height: auto; }
.prose > p { margin-bottom: 1.2em; }
.prose h2 { margin-top: 2em; margin-bottom: .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; margin-bottom: .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; padding: 0; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: .85rem .6rem; text-align: left; }
.prose td:first-child { padding-left: 0; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1.2em 0; padding: .2em 1em; color: var(--ink-2); }

/* Utilities */
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.flex { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }

/* ---------- Additions for the Django templates ---------- */
.staff-bar { background: var(--forest-deep); color: #fff; font-size: .85rem; }
.staff-bar .container { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; min-height: 34px; }
.staff-bar a { color: #fff; text-decoration: none; opacity: .9; }
.staff-bar a:hover { opacity: 1; text-decoration: underline; }
.staff-bar-label { font-weight: 700; color: var(--sky); font-size: .85rem; }
.staff-bar-masq { background: var(--brand); padding: .1rem .6rem; border-radius: var(--radius-pill); }
.staff-bar-right { margin-left: auto; }
.linklike { background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.mobile-nav .linklike { display: block; width: 100%; padding: .9rem var(--gutter); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-link { font-weight: 600; font-size: .92rem; margin-top: auto; }
.feature-text { max-width: 64ch; }
/* The Sessions page reads like a printed programme: the block on the left,
   the sessions as entries divided by rules, not boxes. */
.block-group { display: grid; gap: 12px; margin-bottom: 44px; padding-top: 22px; border-top: 3px solid var(--brand); }
.block-head h2 { font-size: 1.7rem; margin-bottom: 4px; }
.block-head p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.session-list { display: grid; }
.session-row { padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.session-row:first-child { padding-top: 4px; }
.session-row:last-child { border-bottom: 0; }
.session-row h3 { margin: .15rem 0 .45rem; font-size: 1.45rem; }
.session-line { margin: 0; font-size: .9rem; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.session-line .online-note { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--forest); background: var(--forest-soft); border-radius: var(--radius-pill); padding: .1rem .5rem; }
.session-row .leader { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); font-size: .98rem; margin-bottom: .7rem; }
.session-row .leader img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
@media (min-width: 900px) {
  .block-group { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .block-head { position: sticky; top: 96px; align-self: start; }
  .session-row { padding-right: 8%; }
}
.session-desc p:last-child { margin-bottom: 0; }
details.bio { margin-top: .8rem; border-top: 1px dashed var(--line); padding-top: .6rem; }
details.bio summary { cursor: pointer; font-weight: 600; color: var(--brand-strong); font-size: .95rem; }
details.bio .prose { margin-top: .5rem; font-size: .95rem; color: var(--ink-2); }
.session-row .audience { margin: 0 0 .5rem; font-size: .9rem; color: var(--ink-2); }
.to-bring { margin: .8rem 0 0; font-size: .95rem; background: var(--gold-soft); padding: .6rem .9rem; border-radius: var(--radius-sm); }
.timebar { height: 4px; margin-bottom: 6px; }
.round-time-bar div { height: 4px; border-radius: 2px; background: var(--sky); animation: roundtime calc(var(--duration) * 1s) linear forwards; transform-origin: left center; }
@keyframes roundtime { to { transform: scaleX(0); } }
.notice { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; color: var(--ink-2); margin-bottom: 18px; }
.notice-confirm { background: var(--gold-soft); border-color: var(--gold); margin: 14px 0 0; }
.notice-confirm .check { align-items: flex-start; }
.help.ok { color: var(--success); font-weight: 600; }
.help.bad { color: var(--danger); }
.online-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.online-list li { background: var(--forest-soft); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.details { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: .45rem 1rem; margin: 0; font-size: .95rem; }
.details dt { color: var(--ink-3); }
.details dd { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.timeline li.kind-keynote .tl-title, .timeline li.kind-closing .tl-title { color: var(--forest); }
input[type="file"] { font: inherit; }
[hidden] { display: none !important; }

.radio-list { display: grid; gap: .4rem; }
.radio-list .check { align-items: center; }
.radio-list input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }

/* Timelines inside a card (the registration summary): separate tiles, not a strip. */
.card .timeline { display: grid; gap: 10px; }
.card .timeline li { border: 0; border-radius: var(--radius-sm); background: var(--cream); padding: 14px 16px; margin: 0; }
.card .timeline li.is-session { background: var(--brand-soft); padding-left: 16px; margin-left: 0; }
.card .timeline li:last-child { border-bottom: 0; }
.card > h3:first-child { margin-bottom: .9rem; }
.details { row-gap: .55rem; }

/* Grids must be allowed to shrink below their content's min width, or a long
   email address forces the page wider than a phone screen. */
.form-layout > *, .timeline li > div, .card, .details dd, .summary dd { min-width: 0; }
.details { grid-template-columns: minmax(110px, 36%) minmax(0, 1fr); }
.details dd, .summary dd, .tl-desc { overflow-wrap: anywhere; }
@media (max-width: 480px) { .timeline li { grid-template-columns: 92px 1fr; gap: 12px; } .timeline time { font-size: .88rem; } }

/* Information card inside the registration form (e.g. the Activities page). */
.info-card { background: var(--cream); }
.prose.compact h2 { font-size: 1.1rem; margin: 1rem 0 .25rem; }
.prose.compact p { margin: 0 0 .6em; font-size: .97rem; }

/* Activity add-ons in the form and on the Activities page. */
.activity-list { display: grid; gap: 10px; }
.activity-option { display: flex; gap: .8rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; cursor: pointer; }
.activity-option input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brand); flex: none; }
.activity-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.activity-option:has(input:disabled) { cursor: default; }
.activity-option.is-full { opacity: .6; }
.activity-body { display: block; min-width: 0; }
.activity-title { display: block; font-weight: 600; }
.activity-price { font-weight: 600; color: var(--brand-strong); margin-left: .4rem; }
.activity-meta { display: block; color: var(--ink-2); font-size: .92rem; margin-top: .15rem; }
.activity-desc { display: block; color: var(--ink-2); font-size: .95rem; margin-top: .4rem; }
.activity-note { display: block; color: var(--ink-3); font-size: .85rem; margin-top: .35rem; }
.activity-card .activity-price { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }

/* A session that runs through two blocks (Drafting, 9:15 to 12:00) */
.programme-block .span-note, .session-line .span-note { display: inline-block; margin-left: .35rem; font-size: .75rem; font-weight: 600; color: var(--gold); background: var(--gold-soft); border-radius: var(--radius-pill); padding: .1rem .5rem; vertical-align: middle; }
.session-picker-note { margin-top: 6px; font-size: .85rem; color: var(--ink-2, #4a4a4a); }

/* Online delegates choosing between a block's online sessions */
.online-choice { border: 0; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.online-option { display: flex; align-items: baseline; gap: .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .75rem; cursor: pointer; }
.online-option input { margin: 0; accent-color: var(--forest); }
.online-option .small { margin-left: auto; white-space: nowrap; }
.online-option:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.online-option.is-full { opacity: .55; cursor: not-allowed; }
.online-list li.has-error { box-shadow: inset 0 0 0 2px var(--danger); }

/* Exhibitor payment page: what a vendor is paying for */
.exhibitor-options { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.exhibitor-option { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; cursor: pointer; }
.exhibitor-option input { margin: 0; accent-color: var(--brand); }
.exhibitor-option-body { display: grid; gap: .1rem; }
.exhibitor-option-price { margin-left: auto; font-weight: 600; white-space: nowrap; }
.exhibitor-option:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.exhibitor-options.has-error .exhibitor-option { border-color: var(--danger); }
.vendor-fee { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .9rem; font-size: 1.05rem; }

/* ---------- NVTA Pro-D additions ---------- */
/* The program's index of tours and sessions: big numerals like the printed
   program's "01" to "16", a title and when it runs, and a seats note. */
.program-index { display: grid; gap: 36px; }
.program-group h3 { font-size: 1.5rem; padding-bottom: .35rem; border-bottom: 3px solid var(--brand); margin-bottom: .2rem; }
.program-list { list-style: none; margin: 0; padding: 0; }
.program-list li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: .2rem .8rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.program-list .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--brand); font-variant-numeric: lining-nums tabular-nums; }
.program-list .what a { font-weight: 700; color: var(--ink); text-decoration: none; }
.program-list .what a:hover { color: var(--brand-strong); text-decoration: underline; }
.program-list .when { display: block; font-size: .95rem; color: var(--ink-3); }
@media (min-width: 900px) { .program-index { grid-template-columns: 1fr 1fr; gap: 48px; } }
.venue.no-map { grid-template-columns: minmax(0, 640px); }
.prose-on-dark p { margin: 0; font-size: 1.1rem; line-height: 1.6; max-width: 70ch; }
.prose-on-dark p + p { margin-top: .35rem; }
.prose-on-dark a { color: #fff; }
.site-footer .land { font-family: var(--font-display); font-style: italic; color: var(--ink-2); max-width: 70ch; margin: 0; }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); }
.program-entry { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .2rem 1rem; }
.program-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--brand); padding-top: .1rem; font-variant-numeric: lining-nums tabular-nums; }
.leader-line { color: var(--ink-2); font-size: 1rem; margin: -.1rem 0 .7rem; }
.on-the-day { margin-top: .9rem; background: var(--cream); border-left: 4px solid var(--brand); padding: .7rem 1rem; font-size: .98rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.on-the-day b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .2rem; color: var(--forest-deep); }
.on-the-day p { margin: 0 0 .3rem; }
.on-the-day p:last-child { margin: 0; }
@media (max-width: 560px) { .program-entry { grid-template-columns: 2.6rem minmax(0, 1fr); } .program-num { font-size: 1.8rem; } }

/* First and second choice on the registration form: the program's numbered
   list as radio rows, seats on the right. */
.choice-group { border: 0; padding: 0; margin: 0 0 18px; }
.choice-group legend { font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; padding: 0; }
.pick-list { display: grid; gap: 6px; }
.pick-group { margin: .9rem 0 .2rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--forest-deep); }
.pick-group:first-child { margin-top: 0; }
.pick { display: grid; grid-template-columns: auto 2.2rem minmax(0, 1fr) auto; gap: .2rem .7rem; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .85rem; background: #fff; cursor: pointer; }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.pick-num { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--brand); font-variant-numeric: lining-nums tabular-nums; }
.pick-body { min-width: 0; }
.pick-body b { display: block; line-height: 1.3; }
.pick-meta { display: block; font-size: .9rem; color: var(--ink-3); }
.pick-seats { font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.pick:hover { border-color: var(--brand); }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.pick:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.pick.is-full { cursor: not-allowed; background: var(--paper); }
.pick.is-full .pick-body b, .pick.is-full .pick-num { color: var(--ink-3); }
.pick.is-full .pick-seats { font-weight: 700; color: var(--forest-deep); }
@media (max-width: 560px) { .pick { grid-template-columns: auto 1.8rem minmax(0, 1fr); } .pick-seats { grid-column: 3; } }
.choice-group.has-error .pick-list { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: var(--radius-sm); }
.also-choice { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 18px; }
.also-choice .also-intro { margin: 0 0 .5rem; font-size: .98rem; }
.also-choice .check.is-full { opacity: .6; }
.summary dl.choices { grid-template-columns: 1fr; gap: .1rem; }
.summary dl.choices dd { text-align: left; font-weight: 600; margin-bottom: .55rem; }
.summary dl.choices dt { font-size: .9rem; }
.code-card { max-width: 520px; }

/* Waiting lists (My registration page and the registration form) */
.waitlist { list-style: none; margin: 0; padding: 0; }
.waitlist li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--line); }
.waitlist li:first-child { border-top: 0; padding-top: 0; }
.waitlist-join { margin-top: .6rem; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .3rem; }
.waitlist-row select { flex: 1 1 220px; min-width: 0; font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.waitlist-pick { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.waitlist-pick label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.waitlist-pick select { font-size: .95rem; padding: .55rem .8rem; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }

/* Files shared by presenters */
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { padding: .35rem 0; border-top: 1px solid var(--line); }
.file-list li:first-child { border-top: 0; }
.file-list li form { display: inline; margin-left: .5rem; }

/* The presenter page */
.presenter-sessions { list-style: none; margin: 0 0 .5rem; padding: 0; }
.presenter-sessions li { padding: .6rem 0; border-top: 1px solid var(--line); }
.presenter-sessions li:first-child { border-top: 0; padding-top: 0; }
.presenter-sessions b { display: block; }
.presenter-page textarea, .presenter-page input[type=text], .presenter-page input[type=tel] { width: 100%; }
.presenter-page input[type=file] { font: inherit; font-size: .95rem; }

/* The same-day form at the table */
.today-form .block-pick { margin-bottom: 12px; }
.today-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
