/* remaxevents.ca
   Layout concept: a printed invitation on a RE/MAX-blue field. Event pages open on a blue band
   holding the flyer like a card; the RSVP form and the confirmation "ticket" sit on white paper.
   Colours come from the RE/MAX Real Estate Centre logo (D-01); red is kept for the one action
   that matters on each page (RSVP / publish). Headings use Montserrat, the closest open face to
   the brand's geometric sans; text uses Inter. A deliberate single light look. */
:root {
  --blue: #08509b;
  --blue-deep: #053a73;
  --blue-ink: #0b2747;
  --blue-wash: #eaf1fa;
  --red: #df1c2d;
  --red-deep: #b51322;
  --ink: #14202e;
  --ink-2: #3e4c5e;
  --muted: #5b6b7f;
  --line: #dce3ec;
  --line-strong: #c3cedb;
  --paper: #ffffff;
  --ground: #f3f6fa;
  --ok: #17703f;
  --ok-wash: #e5f4eb;
  --warn: #855400;
  --warn-wash: #fdf2d8;
  --bad-wash: #fde8ea;
  --font-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.2vw, 3rem);
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(11, 39, 71, 0.06), 0 2px 8px rgba(11, 39, 71, 0.06);
  --shadow-lift: 0 18px 40px rgba(5, 25, 50, 0.35);
  color-scheme: light;
  font-family: var(--font-text);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: var(--step-0); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); font-weight: 800; margin: 0 0 0.5rem; }
