:root {
  color-scheme: dark;
  --ink: #f7f2e8;
  --muted: #b9aea0;
  --night: #090909;
  --panel: #151311;
  --line: #40362e;
  --ember: #b3261e;
  --ember-bright: #e04a35;
  --gold: #d9aa5b;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--night); color: var(--ink); }
a { color: inherit; }

.home-page {
  background:
    radial-gradient(circle at 50% 48%, rgba(127, 18, 6, .42), transparent 28rem),
    radial-gradient(circle at 50% 100%, #4a130c 0, #170b08 30%, #090909 72%);
}
.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(105deg, transparent 0 70px, rgba(255,255,255,.018) 71px 72px);
}
.event-poster {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(26rem, 1fr) auto;
  width: min(100%, 1080px);
  min-height: 100svh;
  margin: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}
.masthead { position: relative; z-index: 2; }
.church-name {
  margin: 0 0 clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  font: 500 clamp(.78rem, 2vw, 1.2rem)/1.3 Arial, sans-serif;
  letter-spacing: clamp(.18em, 1vw, .52em);
  text-transform: uppercase;
}
.event-meta { display: flex; justify-content: space-between; gap: 2rem; }
.event-meta p { display: grid; gap: .35rem; margin: 0; }
.event-meta p:last-child { text-align: right; }
.event-meta span {
  color: var(--muted);
  font: 700 .68rem/1 Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.event-meta strong {
  color: #ff6b2c;
  font: 700 clamp(1rem, 2.5vw, 1.5rem)/1.1 Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.home-hero {
  position: relative;
  display: grid;
  min-height: clamp(26rem, 54vw, 40rem);
  place-items: center;
}
.fire-ring {
  position: absolute;
  width: min(67vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("/assets/eclipse-fire-ring-v2.png") center / contain no-repeat;
  box-shadow:
    0 0 30px rgba(255, 58, 12, .35),
    0 0 100px rgba(142, 17, 6, .38);
  filter: drop-shadow(0 0 18px rgba(255, 74, 12, .55));
  mix-blend-mode: screen;
  transform: rotate(-9deg);
}
.fire-ring::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: #030303;
  box-shadow: inset 0 0 48px #000, 0 0 24px rgba(255, 60, 9, .25);
}
.fire-ring::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(255, 138, 33, .18);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 62, 10, .3), inset 0 0 34px #000;
}
.hero__content { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.eyebrow { color: var(--gold); font-family: Arial, sans-serif; font-size: .83rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: .3rem 0 1rem; font-size: clamp(3rem, 10vw, 7.2rem); line-height: .9; letter-spacing: -.045em; }
.home-hero .eyebrow { margin: 0 0 1rem; color: #f5c48c; font-size: clamp(.64rem, 1.5vw, .8rem); }
.home-hero h1 { display: grid; margin: 0; text-shadow: 0 4px 24px #000; }
.title-primary { font-size: clamp(4.2rem, 12vw, 8.3rem); font-style: italic; line-height: .72; }
.title-secondary { margin-left: 3.8rem; font-size: clamp(2.5rem, 7vw, 4.8rem); font-style: italic; font-weight: 400; line-height: 1; }
.home-details { position: relative; z-index: 2; max-width: 780px; margin: auto; text-align: center; }
.tour-announcement {
  max-width: 680px;
  margin: 1.75rem auto .75rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #6c5334;
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  background: linear-gradient(145deg, #211a14, #110e0b);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.tour-announcement .tour-announcement__heading {
  margin: 0 0 .9rem;
  color: var(--gold);
  font: 700 clamp(1.4rem, 4vw, 1.8rem)/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: .015em;
}
.tour-announcement .home-information-message {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(1.05rem, 2.5vw, 1.15rem)/1.7 Arial, sans-serif;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.admin-navigation a[aria-current="page"] { background: var(--gold); color: #080706; }
.page-mode-status { padding: 1rem; border: 1px solid var(--gold); font-weight: bold; }
#page-settings-form fieldset { border: 0; padding: 0; min-width: 0; }
#page-settings-form label { display: grid; gap: .5rem; margin-bottom: 1rem; }
#page-settings-form textarea { width: 100%; resize: vertical; }
#page-settings-form button { margin: .5rem .5rem .5rem 0; }
.settings-preview { border: 1px solid var(--gold); padding: 1rem; margin: 1rem 0; }
.home-details__lead {
  margin: 0 auto .75rem;
  color: #ff6b2c;
  font: 700 clamp(1.15rem, 3vw, 1.65rem)/1.35 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-details__note { margin: 0 auto 1.5rem; color: var(--muted); font: .93rem/1.6 Arial, sans-serif; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .85rem 1.35rem; border: 1px solid transparent; border-radius: 3px; font: 700 1rem Arial, sans-serif; text-decoration: none; cursor: pointer; }
.button--primary { background: var(--ember); color: white; box-shadow: 0 8px 28px rgba(179,38,30,.28); }
.button--primary:hover { background: var(--ember-bright); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 1060px; margin: auto; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.back-link { color: var(--muted); font-family: Arial, sans-serif; font-size: .9rem; }
.team-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: transform .18s ease;
  max-width: none;
  padding: .4rem max(1.25rem, calc((100vw - 1060px) / 2 + 1.5rem));
  border-bottom-color: #60301f;
  background:
    radial-gradient(circle at 13% 50%, rgba(224, 74, 53, .16), transparent 16rem),
    linear-gradient(90deg, #15110f, #0d0c0b 48%, #11100f);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.team-header--hidden { transform: translateY(calc(-100% - 2px)); }
@media (prefers-reduced-motion: reduce) { .team-header { transition: none; } }
.team-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--gold) 28%, transparent 68%);
}
.team-header .brand { display: flex; align-items: baseline; gap: .6rem; font-size: 1.25rem; }
.team-header .brand::after {
  content: "Team portal";
  color: var(--gold);
  font: 700 .67rem/1 Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.team-header .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .7rem;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: rgba(0, 0, 0, .28);
}
.team-header .back-link:hover, .team-header .back-link:focus-visible { border-color: var(--gold); color: var(--gold); }
.registration-shell { width: min(760px, calc(100% - 2rem)); margin: 3rem auto 6rem; }
.registration-intro h1 { font-size: clamp(2.5rem, 8vw, 4.6rem); }
.registration-intro > p:last-child { color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.registration-form { display: grid; gap: 1.4rem; margin-top: 2.5rem; padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--panel); border: 1px solid var(--line); }
.registration-form h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.25rem); }
.step-label { margin: 0 0 -.85rem; color: var(--gold); font: 700 .75rem/1 Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.bot-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.warning-copy { display: grid; gap: 1rem; font: 1.05rem/1.65 Arial, sans-serif; }
.warning-copy p, .waiver-note p, .review-acknowledgment p { margin: 0; }
.waiver-note, .review-acknowledgment { padding: 1rem 1.1rem; border-left: 3px solid var(--gold); background: #211b12; font: .95rem/1.55 Arial, sans-serif; }
.waiver-note strong, .review-acknowledgment strong { display: block; margin-bottom: .35rem; }
fieldset { display: grid; gap: .75rem; margin: 0; padding: 0; border: 0; }
legend, label { font: 700 .95rem Arial, sans-serif; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
label:not(.choice):not(.checkbox) { display: grid; gap: .55rem; }
input, select, textarea { width: 100%; border: 1px solid #584a40; border-radius: 3px; background: #0d0c0b; color: var(--ink); padding: .85rem .9rem; font: 1rem Arial, sans-serif; }
textarea { resize: vertical; line-height: 1.45; }
small { display: block; color: var(--muted); font-weight: 400; line-height: 1.45; }
.choice, .checkbox { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border: 1px solid var(--line); background: #0e0d0c; cursor: pointer; }
.choice input, .checkbox input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; flex: 0 0 auto; }
.choice small { margin-top: .2rem; }
.conditional { display: grid; gap: 1.2rem; padding: 1.2rem; border-left: 3px solid var(--gold); background: #1a1713; }
.conditional__title { margin: 0; font-size: 1.35rem; }
.form-note { margin: -.4rem 0 0; color: var(--muted); font: .85rem/1.5 Arial, sans-serif; }
.button-row { display: flex; gap: .8rem; justify-content: flex-end; }
.button--secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button--secondary:hover { background: #211d19; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.review-summary { display: grid; grid-template-columns: minmax(8rem, .6fr) 1.4fr; column-gap: 1.25rem; margin: 0; border-top: 1px solid var(--line); font: .95rem/1.5 Arial, sans-serif; }
.review-summary dt, .review-summary dd { margin: 0; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.review-summary dt { color: var(--muted); font-weight: 700; }
.review-summary dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.turnstile-widget { min-height: 65px; }
.alert, .result { padding: 1rem 1.1rem; border: 1px solid #a84a3e; background: #321510; font: 1rem/1.5 Arial, sans-serif; }
.result { margin-top: 2rem; border-color: var(--gold); background: #211b12; }
.result h2 { margin-top: 0; font-size: 1.8rem; }
.result__waiver { margin-top: 1.25rem; }
.result__waiver .button { margin-top: 1rem; }
.result__changes { margin-top: 1rem; }
.portal-shell { width: min(960px, calc(100% - 2rem)); margin: 3rem auto 6rem; }
.portal-shell h1 { margin: 0 0 1.5rem; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.05; }
.portal-shell .step-label { margin: 0 0 .5rem; }
.portal-card { padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--line); background: var(--panel); }
.portal-card h2 { margin-top: 0; }
.portal-card p:last-child { margin-bottom: 0; color: var(--muted); font: 1rem/1.6 Arial, sans-serif; }
.portal-login { display: grid; gap: 1.25rem; max-width: 32rem; }
.portal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.portal-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.portal-actions .button { width: 100%; text-align: center; }
.portal-resource { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1rem; }
.portal-resource h2 { margin: .15rem 0 .35rem; }
.portal-resource p { margin-bottom: 0; }
.portal-resource .button { flex: 0 0 auto; }
.script-shell, .floorplan-shell { width: min(900px, calc(100% - 2rem)); margin: 2rem auto 5rem; }
.script-header { position: sticky; z-index: 5; top: 0; padding: 1rem 0 .8rem; background: linear-gradient(var(--night) 82%, transparent); }
.script-header .step-label { margin-bottom: .35rem; }
.script-page-title, .floorplan-shell h1 { margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; }
.room-select { display: none; gap: .45rem; margin-bottom: .75rem; }
.room-navigation { display: flex; gap: .45rem; overflow-x: auto; padding: .25rem 0 .65rem; scrollbar-width: thin; }
.room-navigation a { flex: 0 0 auto; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: 700 .85rem Arial, sans-serif; text-decoration: none; }
.room-navigation a.is-active { border-color: var(--gold); background: #211b12; color: var(--ink); }
.script-room { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--line); background: var(--panel); }
.script-room h1 { margin: 0 0 2rem; color: #ff6b2c; font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1.08; }
.script-room h2 { margin: 2.2rem 0 .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); color: var(--gold); font: 700 1.15rem/1.25 Arial, sans-serif; letter-spacing: .06em; }
.script-room h3 { margin: 1.6rem 0 .45rem; color: var(--ink); font: 800 1.1rem/1.25 Arial, sans-serif; letter-spacing: .055em; }
.script-room p { margin: 0 0 .9rem; font: 1.08rem/1.7 Arial, sans-serif; }
.script-room .stage-direction { margin: .85rem 0 1rem; padding: .7rem .9rem; border-left: 3px solid var(--gold); background: #211b12; color: #d9cbbb; font-size: 1rem; font-style: italic; }
.script-room .scripture-reference { font-size: 1rem; }
.script-room h2.scripture-reference { margin-top: 2.75rem; }
.script-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.script-pager a:last-child { margin-left: auto; }
.floorplan-shell > .step-label { margin-bottom: .5rem; }
.floorplan-card { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); background: var(--panel); }
.floorplan-card h2 { margin: 0 0 1rem; }
.floorplan-card img { display: block; width: 100%; height: auto; background: white; }
.performance-shell { width: min(760px, calc(100% - 2rem)); margin: 2rem auto 6rem; }
.performance-shell > h1 { margin: 0 0 .65rem; font-size: clamp(2.5rem, 7vw, 4.5rem); }
.performance-shell > .step-label { margin-bottom: .4rem; }
.performance-controls { position: sticky; z-index: 4; top: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .8rem; padding: .9rem; border: 1px solid var(--line); background: rgba(21, 19, 17, .97); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.performance-summary { margin: 1rem 0; color: var(--muted); font: 700 .95rem/1.4 Arial, sans-serif; }
.performance-groups { display: grid; gap: .8rem; }
.performance-groups[aria-busy="true"] { opacity: .55; pointer-events: none; }
.performance-cycle { scroll-margin-top: 7rem; padding: 1rem 1.1rem 1rem 1.45rem; border: 2px solid var(--cycle-color); box-shadow: inset .7rem 0 0 var(--cycle-color); background: var(--panel); font-family: Arial, sans-serif; }
.performance-cycle > header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.performance-cycle > header strong { font-size: 1.25rem; }
.performance-cycle > header span { color: var(--cycle-color); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.performance-cycle ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; margin: .9rem 0 0; padding-left: 1.25rem; font-size: 1.08rem; line-height: 1.35; }
.performance-cycle li { padding-left: .15rem; }
.performance-empty { margin: .85rem 0 0; color: var(--muted); font-size: 1rem; font-style: italic; }
.arrival-highlight { margin: 1.5rem 0; padding: 1.25rem; border: 2px solid var(--gold); background: var(--panel); }
.arrival-highlight h3 { margin-top: 0; }
.arrival-highlight--confirmed { border-width: 3px; text-align: center; }
.arrival-highlight__date { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; line-height: 1.25; }
.arrival-highlight__time { font-size: clamp(1.6rem, 6vw, 2.5rem); font-weight: 800; line-height: 1.25; color: var(--gold); }
.performance-cycle--break { opacity: .58; border-style: dashed; }
.performance-cycle--break .performance-empty { color: var(--gold); font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.performance-cycle.is-current { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: inset .7rem 0 0 var(--cycle-color), 0 0 24px rgba(217, 170, 91, .28); }
.checkin-shell { width: min(980px, calc(100% - 2rem)); margin: 2rem auto 6rem; }
.checkin-shell > h1 { margin-bottom: 1.25rem; font-size: clamp(2.5rem, 7vw, 4.5rem); }
.checkin-shell > .step-label { margin-bottom: .4rem; }
.checkin-help { margin-bottom: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--line); background: #11100f; font: 1rem/1.55 Arial, sans-serif; }
.checkin-help summary { color: var(--gold); font-weight: 700; cursor: pointer; }
.checkin-help ol { margin-bottom: 0; padding-left: 1.25rem; }
.checkin-filters { display: grid; grid-template-columns: minmax(12rem, .8fr) minmax(16rem, 1.5fr) auto; align-items: end; gap: .8rem; padding: 1rem; border: 1px solid var(--line); background: var(--panel); }
.checkin-summary { margin: 1rem 0; color: var(--muted); font: 700 .95rem/1.4 Arial, sans-serif; }
.checkin-results { display: grid; gap: 1rem; }
.checkin-results[aria-busy="true"] { opacity: .55; pointer-events: none; }
.checkin-card { padding: 1.15rem; border: 1px solid var(--line); background: var(--panel); }
.checkin-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.checkin-card > summary { cursor: pointer; flex-wrap: wrap; }
.checkin-card > summary::before { content: "▸"; color: var(--gold); }
.checkin-card[open] > summary::before { content: "▾"; }
.checkin-card > summary h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.checkin-card > summary .status { max-width: 100%; flex-shrink: 1; }
.checkin-section { display: grid; gap: 1rem; min-width: 0; }
.checkin-section > h2 { margin: 0; font: 700 1.2rem/1.4 Arial, sans-serif; }
.checkin-completed { border: 1px solid var(--line); background: var(--panel); }
.checkin-completed > summary { padding: 1rem; cursor: pointer; color: var(--gold); font: 700 1.2rem/1.4 Arial, sans-serif; }
.checkin-completed > .checkin-section { padding: 0 1rem 1rem; }
.checkin-card h2 { margin: 0; font-size: 1.5rem; }
.checkin-card__details { margin: .55rem 0 1rem; color: var(--muted); font: .95rem/1.5 Arial, sans-serif; }
.status { flex: 0 0 auto; padding: .35rem .55rem; border-radius: 3px; font: 700 .78rem/1.2 Arial, sans-serif; text-transform: uppercase; }
.status--confirmed { background: #16351f; color: #a8e5b5; }
.status--waitlist { background: #4a1b14; color: #ffc0b5; }
.status--cancelled { background: #34302c; color: #d8d0c7; }
.status--missed-you { background: #103d40; color: #9de4e6; }
.status--reminder { background: #173451; color: #b4d9ff; }
.admin-registration__statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; max-width: 100%; }
.checkin-card__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.tour-groups { display: grid; gap: .65rem; margin: 1rem 0; }
.tour-groups h3 { margin: 0; color: var(--gold); font: 800 .9rem/1.3 Arial, sans-serif; letter-spacing: .06em; }
.tour-group { display: grid; gap: .35rem; padding: .9rem 1rem; border: 2px solid var(--gold); background: #211b12; font-family: Arial, sans-serif; }
.tour-group > strong { font-size: 1.15rem; }
.tour-group > span { color: var(--muted); font-size: .9rem; }
.tour-group ul { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: .35rem 0 0; padding-left: 1.2rem; }
.tour-group li { min-width: 11rem; }
.checkin-people { border-top: 1px solid var(--line); }
.checkin-person { display: grid; grid-template-columns: minmax(10rem, 1fr) auto auto; align-items: center; gap: .8rem; min-height: 62px; border-bottom: 1px solid var(--line); font-family: Arial, sans-serif; }
.checkin-person__name { font-weight: 700; }
.checkin-person__name span { display: block; margin-top: .15rem; color: var(--gold); font-size: .75rem; text-transform: uppercase; }
.checkin-toggle { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem; cursor: pointer; }
.checkin-toggle input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--ember-bright); }
.alert--success { border-color: #397a49; background: #102b17; }
.checkin-empty { padding: 2rem 1rem; border: 1px dashed var(--line); color: var(--muted); text-align: center; font: 1rem/1.5 Arial, sans-serif; }
.admin-shell { width: min(1100px, calc(100% - 2rem)); margin: 2rem auto 6rem; }
.admin-shell > h1 { margin-bottom: .8rem; font-size: clamp(2.5rem, 7vw, 4.5rem); }
.admin-shell > .step-label { margin-bottom: .4rem; }
.admin-intro { margin: 0 0 1.25rem; color: var(--muted); font: 1rem/1.55 Arial, sans-serif; }
.admin-legend { margin: 0 0 1.25rem; border: 1px solid var(--line); background: #11100f; font-family: Arial, sans-serif; }
.admin-legend > summary { padding: 1rem 1.1rem; color: var(--gold); font-weight: 800; cursor: pointer; }
.admin-legend[open] > summary { border-bottom: 1px solid var(--line); }
.admin-legend__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; padding: 1.1rem; }
.admin-legend h2 { margin: 0 0 .65rem; color: var(--ink); font: 800 1.05rem/1.3 Arial, sans-serif; }
.admin-legend p { margin: 0 0 .75rem; color: var(--muted); font: .92rem/1.55 Arial, sans-serif; }
.admin-legend p:last-child { margin-bottom: 0; }
.admin-legend .status { display: inline-block; margin: 0 .35rem .25rem 0; vertical-align: middle; }
.admin-legend__capacity { display: inline-block; margin-right: .25rem; padding: .2rem .4rem; border: 1px solid var(--line); border-color: #7b392f; background: #0e0d0c; color: var(--ink); }
.admin-legend__colors { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: .8rem 0; }
.admin-legend__colors span { color: var(--ink); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.admin-filters { display: grid; grid-template-columns: 1fr 1fr minmax(16rem, 1.7fr) auto; align-items: end; gap: .8rem; padding: 1rem; border: 1px solid var(--line); background: var(--panel); }
.admin-jump { display: flex; gap: .65rem; margin: 1rem 0; font: 700 .9rem Arial, sans-serif; }
.admin-jump a { display: flex; align-items: center; justify-content: center; text-align: center; padding: .55rem .7rem; border: 1px solid var(--line); color: var(--gold); text-decoration: none; }
.admin-section { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.admin-section__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.admin-section__heading h2 { margin: 0; font-size: 1.8rem; }
.admin-section__heading p { margin: 0; color: var(--muted); font: .95rem Arial, sans-serif; }
.capacity-panel > summary { cursor: pointer; list-style: none; flex-wrap: wrap; }
.capacity-panel > summary::-webkit-details-marker { display: none; }
.capacity-panel > summary::before { content: "▸"; color: var(--gold); font-size: 1.4rem; }
.capacity-panel[open] > summary::before { content: "▾"; }
.capacity-panel > summary p { margin-left: auto; }
.capacity-panel > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.capacity-results, .admin-results { display: grid; gap: 1rem; }
.capacity-date { overflow-x: auto; padding: 1rem; border: 1px solid var(--line); background: var(--panel); }
.capacity-date h3 { margin: 0 0 .8rem; color: var(--gold); font: 800 1rem Arial, sans-serif; }
.capacity-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; min-width: 0; }
.capacity-cycle { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .6rem; padding: .65rem; border: 1px solid var(--line); border-top: .45rem solid var(--cycle-color, var(--line)); background: #0e0d0c; font-family: Arial, sans-serif; }
.capacity-cycle span { color: var(--muted); }
.capacity-cycle .cycle-color__name { grid-column: 1 / -1; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.capacity-cycle progress {
  grid-column: 1 / -1;
  width: 100%;
  height: .75rem;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 2px;
  background: #3a342e;
  color: var(--gold);
  accent-color: var(--gold);
}
.capacity-cycle progress::-webkit-progress-bar { background: #3a342e; }
.capacity-cycle progress::-webkit-progress-value { background: var(--gold); }
.capacity-cycle progress::-moz-progress-bar { background: var(--gold); }
.capacity-cycle--full { border-color: #7b392f; }
.capacity-cycle--inactive { opacity: .45; }
.admin-registration { border: 1px solid var(--line); background: var(--panel); }
.admin-cycle-group { min-width: 0; border: 1px solid var(--line); border-left-width: .5rem; background: var(--panel); }
.admin-cycle-group.cycle-color { border-color: var(--cycle-color); }
.admin-cycle-group__heading { margin: 0; padding: .75rem 1rem; font: 700 1rem/1.5 Arial, sans-serif; }
.admin-cycle-group > .admin-registration { border: 0; border-top: 1px solid var(--line); }
.admin-registration > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; cursor: pointer; font-family: Arial, sans-serif; }
.admin-registration > summary strong { display: block; font-size: 1.05rem; }
.admin-registration > summary small { margin-top: .25rem; }
.admin-registration[open] > summary { border-bottom: 1px solid var(--line); }
.admin-details { display: grid; grid-template-columns: minmax(9rem, .45fr) 1.55fr; margin: 0; padding: 1rem; font: .95rem/1.5 Arial, sans-serif; }
.admin-details dt, .admin-details dd { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.admin-details dt { color: var(--muted); font-weight: 700; }
.admin-name-list { margin: 0; padding-left: 1.15rem; }
.admin-edit-button { margin: 0 1rem 1rem; }
.button--danger { border-color: #8b3428; background: #491912; color: #fff; }
.button--danger:hover { background: #652219; }
.admin-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 1rem 1rem; padding: 1rem; border: 1px solid var(--gold); background: #100f0e; }
.admin-editor[hidden] { display: none; }
.admin-editor h3, .admin-editor > p, .admin-editor .alert, .admin-editor__actions { grid-column: 1 / -1; }
.admin-editor h3 { margin: 0; font-size: 1.35rem; }
.admin-editor > p { margin: 0; color: var(--muted); font: .9rem/1.5 Arial, sans-serif; }
.admin-editor__actions { display: flex; justify-content: flex-end; gap: .7rem; }
.capacity-confirmation, .capacity-preview { grid-column: 1 / -1; }
.capacity-confirmation { padding: .8rem; border: 1px solid var(--line); font: .95rem/1.45 Arial, sans-serif; }
.cancellation-choice, .cancellation-replacement, .cancellation-note, .email-preview { grid-column: 1 / -1; }
.cancellation-choice { align-items: center; padding: .9rem 1rem; border-color: #6a5847; background: #171411; }
.cancellation-choice strong { display: block; margin-bottom: .2rem; }
.cancellation-choice small { margin: 0; }
.cancellation-replacement { padding: 1rem; border-left: 3px solid var(--gold); background: #1a1713; }
.cancellation-replacement[hidden], .email-preview[hidden] { display: none; }
.email-preview { overflow: hidden; border: 1px solid var(--gold); background: #0b0a09; }
.email-preview h4 { margin: 0; padding: 1rem 1rem .35rem; font-size: 1.2rem; }
.email-preview__subject { margin: 0; padding: .35rem 1rem 1rem; color: var(--ink) !important; font-weight: 700 !important; }
.email-preview__frame { display: block; width: 100%; height: 31rem; border: 0; border-top: 1px solid var(--line); background: #080706; }
.capacity-preview { padding: 1rem; border: 1px solid var(--gold); background: #080706; font: .95rem/1.5 Arial, sans-serif; }
.capacity-preview[hidden], .admin-editor__actions button[hidden] { display: none; }
.capacity-preview h4 { margin: 0 0 .35rem; font: 700 1.15rem Georgia, serif; }
.capacity-preview p { margin: 0 0 .85rem; }
.capacity-preview strong { display: block; margin-top: .85rem; color: var(--gold); }
.capacity-preview__warning { padding: .7rem; border-left: 3px solid var(--ember); background: #21100b; }
.capacity-preview__group { margin-top: .8rem; padding: .75rem; border-left: .75rem solid var(--cycle-color); background: #171513; }
.capacity-preview__group strong { margin-top: 0; }
.confirmation-groups { display: grid; gap: .55rem; margin: 1rem 0; font-family: Arial, sans-serif; }
.confirmation-group { padding: .8rem 1rem; border: 2px solid var(--cycle-color); border-left-width: 1rem; background: #111; color: #fff; font-weight: 800; }
.cycle-color { --cycle-color: #815acb; }
.cycle-color--purple { --cycle-color: #8b5cf6; }
.cycle-color--pink { --cycle-color: #f43f9e; }
.cycle-color--orange { --cycle-color: #ff7a00; }
.cycle-color--yellow { --cycle-color: #ffd600; }
.cycle-color--green { --cycle-color: #43d854; }
.cycle-color--blue { --cycle-color: #3984e6; }
.tour-group.cycle-color { border-color: var(--cycle-color); box-shadow: inset .65rem 0 0 var(--cycle-color); padding-left: 1.4rem; }
.cycle-color__name::before,
.tour-group.cycle-color > strong::before,
.capacity-preview__group > strong::before,
.confirmation-group::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: .5em;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cycle-color);
  box-shadow: 0 0 0 1px #000;
  vertical-align: -.12em;
}

@media (max-width: 1000px) {
  .capacity-cycle { grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: .55rem; }
  .capacity-cycle > strong { white-space: nowrap; }
  .capacity-cycle > span { grid-column: 1; }
}

@media (max-width: 620px) {
  .capacity-date { padding: .55rem; }
  .capacity-grid { gap: .25rem; }
  .capacity-cycle { container-type: inline-size; padding: .4rem .2rem; gap: .25rem; }
  .capacity-cycle > strong { font-size: clamp(.65rem, 23cqi, 1.2rem); letter-spacing: -.02em; }
  .capacity-cycle > span { font-size: .72rem; }
  .capacity-cycle .cycle-color__name { font-size: clamp(.56rem, 2.1vw, .7rem); letter-spacing: 0; }
  .capacity-cycle progress { height: .5rem; }
  .event-poster { grid-template-rows: auto minmax(22rem, 1fr) auto; padding: 1.25rem; }
  .church-name {
    width: 100vw;
    margin: 0 0 1.75rem calc(50% - 50vw);
    padding: 0 .5rem;
    font-size: clamp(.85rem, 4.2vw, 1.08rem);
    letter-spacing: clamp(.12em, .8vw, .22em);
    white-space: nowrap;
  }
  .event-meta { gap: 1rem; }
  .event-meta span { font-size: .7rem; }
  .event-meta strong { font-size: clamp(1rem, 5vw, 1.25rem); }
  .home-hero { min-height: 25rem; }
  .fire-ring { width: min(98vw, 430px); }
  .home-hero .eyebrow { max-width: 15rem; line-height: 1.5; }
  .title-secondary { margin-left: 2.3rem; }
  .home-details__lead { font-size: 1.05rem; }
  .mobile-line-break { display: block; }
  .field-grid { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .team-header { align-items: center; gap: .5rem; padding: .2rem .75rem; }
  .team-header .brand { display: grid; gap: .15rem; font-size: 1.1rem; }
  .team-header .brand::after { font-size: .58rem; }
  .team-header .back-link { min-height: 44px; padding: .35rem .6rem; font-size: .8rem; }
  .registration-shell { margin-top: 2rem; }
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button-row .button--primary { order: -1; }
  .review-summary { grid-template-columns: 1fr; }
  .review-summary dt { padding-bottom: .15rem; border-bottom: 0; }
  .review-summary dd { padding-top: 0; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-heading { display: block; }
  .portal-heading .button { margin-bottom: 1.5rem; }
  .portal-actions { display: grid; }
  .portal-resource { display: grid; }
  .portal-resource .button { width: 100%; }
  .script-shell, .floorplan-shell { width: min(100% - 1rem, 900px); margin-top: .5rem; }
  .script-header { padding-top: .75rem; }
  .script-page-title { font-size: 2rem; }
  .room-select { display: grid; }
  .room-navigation { display: none; }
  .script-room { padding: 1.1rem; }
  .script-room p { font-size: 1.05rem; line-height: 1.65; }
  .performance-shell { width: min(100% - 1rem, 760px); margin-top: 1rem; }
  .performance-controls { grid-template-columns: 1fr; }
  .performance-controls .button { width: 100%; }
  .performance-cycle { padding: .9rem .9rem .9rem 1.3rem; }
  .performance-cycle ul { grid-template-columns: 1fr; gap: .55rem; font-size: 1.12rem; }
  .checkin-shell { width: min(100% - 1rem, 980px); margin-top: 1rem; }
  .checkin-filters { grid-template-columns: 1fr; }
  .checkin-card__heading { display: grid; }
  .status { justify-self: start; }
  .checkin-card__actions { display: grid; }
  .checkin-person { grid-template-columns: 1fr; gap: .15rem; padding: .8rem 0; }
  .checkin-toggle { justify-content: space-between; border: 1px solid var(--line); background: #0e0d0c; }
  .checkin-toggle input { order: 2; }
  .admin-shell { width: min(100% - 1rem, 1100px); margin-top: 1rem; }
  .admin-legend__grid { grid-template-columns: 1fr; }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-section__heading { display: block; }
  .capacity-panel > summary { display: flex; gap: .5rem; }
  .capacity-panel > summary p { flex-basis: 100%; margin-left: 0; }
  .admin-section__heading p { margin-top: .35rem; }
  .admin-registration > summary { align-items: flex-start; }
  .admin-details { grid-template-columns: 1fr; }
  .admin-details dt { padding-bottom: .1rem; border-bottom: 0; }
  .admin-details dd { padding-top: 0; }
  .admin-editor { grid-template-columns: 1fr; }
  .admin-editor__actions { display: grid; }
  .admin-editor__actions .button--primary { order: -1; }
}

/* Guest feedback and private Admin review. */
.feedback-shell { max-width: 760px; font: 1rem/1.6 Arial, sans-serif; }
.feedback-shell h1, .feedback-shell h2 { font-family: Georgia, 'Times New Roman', serif; }
.feedback-shell .registration-form { margin-top: 1.5rem; }
.feedback-shell fieldset { min-width: 0; gap: 1.25rem; }
.feedback-shell fieldset fieldset { padding-bottom: .75rem; }
.feedback-shell legend { line-height: 1.5; padding-bottom: .5rem; }
.feedback-shell fieldset p { margin: 0; color: var(--muted); }
.feedback-choices { display: grid; gap: .65rem; }
.feedback-shell .checkbox { padding: .8rem; line-height: 1.45; }
.feedback-contact { margin-top: 3rem; padding-top: 1.75rem; border-top: 2px solid var(--gold); scroll-margin-top: 1rem; }
.required-note { color: var(--gold); font-size: .8rem; }
.response-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.response-card { min-width: 0; border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 1rem; background: var(--panel); }
.response-card summary { cursor: pointer; font: 700 1rem/1.6 Arial,sans-serif; }
.response-card p { font: 1rem/1.6 Arial,sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.response-card strong { color: var(--gold); }
.response-controls { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.response-controls .button { white-space: normal; }
.feedback-qr { display: block; width: min(100%, 300px); height: auto; background: white; margin: 1rem 0; }


.portal-metrics { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.5rem); }
.portal-metrics h2 { margin: 0 0 .9rem; font-size: 1.35rem; }
.portal-metrics table { width: 100%; border-collapse: collapse; font: .95rem/1.4 Arial,sans-serif; font-variant-numeric: tabular-nums; }
.portal-metrics th, .portal-metrics td { padding: .6rem .35rem; border-bottom: 1px solid var(--line); }
.portal-metrics th { text-align: left; }
.portal-metrics td, .portal-metrics thead th:not(:first-child) { text-align: right; }
.portal-metrics tfoot { color: var(--gold); font-weight: 700; }
.portal-metrics tfoot th, .portal-metrics tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }
.portal-metrics .metrics-note, .portal-metrics .metrics-status { margin: .75rem 0 0; color: var(--muted); font: .8rem/1.5 Arial,sans-serif; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Homepage invitation stays visible in both public page modes. */
.home-feedback {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 2rem auto 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #6c5334;
  border-radius: 4px;
  background: linear-gradient(145deg, #211a14, #110e0b);
  text-align: center;
}
.home-feedback h2 {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.2;
}
.home-feedback p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  color: var(--muted);
  font: 1rem/1.6 Arial, sans-serif;
}
.home-feedback__button {
  gap: .75rem;
  max-width: 100%;
  background: var(--gold);
  color: var(--night);
  line-height: 1.4;
}
.home-feedback__button:hover { background: #edc785; }
@media (max-width: 620px) {
  .home-feedback__button { width: 100%; }
}
