/* ===== Rotary Club of Stockton — Events · design tokens ===== */
:root {
  --blue-900: #0c2340;
  --blue-700: #17458f;
  --gold: #f7a81b;
  --gold-200: #f7d488;
  --bg: #f6f4ef;
  --beige: #fbf3e2;
  --beige-border: #eeddbb;
  --surface: #fff;
  --border: #e7e2d6;
  --ink: #1b2733;
  --muted: #6b7785;
  --muted-2: #8a93a0;
  --success: #1f9d57;
  --success-bg: #e8f5ec;
  --danger: #b3261e;

  --serif: 'Lora', Georgia, serif;
  --sans: 'Open Sans', system-ui, -apple-system, sans-serif;
  --maxw: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: on short pages (e.g. an empty events listing) <main> grows so the
     footer sits at the viewport bottom instead of riding up under the header. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
a { color: var(--blue-700); }
img { display: block; max-width: 100%; }

/* ===== Rotary mark (official logo image) ===== */
.rotary-mark {
  width: 40px; height: 40px; flex: 0 0 auto;
  background: url('/assets/partner-rotary.png') center / contain no-repeat;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(0.96); }
.btn-gold { background: var(--gold); color: var(--blue-900); }
.btn-blue { background: var(--blue-700); color: #fff; }
.btn-outline { background: #fff; border-color: #c9d2de; color: var(--blue-700); }
.btn-danger { background: #fff; border-color: #e7c4c0; color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Connect status pills (Payments settings) */
.status-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; padding: 4px 11px; border-radius: 999px; border: 1px solid transparent; }
.status-pill.ok { background: #e9f7ee; color: #1e7a43; border-color: #bfe6cd; }
.status-pill.warn { background: #fff4e0; color: #8a5a0f; border-color: #f0d9a8; }
.status-pill.err { background: #fdeceb; color: var(--danger); border-color: #f0d3d0; }

/* Will-call: unconfirmed (ACH clearing / failed) guest rows */
.checkin-table tr.is-unpaid td { background: #fffaf2; }
.g-paywarn { font-size: 13px; color: #8a5a0f; margin: 2px 0; }
.g-paywarn.err { color: var(--danger); }

/* Fee pass-through toggles (Payments settings) */
.fee-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #eef1f5; }
.fee-toggle input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.fee-toggle span { display: block; font-size: 15px; }
.fee-toggle .muted { display: block; font-size: 13px; margin-top: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Site shell ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--blue-900); color: #fff;
  box-shadow: 0 2px 14px rgba(12,35,64,.18);
}
.site-header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.05; }
.brand-tag { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-200); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: #e8ecf3; text-decoration: none; font-weight: 600; font-size: 14px; }
.site-nav a:hover { color: #fff; }
.nav-label-short { display: none; }

/* Organizer console: a distinct header so it's obvious you're signed in as an
   organizer, not browsing the public site. Gold underline accent + active link. */
.site-header--organizer { border-bottom: 3px solid var(--gold); }
.site-nav--organizer { flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
.site-nav--organizer a { position: relative; padding: 6px 2px; }
.site-nav--organizer a.is-active { color: #fff; }
.site-nav--organizer a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px;
  height: 3px; background: var(--gold); border-radius: 2px;
}
.site-nav--organizer .nav-muted { color: var(--gold-200); font-weight: 600; }
.site-nav--organizer .nav-muted:hover { color: #fff; }
.site-nav--organizer .nav-sep {
  width: 1px; height: 18px; background: rgba(255,255,255,.22); margin: 0 2px;
}

/* Mobile hamburger toggle (CSS-only; the menu auto-closes on navigation because
   the static layout re-renders fresh per page). Hidden on desktop. */
.nav-toggle { position: absolute; left: -9999px; opacity: 0; }
.nav-toggle-btn { display: none; }

/* Dashboard breadcrumb — distinct from the top nav so "back" isn't ambiguous. */
.dash-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.dash-crumbs a { color: var(--gold-200); text-decoration: none; font-weight: 600; }
.dash-crumbs a:hover { color: #fff; text-decoration: underline; }
.dash-crumbs .crumb-sep { color: rgba(255,255,255,.45); }
.dash-crumbs .crumb-current { color: #fff; }

/* Unobtrusive text link (e.g. Cancel in the event builder footer). */
.link-quiet { color: var(--blue-700); font-weight: 600; text-decoration: none; font-size: 14px; }
.link-quiet:hover { text-decoration: underline; }

.site-footer { background: var(--blue-900); color: #b9c2d4; margin-top: 60px; }
.site-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 22px; text-align: center; font-size: 13px; line-height: 1.7; }

.page { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Friendly centered panel for "nothing here yet" pages (public listing, organizer events). */
.empty-state {
  margin: 48px 0;
  padding: 56px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed rgba(0, 0, 0, 0.16);
  border-radius: var(--radius);
}
.empty-state h2 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }
.empty-state .btn { display: inline-block; }

/* ===== Events listing ===== */
.listing-hero {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff;
}
.listing-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 54px 22px; }
.listing-hero h1 { font-size: 40px; color: #fff; }
.listing-hero p { font-size: 17px; color: #d7deea; max-width: 38em; margin: 12px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; margin: 32px 0; }
.event-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 10px 26px -20px rgba(12,35,64,.5);
}
.event-card-cover { height: 120px; background: linear-gradient(120deg, var(--blue-700), var(--blue-900)); position: relative; }
.event-card-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--blue-900); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.event-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card-date { font-size: 13px; color: var(--blue-700); font-weight: 700; }
.event-card-title { font-size: 21px; }
.event-card-meta { font-size: 14px; color: var(--muted); }
.event-card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }

.sponsor-callout {
  background: var(--beige); border: 1px solid var(--beige-border); border-radius: var(--radius);
  padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}

/* ===== Event microsite ===== */
.event-hero { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; }
.event-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 50px 22px; }
.event-hero h1 { font-size: 42px; color: #fff; margin-top: 8px; }
.event-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 15px; color: #dbe2ee; }
.back-link { color: var(--gold-200); text-decoration: none; font-size: 14px; font-weight: 600; }

/* When an event has a cover image, lay the banner content beside it. With no image
   the hero renders exactly as before (no .has-cover class -> plain block flow). */
.event-hero-inner.has-cover { display: flex; align-items: center; gap: 40px; }
.event-hero-main { flex: 1 1 auto; min-width: 0; }
.event-hero-cover { flex: 0 0 auto; width: 340px; max-width: 38%; }
.event-hero-cover img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
@media (max-width: 760px) {
  .event-hero-inner.has-cover { flex-direction: column-reverse; align-items: stretch; gap: 22px; }
  .event-hero-cover { width: 100%; max-width: 100%; }
}

.impact-strip { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 0; }
.impact { flex: 1 1 160px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 16px; text-align: center; }
.impact-num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold); }
.impact-label { font-size: 13px; color: #cdd6e6; margin-top: 4px; }

.event-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr); gap: 36px; margin: 36px 0; align-items: start; }
@media (max-width: 900px) { .event-body { grid-template-columns: 1fr; } }

.section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.section-card h2 { font-size: 24px; margin-bottom: 4px; }
.section-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.line-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.line-item:first-of-type { border-top: 0; }
.line-item-name { font-weight: 700; font-size: 16px; }
.line-item-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.line-item-price { color: var(--blue-700); font-weight: 700; white-space: nowrap; }

.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid #cfd6df; background: #fff; color: var(--blue-700); font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.stepper button.plus { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.stepper-qty { min-width: 22px; text-align: center; font-weight: 700; }

/* Sponsor tiers */
.tier { border: 1px solid var(--beige-border); background: var(--beige); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.tier.selected { border: 2px solid var(--blue-700); background: #fff; }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tier-name { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.tier-price { color: var(--blue-700); font-weight: 700; }
.tier-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--blue-900); background: var(--gold-200); padding: 2px 8px; border-radius: 999px; }
.tier-perks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.tier-perks li { font-size: 14px; color: var(--ink); padding-left: 20px; position: relative; }
.tier-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Sticky order summary */
.order-summary { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 30px -22px rgba(12,35,64,.6); }
.order-summary h3 { font-size: 19px; margin-bottom: 6px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; }
.summary-row.muted { color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--border); margin-top: 10px; padding-top: 12px; }
.summary-total .amt { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--blue-900); }
.summary-empty { color: var(--muted-2); font-size: 14px; padding: 8px 0; }
.secure-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ===== Event builder ===== */
.stepper-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.step-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--muted); }
.step-pill.active { background: var(--blue-900); color: #fff; border-color: var(--blue-900); }
.step-pill.done { background: var(--success-bg); color: var(--success); border-color: #c2e0cd; }
.step-pill-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.08); font-size: 12px; font-weight: 800; }
.step-pill.active .step-pill-num { background: var(--gold); color: var(--blue-900); }
.builder-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.builder-row .grow { flex: 1; min-width: 0; }
.builder-row input, .section-card textarea { font-family: var(--sans); font-size: 14px; padding: 9px 11px; border: 1px solid #d5dbe3; border-radius: 8px; }
.section-card textarea { width: 100%; resize: vertical; }
.btn-x { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid #f0d3d0; background: #fdf3f2; color: var(--danger); border-radius: 8px; cursor: pointer; font-weight: 700; }

/* ===== Organizer dashboard ===== */
.dash-header { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); padding: 30px 0; margin-bottom: 26px; }
.event-switcher { margin-top: 8px; max-width: 100%; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 6px 10px; font-family: var(--sans); font-size: 14px; }
.event-switcher option { color: var(--ink); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
@media (max-width: 760px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.kpi-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kpi-value { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--blue-900); margin-top: 6px; }
.kpi-value .kpi-of { font-size: 16px; color: var(--muted-2); }
.kpi-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.goalbar { height: 14px; background: #e7ecf3; border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.goalbar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-900), var(--blue-700)); border-radius: 999px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }
.recent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.recent-row:first-of-type { border-top: 0; }
.tier-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--gold-200); color: var(--blue-900); white-space: nowrap; }

/* Organizer events list (per-event row + quick actions) */
.evrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border); }
.evrow:first-of-type { border-top: 0; }
.evrow-main { flex: 1 1 240px; min-width: 0; }
.evrow-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evrow-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.evrow-metric { font-size: 14px; color: var(--blue-700); font-weight: 700; white-space: nowrap; }
.evrow-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-draft { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #8a6d1f; background: #fff7e6; border: 1px solid #f0d9a8; padding: 2px 8px; border-radius: 999px; }
.badge-featured { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--blue-900); background: var(--gold-200); padding: 2px 8px; border-radius: 999px; }

/* ===== Checkout / forms ===== */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.form-grid-2 .span-2 { grid-column: 1 / 3; }
@media (max-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-2 .span-2 { grid-column: auto; }
}
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #4a5663; }
.fld input { font-family: var(--sans); font-size: 15px; padding: 11px 13px; border: 1px solid #d5dbe3; border-radius: 9px; }
.fld input:focus { outline: none; border-color: var(--blue-700); }
.muted { color: var(--muted); font-weight: 400; }
.paymethods { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.paymethod { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d5dbe3; border-radius: 10px; padding: 14px; cursor: pointer; font-size: 14px; }
.paymethod.active { border: 2px solid var(--blue-700); background: #eef3fb; padding: 13px; }
.notice { background: #fff7e6; border: 1px solid #f0d9a8; color: #8a6d1f; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.notice.err { background: #fdf3f2; border-color: #f0d3d0; color: var(--danger); }
.confirm-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); border: 2px solid #c2e0cd; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.confirm-badge.err { background: #fdf3f2; color: var(--danger); border-color: #f0d3d0; }

/* ===== Demo-mode banner ===== */
.demo-banner { background: var(--gold); color: var(--blue-900); text-align: center; font-weight: 700; font-size: 14px; padding: 9px 16px; line-height: 1.35; }

/* ===== Will-call / check-in ===== */
.checkin-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px 0 8px; }
.checkin-search { flex: 1 1 320px; padding: 10px 14px; border: 1px solid #d6dbe2; border-radius: 10px; font-size: 15px; }
.checkin-stats { font-size: 15px; color: #1b2733; white-space: nowrap; }
.checkin-table { width: 100%; border-collapse: collapse; }
.checkin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid #e3e7ec; }
.checkin-table td { padding: 12px 10px; border-bottom: 1px solid #eef1f4; vertical-align: middle; }
.checkin-table tr.is-in td { background: #f4faf6; }
.checkin-table .col-check { width: 34px; }
.checkin-table .col-seats { width: 56px; text-align: center; font-weight: 700; color: var(--blue-700); }
.checkin-table .col-action { width: 124px; text-align: right; }
.checkin-table .col-action .btn { white-space: nowrap; min-width: 112px; }
.checkin-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #1b2733; white-space: nowrap; cursor: pointer; user-select: none; }
.checkin-toggle input { width: 16px; height: 16px; }
.cbox { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid #c2c9d2; border-radius: 5px; color: var(--success); font-weight: 700; font-size: 15px; }
.cbox.on { border-color: #c2e0cd; background: var(--success-bg); }
.g-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.g-sub { font-size: 13px; margin-top: 2px; }
.g-contact { font-size: 12px; margin-top: 1px; }
.print-head h1 { font-size: 22px; }
.print-head p { color: var(--muted); margin-top: 2px; }

@media print {
    .no-print, .site-header, .site-footer, footer { display: none !important; }
    .print-head { display: block !important; margin-bottom: 12px; }
    .page { max-width: none !important; padding: 0 !important; }
    .checkin-table tr.is-in td { background: transparent; }
    .checkin-table td, .checkin-table th { border-color: #bbb; }
    a[href]:after { content: ""; }
}

/* ===== Responsive / mobile ===== */
@media (max-width: 640px) {
  .page { padding: 0 16px; }
  .site-header-inner { padding: 10px 16px; gap: 12px; align-items: center; }
  .brand { gap: 10px; }
  .brand-name { font-size: 16px; }
  /* keep the motto on one line — it was wrapping mid-phrase */
  .brand-tag { font-size: 9px; letter-spacing: 1.2px; white-space: nowrap; }
  /* full labels are fine inside the slide-down menu */
  .nav-label-full { display: inline; }
  .nav-label-short { display: none; }

  /* Show the hamburger; collapse the nav into a slide-down panel. */
  .nav-toggle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; flex: none;
    cursor: pointer; color: #fff; border-radius: 8px; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle-btn:active { background: rgba(255,255,255,.10); }
  .nav-burger, .nav-burger::before, .nav-burger::after {
    content: ""; display: block; width: 24px; height: 2px; background: #fff;
    border-radius: 2px; transition: transform .22s ease, opacity .22s ease;
  }
  .nav-burger { position: relative; }
  .nav-burger::before { position: absolute; left: 0; top: -7px; }
  .nav-burger::after  { position: absolute; left: 0; top: 7px; }
  /* animate to an ✕ when open */
  .nav-toggle:checked + .nav-toggle-btn .nav-burger { background: transparent; }
  .nav-toggle:checked + .nav-toggle-btn .nav-burger::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-btn .nav-burger::after  { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue-900); padding: 4px 16px 12px;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 14px 20px rgba(12,35,64,.30);
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a {
    font-size: 16px; white-space: nowrap; padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-nav a:last-child { border-bottom: none; }
  /* organizer menu: drop the desktop separator + underline indicator, use a left bar */
  .site-nav--organizer { flex-wrap: nowrap; row-gap: 0; }
  .site-nav--organizer .nav-sep { display: none; }
  .site-nav--organizer a.is-active::after { display: none; }
  .site-nav--organizer a.is-active { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }

  /* iOS auto-zooms inputs whose text is < 16px on focus — keep them at 16px. */
  input, select, textarea { font-size: 16px; }

  .listing-hero-inner, .event-hero-inner { padding: 36px 16px; }
  .listing-hero h1, .event-hero h1 { font-size: 30px; }
  .event-hero h1 { margin-top: 6px; }

  .section-card { padding: 18px; }

  /* organizer check-in table: relax fixed widths so it fits a phone */
  .checkin-table th, .checkin-table td { padding-left: 6px; padding-right: 6px; }
  .checkin-table .col-action { width: auto; }
  .checkin-table .col-action .btn { min-width: 0; }
}

/* ===== Blazor framework bits ===== */
h1:focus { outline: none; }
.validation-message { color: var(--danger); }
#blazor-error-ui {
  background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none;
  left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }
