/* ==========================================================================
   The Roanoke Conference — layout & components
   --------------------------------------------------------------------------
   Contains NO literal colors. Every color is a role token from theme.css,
   which must load first. To change colors, edit theme.css, not this file.
   ========================================================================== */

/* ---------- Non-color tokens ---------- */
:root {
  /* Type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --wrap:        1160px;
  --wrap-narrow: 760px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --radius:      4px;
  --radius-lg:   8px;
  --header-h:    76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }
strong, b { color: var(--color-text-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--color-heading);
}
h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.08rem + .6vw, 1.55rem); }
h4 { font-size: 1.0625rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: 0; }
p  { margin: 0 0 1.15em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

::selection { background: var(--color-selection-bg); color: var(--color-selection-text); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

/* ---------- Dark surfaces ----------
   theme.css re-maps the role tokens on these elements; they only need to
   apply the text color, and paragraphs default to the muted role. */
.site-header, .site-footer, .portal-bar, .hero, .page-hero, .cta-band,
.section--feature, .panel, .lodging-feature, .roster-lead {
  color: var(--color-text);
}
:is(.hero, .page-hero, .cta-band, .section--feature, .panel, .lodging-feature) p {
  color: var(--color-text-muted);
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  background: var(--color-surface-chrome); color: var(--color-on-chrome);
  padding: .7rem 1.2rem; z-index: 200;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; font-size: .9rem;
  text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--color-on-chrome); }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--alt { background: var(--color-surface-alt); }
.section--feature { background: var(--color-surface-feature); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 .9rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: ""; flex: 1 1 auto; height: 1px; max-width: 3.5rem;
  background: currentColor; opacity: .35;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: ""; flex: 1 1 auto; height: 1px; max-width: 3.5rem;
  background: currentColor; opacity: .35;
}
/* Eyebrows are <p>s; keep them accent-colored inside dark surfaces. */
:is(.hero, .page-hero, .cta-band, .section--feature, .panel, .lodging-feature) .eyebrow {
  color: var(--color-accent-text);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 0; }

.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--color-text-muted); }

/* ---------- Buttons ----------
   ONE global button. Every property is read from the BUTTONS section of
   theme.css; variants only choose which color set to use. Any <button> or
   submit input WITHOUT a class gets it too (zero specificity via :where), so a
   bare button can never fall back to the browser default. Purpose-built
   controls that are not buttons visually (filter chips, stat tiles) have
   their own class and are left alone. */
.btn,
:where(button:not([class]), input[type="submit"]:not([class]), input[type="button"]:not([class]), input[type="reset"]:not([class])) {
  --btn-bg:            var(--button-primary-bg);
  --btn-border:        var(--button-primary-border);
  --btn-text:          var(--button-primary-text);
  --btn-bg-hover:      var(--button-primary-bg-hover);
  --btn-border-hover:  var(--button-primary-border-hover);
  --btn-text-hover:    var(--button-primary-text-hover);
  --btn-shadow:        var(--button-shadow);
  --btn-shadow-hover:  var(--button-shadow-hover);

  display: inline-flex; align-items: center; justify-content: center; gap: var(--button-gap);
  min-height: var(--button-min-height);
  padding: var(--button-padding);
  font-family: var(--button-font-family);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  letter-spacing: var(--button-letter-spacing);
  line-height: var(--button-line-height);
  color: var(--btn-text);
  background: var(--btn-bg);
  border: var(--button-border-width) solid var(--btn-border);
  border-radius: var(--button-radius);
  box-shadow: var(--btn-shadow);
  text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: var(--button-transition);
}
.btn:hover,
:where(button:not([class]), input[type="submit"]:not([class]), input[type="button"]:not([class]), input[type="reset"]:not([class])):hover {
  color: var(--btn-text-hover);
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  box-shadow: var(--btn-shadow-hover);
}
.btn:active { transform: translateY(var(--button-press-offset)); }
.btn:disabled, .btn[aria-disabled="true"],
:where(button:not([class]), input[type="submit"]:not([class]), input[type="button"]:not([class]), input[type="reset"]:not([class])):disabled {
  opacity: var(--button-disabled-opacity); cursor: not-allowed; transform: none;
  color: var(--btn-text); background: var(--btn-bg); border-color: var(--btn-border); box-shadow: none;
}
.btn svg { width: 1em; height: 1em; flex: none; }

/* Variants: choose a color set, nothing else. */
.btn--primary { /* the default set, named for clarity in markup */ }
.btn--secondary {
  --btn-bg:           var(--button-secondary-bg);
  --btn-border:       var(--button-secondary-border);
  --btn-text:         var(--button-secondary-text);
  --btn-bg-hover:     var(--button-secondary-bg-hover);
  --btn-border-hover: var(--button-secondary-border-hover);
  --btn-text-hover:   var(--button-secondary-text-hover);
  --btn-shadow:       none;
}
.btn--danger {
  --btn-bg:           var(--button-danger-bg);
  --btn-border:       var(--button-danger-border);
  --btn-text:         var(--button-danger-text);
  --btn-bg-hover:     var(--button-danger-bg-hover);
  --btn-border-hover: var(--button-danger-border-hover);
  --btn-text-hover:   var(--button-danger-text-hover);
  --btn-shadow:       none;
}

/* Modifiers: size and layout only. */
.btn--sm { min-height: var(--button-min-height-sm); padding: var(--button-padding-sm); font-size: var(--button-font-size-sm); }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: var(--button-icon-size); height: var(--button-icon-size); min-height: 0; padding: 0; }
.btn--icon.btn--sm { width: var(--button-icon-size-sm); height: var(--button-icon-size-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Progress spinner (inline) ----------
   Track + spinning arc drawn in the current text color, so it sits correctly
   inside any button or on any surface. Ported from era-novum's Spinner. */
.spinner {
  display: inline-block; flex: none; width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 22%, transparent);
  border-top-color: currentColor;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.8s; } }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--color-link);
}
.textlink svg { width: .85em; height: .85em; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-surface-chrome) 92%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--color-surface-chrome) 98.5%, transparent);
  box-shadow: var(--shadow-chrome);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--color-heading); flex: none; }
.brand:hover { color: var(--color-heading); }
.brand__mark { height: 44px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.06rem;
  letter-spacing: .005em; color: var(--color-heading);
}
.brand__sub {
  font-size: .62rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--color-text-muted); font-weight: 600; margin-top: .18rem;
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  position: relative; padding: .55rem .68rem; border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center;
  color: var(--color-text-muted); text-decoration: none;
  font-size: .905rem; font-weight: 500; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--color-text); background: var(--color-hover-wash); }
