/* =========================================================================
   9 TO 9 MEET — design system
   Brand colours come from Settings (--primary / --secondary are injected in
   the page head); everything else derives from them.
   ========================================================================= */

@font-face { font-family: "Roboto Slab"; font-weight: 400; font-display: swap; src: url(/static/fonts/roboto-slab/files/roboto-slab-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 700; font-display: swap; src: url(/static/fonts/roboto-slab/files/roboto-slab-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 800; font-display: swap; src: url(/static/fonts/roboto-slab/files/roboto-slab-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 900; font-display: swap; src: url(/static/fonts/roboto-slab/files/roboto-slab-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(/static/fonts/roboto/files/roboto-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(/static/fonts/roboto/files/roboto-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(/static/fonts/roboto/files/roboto-latin-700-normal.woff2) format("woff2"); }

:root {
  /* fire palette: --primary (fire red) and --secondary (flame gold) come from Settings */
  --primary: #ce2029;
  --secondary: #ffb627;
  --heading: color-mix(in srgb, var(--primary) 90%, #000);
  --kicker: color-mix(in srgb, var(--primary) 45%, #fff);
  --brace: color-mix(in srgb, var(--primary) 22%, #fff);
  --primary-dark: color-mix(in srgb, var(--primary) 80%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 7%, #fff);
  --primary-tint: color-mix(in srgb, var(--primary) 15%, #fff);
  --secondary-soft: color-mix(in srgb, var(--secondary) 30%, #fff);
  --accent: #f26b1d;

  --background: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --text: #3b4450;
  --muted: #6b7480;
  --line: #e3e6ea;
  --line-strong: #c7ccd3;

  --success: #2f7a55;
  --success-soft: #e4f2ea;
  --warning: #93641a;
  --warning-soft: #fbf0db;
  --danger: #b0413e;
  --danger-soft: #f9e6e5;

  --font-display: "Roboto Slab", Rockwell, Georgia, serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);
  --fs-2xl: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-3xl: clamp(3.2rem, 1.8rem + 7vw, 8.5rem);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --shadow-sm: 0 1px 2px rgb(40 50 60 / 6%);
  --shadow: 0 2px 6px rgb(40 50 60 / 6%), 0 12px 28px rgb(40 50 60 / 8%);
  --focus: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-md); color: var(--text); background: var(--background); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); font-weight: 800; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); margin-bottom: .6em; display: block; }
.eyebrow.dark { color: color-mix(in srgb, var(--secondary) 70%, #6b4200); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--primary); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 var(--fs-md)/1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn.gold { --bg: var(--secondary); --fg: #1d1a12; }
.btn.gold:hover { background: color-mix(in srgb, var(--secondary) 88%, #000); }
.btn.outline { --bg: transparent; --fg: var(--primary); --bd: var(--line-strong); }
.btn.outline:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn.light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / 55%); }
.btn.light:hover { background: rgb(255 255 255 / 12%); }
.btn.danger { --bg: #fff; --fg: var(--danger); --bd: #efc3bf; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.success { --bg: var(--success); }
.btn.success:hover { background: color-mix(in srgb, var(--success) 85%, #000); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-sm); }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: var(--fs-lg); }
.btn.block { width: 100%; }
.btn.xl { white-space: normal; text-align: center; line-height: 1.2; padding: 12px 18px; width: 100%; min-height: 64px; font-size: 1.2rem; font-family: var(--font-display); font-weight: 700; border-radius: var(--r-md); letter-spacing: .03em; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn.xl svg { width: 1.4em; height: 1.4em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--text); }
.req { color: var(--danger); }
.input, input:not([type]), input[type=text], input[type=tel], input[type=email], input[type=date], input[type=time], input[type=datetime-local],
input[type=password], input[type=search], input[type=number], input[type=color], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: 400 var(--fs-md)/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
input[type=color] { padding: 4px; width: 64px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fffafa; }
.error-text { color: var(--danger); font-size: var(--fs-sm); margin-top: 6px; font-weight: 500; }
.help { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.phone-input { display: grid; grid-template-columns: 104px 1fr; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.choice-group { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; cursor: pointer; background: #fff; }
.choice input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.choice input:focus-visible + span { box-shadow: var(--focus); }

/* photo uploader */
.dropzone { display: flex; gap: 18px; align-items: center; padding: 18px; border: 2px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { box-shadow: var(--focus); }
.dz-preview { width: 92px; height: 116px; border-radius: var(--r-sm); background: var(--surface-2) center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--muted); }
.dz-preview.has { outline: 3px solid var(--secondary); outline-offset: 2px; }
.dz-preview svg { width: 34px; height: 34px; }
.dz-text strong { display: block; font-size: var(--fs-md); }

/* ---------------------------------------------------------------- cards & surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
@media (min-width: 720px) { .card { padding: 28px; } }
.card.tight { padding: 16px 18px; }
.card + .card { margin-top: 18px; }
.card-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.panel-emergency { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: linear-gradient(0deg, #fff, #fff 70%, #fff6f5); }
.panel-emergency .step-head .icon { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------- badges & alerts */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge.approved, .badge.yes, .badge.open { background: var(--success-soft); color: var(--success); }
.badge.pending, .badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.cancelled, .badge.rejected, .badge.full, .badge.closed { background: var(--danger-soft); color: var(--danger); }
.badge.brand { background: var(--primary-tint); color: var(--primary); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.alert.success { background: var(--success-soft); border-color: #b5dfc5; color: #0f5530; }
.alert.error { background: var(--danger-soft); border-color: #f2bdb8; color: #85150f; }
.alert.warning { background: var(--warning-soft); border-color: #f1d493; color: #6a4300; }
.alert.info { background: var(--primary-soft); border-color: var(--primary-tint); color: var(--primary); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow); animation: toast-in .3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------------------------------------------------------------- progress / capacity */
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--pct, 0%); background: var(--primary); border-radius: 99px; transition: width .6s var(--ease); }
.meter.hot > span { background: var(--secondary); }
.meter.full > span { background: var(--danger); }
.meter.lg { height: 12px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
th a { color: inherit; text-decoration: none; }
th a:hover { color: var(--primary); }
tbody tr:hover td { background: #fcfbf8; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 38px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--line-strong); margin: 0 auto 10px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--secondary); }
.tabs a:hover { color: var(--primary); }

.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 20px; }
dl.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 16px; margin: 0; font-size: var(--fs-sm); }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
@media (max-width: 520px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 10px; } }

/* =========================================================================
   PUBLIC SITE
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--secondary); display: grid; place-items: center; font: 800 .95rem/1 var(--font-display); letter-spacing: -.04em; flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-text strong { display: block; font: 800 1.05rem/1.05 var(--font-display); letter-spacing: .01em; }
.brand-text span { display: block; font: 600 .62rem/1.3 var(--font-body); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { padding: 10px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { background: var(--primary-soft); color: var(--primary); }
.site-nav .btn { margin-left: 8px; min-height: 42px; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 12px; font-size: var(--fs-md); }
  .site-nav .btn { margin: 8px 0 0; }
}

/* hero */
.hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(600px circle at 18% 30%, color-mix(in srgb, var(--secondary) 26%, transparent), transparent 60%),
              radial-gradient(700px circle at 85% 80%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%);
  animation: glow 18s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / 10%) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
@keyframes glow { to { transform: translate(4%, -3%) scale(1.06); } }
.hero .container { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 44px; align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.15fr .85fr; padding-top: 56px; padding-bottom: 64px; gap: 56px; } }
.hero h1 { color: #fff; font-size: var(--fs-3xl); font-weight: 800; line-height: .98; letter-spacing: -.025em; margin-bottom: .25em; }
.hero h1 .gold { color: var(--secondary); }
.hero .tagline { font: 700 clamp(1rem, .9rem + .6vw, 1.35rem)/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.hero .theme { color: rgb(255 255 255 / 78%); font-size: var(--fs-lg); margin-bottom: 28px; }
.hero-when { display: grid; grid-template-columns: auto auto auto; gap: 14px 18px; align-items: center; justify-content: start; margin-bottom: 30px; }
.hero-when .when-block strong { display: block; font: 800 clamp(1.3rem, 1rem + 1.4vw, 2rem)/1 var(--font-display); color: #fff; }
.hero-when .when-block span { font-size: var(--fs-sm); color: rgb(255 255 255 / 70%); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.hero-when .arrow { color: var(--secondary); font-size: 1.6rem; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--fs-sm); color: rgb(255 255 255 / 75%); margin-top: 22px; }
.hero-visual { position: relative; justify-self: center; width: fit-content; max-width: 100%; order: -1; }
@media (min-width: 900px) { .hero-visual { order: 0; } }
.hero-visual img { width: auto; max-width: 100%; max-height: min(34vh, 300px); margin: 0 auto; border-radius: var(--r-lg); box-shadow: 0 30px 60px rgb(0 0 0 / 35%); transform: rotate(1.5deg); animation: hero-in .9s var(--ease) both; }
.hero-visual::before { content: ""; position: absolute; inset: 14px -10px -10px 14px; border: 2px solid color-mix(in srgb, var(--secondary) 70%, transparent); border-radius: var(--r-lg); transform: rotate(-2deg); }
.hero-copy { animation: hero-in .8s var(--ease) both; }
@media (min-width: 900px) { .hero-visual img { max-height: min(74vh, 600px); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }

/* intro & features */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature:nth-child(2) .icon { background: var(--secondary-soft); color: color-mix(in srgb, var(--secondary) 60%, #000); }
.feature h3 { text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.feature p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: var(--fs-2xl); margin: 0; }
.band { background: var(--surface-2); }
.band-dark { background: var(--primary); color: #fff; }
.band-dark h2 { color: #fff; }

/* activity cards */
.activity-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.activity-media { aspect-ratio: 16 / 9; background: var(--primary); position: relative; display: grid; place-items: center; color: var(--secondary); overflow: hidden; }
.activity-media img { width: 100%; height: 100%; object-fit: cover; }
.activity-media svg { width: 54px; height: 54px; opacity: .95; position: relative; }
.activity-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at 80% 10%, color-mix(in srgb, var(--secondary) 35%, transparent), transparent 70%), radial-gradient(240px circle at 10% 100%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%); }
.activity-media .cap-chip { position: absolute; left: 14px; bottom: 12px; background: rgb(255 255 255 / 92%); color: var(--primary); font-weight: 700; font-size: var(--fs-xs); padding: 4px 10px; border-radius: 999px; }
.activity-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.activity-body h3 { margin-bottom: 2px; }
.venue { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-sm); margin-bottom: 12px; }
.venue svg { width: 15px; height: 15px; flex: none; }
.activity-body .foot { margin-top: auto; padding-top: 14px; }

/* slot rows on activity pages */
.slot-list { display: grid; gap: 10px; }
.slot-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.slot-row .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.slot-row .l { font-size: var(--fs-sm); color: var(--muted); }
.slot-row .meter { grid-column: 1 / -1; }
.slot-row .avail { font-size: var(--fs-sm); font-weight: 600; color: var(--success); }
.slot-row.is-full .avail { color: var(--danger); }
.slot-row.is-low .avail { color: var(--warning); }

/* timeline */
.timeline-day { margin-bottom: 44px; }
.day-label { display: inline-flex; align-items: center; gap: 10px; font: 800 1rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--primary); padding: 10px 18px; border-radius: 999px; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 26px 18px; }
.timeline > li::before { content: ""; position: absolute; left: -35px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--secondary); }
.timeline .when { font: 700 var(--fs-sm)/1.2 var(--font-display); color: var(--primary); letter-spacing: .04em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.timeline .items { display: grid; gap: 8px; }
@media (min-width: 720px) { .timeline .items { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.tl-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.tl-item strong { display: block; }
.tl-item .meta { font-size: var(--fs-sm); color: var(--muted); }
.tl-item.open { border-left: 4px solid var(--secondary); }

/* footer */
.site-footer { background: #15171d; color: #b9bdc9; padding: 48px 0 28px; margin-top: 0; font-size: var(--fs-sm); }
.site-footer a { color: #e6e8ef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #2a2d36; margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #858a98; }

.page-hero { background: var(--primary); color: #fff; padding: 48px 0 44px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at 90% 0%, color-mix(in srgb, var(--secondary) 28%, transparent), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: rgb(255 255 255 / 78%); margin: 8px 0 0; max-width: 60ch; }
.prose { max-width: 70ch; }
.prose p { white-space: pre-line; }

/* =========================================================================
   REGISTRATION WIZARD
   ========================================================================= */
.wizard { padding: 24px 0 120px; }
@media (min-width: 720px) { .wizard { padding-top: 40px; } }
.wizard-top { position: sticky; top: 68px; z-index: 20; background: var(--background); padding: 12px 0 14px; margin-bottom: 8px; }
.stepper { display: flex; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1 0 auto; }
.stepper button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: 0; padding: 4px 6px; cursor: pointer; font: inherit; color: var(--muted); text-align: left; border-radius: 8px; }
.stepper button:disabled { cursor: default; }
.stepper .n { font: 800 .75rem/1 var(--font-display); letter-spacing: .06em; }
.stepper .t { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.stepper li.done button, .stepper li.current button { color: var(--primary); }
.stepper li.current .n { color: var(--secondary); }
.stepper li.error button { color: var(--danger); }
@media (max-width: 720px) { .stepper li:not(.current) .t { display: none; } .stepper li.current { flex: 3 0 auto; } }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--pct, 12%); background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .4s var(--ease); }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-head .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.step-head .icon svg { width: 24px; height: 24px; }
.step-head h2 { margin: 0; }
.step-head p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.js .step { display: none; animation: step-in .35s var(--ease); }
.js .step.active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateX(10px); } }
.wizard-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); box-shadow: 0 -6px 20px rgb(30 30 50 / 6%); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.wizard-nav .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.wizard-nav .info { font-size: var(--fs-sm); color: var(--muted); display: none; }
@media (min-width: 720px) { .wizard-nav .info { display: block; } }
.wizard-nav .btns { display: flex; gap: 10px; margin-left: auto; }
.no-js-submit { margin-top: 20px; }
.js .no-js-submit { display: none; }
html:not(.js) .wizard-nav { display: none; }

/* slot picker */
.picker-activity { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 14px; }
.picker-activity header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.picker-activity h3 { margin: 0; text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; }
.slot-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
@media (max-width: 600px) { .step[data-step=activities] { padding: 16px 12px; } .picker-activity { padding: 14px 12px; } .slot { padding: 10px 11px; min-height: 84px; } .slot .t { font-size: .86rem; } }
.day-sep { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.slot { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; min-height: 92px; }
.slot:hover { border-color: var(--primary); }
.slot:active { transform: scale(.99); }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot .t { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; padding-right: 22px; }
.slot .l { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.slot .a { font-size: var(--fs-xs); font-weight: 700; color: var(--success); margin-top: auto; }
.slot .meter { height: 5px; }
.slot .state { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 800; }
.slot:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.slot:has(input:checked) .state { background: var(--primary); border-color: var(--primary); }
.slot:has(input:checked) .state::after { content: "✓"; }
.slot:has(input:focus-visible) { box-shadow: var(--focus); }
.slot.full, .slot.closed { background: var(--surface-2); border-style: dashed; cursor: not-allowed; color: var(--muted); }
.slot.full .a, .slot.closed .a { color: var(--danger); }
.slot.full .state, .slot.closed .state { display: none; }
.slot.low .a { color: var(--warning); }
.slot.conflict { border-color: var(--danger); background: var(--danger-soft); animation: shake .3s; }
.slot.bad { border-color: var(--danger); }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.conflict-box { border: 1.5px solid var(--danger); background: var(--danger-soft); color: #7d130d; border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 16px; }
.conflict-box strong { display: block; font-family: var(--font-display); letter-spacing: .08em; }
.selected-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.selected-bar .chip { background: var(--primary); color: #fff; font-size: var(--fs-xs); font-weight: 600; padding: 5px 10px; border-radius: 999px; }

/* summary */
.summary-section { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 12px; background: var(--surface); }
.summary-section header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.summary-section h3 { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }

/* success */
.success-hero { text-align: center; padding: 44px 0 24px; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 10px var(--success-soft); animation: pop .5s var(--ease); }
.success-icon svg { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.reg-number { font: 800 clamp(2rem, 1.5rem + 3vw, 3rem)/1 var(--font-display); letter-spacing: .04em; color: var(--primary); font-variant-numeric: tabular-nums; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; width: 196px; margin: 0 auto; }

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-body { background: #f5f5f2; }
.admin-shell { display: grid; min-height: 100vh; }
.admin-shell > div { min-width: 0; }
@media (min-width: 1000px) { .admin-shell { grid-template-columns: 248px 1fr; } }
.sidebar { background: var(--primary); color: #cfd4e6; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: none; }
@media (min-width: 1000px) { .sidebar { display: block; } }
.sidebar.open { display: block; position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 70; box-shadow: var(--shadow); }
.sidebar .brand { color: #fff; margin: 4px 6px 22px; }
.sidebar .brand-mark { background: var(--secondary); color: var(--primary); }
.sidebar .brand-text span { color: #aab1ca; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav .group { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #8d95b2; padding: 16px 12px 6px; font-weight: 700; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #dde1ef; text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.side-nav a svg { width: 18px; height: 18px; opacity: .85; flex: none; }
.side-nav a:hover { background: rgb(255 255 255 / 8%); color: #fff; }
.side-nav a[aria-current="page"] { background: rgb(255 255 255 / 14%); color: #fff; box-shadow: inset 3px 0 0 var(--secondary); }
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 40%); z-index: 65; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgb(255 255 255 / 92%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); min-height: 64px; }
@media (min-width: 720px) { .topbar { padding: 10px 28px; } }
.topbar .menu-btn { display: inline-flex; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 1000px) { .topbar .menu-btn { display: none; } }
.topbar .menu-btn svg { width: 20px; height: 20px; }
.event-pill { display: none; font-weight: 600; font-size: var(--fs-sm); padding: 8px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
@media (min-width: 720px) { .event-pill { display: inline-flex; gap: 8px; align-items: center; } }
.topbar form.search { flex: 1; min-width: 0; max-width: 420px; margin-left: auto; }
@media (max-width: 560px) { body.admin-body .topbar form.search { display: none; } }
.topbar form.search input { min-height: 42px; border-radius: 999px; padding-left: 16px; background: #fafaf8; }
.profile { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar form.search + .profile { margin-left: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--secondary); color: var(--primary); display: grid; place-items: center; font: 800 .9rem/1 var(--font-display); flex: none; }
.profile .who { display: none; line-height: 1.2; font-size: var(--fs-sm); }
.profile .who span { display: block; color: var(--muted); font-size: var(--fs-xs); }
@media (min-width: 1100px) { .profile .who { display: block; } }
.admin-main { padding: 22px 16px 60px; min-width: 0; }
@media (min-width: 720px) { .admin-main { padding: 28px 28px 60px; } }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title h1 { font-size: var(--fs-xl); margin: 0; }
.page-title .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }

.metrics { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; text-decoration: none; color: inherit; display: block; transition: box-shadow .15s, transform .15s; }
a.metric:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.metric .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.metric .n { font: 800 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.1 var(--font-display); color: var(--primary); font-variant-numeric: tabular-nums; margin-top: 6px; }
.metric .s { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.metric.accent { background: var(--primary); border-color: var(--primary); }
.metric.accent .k, .metric.accent .s { color: #c9cfe6; }
.metric.accent .n { color: #fff; }
.occ-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.occ-row:last-child { border-bottom: 0; }
.occ-row .lbl { font-size: var(--fs-sm); font-weight: 500; }
.occ-row .num { text-align: right; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; font-weight: 600; }
.occ-row .meter { grid-column: 1 / -1; }
.bars { display: flex; gap: 6px; align-items: end; height: 120px; padding-top: 8px; }
.bars .b { flex: 1; background: var(--primary-tint); border-radius: 6px 6px 0 0; position: relative; min-height: 4px; }
.bars .b:last-child { background: var(--secondary); }
.bars .b span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: .68rem; color: var(--muted); }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 16px; }
.filters input, .filters select { min-height: 44px; font-size: var(--fs-sm); }
.filters .wide { grid-column: span 2; }
@media (max-width: 520px) { .filters .wide { grid-column: auto; } }
.person { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.person .photo { width: 104px; height: 130px; border-radius: 14px; object-fit: cover; background: var(--surface-2); border: 3px solid var(--secondary); flex: none; }
.person .name { font: 800 1.4rem/1.2 var(--font-display); }
.inline-form { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* check-in (mobile first) */
.checkin-wrap { max-width: 560px; margin: 0 auto; }
.verdict { border-radius: var(--r-lg); padding: 22px 18px; text-align: center; margin-bottom: 16px; color: #fff; }
.verdict .v { font: 800 1.55rem/1.1 var(--font-display); letter-spacing: .03em; }
.verdict .s { display: block; font-weight: 600; margin-top: 6px; opacity: .95; }
.verdict.ok { background: var(--success); }
.verdict.bad { background: var(--danger); }
.verdict.warn { background: var(--secondary); color: #22190a; }
.verdict .time { font: 800 2rem/1 var(--font-display); margin-top: 8px; }
.booking { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.booking:last-child { border-bottom: 0; }
.booking.current { background: var(--secondary-soft); margin: 0 -14px; padding: 14px; border-radius: var(--r-sm); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: var(--fs-sm); margin-top: 14px; }
.facts dt { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
#reader { width: 100%; max-width: 440px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; background: #111; min-height: 280px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--primary); position: relative; overflow: hidden; }
.login-shell::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 15% 20%, color-mix(in srgb, var(--secondary) 25%, transparent), transparent 60%), radial-gradient(600px circle at 90% 90%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%); }
.login-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: 0 30px 60px rgb(0 0 0 / 30%); }
.login-card .brand { justify-content: center; margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .no-print, .wizard-nav, .sidebar, .topbar { display: none !important; }
  body { background: #fff; }
}

/* =========================================================================
   SLATE THEME LAYER: slab headings, brace section titles, photo hero,
   circular icons, square uppercase buttons, dark slate bands and footer.
   ========================================================================= */
h1, h2, h3, h4 { color: var(--heading); letter-spacing: 0; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }
.lead { color: var(--muted); }
.eyebrow { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; color: var(--secondary); }
.eyebrow.dark { color: var(--kicker); }

/* buttons: square, uppercase */
.btn { border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: var(--fs-sm); min-height: 46px; padding: 0 22px; }
.btn.lg { font-size: .95rem; min-height: 54px; padding: 0 28px; }
.btn.sm { font-size: .75rem; min-height: 34px; padding: 0 12px; }
.btn.gold { --bg: var(--heading); --fg: #fff; }
.btn.gold:hover { background: var(--primary); }
.btn.white { --bg: #fff; --fg: var(--primary); }
.btn.white:hover { background: var(--secondary-soft); }
.btn.outline { --fg: var(--heading); }
.btn.light { --bd: rgb(255 255 255 / 70%); }
.btn.xl { text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-display); border-radius: var(--r-md); }
.choice span { border-radius: var(--r-sm); text-transform: uppercase; font-size: var(--fs-sm); letter-spacing: .05em; }

/* section title: small kicker word, big lowercase slab word, curly brace underline */
.stitle { text-align: center; margin: 0 auto 28px; }
.stitle .kicker { display: block; font: 700 clamp(1.1rem, .9rem + .8vw, 1.6rem)/1 var(--font-display); color: var(--kicker); margin-bottom: -.1em; }
.stitle h2 { font: 800 clamp(3rem, 2rem + 4vw, 5.6rem)/1 var(--font-display); color: var(--heading); text-transform: lowercase; margin: 0; letter-spacing: -.01em; }
.stitle .brace { display: block; width: min(380px, 80%); height: auto; margin: 2px auto 0; color: var(--brace); }
.stitle .sub { font: 700 var(--fs-xl)/1.2 var(--font-display); color: var(--heading); margin-top: 22px; text-transform: lowercase; }
.stitle.on-dark .kicker { color: rgb(255 255 255 / 70%); }
.stitle.on-dark h2 { color: #fff; }
.stitle.on-dark .brace { color: rgb(255 255 255 / 35%); }
.intro-text { max-width: 760px; margin: 0 auto; text-align: center; color: var(--muted); font-size: var(--fs-md); line-height: 1.7; }
.intro-text strong { color: var(--text); }

/* photo hero */
.hero { min-height: min(92vh, 860px); display: grid; align-items: center; background: #2a0b0b; text-align: center; }
.hero::before { inset: 0; animation: none; background: var(--hero-img, none) center / cover no-repeat; filter: blur(6px) saturate(1.1); transform: scale(1.08); opacity: .9; }
.hero::after { background: linear-gradient(180deg, rgb(20 26 32 / 55%), rgb(20 26 32 / 45%) 50%, rgb(20 26 32 / 70%)); mask-image: none; background-size: auto; }
.hero .container { display: block; padding-top: 72px; padding-bottom: 72px; }
.hero .wordmark { font: 900 var(--fs-3xl)/.9 var(--font-display); color: #fff; letter-spacing: -.02em; text-transform: lowercase; margin: 0; text-shadow: 0 6px 24px rgb(0 0 0 / 35%); animation: hero-in .9s var(--ease) both; }
.hero .tagline { font: 700 clamp(1rem, .8rem + 1vw, 1.7rem)/1.2 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: #fff; margin: 18px 0 8px; text-shadow: 0 2px 12px rgb(0 0 0 / 40%); }
.hero .theme { color: rgb(255 255 255 / 85%); font-size: var(--fs-lg); margin: 0 0 26px; }
.hero-when { justify-content: center; margin: 0 auto 30px; }
.hero-when .when-block strong { font-family: var(--font-display); font-weight: 800; }
.hero-when .arrow { color: rgb(255 255 255 / 70%); }
.hero .row { justify-content: center; }
.hero-meta { justify-content: center; color: rgb(255 255 255 / 80%); }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgb(255 255 255 / 70%); width: 26px; height: 26px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* circular icons with labels */
.circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 34px; margin-top: 40px; }
.circle-item { width: 170px; text-align: center; }
.circle-item .c { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: var(--heading); color: #fff; transition: transform .2s var(--ease), background .2s; }
.circle-item:nth-child(even) .c { background: var(--secondary); }
.circle-item:hover .c { transform: translateY(-3px); background: var(--primary); }
.circle-item .c svg { width: 38px; height: 38px; }
.circle-item h3 { font: 700 var(--fs-sm)/1.2 var(--font-display); color: var(--heading); margin: 0 0 6px; }
.circle-item p { font-size: var(--fs-sm); color: var(--muted); margin: 0; line-height: 1.5; }

/* dark slate band with giant faint letters */
.band-dark { position: relative; overflow: hidden; background: var(--primary); color: #e9ecef; }
.band-dark::before { content: attr(data-letters); position: absolute; inset: -12% -4% auto; font: 900 clamp(14rem, 30vw, 34rem)/1 var(--font-display); color: rgb(255 255 255 / 6%); white-space: nowrap; text-align: center; pointer-events: none; }
.band-dark .container { position: relative; }
.band-dark .card { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 14%); color: #e9ecef; box-shadow: none; }
.band-dark .card strong { color: #fff; font-family: var(--font-display); }
.band-dark .muted { color: rgb(255 255 255 / 72%) !important; }
.band { background: var(--surface-2); }

/* cards: flatter */
.card, .feature, .activity-card, .picker-activity, .slot-row, .metric, .summary-section { border-radius: var(--r-lg); box-shadow: none; }
.feature .icon, .step-head .icon { border-radius: 50%; background: var(--heading); color: #fff; }
.feature:nth-child(2) .icon { background: var(--secondary); color: #fff; }
.activity-card:hover, .feature:hover { box-shadow: var(--shadow); }
.activity-media { background: var(--primary); color: #fff; }
.activity-media::before { background: none; content: attr(data-letter); font: 900 11rem/1 var(--font-display); color: rgb(255 255 255 / 8%); display: grid; place-items: center; text-transform: lowercase; }
.activity-media svg { width: 42px; height: 42px; padding: 18px; box-sizing: content-box; border-radius: 50%; background: rgb(255 255 255 / 14%); }
.activity-media .cap-chip { border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.activity-body h3 { font-size: 1.15rem; }

/* header & page hero */
.site-header { background: rgb(255 255 255 / 94%); }
.brand-mark { border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 900; }
.brand-text strong { font-family: var(--font-display); font-weight: 900; color: var(--primary); text-transform: lowercase; font-size: 1.25rem; letter-spacing: -.01em; }
.site-nav a:not(.btn) { font-family: var(--font-display); font-weight: 700; color: var(--heading); font-size: .92rem; border-radius: var(--r-sm); }
.page-hero { background: var(--primary); padding: 56px 0 48px; text-align: center; }
.page-hero::before { content: attr(data-letters); background: none; font: 900 clamp(10rem, 24vw, 24rem)/1 var(--font-display); color: rgb(255 255 255 / 6%); display: flex; align-items: center; justify-content: center; white-space: nowrap; text-transform: lowercase; }
.page-hero h1 { font: 900 clamp(2.6rem, 1.8rem + 3vw, 4.4rem)/1 var(--font-display); text-transform: lowercase; }
.page-hero p { margin: 12px auto 0; }
.page-hero .eyebrow { color: rgb(255 255 255 / 70%); }

/* timeline & slots */
.day-label { border-radius: var(--r-sm); background: var(--heading); font-weight: 800; }
.timeline > li::before { border-color: var(--heading); }
.timeline .when { color: var(--heading); }
.tl-item.open { border-left-color: var(--heading); }
.slot:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); }
.slot .state { border-radius: 4px; }
.selected-bar .chip { border-radius: var(--r-sm); background: var(--heading); }
.stepper li.current .n, .stepper li.current .t { color: var(--primary); }
.progress span { background: var(--heading); }
.meter > span { background: var(--heading); }
.meter.hot > span { background: var(--warning); }
.success-icon { background: var(--heading); box-shadow: 0 0 0 10px var(--primary-tint); }
.reg-number { font-weight: 900; color: var(--primary); }
.panel-emergency { background: #fff; border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.booking.current { background: var(--primary-soft); }
.verdict.warn { background: var(--warning); color: #fff; }
.tabs a[aria-current="page"] { border-bottom-color: var(--primary); }

/* footer */
.site-footer { background: var(--primary); color: #fff; padding: 56px 0 32px; }
.site-footer h4 { font: 700 1.35rem/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: color-mix(in srgb, var(--primary) 45%, #fff); margin-bottom: 16px; }
.site-footer p, .site-footer li { color: #fff; }
.site-footer a { color: #fff; }
.site-footer .brand-mark { background: #fff; color: var(--primary); }
.site-footer .brand-text strong { color: #fff; }
.footer-grid { gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.footer-bottom { border-top-color: rgb(255 255 255 / 15%); color: rgb(255 255 255 / 75%); }
.footer-bottom a { text-decoration: underline; }

/* admin */
.sidebar .brand-mark { background: #fff; color: var(--primary); }
.side-nav a { font-family: var(--font-display); font-weight: 700; font-size: .88rem; }
.side-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 #fff; }
.metric .n, .page-title h1 { font-family: var(--font-display); }
.metric.accent { background: var(--heading); border-color: var(--heading); }
.avatar { background: var(--heading); color: #fff; }
.event-pill { border-radius: var(--r-sm); font-family: var(--font-display); }
.login-shell { background: #2a0b0b; }
.login-shell::before { background: linear-gradient(160deg, var(--primary), #2a0b0b); }
.login-card .brand-text strong { font-size: 1.4rem; }

/* =========================================================================
   MOBILE-FIRST LAYER: compact layouts for phones (up to 640/720 px wide).
   ========================================================================= */

/* sticky "Register" bar on public pages (phones only) */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; gap: 10px; align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgb(40 50 60 / 8%); }
  .mobile-cta .txt { flex: 1; font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); }
  .mobile-cta .txt strong { display: block; color: var(--text); font-family: var(--font-display); font-size: .9rem; }
  .mobile-cta .btn { flex: none; }
  body.has-mobile-cta { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 20px; }
  .stitle { margin-bottom: 18px; }
  .stitle h2 { font-size: clamp(2.6rem, 11vw, 3.2rem); }
  .stitle .sub { margin-top: 14px; font-size: 1.15rem; }
  .intro-text { font-size: .95rem; text-align: left; }

  /* hero: content first, full-width buttons within thumb reach */
  .hero { min-height: calc(100svh - 68px); }
  .hero .container { padding-top: 40px; padding-bottom: 64px; }
  .hero .wordmark { font-size: clamp(3.2rem, 17vw, 4.4rem); }
  .hero .tagline { margin-top: 12px; font-size: 1rem; }
  .hero .theme { font-size: .95rem; margin-bottom: 20px; }
  .hero-when { gap: 8px 14px; margin-bottom: 22px; }
  .hero-copy > .row { flex-direction: column; align-items: stretch; width: min(100%, 340px); margin: 0 auto; }
  .hero-copy > .row .btn { width: 100%; }
  .hero-meta { gap: 6px 16px; }

  /* feature circles: 2 × 2 instead of one per row */
  .circles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; margin-top: 26px; }
  .circle-item { width: auto; }
  .circle-item .c { width: 64px; height: 64px; }
  .circle-item .c svg { width: 30px; height: 30px; }
  .circle-item p { font-size: .8rem; }

  /* activity cards: compact horizontal rows */
  .activity-card { flex-direction: row; border-radius: var(--r-md); }
  .activity-media { aspect-ratio: auto; width: 88px; flex: none; }
  .activity-media::before { font-size: 5.5rem; }
  .activity-media svg { width: 26px; height: 26px; padding: 12px; }
  .activity-media .cap-chip { display: none; }
  .activity-body { padding: 12px 14px; }
  .activity-body h3 { font-size: 1rem; margin-bottom: 0; }
  .activity-body .venue { margin-bottom: 4px; font-size: .8rem; }
  .activity-body > p { display: none; }
  .activity-body .foot { padding-top: 6px; }
  .activity-body .foot .row { margin-top: 8px !important; }
  .grid.cols-3 { gap: 12px; }

  /* page headers and cards */
  .page-hero { padding: 36px 0 30px; }
  .card { padding: 18px 16px; }
  .card + .card { margin-top: 12px; }
  .timeline { padding-left: 18px; }
  .timeline > li { padding-left: 14px; }
  .timeline > li::before { left: -27px; }
  .slot-row { grid-template-columns: 1fr; }
  .slot-row .row { justify-content: flex-start !important; }

  /* footer: two columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer h4 { font-size: 1.1rem; margin-bottom: 8px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------------------------------------------------------------- admin on phones */
.topbar-brand { display: none; }
/* filters fold away on phones; on wider screens JS opens them and hides the toggle */
@media (min-width: 721px) { .js .filters-panel > .filters-toggle { display: none; } }
@media (max-width: 999px) {
  .topbar-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--primary); font: 900 1rem/1 var(--font-display); }
  .topbar-brand .brand-mark { width: 34px; height: 34px; font-size: .8rem; }
}
@media (max-width: 720px) {
  .admin-main { padding: 16px 12px 48px; }
  .page-title { margin-bottom: 14px; }
  .metrics { gap: 10px; }
  .metric { padding: 12px 14px; }
  .metric .n { font-size: 1.6rem; }

  /* participant filters fold away behind a button */

  /* participant table becomes stacked cards */
  .ptable thead { display: none; }
  .ptable, .ptable tbody { display: block; }
  .ptable tr { display: grid; grid-template-columns: 26px 44px 1fr auto;
    grid-template-areas: "chk ph nm st" "chk ph rg rg" ". . mo mo" ". . pa pa" ". . cd ci" ". . ac ac";
    gap: 3px 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .ptable tr:hover td { background: none; }
  .ptable td { display: block; border: 0; padding: 0; }
  .ptable .c-check { grid-area: chk; padding-top: 4px; }
  .ptable .c-photo { grid-area: ph; }
  .ptable .c-name { grid-area: nm; font-weight: 600; }
  .ptable .c-status { grid-area: st; }
  .ptable .c-reg { grid-area: rg; font-size: var(--fs-xs); }
  .ptable .c-mobile { grid-area: mo; font-size: var(--fs-sm); }
  .ptable .c-parish { grid-area: pa; font-size: var(--fs-sm); }
  .ptable .c-card { grid-area: cd; }
  .ptable .c-checkin { grid-area: ci; justify-self: start; }
  .ptable .c-card::before { content: "Card "; font-size: var(--fs-xs); color: var(--muted); }
  .ptable .c-checkin::before { content: "Entry "; font-size: var(--fs-xs); color: var(--muted); }
  .ptable .c-created { display: none; }
  .ptable .c-actions { grid-area: ac; margin-top: 6px; }
  .ptable .thumb { width: 44px; height: 54px; }
}

/* ---------------------------------------------------------------- logo in header and footer */
.brand-logo { height: 46px; width: auto; border-radius: 8px; box-shadow: 0 1px 3px rgb(0 40 100 / 25%); }
.brand-tagline { font: 700 .66rem/1.25 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--heading); padding-left: 12px; border-left: 2px solid var(--line); }
@media (max-width: 420px) { .brand-logo { height: 40px; } .brand-tagline { display: none; } }
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid rgb(255 255 255 / 15%); }
.footer-logo { height: 72px; width: auto; border-radius: 10px; box-shadow: 0 4px 16px rgb(0 0 0 / 25%); }
.footer-brand strong { display: block; font: 800 1.25rem/1.2 var(--font-display); color: #fff; }
.footer-brand span { color: rgb(255 255 255 / 75%); font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .footer-brand { gap: 14px; padding-bottom: 22px; margin-bottom: 24px; }
  .footer-logo { height: 60px; }
}
/* buttons in the footer keep their own text colour (footer links are white) */
.site-footer .btn { color: var(--fg); }

/* event poster pop-up on first visit */
.poster-popup { padding: 0; border: 0; border-radius: var(--r-lg); background: #0d1b3e; max-width: min(92vw, 560px); max-height: 94dvh; overflow: auto; box-shadow: 0 20px 60px rgb(0 0 0 / 45%); }
.poster-popup::backdrop { background: rgb(0 0 0 / 72%); }
.poster-popup img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(94dvh - 72px); margin: 0 auto; }
.poster-popup-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(0 0 0 / 60%); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.poster-popup-close:hover { background: rgb(0 0 0 / 80%); }
.poster-popup-close:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.poster-popup-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 12px; }
.poster-popup-actions .btn { flex: 1 1 140px; }

/* home: programme list (from the final schedule) */
.programme { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.prog-item { display: grid; grid-template-columns: 40px minmax(200px, 1fr) minmax(0, 1.6fr); gap: 6px 16px; align-items: center; padding: 16px 20px; }
.prog-item + .prog-item { border-top: 1px solid var(--line); }
.prog-no { width: 32px; height: 32px; border-radius: 50%; background: var(--heading); color: #fff; display: grid; place-items: center; font: 700 var(--fs-sm)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.prog-main h3 { margin: 0; font: 700 1.05rem/1.3 var(--font-display); color: var(--heading); }
.prog-meta { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.prog-times { display: flex; flex-wrap: wrap; gap: 6px; }
.prog-chip { padding: 3px 9px; border-radius: var(--r-sm); background: var(--primary-soft); border: 1px solid var(--primary-tint); color: var(--text); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prog-chip em { font-style: normal; color: var(--heading); font-weight: 800; }
.prog-chip.all { background: var(--secondary-soft); border-color: transparent; }
@media (max-width: 720px) {
  .prog-item { grid-template-columns: 32px minmax(0, 1fr); padding: 14px 14px; gap: 8px 12px; align-items: start; }
  .prog-no { width: 28px; height: 28px; font-size: var(--fs-xs); }
  .prog-main h3 { font-size: 1rem; }
  .prog-times { grid-column: 2; }
}