h2 { font-size: var(--step-2); font-weight: 700; margin: 0 0 0.75rem; }
h3 { font-size: var(--step-1); font-weight: 700; margin: 0 0 0.5rem; }
h4 { font-size: var(--step-0); font-weight: 700; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
.eyebrow { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 20; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* Header and footer -------------------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.site-header .logo img { display: block; height: 52px; width: auto; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.site-header nav a:hover { color: var(--blue); }
.brand-bar { height: 4px; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%); }
.site-footer { margin-top: 4rem; background: var(--blue-ink); color: #c9d6e6; font-size: 0.9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.25rem 2.75rem; }
.site-footer strong { color: #fff; font-family: var(--font-display); }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 1.25rem; align-items: flex-start; }

/* Buttons ------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 44px; padding: 0.65rem 1.2rem; border-radius: var(--radius-s); border: 1px solid transparent; font: 600 0.98rem/1.2 var(--font-display); text-decoration: none; cursor: pointer; background: var(--blue); color: #fff; transition: background 0.15s, transform 0.1s, box-shadow 0.15s; }
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-red { background: var(--red); box-shadow: 0 6px 16px rgba(223, 28, 45, 0.28); }
.btn-red:hover { background: var(--red-deep); }
.btn-outline { background: var(--paper); color: var(--blue); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--blue-wash); color: var(--blue-deep); border-color: var(--blue); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-danger { background: var(--paper); color: var(--red-deep); border-color: #f0b4ba; }
.btn-danger:hover { background: var(--bad-wash); color: var(--red-deep); }
.btn-small { min-height: 34px; padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.btn-row form { display: contents; }
button.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Messages and badges ----------------------------------------------------------------- */
.messages { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.messages li, .notice { padding: 0.85rem 1rem; border-radius: var(--radius-s); background: var(--blue-wash); border: 1px solid #c9dbf0; }
.messages .success, .notice.ok { background: var(--ok-wash); border-color: #b8dfc7; }
.messages .error, .notice.error { background: var(--bad-wash); border-color: #f3bcc2; }
.notice.warn { background: var(--warn-wash); border-color: #efd497; }
.notice p:last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem; border-radius: 999px; font: 600 0.75rem/1.5 var(--font-text); background: var(--ground); color: var(--ink-2); white-space: nowrap; }
.badge-agent { background: var(--red); color: #fff; }
.badge-public { background: var(--blue); color: #fff; }
.badge-ok, .badge-confirmed, .badge-published, .badge-open { background: var(--ok-wash); color: var(--ok); }
.badge-warn, .badge-waitlisted, .badge-waitlist, .badge-draft, .badge-not_open { background: var(--warn-wash); color: var(--warn); }
.badge-cancelled, .badge-full, .badge-closed { background: var(--bad-wash); color: var(--red-deep); }
.badge-past, .badge-archived { background: var(--ground); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge-agent::before, .badge-public::before { display: none; }

/* Public: home -------------------------------------------------------------------------- */
.hero { background: var(--blue); color: #fff; }
.hero .container { padding-block: 3.25rem 3.5rem; }
.hero h1 { color: #fff; margin: 0.5rem 0 0.75rem; }
.hero p { margin: 0; font-size: 1.15rem; color: #d7e4f4; max-width: 60ch; }
.hero .eyebrow { color: #ffd3d7; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.event-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; background: var(--paper); box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 39, 71, 0.14); color: inherit; }
.event-card .thumb { aspect-ratio: 4 / 3; background: var(--blue); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .thumb .placeholder { color: #fff; font: 800 1.4rem/1.2 var(--font-display); padding: 1.5rem; text-align: center; }
.event-card .body { padding: 1.1rem 1.25rem 1.35rem; display: grid; gap: 0.35rem; }
.event-card h2 { font-size: 1.2rem; margin: 0; }
.date-leaf { position: absolute; top: 12px; left: 12px; width: 58px; border-radius: 8px; overflow: hidden; background: var(--paper); text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); font-family: var(--font-display); }
.date-leaf .m { display: block; background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; padding: 2px 0; }
.date-leaf .d { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: var(--ink); }
.event-card .when { color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty h2 { color: var(--ink); }

/* Public: event page -------------------------------------------------------------------- */
.event-hero { background: radial-gradient(120% 140% at 85% 0%, #0d63bd 0%, var(--blue) 45%, var(--blue-deep) 100%); color: #fff; }
.event-hero .container { display: grid; gap: 2rem 3rem; padding-block: 2.5rem 3rem; align-items: center; }
@media (min-width: 880px) { .event-hero .container { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-block: 3.5rem 4rem; } }
.flyer { margin: 0; }
@media (max-width: 879px) { .flyer { order: 2; max-width: 340px; width: 100%; justify-self: center; } }
.flyer img { display: block; width: 100%; border-radius: 6px; border: 8px solid #fff; box-shadow: var(--shadow-lift); transform: rotate(-1.2deg); }
@media (prefers-reduced-motion: no-preference) { .flyer img { transition: transform 0.4s; } .flyer img:hover { transform: rotate(0deg) scale(1.01); } }
.event-info { min-width: 0; }
.event-info .labels { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.9rem; }
.event-info .eyebrow { color: #ffd3d7; }
.event-info h1 { color: #fff; }
.event-info .summary { font-size: 1.15rem; color: #d7e4f4; max-width: 52ch; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 0.75rem; align-items: start; }
.facts .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; }
.facts svg { width: 20px; height: 20px; color: #fff; }
.facts strong { display: block; font-family: var(--font-display); font-weight: 700; color: #fff; }
.facts span, .facts a { color: #d7e4f4; }
.facts a:hover { color: #fff; }
.rsvp-by { display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.4rem 0.85rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 0.9rem; color: #fff; margin-bottom: 1.25rem; }
.rsvp-by strong { font-family: var(--font-display); }
.share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; align-items: center; }
.share-row .label { font-size: 0.85rem; color: #c9d6e6; margin-right: 0.25rem; }
.share-row .btn { min-height: 34px; padding: 0.35rem 0.8rem; font-size: 0.82rem; }
.event-body { display: grid; gap: 2.5rem; padding-block: 2.5rem 0; }
@media (min-width: 980px) { .event-body { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: start; } .event-body .register { position: sticky; top: 1rem; } }
.event-body > * { min-width: 0; }
.description { font-size: 1.05rem; color: var(--ink-2); max-width: 65ch; }
.description h2 { margin-top: 0; }
.videos { display: grid; gap: 1rem; margin: 1.5rem 0; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.status-box { padding: 1.1rem 1.25rem; border-radius: var(--radius-s); background: var(--ground); }
.status-box strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.rsvp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem max(16px, env(safe-area-inset-right, 0px)) calc(0.7rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 39, 71, 0.12); }
.rsvp-bar[hidden] { display: none; }
.rsvp-bar .what { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.rsvp-bar .what strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 0.95rem; }
@media (min-width: 980px) { .rsvp-bar { display: none; } }
body.has-rsvp-bar .site-footer { padding-bottom: 72px; }
@media (min-width: 980px) { body.has-rsvp-bar .site-footer { padding-bottom: 0; } }

/* Forms --------------------------------------------------------------------------------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--shadow); }
.stack { display: grid; gap: 1.25rem; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.register { scroll-margin-top: 1rem; border-top: 5px solid var(--red); }
.register h2 { margin-bottom: 0.35rem; }
.form-intro { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.25rem; }
.form-section { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.5rem; }
.form-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.step-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.step-head .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 0.85rem/1 var(--font-display); }
.step-head h3 { margin: 0; font-size: 1.1rem; }
.field { margin-bottom: 1.1rem; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--ink); }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.req { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=search], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; min-height: 46px; padding: 0.65rem 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s); font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 0; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #9fb0c4; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 80, 155, 0.18); outline: none; }
input:disabled, select:disabled, textarea:disabled { background: var(--ground); color: var(--muted); }
.choices { display: grid; gap: 0.55rem; }
.meal-choices .choices { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.choice, .check { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.8rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s); cursor: pointer; font-weight: 500; background: var(--paper); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.choice:hover, .check:hover { border-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.choice:has(input:focus-visible), .check:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice input, .check input { margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; accent-color: var(--blue); flex: none; }
.choice small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.check.plain { border: 0; padding: 0; background: none; }
.pills .choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills .choice { padding: 0.55rem 1rem; border-radius: 999px; align-items: center; }
.pills .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills .choice span { font-weight: 600; }
.help { margin: 0.35rem 0 0; color: var(--muted); font-size: var(--step--1); }
.error { margin: 0.35rem 0 0; color: var(--red-deep); font-size: 0.9rem; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.form-errors { margin-bottom: 1.25rem; }
.row-2, .row-3 { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: repeat(3, 1fr); } }
.guest { border: 1px solid var(--line); background: var(--ground); border-radius: var(--radius-s); padding: 1rem 1rem 0.15rem; margin-bottom: 1rem; }
.guest h4 { font-size: 0.95rem; margin: 0 0 0.75rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1.5rem; margin: 0; }
.summary-list dt { color: var(--muted); font-size: 0.9rem; }
.summary-list dd { margin: 0; overflow-wrap: anywhere; }
.fineprint { margin-top: 0.85rem; color: var(--muted); font-size: 0.82rem; }

/* Confirmation ticket ------------------------------------------------------------------- */
.ticket { display: grid; background: var(--paper); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11, 39, 71, 0.14); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 640px) { .ticket { grid-template-columns: minmax(0, 1fr) 220px; } }
.ticket .main { padding: 1.5rem 1.6rem; border-top: 6px solid var(--blue); min-width: 0; }
.ticket .stub { padding: 1.25rem; display: grid; justify-items: center; align-content: center; gap: 0.5rem; background: var(--ground); border-top: 2px dashed var(--line-strong); text-align: center; }
@media (min-width: 640px) { .ticket .stub { border-top: 0; border-left: 2px dashed var(--line-strong); } }
.ticket .stub svg { width: 160px; height: 160px; background: #fff; border-radius: 8px; padding: 4px; }
.ticket .stub .label { font-size: 0.8rem; color: var(--muted); }
.ticket h2 { margin-bottom: 0.25rem; }
.ticket .meta { color: var(--muted); margin-bottom: 1.25rem; }
.state-head { display: flex; gap: 0.85rem; align-items: center; margin: 2rem 0 1.25rem; }
.state-head .mark { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-wash); color: var(--ok); }
.state-head .mark.warn { background: var(--warn-wash); color: var(--warn); }
.state-head .mark.off { background: var(--ground); color: var(--muted); }
.state-head h1 { margin: 0; font-size: var(--step-2); }
.state-head p { margin: 0; color: var(--muted); }

/* Staff area ---------------------------------------------------------------------------- */
body.staff { background: var(--ground); }
.staff-top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.staff-top .container { display: flex; align-items: center; gap: 1.25rem; min-height: 62px; flex-wrap: wrap; }
.staff-top .logo img { height: 38px; display: block; }
.staff-nav { display: flex; gap: 0.15rem; flex-wrap: wrap; flex: 1; }
.staff-nav a { padding: 0.45rem 0.75rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); font: 600 0.9rem/1.3 var(--font-display); }
.staff-nav a:hover { background: var(--ground); color: var(--blue); }
.staff-nav a.active { background: var(--blue-wash); color: var(--blue); }
.staff-user { display: flex; align-items: center; gap: 0.9rem; font-size: 0.875rem; color: var(--muted); }
.staff-user form { display: contents; }
.staff-main .container { padding-block: 1.75rem 4rem; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.65rem; margin: 0; }
.page-head .sub { margin: 0.3rem 0 0; color: var(--muted); }
.crumb { font-size: 0.85rem; margin: 0 0 0.3rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: 0.65rem 0.95rem; text-decoration: none; color: var(--ink-2); font: 600 0.92rem/1.3 var(--font-display); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--blue); }
.tabs a.active { color: var(--blue); border-color: var(--blue); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; align-items: center; margin-bottom: 1.25rem; }
.grid-2 { display: grid; gap: 1.25rem; }
.grid-2 > * { min-width: 0; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.section-gap { margin-top: 1.25rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 1.25rem; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.tile .label { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.tile .value { font: 800 2rem/1.15 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; margin: 0.15rem 0; }
.tile .note { font-size: 0.78rem; color: var(--muted); }
.tile.lead { background: var(--blue); border-color: var(--blue); }
.tile.lead .label, .tile.lead .note { color: #d7e4f4; }
.tile.lead .value { color: #fff; }
.meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); margin-top: 0.5rem; overflow: hidden; }
.meter span { display: block; height: 100%; background: #fff; border-radius: 999px; }
table.data { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 0.92rem; }
table.data th, table.data td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { font: 700 0.72rem/1.3 var(--font-text); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #f8fafc; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover td { background: #f8fafc; }
table.data a { font-weight: 600; text-decoration: none; }
table.data a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table-wrap table.data tr:last-child td { border-bottom: 0; }
.formset td { min-width: 120px; }
.formset td:has(input[type=checkbox]) { min-width: 0; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; min-width: 180px; min-height: 40px; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

.checks { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 0.65rem; }
@media (min-width: 900px) { .checks { grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; } }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 0.6rem; align-items: start; }
.checks .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; background: var(--ground); color: var(--muted); }
.checks .done .tick { background: var(--ok-wash); color: var(--ok); }
.checks .need .tick { background: var(--bad-wash); color: var(--red-deep); }
.checks .done strong { font-weight: 500; color: var(--muted); }
.help-layout { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .help-layout { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } .help-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); } }
.help-toc { display: grid; gap: 0.15rem; padding: 1rem; }
.help-toc a { padding: 0.4rem 0.6rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; }
.help-toc a:hover { background: var(--ground); color: var(--blue); }
.help-body { display: grid; gap: 1.25rem; min-width: 0; }
.help-body section { scroll-margin-top: 80px; max-width: 75ch; }
.help-body li { margin-bottom: 0.45rem; }
.help-body code { background: var(--ground); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.9em; }
.preview-layout { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .preview-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.preview-list { display: grid; gap: 0.25rem; }
.preview-list h2 { font-size: 1.05rem; }
.preview-list a { padding: 0.5rem 0.65rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.preview-list a:hover { background: var(--ground); }
.preview-list a.active { background: var(--blue-wash); color: var(--blue); }
.email-preview { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--ground); }
details.notice summary { cursor: pointer; font-weight: 600; }

/* Charts: one series in brand blue, thin bars, rounded data end, 2px gaps (dataviz). */
.hbar { display: grid; grid-template-columns: minmax(100px, max-content) minmax(0, 1fr) 3rem; gap: 0.55rem 0.85rem; align-items: center; }
.hbar .name { font-size: 0.9rem; color: var(--ink-2); }
.hbar .track { height: 10px; position: relative; }
.hbar .fill { height: 10px; background: var(--blue); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.vbars { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-top: 0.5rem; border-bottom: 1px solid var(--line-strong); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; }
.vbars .bar { flex: 1; min-width: 4px; max-width: 34px; background: var(--blue); border-radius: 4px 4px 0 0; position: relative; }
.vbars .bar:hover { background: var(--blue-deep); }
.vbars .bar[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 4px; white-space: nowrap; z-index: 2; }
.vbars-axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }

/* Sign-in pages ------------------------------------------------------------------------ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(120% 120% at 80% 0%, #0d63bd 0%, var(--blue) 45%, var(--blue-deep) 100%); }
.auth .card { width: min(440px, 100%); padding: 2rem; border: 0; box-shadow: var(--shadow-lift); }
.auth .logo { display: block; margin: 0 auto 1.5rem; height: 64px; width: auto; }
.auth h1 { font-size: 1.45rem; text-align: center; margin-bottom: 1rem; }
.auth .eyebrow { display: block; text-align: center; color: var(--muted); margin-bottom: 0.35rem; }
.auth form p { margin: 0 0 1rem; }
.auth label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.auth button[type=submit]:not(.link), .auth .prominent { width: 100%; }
.auth ul.errorlist { color: var(--red-deep); padding-left: 1.1rem; }
.code-input { font: 700 1.7rem/1 var(--font-display) !important; letter-spacing: 0.45em; text-align: center; font-variant-numeric: tabular-nums; }

/* Check-in ------------------------------------------------------------------------------ */
.checkin-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); background: var(--ground); padding: 0.75rem 0; z-index: 3; }
.checkin-count { font: 800 1.15rem/1.3 var(--font-display); margin-bottom: 0.5rem; }
.checkin-progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 0.75rem; }
.checkin-progress span { display: block; height: 100%; background: var(--ok); }
.person { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 0.5rem; }
.person.arrived { background: var(--ok-wash); border-color: #b8dfc7; }
.person .who { min-width: 0; }
.person .who strong { display: block; font-size: 1.05rem; font-family: var(--font-display); }
.person .guests { font-size: 0.85rem; color: var(--ink-2); }
.person form { flex: none; }

/* Printouts ----------------------------------------------------------------------------- */
.print-page { background: var(--paper); padding: 1.5rem; border-radius: var(--radius); }
.print-actions { margin-bottom: 1rem; }
@media print {
  .no-print, .staff-top, .print-actions, .messages { display: none !important; }
  body, body.staff { background: #fff; }
  .print-page { padding: 0; }
  table.data { font-size: 10pt; }
  a { color: inherit; text-decoration: none; }
}
.badge-sheet { width: 8.5in; display: grid; grid-template-columns: 4in 4in; grid-auto-rows: 3in; gap: 0 0.25in; padding: 0.75in 0.125in 0; page-break-after: always; margin: 0 auto; background: #fff; }
.name-badge { border: 1px dashed #c8d0dc; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0.25in; position: relative; overflow: hidden; }
.name-badge img { height: 0.55in; width: auto; position: absolute; top: 0.18in; }
.name-badge .first { font: 800 30pt/1.05 var(--font-display); margin-top: 0.4in; }
.name-badge .last { font: 600 16pt/1.2 var(--font-display); }
.name-badge .line { font-size: 11pt; color: var(--ink-2); margin-top: 0.1in; }
.name-badge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0.12in; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%); }
@media print { .name-badge { border-color: transparent; } }

/* Invitation kit on the Share tab */
.invite { margin-bottom: 1.25rem; }
.invite-grid { display: grid; gap: 1.5rem; }
.invite-grid > * { min-width: 0; }
@media (min-width: 960px) { .invite-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.invite-list { list-style: none; counter-reset: invite; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.invite-list li { counter-increment: invite; display: grid; gap: 0.35rem; padding-left: 2.6rem; position: relative; }
.invite-list li::before { content: counter(invite); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.invite-list .btn { justify-self: start; }
.invite-label { font-family: var(--font-display); font-weight: 700; }
.invite-subject { padding: 0.5rem 0.75rem; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-s); overflow-wrap: anywhere; }
.invite-preview { height: 640px; background: #f4f6f8; }
.tile .value .of { font-size: 0.55em; font-weight: 600; color: var(--muted); }

/* Email typo suggestion under the RSVP email field */
.help.suggest { color: var(--ink); background: var(--warn-wash); border: 1px solid #efd497; border-radius: var(--radius-s); padding: 0.45rem 0.7rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; cursor: pointer; }
.linkish:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Status page */
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.status-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: 0; }
.status-list .mark { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.status-ok .mark { background: var(--ok-wash); color: #1f7a45; }
.status-warn .mark { background: var(--warn-wash); color: #8a5a00; }
.status-bad .mark { background: var(--bad-wash); color: var(--red-deep); }
.status-list .value { color: var(--ink-2); margin-left: 0.35rem; overflow-wrap: anywhere; }
.status-list p { margin: 0.25rem 0 0; }