.nav a[aria-current="page"] { color: var(--color-text); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .78rem; right: .78rem; bottom: .22rem;
  height: 2px; background: var(--color-accent-text); border-radius: 2px;
}
.header-cta { flex: none; margin-left: .4rem; }
.nav > .btn { display: none; }

.nav-toggle { display: none; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1040px) {
  .nav a:not(.btn) { padding: .55rem .6rem; font-size: .875rem; }
}
@media (max-width: 900px) { .brand__mark { height: 38px; } }

/* The menu folds into the hamburger whenever it doesn't fit on one line: a
   narrow window, side-by-side tabs, browser zoom or the larger-text setting.
   The script at the end of header.html measures and sets .is-compact. */
.site-header.is-compact .nav-toggle { display: inline-flex; }
.site-header.is-compact .header-cta,
.site-header.is-compact .header-signin { display: none; }
.site-header.is-compact .nav {
  position: fixed; inset: var(--header-offset, var(--header-h)) 0 auto 0; /* main.js measures the real header height into --header-offset */
  margin: 0; flex-direction: column; align-items: stretch; gap: 0;
  background: var(--color-surface-chrome); border-bottom: 1px solid var(--color-border);
  padding: .5rem var(--gutter) 1.5rem;
  max-height: calc(100dvh - var(--header-offset, var(--header-h))); overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  box-shadow: var(--shadow-drawer);
}
.site-header.is-compact .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.site-header.is-compact .nav a:not(.btn) { padding: .95rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--color-border-soft); border-radius: 0; }
.site-header.is-compact .nav a:not(.btn):hover { background: transparent; }
.site-header.is-compact .nav a[aria-current="page"]::after { left: .25rem; right: auto; width: 1.4rem; bottom: .55rem; }
.site-header.is-compact .nav > .btn { display: inline-flex; margin-top: 1.1rem; width: 100%; }
/* Without JavaScript there is no hamburger to open, so let the links wrap instead. */
html:not(.js) .header-inner, html:not(.js) .nav { flex-wrap: wrap; }

/* Narrow phones (~320px): the lockup and the menu button have to share one
   line, so let the brand shrink instead of pushing the button off-screen. */
@media (max-width: 400px) {
  .btn { white-space: normal; }
  .header-inner { gap: .6rem; }
  .brand { flex: 0 1 auto; min-width: 0; gap: .55rem; }
  .brand__text { min-width: 0; }
  .brand__name { font-size: .95rem; }
  .brand__sub { font-size: .58rem; letter-spacing: .15em; }
}

/* ---------- Account menu (signed-in staff) ----------
   The avatar and its panel in the site header and the portal bar
   (assets/js/profile-menu.js). Both bars are dark surfaces, so the panel
   reads the same remapped roles as the bar it opens from. */
.account-slot { flex: none; display: flex; align-items: center; }
.account-slot[hidden] { display: none; }
@media (min-width: 401px) { .account-slot { margin-left: -.75rem; } } /* sit beside Register, not a full header gap away */
/* "Sign in" sits beside Register on wide screens and at the foot of the menu
   on narrow ones; once someone is signed in, the avatar replaces it. */
.header-signin {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .7rem; margin-right: -.9rem;
  border-radius: var(--radius); font-size: .905rem; font-weight: 600; text-decoration: none; color: var(--color-text);
}
.header-signin:hover { color: var(--color-text); background: var(--color-hover-wash); }
.has-account .header-signin, .has-account .nav__signin { display: none !important; }
/* One line: the links sit centred between the brand and the actions on the right. */
.site-header:not(.is-compact) .nav { margin-inline: auto; }
.site-header:not(.is-compact) .nav a.nav__signin { display: none; }
/* Folded: brand on the left; avatar, then the hamburger, on the right. */
.site-header.is-compact .brand { margin-right: auto; }
.site-header.is-compact .account-slot { order: 2; }
.site-header.is-compact .nav-toggle { order: 3; }

.profile { position: relative; flex: none; }
.profile__button {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.profile__button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 50%; }
.profile__avatar {
  position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--color-avatar-from), var(--color-avatar-to));
  color: var(--color-avatar-text); font-family: var(--font-serif); font-weight: 700; font-size: .88rem; letter-spacing: .02em;
  border: 2px solid var(--color-avatar-ring); transition: border-color .2s var(--ease);
}
.profile__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile__avatar--large { width: 48px; height: 48px; font-size: 1.1rem; }
.profile__button:hover .profile__avatar, .profile.is-open .profile__avatar { border-color: var(--color-accent-text); }

.profile__panel {
  position: absolute; top: calc(100% + .45rem); right: 0; z-index: 120;
  width: min(18.5rem, calc(100vw - 2 * var(--gutter))); padding: .45rem;
  background: var(--color-surface-chrome); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.profile__panel[hidden] { display: none; }
.profile__who {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .6rem .85rem; margin-bottom: .35rem; border-bottom: 1px solid var(--color-border-soft);
}
.profile__text { min-width: 0; display: grid; justify-items: start; gap: .1rem; }
.profile__name { margin: 0; font-weight: 650; color: var(--color-heading); line-height: 1.3; }
.profile__email { margin: 0; font-size: .82rem; color: var(--color-text-muted); overflow-wrap: anywhere; line-height: 1.35; }
.profile__role {
  display: inline-block; margin-top: .3rem; padding: .12rem .5rem; border-radius: 100px;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--color-badge-bg); color: var(--color-badge-text);
}
.profile__links { list-style: none; margin: 0; padding: 0; }
.profile__item {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: .5rem .7rem;
  border: 0; border-radius: var(--radius); background: transparent; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--color-text); text-align: left; text-decoration: none;
}
.profile__item:hover { background: var(--color-hover-wash); color: var(--color-text); }
.profile__item[aria-current="page"] { font-weight: 650; }
.profile__item--signout { margin-top: .35rem; border-top: 1px solid var(--color-border-soft); border-radius: 0 0 var(--radius) var(--radius); }
.profile__item:disabled { opacity: .6; cursor: default; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--gradient-hero);
  padding-block: clamp(4rem, 9vw, 8rem) clamp(9rem, 19vw, 16rem); /* bottom: room for the forest */
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60rem 34rem at 78% 8%, var(--glow-primary), transparent 62%),
    radial-gradient(44rem 30rem at 6% 96%, var(--glow-secondary), transparent 60%);
}
/* Landscape: Mt. Rainier behind evergreen forest (inline SVG in index.html,
   colored entirely by the --hero-* tokens in theme.css). */
.hero__scene {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --forest-h: clamp(120px, 16vw, 240px);
}
.hero__scene svg { position: absolute; max-width: none; }
.hero__mountain {
  right: -3vw;
  bottom: calc(var(--forest-h) * .28);
  width: clamp(700px, 72vw, 1250px); height: auto;
  /* the base dissolves into the trees */
  -webkit-mask-image: linear-gradient(to top, transparent 0, black 32%);
          mask-image: linear-gradient(to top, transparent 0, black 32%);
}
@media (max-width: 1100px) {
  /* Tablets: text runs wider, so keep the summit clear of the buttons. */
  .hero__mountain { right: -16vw; }
}
@media (max-width: 720px) {
  /* Phones: the scene sits in its own band below the countdown, not behind text. */
  .hero { padding-bottom: 17rem; }
  .hero__scene { --forest-h: 118px; }
  .hero__mountain { width: 118vw; right: -20vw; bottom: 40px; }
}
.hero__forest { left: 0; bottom: -1px; width: 100%; height: var(--forest-h); }
.hero__mountain-body  { fill: var(--hero-mountain); }
.hero__mountain-shade { fill: var(--hero-mountain-shade); }
.hero__mountain-snow  { fill: var(--hero-mountain-snow); }
.hero__mountain-rock  { fill: var(--hero-mountain-rock); }
.hero__hills          { fill: var(--hero-hills); }
.hero__trees-far      { fill: var(--hero-trees-far); }
.hero__trees-near     { fill: var(--hero-trees-near); }

/* A small bird that now and then crosses above the trees. main.js moves it
   (random direction, height and wobble, 7–10 s per crossing); CSS only flaps
   the wings: a burst of wingbeats, then a glide. Hidden until it flies. */
.hero__scene .hero__bird {
  left: 0; top: 0; width: clamp(20px, 1.8vw, 28px); height: auto;
  overflow: visible; opacity: 0; will-change: transform;
}
.hero__bird.is-flying { opacity: 1; }
.hero__bird path {
  fill: none; stroke: var(--hero-bird); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: 50% 100%;   /* hinge at the body */
  animation: bird-flap calc(var(--flap, .32s) * 8) ease-in-out infinite;
}
@keyframes bird-flap {
  0%, 12.5%, 25%, 37.5%, 50% { transform: scaleY(1); }       /* wings up   */
  6.25%, 18.75%, 31.25%, 43.75% { transform: scaleY(-.6); }  /* wings down */
  58%, 92% { transform: scaleY(.3); }                          /* glide      */
  100% { transform: scaleY(1); }
}
/* A squirrel or raccoon that now and then pops up at the foot of a front-row
   tree for 2–3 s. It stands in front of the trees, a shade darker so it reads
   as nearest, and rises out of / sinks back into the ground line (clipped by
   #hero-critter-ground). main.js picks the tree, side, facing and timing. */
.hero__critter { opacity: 0; }
.hero__critter-body, .hero__critter-tail { fill: var(--hero-critter); }
.hero__critter-marks {
  fill: none; stroke: var(--hero-critter-mark); stroke-width: .9; stroke-linecap: round;
}
.hero__critter-tail { transform-box: fill-box; }
.hero__critter[data-critter="squirrel"] .hero__critter-tail { transform-origin: 90% 95%; }
.hero__critter[data-critter="raccoon"]  .hero__critter-tail { transform-origin: 100% 0%; }
/* A pair of beady eyes that blinks from inside a random tree's canopy. */
.hero__eyes { opacity: 0; }
.hero__eye { fill: var(--hero-eyes); }
.hero__eyes-blink { transform-box: fill-box; transform-origin: 50% 50%; }

/* A small Washington state flag planted on the summit. The cloth ripples
   from hoist to fly: index.html morphs the field between phases of a
   travelling wave (SMIL) and slides a light/dark sheen along it; the seal
   rides its own column. main.js pauses the SVG for reduced motion. */
.hero__flag-pole {
  fill: none; stroke: var(--hero-flag-pole); stroke-width: 1; stroke-linecap: round;
}
.hero__flag-finial { fill: var(--hero-flag-gold); }
/* The field's fill is the #hero-flag-sheen gradient in index.html; its stops read these. */
.hero__flag-field { stroke: var(--hero-flag-ink); stroke-width: .5; stroke-linejoin: round; }
.hero__flag-sheen-light { stop-color: var(--hero-flag-field-light); }
.hero__flag-sheen-dark  { stop-color: var(--hero-flag-field-dark); }
.hero__flag-gold { fill: var(--hero-flag-gold); }
.hero__flag-blue { fill: var(--hero-flag-blue); }
.hero__flag-ink { fill: var(--hero-flag-ink); }
.hero__flag-face { fill: var(--hero-flag-face); }
.hero__flag-hair { fill: var(--hero-flag-hair); }

/* A small elephant in the far tree row. It stays invisible until main.js
   has placed it. Legs, bob, tail and the ear flap share one 1.45s step (a
   lateral-sequence walk: rear far, front far, rear near, front near); the
   trunk lifts on .is-trunk. Far-side legs and the far tusk sit a shade
   darker so the body reads as a solid. Motion pauses off screen. */
.hero__elephant:not(.is-placed) { opacity: 0; }
.hero__elephant-body,
.hero__elephant-trunk path,
.hero__elephant-leg path,
.hero__elephant-tuft {
  fill: var(--hero-elephant);
  stroke: var(--hero-elephant-line); stroke-width: .45; stroke-linejoin: round; stroke-linecap: round;
}
.hero__elephant-leg--far path { fill: var(--hero-elephant-far); }
.hero__elephant-shade { fill: var(--hero-elephant-shade); }
.hero__elephant-light { fill: var(--hero-elephant-light); }
.hero__elephant-ear-outer {
  fill: var(--hero-elephant-ear);
  stroke: var(--hero-elephant-line); stroke-width: .45; stroke-linejoin: round;
}
.hero__elephant-ear-inner { fill: var(--hero-elephant-shade); }
.hero__elephant-eye { fill: var(--hero-elephant-eye); }
.hero__elephant-shine { fill: var(--hero-elephant-shine); }
.hero__elephant-tusk {
  fill: var(--hero-elephant-tusk);
  stroke: var(--hero-elephant-line); stroke-width: .22; stroke-linejoin: round; stroke-linecap: round;
}
.hero__elephant-tusk--far { fill: var(--hero-elephant-tusk-far); }
.hero__elephant-leg .hero__elephant-nail { fill: var(--hero-elephant-tusk); stroke: none; }
.hero__elephant-crease {
  fill: none; stroke: var(--hero-elephant-line); stroke-width: .35; stroke-linecap: round;
}
.hero__elephant-tail {
  transform-box: fill-box; transform-origin: 100% 0%; /* hinge at the rump */
}
.hero__elephant-leg { transform-box: fill-box; transform-origin: 50% 0%; }
.hero__elephant-ear {
  transform-box: fill-box; transform-origin: 98% 46%; /* hinge along the edge that meets the head */
  animation: elephant-ear-rest 2.8s ease-in-out infinite;
}
.hero__elephant-trunk {
  transform-box: fill-box; transform-origin: 36% 6%; /* where the trunk leaves the face */
  transition: transform 1.15s cubic-bezier(.45, .05, .2, 1);
}
.hero__elephant.is-trunk .hero__elephant-trunk { transform: rotate(-105deg); }
/* Four-beat walk, each leg a quarter of the 1.45s step behind the last. */
.hero__elephant.is-walking .hero__elephant-leg--1 { animation: elephant-step 1.45s ease-in-out infinite; animation-delay: 0s; }
.hero__elephant.is-walking .hero__elephant-leg--3 { animation: elephant-step 1.45s ease-in-out infinite; animation-delay: -.36s; }
.hero__elephant.is-walking .hero__elephant-leg--2 { animation: elephant-step 1.45s ease-in-out infinite; animation-delay: -.72s; }
.hero__elephant.is-walking .hero__elephant-leg--4 { animation: elephant-step 1.45s ease-in-out infinite; animation-delay: -1.09s; }
.hero__elephant.is-walking .hero__elephant-bob { animation: elephant-bob 1.45s ease-in-out infinite; }
.hero__elephant.is-walking .hero__elephant-tail { animation: elephant-tail 1.7s ease-in-out infinite; }
.hero__elephant.is-walking .hero__elephant-ear { animation: elephant-ear 1.45s ease-in-out infinite; }
@keyframes elephant-step {
  0%, 100% { transform: rotate(13deg); }
  28% { transform: rotate(2deg) translateY(-2px); }
  50% { transform: rotate(-13deg) translateY(-0.3px); }
  72% { transform: rotate(-4deg) translateY(0); }
}
@keyframes elephant-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.4px); }
}
@keyframes elephant-tail {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: rotate(-12deg); }
}
@keyframes elephant-ear {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(22deg) scale(.82); }
}
@keyframes elephant-ear-rest {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(12deg) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bird, .hero__critters, .hero__eyes { display: none; }
  .hero__elephant-leg,
  .hero__elephant-bob,
  .hero__elephant-tail,
  .hero__elephant-ear { animation: none; }
  .hero__elephant-trunk { transition: none; }
}
.hero__inner { position: relative; max-width: 50rem; }

.hero__dateline {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .6rem .85rem;
  padding: .5rem 1rem .5rem .6rem;
  border: 1px solid var(--color-border); border-radius: 100px;
  background: var(--color-surface);
  font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero__pill {
  background: var(--button-primary-bg); color: var(--button-primary-text); padding: .28rem .7rem;
  border-radius: 100px; font-size: .7rem; letter-spacing: .12em;
}
.hero .hero__dateline span:not(.hero__pill) { color: var(--color-text); }

.hero h1 { margin-bottom: .45em; }
.hero h1 em {
  font-style: normal; display: block;
  color: transparent;
  background: linear-gradient(92deg, var(--hero-highlight-from) 0%, var(--hero-highlight-to) 55%, var(--hero-highlight-from) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero__lede {
  font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem); line-height: 1.6;
  max-width: 40ch; margin-bottom: 2.1rem;
}
.hero .btn-row { margin-bottom: 2.6rem; }

/* Countdown */
.countdown { display: flex; flex-wrap: wrap; gap: clamp(1.1rem, 3vw, 2.2rem); }
.countdown__unit { min-width: 3.6rem; }
.countdown__num {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); line-height: 1;
  color: var(--color-heading); font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-text-muted); margin-top: .5rem; font-weight: 600;
}
.countdown__sep { display: none; }
.hero .countdown__live { color: var(--color-text); }

@media (max-width: 560px) {
  .hero__dateline {
    border-radius: 8px; font-size: .72rem; letter-spacing: .06em;
    padding: .5rem .8rem .5rem .5rem; gap: .5rem .7rem;
  }
  .countdown { gap: 1rem 1.4rem; }
}

/* ---------- Quote band ---------- */
.quote-band { background: var(--color-surface-alt); border-block: 1px solid var(--color-border-soft); }
.quote-band blockquote {
  margin: 0; text-align: center; max-width: 42ch; margin-inline: auto;
}
.quote-band__text {
  font-family: var(--font-serif); font-style: italic; font-weight: 600; quotes: none;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.35;
  color: var(--color-display); display: block;
}
.quote-band__text { margin: 0; }
.quote-band__text::before { content: "\201C"; }
.quote-band__text::after { content: "\201D"; }
.quote-band cite {
  display: block; margin-top: 1.3rem; font-style: normal;
  font-size: .78rem; letter-spacing: .17em; text-transform: uppercase;
  font-weight: 650; color: var(--color-text-muted);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border); border-block: 1px solid var(--color-border); }
.stats { margin: 0; }
.stat { background: var(--color-surface); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.75rem); text-align: center; display: flex; flex-direction: column; }
.stat dt, .stat dd { margin: 0; }
.stat .stat__num { order: -1; } /* number above its label; the list reads label first */
.stat__num {
  font-family: var(--font-serif); font-weight: 700; line-height: 1;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--color-display);
}
.stat__num sup { font-size: .5em; vertical-align: super; color: var(--color-accent-text); }
.stat__label {
  margin-top: .7rem; font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 650; color: var(--color-text-muted);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
/* Grid items default to min-width:auto, so one long word or a nowrap button
   can widen a track past the screen. Let tracks win on narrow phones. */
.grid > *, .split > *, .form-grid > *, .form-row > * { min-width: 0; }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
a.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { border-color: var(--color-border-hover); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-list { list-style: none; margin-block: 0; }
.card-list > li { display: flex; }
.card-list .card { flex: 1 1 auto; }
.card--callout { border-left: 3px solid var(--color-border-callout); }
.card h3, .card__title { margin-bottom: .5rem; }
/* A heading at h3 size regardless of its level, so the outline can be right
   without the type getting louder. */
.h3, .card__title, .panel__title { font-size: clamp(1.25rem, 1.08rem + .6vw, 1.55rem); }
.grid--4 .card h3 { font-size: 1.18rem; }
.card p { color: var(--color-text-muted); font-size: .97rem; }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius); margin-bottom: 1.15rem;
  display: grid; place-items: center; background: var(--color-icon-bg); color: var(--color-icon);
}
.card__icon svg { width: 22px; height: 22px; }

/* ---------- Split (text + panel) ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: var(--color-surface-feature); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.4vw, 2.75rem); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(28rem 20rem at 100% 0%, var(--glow-primary), transparent 60%);
  pointer-events: none;
}
.panel > * { position: relative; }
/* A panel placed on a dark band: no fill of its own, just an outline. */
.panel--outline {
  background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: none;
}
.panel--outline::before { display: none; }
.panel__list { list-style: none; margin: 0; padding: 0; }
.panel__list li {
  display: flex; gap: 1rem; padding: 1.05rem 0;
  border-bottom: 1px solid var(--color-border);
}
.panel__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel__list li:first-child { padding-top: 0; }
.panel__list dt, .panel__k {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-accent-text); font-weight: 650; flex: none; width: 6.5rem; padding-top: .25rem;
}
.panel__v { font-weight: 500; color: var(--color-text); }
.panel__v small { display: block; font-size: .85rem; color: var(--color-text-muted); font-weight: 400; margin-top: .15rem; }

/* ---------- Feature list ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ticks li { position: relative; padding-left: 2.1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .18rem;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%; background: var(--color-tick-bg);
}
/* Checkmark: the SVG is used only as an alpha mask, so its color comes from
   the --color-tick token rather than being baked into the image. */
.ticks li::after {
  content: ""; position: absolute; left: 0; top: .18rem;
  width: 1.3rem; height: 1.3rem;
  background-color: var(--color-tick);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .78rem no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .78rem no-repeat;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--gradient-page-hero);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3.25rem, 6.5vw, 5.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(48rem 26rem at 88% 4%, var(--glow-primary), transparent 62%);
}
.page-hero h1 { margin-bottom: .35em; }
.page-hero p { max-width: 58ch; font-size: 1.1rem; margin-bottom: 0; }

.page-hero .breadcrumb { font-size: .8rem; color: var(--color-text-subtle); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-text); text-decoration: underline; }
.breadcrumb span { margin-inline: .45rem; opacity: .5; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 2rem 0; padding: .3rem 0 .3rem 1.5rem;
  border-left: 3px solid var(--color-border-callout);
  font-family: var(--font-serif); font-size: 1.22rem; font-style: italic; color: var(--color-display);
}

/* ---------- Speakers ---------- */
.speaker {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
}
.speaker__avatar {
  width: 68px; height: 68px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--color-avatar-from), var(--color-avatar-to));
  color: var(--color-avatar-text); font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem;
  letter-spacing: .02em; border: 2px solid var(--color-avatar-ring);
}
.speaker__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin: 0 0 .3rem; }
.speaker__role { color: var(--color-text-muted); font-size: .95rem; margin: 0 0 .85rem; }
.speaker__meta {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650;
  color: var(--color-badge-text); background: var(--color-badge-bg); padding: .35rem .7rem; border-radius: 100px;
  align-self: flex-start;
}

/* ---------- Agenda / schedule ---------- */
.day { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.day:last-child { margin-bottom: 0; }
.day__head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem;
  padding-bottom: .9rem; margin-bottom: .35rem; border-bottom: 2px solid var(--color-border-strong);
}
.day__name { font-family: var(--font-serif); font-size: clamp(1.4rem,1.2rem + .8vw,1.8rem); font-weight: 700; margin: 0; }
.day__date { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--color-accent-text); }

.slot { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--color-border-soft); }
.slot:last-child { border-bottom: 0; }
.slot__time { font-size: .82rem; font-weight: 650; letter-spacing: .06em; color: var(--color-text-muted); padding-top: .18rem; text-transform: uppercase; }
.slot__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin: 0 0 .35rem; }
.slot__body { color: var(--color-text-muted); font-size: .97rem; margin: 0; }
.slot__tag {
  display: inline-block; margin-left: .6rem; vertical-align: middle;
  font-family: var(--font-sans); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 700; color: var(--color-tag-text); background: var(--color-tag-bg); padding: .22rem .5rem; border-radius: 3px;
}
.slot__tag--highlight { background: var(--color-tag-highlight-bg); color: var(--color-tag-highlight-text); }
.slot__tag--neutral { background: var(--color-tag-neutral-bg); color: var(--color-tag-neutral-text); }
@media (max-width: 680px) {
  .slot { grid-template-columns: 1fr; gap: .4rem; }
  .slot__time { padding-top: 0; }
}

/* ---------- Awards ---------- */
.award-head {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding-bottom: 1.35rem; margin-bottom: .5rem; border-bottom: 2px solid var(--color-border-strong);
}
.award-head__desc { color: var(--color-text-muted); margin: 0; }
.award-medal { width: 46px; height: 46px; flex: none; color: var(--color-medal); }
/* Award honorees — headshot, year, name, role. */
.honorees {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem);
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.honoree { text-align: center; }
.honoree__photo {
  width: 100%; max-width: 132px; aspect-ratio: 1; margin: 0 auto .8rem;
  border-radius: 50%; object-fit: cover; object-position: center top;
  background: var(--color-surface-alt);
  border: 2px solid var(--color-avatar-ring);
}
.honoree__year {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; line-height: 1;
  color: var(--color-accent-text); margin: 0 0 .3rem; font-variant-numeric: tabular-nums;
}
.honoree__name { font-weight: 650; margin: 0; line-height: 1.3; }
.honoree__role { color: var(--color-text-muted); font-size: .85rem; margin: .15rem 0 0; line-height: 1.4; }
.honoree--latest .honoree__photo { border-color: var(--color-border-featured); }
.honoree__badge {
  display: inline-block; margin: .45rem 0 0;
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--color-badge-text); background: var(--color-badge-bg);
  padding: .2rem .45rem; border-radius: 3px;
}
.award-criteria { max-width: 62ch; margin: 1.75rem 0 clamp(2rem, 4vw, 3rem); }
.award-criteria p { color: var(--color-text-muted); }
.award-criteria .ticks { margin-top: 1rem; }
.award-criteria .form-note { margin-top: 1rem; }
@media (max-width: 560px) { .honorees { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lodging ---------- */
.lodging-feature {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center; background: var(--color-surface-feature);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.4vw, 3rem);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.lodging-feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(34rem 22rem at 96% 10%, var(--glow-primary), transparent 62%);
}
.lodging-feature > * { position: relative; }
.lodging-feature h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.rate-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.lodging-feature .rate-card__label {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 650;
  color: var(--color-accent-text); margin-bottom: .9rem;
}
.rate-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--color-border); }
.rate-row:last-child { border-bottom: 0; }
.rate-row dt { color: var(--color-text-muted); font-size: .92rem; }
.rate-row dd { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--color-display); }
.rate-row dd span { font-size: .72rem; font-family: var(--font-sans); font-weight: 500; color: var(--color-text-muted); }
@media (max-width: 820px) { .lodging-feature { grid-template-columns: 1fr; } }

.hotel { display: flex; flex-direction: column; }
.hotel__badge {
  align-self: flex-start; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--color-badge-text); background: var(--color-badge-bg);
  padding: .3rem .6rem; border-radius: 3px; margin-bottom: 1rem;
}
.hotel h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.hotel__phone {
  margin-top: auto; padding-top: 1.1rem; font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
}
.hotel__phone svg { width: 1em; height: 1em; }

/* Hotels from the staff portal's lodging builder (assets/js/lodging-render.js).
   Each one is a .lodging-feature, so it inherits the dark-surface roles; its
   photo, when it has one, sits behind it under a scrim. */
.stays { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); container-type: inline-size; }
.stay { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.stay--no-rates { grid-template-columns: minmax(0, 1fr); }
.stay--photo {
  background-image: var(--stay-photo); background-size: cover; background-position: center;
  min-height: 22rem;
}
.stay--photo::before { background: var(--stay-scrim); }
.stay--photo .stay__main { text-shadow: var(--stay-text-shadow); }
.stay--photo .stay__main .btn, .stay--photo .stay__banner { text-shadow: none; }
.stay--photo .rate-card { background: var(--stay-rate-card-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stay :is(h2, h3) { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .35rem; }
.stay .stay__banner {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1.1rem;
  padding: .4rem .85rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--stay-banner-bg); color: var(--stay-banner-text);
}
.stay__banner svg { width: 1em; height: 1em; }
.stay .stay__subtitle { color: var(--color-accent-text); font-weight: 600; font-size: 1.02rem; margin-bottom: .9rem; }
.stay__about { white-space: pre-line; }
.stay .stay__address { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: 0 0 1rem; font-size: .95rem; color: var(--color-text); }
.stay__address svg { width: 1em; height: 1em; flex: none; color: var(--color-accent-text); }
.stay__map-alt { font-size: .85rem; font-weight: 600; }
.stay__booking {
  display: grid; gap: .35rem; margin: 0 0 1rem; padding: .7rem .9rem; max-width: 34rem;
  border: 1px dashed var(--color-border-hover); border-radius: var(--radius); background: var(--color-surface);
}
.stay .stay__code { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin: 0; color: var(--color-text); }
.stay__code-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-text); }
.stay__code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em;
  color: var(--color-heading); background: none; padding: 0;
}
.stay__copy {
  min-height: 32px; padding: .2rem .7rem; border-radius: 100px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 600;
  background: transparent; color: var(--color-link); border: 1px solid var(--color-border-hover);
}
.stay__copy:hover { background: var(--color-hover-wash); color: var(--color-link-hover); }
.stay .stay__booking-note { margin: 0; font-size: .92rem; color: var(--color-text); }
.stay__actions { margin-top: 1.5rem; }
.rate-row dd.rate-row__note { font-family: var(--font-sans); font-size: .9rem; font-weight: 600; text-align: right; }
@container (max-width: 760px) {
  .stay { grid-template-columns: minmax(0, 1fr); }
  .stay--photo::before { background: var(--stay-scrim-stacked); }
}

/* ---------- Sponsor tiers ---------- */
.tier {
  display: flex; flex-direction: column; position: relative;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.tier:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tier--featured { border-color: var(--color-border-featured); border-width: 2px; box-shadow: var(--shadow-md); }
.tier__flag {
  position: absolute; top: -.75rem; left: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--color-tag-bg); color: var(--color-tag-text);
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: .3rem .7rem; border-radius: 3px;
}
.tier__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin: 0 0 .2rem; }
.tier__price {
  font-family: var(--font-serif); font-weight: 700; line-height: 1;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); color: var(--color-display); margin: .55rem 0 1.4rem;
  font-variant-numeric: tabular-nums;
}
.tier__price sup { font-size: .46em; vertical-align: super; color: var(--color-text-muted); margin-right: .05em; }
.tier .ticks { margin-bottom: 1.6rem; font-size: .95rem; }
.tier .btn { margin-top: auto; }
/* Pinned above the button, so it lines up across tiles of different heights. */
.tier__fine {
  margin: auto 0 1rem; padding-top: .9rem; border-top: 1px solid var(--color-border-soft);
  font-size: .78rem; line-height: 1.45; color: var(--color-text-muted);
}
.tier__fine + .btn { margin-top: 0; }
.tier__fine strong { color: var(--color-text); font-weight: 600; }

/* The organization's tax status, shown wherever someone is deciding to give. */
.tax-notice {
  display: flex; align-items: flex-start; gap: .65rem; max-width: 46rem;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem); padding: .85rem 1.1rem;
  border: 1px solid var(--color-border-callout); border-radius: var(--radius);
  background: var(--color-surface-alt); color: var(--color-text); font-size: .95rem; line-height: 1.5;
}
.tax-notice svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .1rem; color: var(--color-accent-text); }
.tax-notice strong { color: var(--color-heading); }
/* On a dark band, the same note without a light box. */
.section--feature .tax-notice--on-dark { margin: 1.5rem 0 0; background: var(--color-surface); border-color: var(--color-border); }
.tax-notice--compact { margin: 1.25rem 0 0; font-size: .85rem; padding: .65rem .85rem; }

.donate-other {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem); padding: clamp(1.25rem, 2.5vw, 1.6rem);
  border: 1px dashed var(--color-border-hover); border-radius: var(--radius-lg);
}
.donate-other > div:first-child { flex: 1 1 18rem; }
.donate-other__title { font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 .25rem; }
.donate-other p { margin: 0; color: var(--color-text-muted); font-size: .95rem; }
.donate-other__row { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.donate-other__row .field { width: 10rem; }
.donate-other__money { position: relative; }
.donate-other__money span {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  color: var(--color-text-muted); pointer-events: none;
}
.donate-other__money input { padding-left: 1.8rem; }
.donate-other__status { flex-basis: 100%; min-height: 0; }
.donate-other__status:empty { display: none; }
.donate-other__status:not(:empty) { color: var(--status-danger); font-weight: 600; }

.sponsor-contact { display: grid; gap: 1rem; align-content: start; }
.sponsor-contact p { margin: 0; }
.sponsor-contact__actions { display: grid; gap: .6rem; }
.sponsor-contact__actions .btn svg, .sponsor-dialog__actions .btn svg { width: 1.05em; height: 1.05em; }
.sponsor-contact__email { font-size: .9rem; overflow-wrap: anywhere; }

.sponsor-dialog__eyebrow {
  margin: 0 0 .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-accent-text);
}
.sponsor-dialog__amount {
  margin: .35rem 0 0; font-family: var(--font-serif); font-weight: 700; font-size: 2rem; line-height: 1.1;
  color: var(--color-display);
}
.sponsor-dialog__who { margin: 0 0 1rem; font-size: .92rem; }
.sponsor-dialog textarea { min-height: 15rem; font-size: .92rem; line-height: 1.5; }
.sponsor-dialog__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.sponsor-dialog__actions .btn { flex: 1 1 8rem; }
.sponsor-dialog__hint { margin: .75rem 0 0; font-size: .82rem; color: var(--color-text-muted); }

/* ---------- Board roster ---------- */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.roster li { list-style: none; background: var(--color-surface); padding: 1rem 1.15rem; font-weight: 500; font-size: .97rem; }
.roster-lead {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--color-surface-feature); border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem; margin-bottom: 1.5rem;
}
.roster-lead .speaker__avatar { width: 56px; height: 56px; font-size: 1.25rem; }
.roster-lead__role { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--color-accent-text); font-weight: 650; }
.roster-lead__name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; margin-top: .2rem; color: var(--color-heading); }

/* Board from the staff portal's board editor (assets/js/board-render.js).
   Every tile is the same height: the name is held to one line and the
   subtitle to two, with room kept for both even when they are short. */
.board { display: grid; gap: 1.5rem; }
.board__leads { display: grid; gap: 1rem; }
.board__leads .roster-lead { margin-bottom: 0; }
.board-lead__text { min-width: 0; }
.board-lead__role, .board-lead__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1rem;
}
.board-tile {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0;
  padding: 1.35rem 1rem 1.2rem; text-align: center;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.board-tile .board-avatar { margin-bottom: .6rem; }
.board-tile__name {
  width: 100%; margin: 0; font-weight: 650; font-size: 1rem; line-height: 1.4; color: var(--color-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-tile__sub {
  width: 100%; margin: 0; font-size: .88rem; line-height: 1.4; color: var(--color-text-muted);
  min-height: 2.8em; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.board-avatar {
  width: 88px; height: 88px; flex: none; border-radius: 50%; overflow: hidden; padding: 0;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--color-avatar-from), var(--color-avatar-to));
  color: var(--color-avatar-text); font-family: var(--font-serif); font-weight: 700; font-size: 1.8rem;
  letter-spacing: .02em; border: 2px solid var(--color-avatar-ring);
}
.board-avatar--lead { width: 72px; height: 72px; font-size: 1.5rem; }
.board-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-avatar--zoom { cursor: zoom-in; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.board-avatar--zoom:hover { transform: scale(1.04); box-shadow: var(--shadow-md); }
.board-avatar--zoom:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .board-avatar--zoom:hover { transform: none; } }

.modal--photo { width: min(44rem, calc(100vw - 2rem)); }
.board-photo__frame { display: grid; place-items: center; min-height: 12rem; }
.board-photo__img {
  display: block; max-width: 100%; max-height: min(70vh, 70dvh); width: auto; height: auto;
  border-radius: var(--radius); object-fit: contain;
}
.board-photo__status { color: var(--color-text-muted); margin: 0; }
.board-photo__caption { margin: .9rem 0 0; color: var(--color-text-muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .82rem; font-weight: 650; letter-spacing: .03em; color: var(--color-heading); }
.field label .req { color: var(--color-accent-text); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .95rem;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); font-size: 1rem; color: var(--color-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--color-focus); outline-offset: 2px;
}
.field [aria-invalid="true"] { border-color: var(--status-danger); }
.field__error {
  font-size: .85rem; font-weight: 600; color: var(--status-danger); margin: 0;
}
.field__error::before { content: "\26A0\FE0E  "; }
.field textarea { resize: vertical; min-height: 9rem; }
.form-note { font-size: .85rem; color: var(--color-text-muted); }

/* Honeypot — off-screen for people, visible to bots that fill every input. */
.hp-field {
  position: absolute !important; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  margin: 1.25rem 0 0; padding: .95rem 1.15rem;
  border-radius: var(--radius); border: 1px solid var(--color-border);
  background: var(--color-surface-alt); color: var(--color-text); font-size: .95rem; line-height: 1.55;
}
.form-status--pending { color: var(--color-text-muted); }
.form-status--success {
  border-color: var(--color-success-border); background: var(--color-success-bg); font-weight: 500;
}
.form-status--error {
  border-color: var(--color-danger-border); background: var(--color-danger-bg);
}
.form-status--error a { font-weight: 600; }

/* reCAPTCHA (App Check). Google permits hiding the floating badge only when the
   attribution below is shown near the protected form, which .recaptcha-note does. */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { font-size: .78rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Dialog ----------
   Native <dialog> where the browser has it (top layer, Escape, backdrop,
   inert page); the .is-modal-open fallback below covers the rest. */
.modal {
  width: min(30rem, calc(100vw - 2rem));
  max-height: min(90vh, calc(100dvh - 2rem));
  margin: auto; padding: 0;
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); color: var(--color-text);
  box-shadow: var(--shadow-lg); text-align: left;
}
.modal[open] { display: flex; }
.modal::backdrop { background: var(--color-backdrop); }

:root.is-modal-open { overflow: hidden; }
:root.is-modal-open::before { content: ""; position: fixed; inset: 0; z-index: 199; background: var(--color-backdrop); }
:root.is-modal-open .modal { position: fixed; inset: 50% auto auto 50%; translate: -50% -50%; z-index: 200; }

.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.1rem 0 1.5rem;
}
.modal__title { font-family: var(--font-serif); font-size: 1.5rem; margin: 0; color: var(--color-heading); }
.modal__title:focus { outline: none; }
.modal__title:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.modal__close {
  flex: none; width: 44px; height: 44px; padding: 0; margin-top: -.35rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid transparent; border-radius: 50%;
  background: transparent; color: var(--color-text-muted); cursor: pointer;
}
.modal__close:hover { background: var(--color-hover-wash); color: var(--color-text); }
.modal__close svg { width: 20px; height: 20px; }

.modal__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.5rem 1.5rem; }
.modal__intro { margin: .4rem 0 1.25rem; color: var(--color-text-muted); font-size: .95rem; }
.modal .form-grid { gap: .9rem; }
.modal .form-status { margin-top: 1rem; }

.modal__calendar { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border-soft); }
.modal__calendar-title {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--color-accent-text); margin: 0 0 .35rem;
}
.modal__calendar-sub { margin: 0 0 .9rem; font-size: .92rem; font-weight: 500; }
.modal__calendar-note { margin: .75rem 0 0; font-size: .78rem; color: var(--color-text-muted); }
/* Side by side while both labels fit on one line, stacked once they don't. */
.btn-row--fill > .btn { flex: 1 1 11.5rem; }

/* Stripe's embedded checkout needs more room than a sign-up form. */
.modal--wide { width: min(38rem, calc(100vw - 2rem)); }
.pay-mount { min-height: 20rem; }
.pay-mount__loading { display: flex; align-items: center; gap: .6rem; color: var(--color-text-muted); font-size: .92rem; }
.ticks--inline { gap: .45rem; margin: .9rem 0 0; font-size: .92rem; }

/* Without JavaScript the dialog can never open, so do not offer it. */
html:not(.js) [data-reminder-open] { display: none; }

@media (max-width: 480px) {
  /* A sheet off the bottom edge, the way a phone expects it. */
  .modal {
    /* the UA stylesheet caps a dialog at 100% - 2em; a sheet wants the full width */
    width: 100%; max-width: none; margin: auto auto 0;
    max-height: min(92vh, calc(100dvh - 2rem));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0;
  }
  :root.is-modal-open .modal { inset: auto 0 0 0; translate: none; }
}

/* ---------- Contact details ---------- */
.contact-block { display: flex; gap: 1.1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--color-border-soft); }
.contact-block:last-child { border-bottom: 0; }
.contact-block__icon { width: 40px; height: 40px; flex: none; border-radius: var(--radius); background: var(--color-icon-bg); color: var(--color-icon); display: grid; place-items: center; }
.contact-block__icon svg { width: 19px; height: 19px; }
.contact-block h3 { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--color-text-muted); margin-bottom: .4rem; }
.contact-block p, .contact-block address { margin: 0; font-style: normal; font-weight: 500; }
.contact-block a { font-weight: 600; }
/* an email address is one unbreakable word — let it break on small screens */
.contact-block > div { min-width: 0; }
.contact-block a, .contact-block p, .contact-block address { overflow-wrap: anywhere; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--gradient-cta);
  text-align: center; padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40rem 24rem at 50% 120%, var(--glow-primary), transparent 62%);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin-inline: auto; font-size: 1.1rem; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface-chrome); padding-block: clamp(3rem, 5vw, 4.5rem) 0; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(1.75rem, 3.5vw, 3rem); padding-bottom: 3rem; }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top .brand { margin-bottom: 1.1rem; }
.footer-blurb { max-width: 34ch; font-size: .93rem; line-height: 1.6; color: var(--color-text-muted); }
.footer-col h2 {
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 1.1rem; color: var(--color-heading);
}
.footer-col__later { margin-top: 1.6rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: var(--color-text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--color-text); text-decoration: underline; }
.footer-col address { font-style: normal; line-height: 1.6; color: var(--color-text-muted); }
.socials { display: flex; gap: .55rem; margin-top: 1.4rem; }
.socials .btn svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid var(--color-border); padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--color-text-subtle);
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
  .card--link:hover, .tier:hover { transform: none; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li[aria-current] { color: var(--color-text-subtle); }

/* ---------- Stats as a description list ---------- */
.stat dt, .stat dd { margin: 0; }

/* ---------- Windows High Contrast / forced colors ----------
   Backgrounds and gradients are dropped by the platform, so anything that
   relies on them needs a border or plain text instead. */
@media (forced-colors: active) {
  .hero h1 em { color: CanvasText; background: none; -webkit-text-fill-color: CanvasText; }
  .hero__scene { display: none; }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .nav a[aria-current="page"]::after { display: none; }
  .ticks { list-style: disc; padding-left: 1.3em; }
  .ticks li { padding-left: 0; }
  .ticks li::before, .ticks li::after { display: none; }
  .btn { border: 2px solid ButtonText; }
  .skip-link:focus { border: 2px solid CanvasText; }
  .card, .tier, .speaker, .panel, .rate-card { border: 1px solid CanvasText; }
}

/* ---------- Registration ---------- */
.reg-layout { align-items: start; }
.reg-summary { position: sticky; top: 5.5rem; }
.reg-progress {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem;
  list-style: none; padding: 0; margin: 0 0 1.25rem;
}
.reg-progress li {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650;
  color: var(--color-text-muted); padding-bottom: .35rem;
  border-bottom: 2px solid var(--color-border);
}
.reg-progress li[aria-current="step"] { color: var(--color-heading); border-bottom-color: var(--color-focus); }
.ticket-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.ticket { padding: 1rem 0; border-bottom: 1px solid var(--color-border-soft); }
.ticket__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.ticket--out .ticket__name, .ticket--out .ticket__price { color: var(--color-text-muted); }
.ticket__was { color: var(--color-text-muted); font-weight: 400; }
.ticket__tag--out { color: var(--status-danger); }
.ticket__tag--deal { color: var(--color-accent-text); }
/* One required answer per ticket, e.g. who a dinner guest is accompanying. */
.ticket__questions { display: grid; gap: .75rem; margin-top: .85rem; padding-left: .9rem; border-left: 2px solid var(--color-border); }
.ticket__name { margin: 0; font-weight: 700; color: var(--color-heading); }
.ticket__tag {
  display: inline-block; margin-left: .45rem; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700; color: var(--color-text-muted);
}
.ticket__price { margin: .15rem 0 0; color: var(--color-text); }
.ticket__note { margin: .45rem 0 0; font-size: .88rem; color: var(--color-text-muted); max-width: 46ch; }
.qty { display: flex; align-items: center; gap: .45rem; }
.qty__value {
  min-width: 2.6rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700;
  padding: .35rem .4rem; border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); color: var(--color-heading);
}
.choice-list { border: 0; margin: 0; padding: 0; display: grid; gap: .15rem; }
.choice { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; font-weight: 600; color: var(--color-heading); }
.choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--color-focus); }
.phone-row { display: flex; align-items: center; gap: .65rem; }
.phone-row input { flex: 1; }
.phone-row__code { font-weight: 700; color: var(--color-text-muted); }
.reg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.reg-running { margin: 0 auto 0 0; font-weight: 700; color: var(--color-heading); }
.order-lines { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .55rem; }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.order-lines__empty { color: var(--color-text-muted); }
.order-lines__discount { color: var(--color-accent-text); font-weight: 600; }
.discount { display: grid; gap: .45rem; margin: 1.25rem 0 .25rem; }
.discount label { font-size: .82rem; font-weight: 650; letter-spacing: .03em; color: var(--color-heading); }
.discount__optional { font-weight: 400; color: var(--color-text-muted); }
.discount__row { display: flex; gap: .6rem; max-width: 22rem; }
.discount__row input {
  flex: 1; min-width: 0; padding: .6rem .8rem; text-transform: uppercase;
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text);
}
.discount__row input[aria-invalid="true"] { border-color: var(--status-danger); }
.discount__status { margin: 0; font-size: .88rem; min-height: 1.2em; color: var(--color-text-muted); }
.discount__status--ok { color: var(--color-accent-text); font-weight: 600; }
.discount__status--error { color: var(--status-danger); font-weight: 600; }
.order-total {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 0; padding-top: 1rem; border-top: 1px solid var(--color-border);
  font-size: 1.15rem; color: var(--color-heading);
}
@media (max-width: 880px) { .reg-summary { position: static; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn { display: none !important; }
  body, .hero, .page-hero, .hero h1, .page-hero h1 { color: var(--print-ink); }
  .hero, .page-hero { background: none !important; }
}
