/* CANBOX brand colours
   Public: white #FFFFFF, orange tint sections #FFF1E6, tangerine #FF7A1A (fills), burnt orange #C2410C (orange text),
           ink #24130F, muted #6E5A52
   Admin:  light, with burnt orange #C2410C */

:root {
  --bg: #FFFFFF;
  --surface: #FFF1E6;
  --surface-2: #FFE2CC;
  --line: #FAD9C1;
  --ink: #24130F;
  --muted: #6E5A52;
  --accent: #FF7A1A;
  --accent-text: #C2410C;
  --accent-ink: #24130F;
  --accent-soft: rgba(255, 122, 26, 0.16);
  --glow: #FFC9A0;
  --good: #0F7544;
  --good-soft: #E3F5EC;
  --bad: #C0261C;
  --bad-soft: #FDECEA;
  --warn: #7A5300;
  --warn-soft: #FFF4D6;
  --input-bg: #FFFFFF;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

body.is-admin {
  --bg: #FAF6F3;
  --surface: #FFFFFF;
  --surface-2: #F3ECE7;
  --line: #EADFD8;
  --ink: #24130F;
  --muted: #6E5A52;
  --accent: #C2410C;
  --accent-text: #C2410C;
  --accent-ink: #FFFFFF;
  --accent-soft: #FDEADF;
  --good: #137A4B;
  --good-soft: #E3F5EC;
  --bad: #B42318;
  --bad-soft: #FDECEA;
  --warn: #6A4B00;
  --warn-soft: #FFF6DB;
  --input-bg: #FFFFFF;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; }
body.is-admin { font-size: 16px; }
a { color: var(--accent-text); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: 1.45rem; }
p { margin: 0 0 0.8em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- Chrome ---------- */
.devbar { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 0.82rem; padding: 6px 12px; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.4rem; text-decoration: none; color: var(--ink); letter-spacing: -0.04em; }
body:not(.is-admin) .brand::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--accent); margin-right: 0.35em; vertical-align: 0.08em; box-shadow: 0 0 18px var(--accent); }
.brand span { font-weight: 600; font-size: 0.75rem; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: 99px; margin-left: 4px; vertical-align: middle; letter-spacing: 0; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a, .nav .link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 99px; }
.nav a:hover { background: var(--accent-soft); }
main { padding: 32px 20px 72px; min-height: 70vh; }
main h1 { margin-bottom: 12px; }
.foot { color: var(--muted); font-size: 0.85rem; padding: 24px 20px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons and forms ---------- */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 99px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { padding: 6px 14px; font-size: 0.85rem; min-height: 34px; }
.btn.big { padding: 15px 28px; font-size: 1.05rem; min-height: 54px; }
.btn.block { width: 100%; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
form.inline { display: inline; }

label { display: block; font-weight: 600; font-size: 0.92rem; margin: 14px 0 6px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-weight: 400; background: var(--input-bg); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 90px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-text); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.85em; margin-left: 4px; }
.flash { background: var(--good-soft); color: var(--good); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.error { background: var(--bad-soft); color: var(--bad); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 600; }

/* ---------- Generic blocks (shared with admin) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { border-color: var(--accent-text); }
.cover.date-art { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 20px 22px; color: var(--ink); line-height: 1; }
.date-art b { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; color: var(--accent-text); }
.date-art span { font-size: 1.1rem; font-weight: 700; margin-top: 4px; }
.card .cover { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: radial-gradient(circle at 30% 20%, var(--glow), var(--surface-2) 70%); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 1.2rem; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 0.9rem; }
.from { font-weight: 700; color: var(--accent-text); }
.pill { white-space: nowrap; display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.grey { background: var(--surface-2); color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h1, .empty h2 { color: var(--ink); margin-bottom: 10px; }
.page-title { margin-bottom: 24px; }

table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: middle; }
th { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.85rem; }
body.is-admin h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 0.4em; }
body.is-admin h2 { font-size: 1.25rem; margin: 1.6em 0 0.6em; }

/* ---------- Home ---------- */
.hero { padding: 40px 0 48px; max-width: 760px; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.home-block { margin-top: 40px; }
.home-block > h2 { margin-bottom: 16px; }

/* Contest tiles */
.contest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.contest-tile { display: grid; grid-template-columns: 140px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; min-height: 130px; }
.contest-tile:hover { border-color: var(--accent-text); }
.contest-tile img, .tile-art { width: 100%; height: 100%; object-fit: cover; }
.tile-art { display: block; min-height: 100%; background: radial-gradient(circle at 50% 50%, var(--accent) 0 14px, rgba(255,122,26,.25) 15px 26px, transparent 27px), radial-gradient(circle at 50% 50%, var(--glow), var(--surface-2) 75%); }
.contest-tile-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.contest-tile-body b { font-size: 1.2rem; line-height: 1.15; }
.contest-tile-body small { color: var(--muted); }
.state { font-size: 0.8rem; font-weight: 700; }
.state.open { color: var(--good); }
.state.upcoming { color: var(--warn); }
.state.closed { color: var(--muted); }
.leaders { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.leaders span { display: flex; flex-direction: column; }
.leaders em { font-style: normal; color: var(--muted); font-size: 0.8rem; }

/* ---------- Contest scoreboard ---------- */
.contest-head { display: grid; gap: 22px; margin-bottom: 24px; }
.contest-head.has-banner { grid-template-columns: minmax(0, 1fr); }
.contest-banner { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius-lg); }
.contest-head h1 { margin-bottom: 10px; }
.price-line { color: var(--muted); font-size: 1.05rem; }
.lede { max-width: 40em; color: var(--muted); }
.countdown { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 99px; background: var(--good-soft); color: var(--good); font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.countdown.soon { background: var(--bad-soft); color: var(--bad); }
.countdown.closed { background: var(--surface-2); color: var(--muted); }
.countdown.closed::before { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.search input { font-size: 1.05rem; padding: 14px 18px; border-radius: 99px; max-width: 520px; }
.search { margin: 0 0 8px; }
.board-note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.board { margin-top: 28px; }
.board h2 { margin-bottom: 12px; }
.board-rows { display: flex; flex-direction: column; gap: 8px; }

.nom { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.nom:not(:has(.rk)) { grid-template-columns: 64px minmax(0, 1fr) auto auto; }
.nom:not(:has(.tally)) { grid-template-columns: auto 64px minmax(0, 1fr) auto; }
.nom:not(:has(.rk)):not(:has(.tally)) { grid-template-columns: 64px minmax(0, 1fr) auto; }
.nom .face { justify-self: center; }
.nom:hover { border-color: var(--ink); }
.rk { width: 2.8rem; font-size: 2rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: -0.04em; }
.face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.face.initials, .portrait.initials { display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); font-weight: 800; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; white-space: nowrap; }
.who em { font-style: normal; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 1px 8px; border-radius: 99px; font-size: 0.75rem; }
.tally { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; column-gap: 6px; min-width: 150px; }
.tally b { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; text-align: right; }
.tally small { color: var(--muted); font-size: 0.82rem; }
.tally i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--surface-2); margin-top: 6px; position: relative; overflow: hidden; }
.tally i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--muted); border-radius: inherit; }
/* Vote button: the same for everyone. Hover or keyboard focus fills it dark (an action),
   which is different from leading (shown by the orange row, ring and crown badge). */
.go { font-weight: 700; font-size: 0.9rem; padding: 9px 18px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); transition: background .15s, color .15s, transform .15s; }
.go::after { content: "\2192"; display: inline-block; width: 0; overflow: hidden; vertical-align: bottom; text-align: right; transition: width .15s; }
.nom:hover .go, .nom:focus-visible .go { background: var(--ink); color: var(--bg); box-shadow: none; }
.nom:hover .go::after, .nom:focus-visible .go::after { width: 1.3em; }
.nom:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.nom.lead { background: linear-gradient(100deg, rgba(255, 122, 26, 0.24), var(--surface) 60%); border-color: var(--accent); padding-top: 16px; padding-bottom: 16px; }
.nom.lead .rk { color: var(--accent-text); font-size: 2.6rem; }
.nom.lead .face { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--accent); }
.nom.lead .tally i::after { background: var(--accent); }
.nom.lead .go { box-shadow: inset 0 0 0 1.5px var(--accent); }
.nom.lead:hover .go, .nom.lead:focus-visible .go { box-shadow: none; }
.who em.crown { display: inline-flex; align-items: center; gap: 4px; }
.who em.crown svg { width: 13px; height: 13px; }

/* ---------- Nominee page ---------- */
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back::before { content: "‹ "; }
.back:hover { color: var(--ink); }
.nominee-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 40px; align-items: start; }
.nominee-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.portrait { width: min(260px, 60vw); aspect-ratio: 1; border-radius: 28px; object-fit: cover; margin-bottom: 8px; font-size: 4rem; }
.cat { color: var(--accent-text); font-weight: 700; margin: 0; }
.code-line { color: var(--muted); margin: 0; }
.code-line b { color: var(--ink); letter-spacing: 0.06em; }
.bio { max-width: 34em; color: var(--muted); }
.standing { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.standing.lead { border-color: rgba(255, 122, 26, 0.6); }
.standing-rank { font-size: 2.2rem; font-weight: 800; line-height: 1; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.standing.lead .standing-rank { background: var(--accent); color: var(--accent-ink); }
.standing span { display: flex; flex-direction: column; }
.standing small { color: var(--muted); }

.vote-panel { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.vote-panel h2 { margin-bottom: 14px; }
.packs { border: 0; padding: 0; margin: 0; }
.packs legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; background: var(--input-bg); border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; cursor: pointer; }
.pack b { font-size: 1.35rem; font-weight: 800; }
.pack small { color: var(--muted); font-size: 0.75rem; }
.pack:hover { border-color: var(--accent-text); }
.pack.on { border-color: var(--accent-text); background: var(--accent-soft); }
.pack.on small { color: var(--ink); }
.custom { font-weight: 500; color: var(--muted); font-size: 0.88rem; }
.custom input { font-size: 1.1rem; font-weight: 700; }
.remember { color: var(--muted); font-size: 0.88rem; margin-top: 16px; }
.btn.pay { width: 100%; margin-top: 18px; min-height: 58px; font-size: 1.1rem; }
.btn.pay #total { font-variant-numeric: tabular-nums; }
.fine { color: var(--muted); font-size: 0.82rem; margin: 12px 0 0; }
.closed-panel p { color: var(--muted); margin-top: 8px; }

.share { margin-top: 14px; width: 100%; }
.share-title { font-weight: 700; margin-bottom: 8px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-buttons .btn { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn.wa { background: #25D366; color: #0B2E17; }

/* Thank-you page */
.thanks { max-width: 620px; margin: 20px auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks-count { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; color: var(--accent-text); margin: 0; font-variant-numeric: tabular-nums; animation: pop 0.6s cubic-bezier(.2, 1.4, .4, 1) both; }
.thanks h1 { margin: 8px 0 14px; font-size: clamp(1.6rem, 5vw, 2.4rem); }
.thanks .share { text-align: left; margin-top: 32px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Events and tickets ---------- */
.event-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.event-head h1 { margin-bottom: 10px; }
.ticket-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.ticket-option:last-of-type { border-bottom: 0; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; position: relative; }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 232px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket::before { top: -11px; } .ticket::after { bottom: -11px; }
.ticket .pill { background: var(--accent); color: var(--accent-ink); }
.ticket .pill.grey { background: #F1E1D6; color: #6E5A52; }
.ticket .muted { color: #6E5A52; }
.ticket .qr svg { width: 190px; height: 190px; }
.ticket .code { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.1em; }

/* ---------- Admin-only bits ---------- */
.image-field { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.image-preview { width: 180px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview.empty { border-style: dashed; color: var(--muted); font-size: 0.85rem; }
.image-controls { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.image-controls details { width: 100%; }
.image-controls summary { cursor: pointer; color: var(--accent-text); }
.upload-btn { margin: 0; cursor: pointer; }
.thumb-form label { margin: 0; cursor: pointer; display: inline-block; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: block; }
.thumb.add { display: grid; place-items: center; width: 64px; height: 44px; border: 1px dashed var(--line); font-size: 0.75rem; color: var(--accent-text); font-weight: 600; }
.thumb-form .link { font-size: 0.75rem; }
.scanbox { max-width: 480px; margin: 0 auto; }
.scanbox video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 1; object-fit: cover; }
.result { padding: 18px; border-radius: var(--radius); margin-top: 14px; font-weight: 700; text-align: center; font-size: 1.1rem; }
.result.ok { background: var(--good-soft); color: var(--good); }
.result.warn { background: var(--warn-soft); color: var(--warn); }
.result.no { background: var(--bad-soft); color: var(--bad); }
.rank { display: none; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .event-head, .nominee-page { grid-template-columns: 1fr; gap: 24px; }
  .vote-panel { position: static; padding: 20px; }
  .nom, .nom:not(:has(.rk)), .nom:not(:has(.tally)), .nom:not(:has(.rk)):not(:has(.tally)) { grid-template-columns: auto 52px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .nom:not(:has(.rk)) { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .face { width: 46px; height: 46px; } .nom.lead .face { width: 52px; height: 52px; }
  .rk { font-size: 1.5rem; width: 2rem; } .nom.lead .rk { font-size: 1.9rem; }
  .tally { grid-column: 2 / -1; grid-row: 2; min-width: 0; width: 100%; grid-template-columns: auto 1fr; justify-content: stretch; }
  .tally b { text-align: left; }
  .nom:not(:has(.rk)) .tally { grid-column: 1 / -1; }
  .tally b { font-size: 1.15rem; }
  .go { padding: 7px 14px; }
  .contest-list { grid-template-columns: 1fr; }
  .contest-tile { grid-template-columns: 96px 1fr; }
  .ticket { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ticket::before, .ticket::after { display: none; }
  .nav a { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .foot, .devbar, .noprint { display: none; }
  body { background: #fff; }
  .ticket { break-inside: avoid; border: 1px solid #ccc; }
  .ticket::before, .ticket::after { display: none; }
}

/* ---------- Brand logo ---------- */
.brand.has-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand.has-logo::before { display: none !important; }
.brand img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }

/* ---------- Footer links ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---------- About page ---------- */
.about { max-width: 760px; padding: 24px 0 8px; }
.about-kicker { color: var(--accent-text); font-weight: 700; margin-bottom: 14px; }
.about h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); letter-spacing: -0.04em; line-height: 0.98; margin-bottom: 28px; }
.about-body p { font-size: 1.15rem; line-height: 1.65; max-width: 36em; }
.about-body p:first-child { color: var(--ink); font-size: 1.3rem; }
.about-body p + p { color: var(--muted); }
.contact { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact h2 { margin-bottom: 18px; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-item:hover { border-color: var(--accent-text); }
.contact-item span { color: var(--accent-text); font-weight: 700; font-size: 0.9rem; }
.contact-item b { font-size: 1.1rem; overflow-wrap: anywhere; }
.hours { margin-top: 18px; color: var(--muted); }
.hours b { color: var(--ink); margin-right: 8px; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.socials p { margin: 0 8px 0 0; font-weight: 700; }
.contact { margin-bottom: 24px; }
.image-preview.square { width: 120px; aspect-ratio: 1; }
.devbar a { color: inherit; font-weight: 700; }

/* ---------- Admin settings ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.subnav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.9rem; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); }
.subnav a:hover, .subnav a.on { background: var(--accent); color: var(--accent-ink); }
.mode-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { margin-top: 0; font-family: ui-monospace, monospace; font-size: 0.9rem; }
.warn-box { background: var(--warn-soft); color: var(--warn); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.save-bar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); }
.panel { scroll-margin-top: 90px; }

/* ---------- Admin dashboard and controls ---------- */
.checklist ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 12px; }
.checklist li a { color: var(--ink); font-weight: 600; }
.checklist li.done a { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 0.8rem; flex: none; }
.checklist li.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.alert-row { display: block; background: var(--warn-soft); color: var(--warn); padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; text-decoration: none; }
.chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 200px; align-items: end; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bar-col i { display: block; width: 100%; max-width: 36px; background: var(--accent); border-radius: 6px 6px 2px 2px; }
.bar-val { font-size: 0.68rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-day { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.quick a { display: block; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.quick a:hover { border-color: var(--accent-text); }
.controls { display: grid; gap: 12px; }
.control { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 12px; }
.control-label { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.segmented { justify-self: start; display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.seg { border: 0; background: transparent; padding: 7px 14px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.seg + .seg { border-left: 1px solid var(--line); }
.seg.on { background: var(--accent); color: var(--accent-ink); }
details.inline-edit { position: relative; }
details.inline-edit summary { list-style: none; }
details.inline-edit summary::-webkit-details-marker { display: none; }
.mini-form { position: absolute; right: 0; top: 40px; z-index: 5; display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 10px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(27, 16, 48, 0.12); width: 320px; }
.mini-form input { margin: 0; }
details.bulk { margin-top: 12px; }
details.bulk summary { cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: 0.9rem; }
.search-inline { display: flex; gap: 8px; margin: 10px 0 16px; }
.search-inline input { margin: 0; }
@media (max-width: 760px) {
  .control { grid-template-columns: 1fr; gap: 6px; }
  .chart { gap: 3px; } .bar-val { display: none; }
  .bar-day { font-size: 0.6rem; writing-mode: vertical-rl; transform: rotate(180deg); }
}

/* Ticket prices (admin events) */
.ticket-prices { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 22px 0 0; }
.ticket-prices legend { font-weight: 800; font-size: 1.1rem; padding: 0 6px; }
.tp-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.tp-row label { margin-top: 8px; }
#tp-add { margin-top: 14px; }
.price-chip { display: inline-block; white-space: nowrap; margin: 2px 6px 2px 0; }
.price-chip b { color: var(--accent-text); }
@media (max-width: 760px) { .tp-row { grid-template-columns: 1fr 1fr; } .tp-row label:first-child { grid-column: 1 / -1; } }

/* Archived contests */
details.archive { margin-top: 32px; }
details.archive summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
details.archive summary::-webkit-details-marker { display: none; }
details.archive summary h2 { margin: 0; }
details.archive summary::before { content: "▸"; color: var(--muted); }
details.archive[open] summary::before { content: "▾"; }
details.archive > p { margin: 8px 0 12px; }
.archived-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.archived-note b { color: var(--ink); }

/* Back links (public and admin) */
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back::before { content: "‹"; font-size: 1.3em; line-height: 1; margin-top: -2px; }
.back:hover { color: var(--ink); }
p > .back { margin-bottom: 0; }

/* Legal pages */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p { color: var(--muted); line-height: 1.7; }
.legal p:first-of-type { color: var(--ink); font-size: 1.1rem; }

/* WhatsApp help button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 99px; background: #25D366; color: #0B2E17; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(36,19,15,.18); }
.wa-float:hover { filter: brightness(1.05); }
@media (max-width: 760px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
@media print { .wa-float { display: none; } }

/* Transparency */
.verified { display: inline-flex; align-items: center; gap: 8px; color: var(--good); font-weight: 700; font-size: 0.92rem; margin: 6px 0 0; }
.verified span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: var(--bg); font-size: 0.8rem; }
.final-banner { margin: 16px 0 4px; padding: 14px 18px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: 1.05rem; }
.with-feed { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.feed { position: sticky; top: 84px; margin-top: 28px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feed h2 { font-size: 1.05rem; margin-bottom: 10px; }
.feed ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feed li { font-size: 0.9rem; line-height: 1.35; }
.feed li b { color: var(--accent-text); }
.feed li span { display: block; color: var(--muted); font-size: 0.78rem; }
@media (max-width: 900px) { .with-feed { grid-template-columns: 1fr; } .feed { position: static; } }

/* Flyer */
.flyer-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.flyer-box p { margin-bottom: 8px; }
.audit { font-weight: 600; font-size: 0.92rem; margin: -6px 0 16px; } .audit.ok { color: var(--good); } .audit.bad { color: var(--bad); }
.ussd-hint { display: block; margin-top: 4px; font-size: 0.92rem; } .ussd-hint b { color: var(--accent-text); }
html:has(body.is-admin) { background: #FAF6F3; }
.checklist .step { font-weight: 600; } .checklist li.done .step { color: var(--muted); text-decoration: line-through; font-weight: 400; } .checklist button.link { color: var(--accent-text); margin-left: 6px; }

/* ---------- Background illustrations (minimal) ---------- */
body:not(.is-admin) .hero { position: relative; isolation: isolate; }
body:not(.is-admin) .hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -10px; right: -40px; width: min(560px, 55vw); aspect-ratio: 600 / 420;
  background: url("/static/illustrations/bg-hero.svg") no-repeat center / contain;
}
.page-head, .empty, .about, .contest-head, .thanks { position: relative; isolation: isolate; }
.page-head::after, .empty::after, .about::after, .contest-head::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -12px; right: 0; width: 240px; aspect-ratio: 260 / 160;
  background: url("/static/illustrations/bg-corner.svg") no-repeat center / contain;
}
.empty::after { left: 50%; right: auto; transform: translateX(-50%); top: 10px; opacity: .9; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { margin: 0; max-width: 34em; }
.thanks-confetti { position: absolute; inset: -10px -40px auto; width: calc(100% + 80px); height: 220px; object-fit: cover; z-index: -1; opacity: .7; }
@media (max-width: 760px) {
  body:not(.is-admin) .hero::after { width: 300px; right: -70px; top: -20px; opacity: .7; }
  .page-head::after, .about::after, .contest-head::after { width: 150px; opacity: .8; }
}
/* keep background drawings in clear space, never behind text */
body:not(.is-admin) .hero { max-width: none; }
body:not(.is-admin) .hero-text { max-width: 640px; position: relative; z-index: 1; }
body:not(.is-admin) .hero::after { right: 0; top: 50%; transform: translateY(-50%); width: min(480px, 40vw); }
body:not(.is-admin) .about { max-width: none; }
body:not(.is-admin) .about > div { max-width: 720px; }
body:not(.is-admin) .about::after { top: 0; right: 0; width: 260px; }
.empty { padding-top: 150px; }
.empty::after { top: 24px; width: 200px; }
@media (max-width: 1000px) {
  body:not(.is-admin) .hero::after, body:not(.is-admin) .about::after { opacity: .35; }
}
@media (max-width: 760px) {
  body:not(.is-admin) .hero::after { top: 0; transform: none; width: 260px; right: -60px; opacity: .3; }
  .empty { padding-top: 120px; }
  .empty::after { width: 160px; }
}
body:not(.is-admin) .hero-text { max-width: 600px; }
body:not(.is-admin) .hero p { max-width: 30em; }
body:not(.is-admin) .hero::after { width: min(420px, 36vw); }

/* ================= Landing page ================= */
.hero { padding: 36px 0 28px; }
.code-box { margin: 26px 0 0; max-width: 460px; }
.code-box label { font-size: 0.95rem; margin: 0 0 8px; }
.code-row { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border: 2px solid var(--accent); border-radius: 99px; background: #fff; box-shadow: 0 10px 28px -18px rgba(194, 65, 12, .6); }
.code-row:focus-within { box-shadow: 0 0 0 4px var(--accent-soft); }
.code-icon svg, .trust svg, .how-icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.code-icon { color: var(--accent-text); display: grid; } .code-icon svg { width: 22px; height: 22px; }
.code-row input { margin: 0; border: 0; padding: 10px 4px; font-size: 1.15rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: transparent; box-shadow: none; }
.code-row input::placeholder { font-weight: 400; letter-spacing: .02em; text-transform: none; }
.code-row input:focus { box-shadow: none; }
.code-row .btn { min-height: 46px; padding: 10px 26px; }
.code-error { color: var(--bad); font-weight: 600; font-size: .92rem; margin: 10px 4px 0; }
.hero .hero-actions { margin-top: 16px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--accent-text); }

.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 8px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-strip div { padding: 18px 4px; display: flex; flex-direction: column; }
.stats-strip div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats-strip b { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats-strip span { color: var(--muted); font-size: .9rem; }

.spotlight { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(194,65,12,.06), 0 18px 40px -30px rgba(194,65,12,.6); }
.spot-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-text); margin-bottom: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; color: var(--accent); }
.spotlight h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.spotlight .countdown { margin: 4px 0 4px; }
.spot-leaders { display: grid; gap: 10px; }
.spot-sub { font-weight: 700; margin: 0 0 2px; color: var(--muted); font-size: .9rem; }
.leader { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.leader:hover { border-color: var(--accent); }
.leader img, .leader-face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--accent); }
.leader-face { display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); font-weight: 800; }
.leader span { display: flex; flex-direction: column; min-width: 0; }
.leader small { color: var(--muted); font-size: .8rem; }
.leader b { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader em { font-style: normal; color: var(--accent-text); font-weight: 700; font-size: .88rem; }
.spot-image { width: 100%; border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; }

.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.how-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; counter-increment: step; }
.how-steps li::after { content: counter(step); position: absolute; top: 18px; right: 20px; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--surface-2); }
.how-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--accent-text); margin-bottom: 6px; }
.how-icon svg { width: 24px; height: 24px; }
.how-steps b { font-size: 1.1rem; }
.how-steps li > span:last-child { color: var(--muted); font-size: .95rem; }

.see-all { font-weight: 700; color: var(--accent-text); text-decoration: none; }
.home-block > .between { margin-bottom: 14px; }
.home-block > .between h2 { margin: 0; }
.event-rows { display: grid; gap: 10px; }
.event-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.event-row:hover { border-color: var(--accent); }
.date-badge { width: 62px; height: 62px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-badge b { font-size: 1.6rem; font-weight: 800; }
.date-badge small { font-size: .8rem; font-weight: 700; text-transform: none; margin-top: 2px; }
.event-row-info { display: flex; flex-direction: column; min-width: 0; }
.event-row-info b { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-row-info small { color: var(--muted); }
.event-row-price { font-weight: 700; color: var(--accent-text); white-space: nowrap; }

.faq { max-width: 760px; }
.faq h2 { margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: -4px 0 16px; max-width: 40em; }
.faq-more { margin-top: 16px; }

@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; padding: 22px; }
  .how-steps { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip div:nth-child(3) { padding-left: 4px; border-left: 0; }
  .stats-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .event-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .event-row .go { display: none; }
}
@media (max-width: 480px) {
  .event-row { grid-template-columns: auto minmax(0, 1fr); }
  .event-row-price { grid-column: 2; font-size: .9rem; }
  .code-row .btn { padding: 10px 18px; }
}
.leader span.leader-face { display: grid; place-items: center; }
/* current page in the menu */
.nav a.on { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 480px) { .nav { gap: 0; } .nav a { padding: 6px 8px; font-size: .9rem; } }

/* ---------- public footer ---------- */
.host-cta { background: var(--accent); color: var(--accent-ink); }
.host-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.host-cta h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.75rem); color: var(--accent-ink); }
.host-cta p { margin: 0; max-width: 560px; color: var(--accent-ink); opacity: .85; }
.host-btn { background: var(--ink); color: #fff; border-color: var(--ink); white-space: nowrap; }
.host-btn:hover { background: #000; color: #fff; }

.site-foot { background: #160D0A; color: #CDBDB5; font-size: .95rem; }
.site-foot a { color: #F4ECE8; text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-foot .foot-brand .brand { color: #fff; font-size: 1.3rem; }
.foot-details { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; color: #F4ECE8; }
.foot-details a { overflow-wrap: anywhere; }
.foot-col { display: flex; flex-direction: column; gap: 16px; }
.foot-col h3, .foot-accept h3 { margin: 0 0 4px; font-size: 1rem; color: #fff; letter-spacing: 0; text-transform: none; }
.foot-col a { color: #E8DCD6; }
.foot-accept { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; }
.foot-accept p { margin: 4px 0 0; font-size: .88rem; color: #BBA89F; max-width: 520px; }
.pay-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-tile { display: inline-grid; place-items: center; min-width: 64px; height: 40px; padding: 0 10px; border-radius: 6px; font-size: .74rem; font-weight: 800; line-height: 1.05; text-align: center; letter-spacing: -.01em; }
.pay-mtn { background: #FFCC00; color: #1A1A1A; }
.pay-telecel { background: #fff; color: #E60000; }
.pay-at { background: #fff; color: #0055A5; }
.pay-visa { background: #1A1F71; color: #fff; font-style: italic; font-size: .95rem; letter-spacing: .02em; }
.pay-mc { background: #2B2B2B; color: #F79E1B; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid #3A2A24; padding-top: 22px; padding-bottom: 88px; font-size: .85rem; color: #A9968D; }
.foot-social { display: flex; gap: 16px; }
.foot-social a { color: #CDBDB5; font-weight: 600; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .host-btn { width: 100%; justify-content: center; text-align: center; }
}
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } .foot-col { gap: 12px; } }

/* ---------- home showcase slideshow ---------- */
.showcase { margin-top: 36px; }
.showcase-head { margin-bottom: 14px; align-items: center; }
.showcase-head h2 { margin: 0; }
.show-arrows { display: flex; gap: 8px; }
.show-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.show-btn:hover { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
.show-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px 34px; margin: -2px -2px -22px; }
.show-track::-webkit-scrollbar { display: none; }
.show-track:focus-visible { outline: 3px solid var(--accent-soft); border-radius: 26px; }
.show-track .slide { flex: 0 0 100%; scroll-snap-align: start; margin-top: 0; min-height: 300px; }
.show-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.show-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.show-dots button[aria-current="true"] { width: 26px; background: var(--accent); }
.spot-label-event { color: var(--good); }
.spot-label-event svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.spot-price { margin: 6px 0 4px; font-size: 1.05rem; }
.spot-price b { color: var(--accent-text); }
.spot-event-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; gap: 18px; align-items: flex-start; }
.spot-event-card .date-badge.big { min-width: 74px; padding: 10px 0; }
.spot-event-card .date-badge.big b { font-size: 1.8rem; }
.spot-event-card ul { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 8px; }
.spot-event-card li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.spot-event-card li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 760px) { .show-track .slide { min-height: 0; } .show-btn { width: 38px; height: 38px; } }

/* ================= Landing page v2: banner slideshow + poster cards ================= */
html, body { overflow-x: clip; }
.hero-banner { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: -8px; background: var(--accent); }
.hero-banner .show-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.hero-banner .show-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; min-height: clamp(460px, 40vw, 580px); position: relative; overflow: hidden; }
.hero-welcome {
  display: flex; align-items: center; gap: 40px;
  padding: 48px max(20px, calc((100vw - 1040px) / 2)) 72px;
  background:
    repeating-linear-gradient(-55deg, rgba(255,255,255,.0) 0 60px, rgba(255,255,255,.22) 60px 120px),
    linear-gradient(115deg, #FFF6EE 0%, #FFE3CC 45%, #FFB37A 100%);
}
.hero-welcome::after { display: none; }
.hero-welcome .hero-text { flex: 1 1 560px; max-width: 600px; position: relative; z-index: 1; }
.hero-welcome h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 18px; }
.hero-welcome h1 { background: linear-gradient(100deg, var(--ink) 30%, #C2410C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-welcome p { font-size: 1.12rem; color: #4A352D; max-width: 30em; }
.hero-welcome .trust { color: #4A352D; }
.hero-welcome .btn.ghost { background: rgba(255,255,255,.75); }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-pic a { position: absolute; inset: 0; }
.hero-controls { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; z-index: 2; }
.hero-controls .show-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); color: var(--ink); font-size: 1.6rem; display: grid; place-items: center; padding: 0 0 3px; cursor: pointer; backdrop-filter: blur(4px); }
.hero-controls .show-btn:hover { background: #fff; }
.hero-controls .show-dots { margin: 0; }
.hero-controls .show-dots button { background: rgba(255,255,255,.6); }
.hero-controls .show-dots button[aria-current="true"] { background: #fff; width: 32px; }
.hero-scallop { height: 16px; background: radial-gradient(circle at 12px 16px, var(--bg) 11px, transparent 11.5px) 0 0 / 24px 16px repeat-x, var(--accent); }

/* decorative product preview on the welcome slide */
.hero-visual { flex: 0 1 380px; position: relative; height: 340px; }
.hv-card { position: absolute; top: 0; right: 0; width: 330px; background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(124, 45, 18, .55); transform: rotate(2deg); }
.hv-head { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 700; color: var(--accent-text); font-size: .95rem; }
.hv-row { display: grid; grid-template-columns: 38px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 12px; }
.hv-row b { font-size: .85rem; color: var(--muted); }
.hv-face { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); font-weight: 800; font-size: .8rem; }
.hv-bar { height: 12px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.hv-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FFB37A, var(--accent)); }
.hv-chip { position: absolute; top: -14px; left: -18px; background: var(--good); color: #fff; font-weight: 800; font-size: .85rem; padding: 7px 14px; border-radius: 99px; box-shadow: 0 10px 20px -10px rgba(15,117,68,.8); transform: rotate(-6deg); }
.hv-ticket { position: absolute; bottom: 0; left: 0; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 18px 14px 14px; transform: rotate(-4deg); box-shadow: 0 24px 40px -24px rgba(36,19,15,.8); }
.hv-ticket small { display: block; color: #E8D3C8; font-size: .8rem; }
.hv-qr { width: 52px; height: 52px; border-radius: 6px; background:
  conic-gradient(from 90deg at 30% 30%, #fff 25%, transparent 0) 0 0 / 13px 13px,
  repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 9px), #24130F; border: 4px solid #fff; }
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .hero-slide { min-height: 0; }
  .hero-pic { aspect-ratio: 3 / 2; }
  .hero-welcome { padding-top: 32px; padding-bottom: 92px; }
}

/* poster cards */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.poster { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 rgba(194,65,12,.08), 0 14px 34px -22px rgba(124, 45, 18, .45); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.poster:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(194,65,12,.08), 0 22px 40px -22px rgba(124, 45, 18, .6); }
.poster-img { position: relative; display: block; aspect-ratio: 7 / 5; background: var(--surface-2); overflow: hidden; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.poster:hover .poster-img img { transform: scale(1.04); }
.poster-art { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center;
  background: repeating-linear-gradient(-55deg, transparent 0 26px, rgba(255,255,255,.12) 26px 52px), linear-gradient(135deg, #FF9A4D, #C2410C); }
.poster-art span { color: #fff; font-weight: 800; font-size: 1.45rem; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.poster-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--good); font-size: .76rem; font-weight: 800; padding: 5px 10px; border-radius: 99px; }
.poster-tag.upcoming { color: var(--accent-text); }
.poster-date { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.poster-date b { display: block; font-size: 1.3rem; } .poster-date small { font-size: .72rem; font-weight: 700; color: var(--accent-text); text-transform: uppercase; }
.poster-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.poster-body b { font-size: 1.08rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .01em; }
.poster-body small { color: var(--muted); font-size: .86rem; }
.poster-btn { margin-top: auto; display: block; text-align: center; border: 1.5px solid var(--accent); color: var(--accent-text); border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: .95rem; transition: background .15s, color .15s; }
.poster-body small + .poster-btn { margin-top: 10px; }
.poster:hover .poster-btn { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 520px) { .poster-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .poster-body { padding: 12px; } .poster-body b { font-size: .92rem; } .poster-btn { font-size: .82rem; padding: 7px 8px; } .poster-art span { font-size: 1rem; } .poster-body small { font-size: .78rem; } }
.hero-banner { width: auto; margin-left: 0; margin-top: 0; }
.hero-slide { min-height: clamp(440px, 40vw, 620px); }
.poster-art { padding: 46px 16px 16px; }
@media (max-width: 900px) { .hero-slide { min-height: 0; } }
@media (max-width: 520px) { .poster-art { padding: 40px 10px 10px; } }
/* admin: banners */
.banner-drop { display: grid; gap: 10px; justify-items: start; margin-bottom: 8px; }
.banner-drop img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.banner-row { display: grid; grid-template-columns: 260px 1fr auto; gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.banner-row:first-of-type { border-top: 0; }
.banner-row > img { width: 260px; aspect-ratio: 5 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.banner-row.off > img { opacity: .45; filter: grayscale(.6); }
.banner-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.banner-info a { overflow-wrap: anywhere; }
.banner-edit { margin-top: 8px; }
.banner-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.banner-actions form { margin: 0; }
@media (max-width: 700px) { .banner-row { grid-template-columns: 1fr; } .banner-row > img { width: 100%; } .banner-actions { justify-content: flex-start; } }
/* drip edge under the top slideshow (replaces the scallop) */
.hero-scallop { display: none; }
.hero-banner { background: transparent; }
.hero-drip { display: block; width: 100%; height: clamp(54px, 6.7vw, 96px); margin-top: -1px; margin-bottom: clamp(-40px, -2.6vw, -16px); position: relative; z-index: 1; pointer-events: none; }
/* slideshow controls: one frosted bar with a progress-style indicator */
.hero-controls { gap: 4px; padding: 5px; border-radius: 16px; background: rgba(36, 19, 15, .38); backdrop-filter: blur(8px); bottom: 26px; }
.hero-controls .show-btn { width: 34px; height: 34px; border-radius: 11px; background: transparent; color: #fff; padding: 0; }
.hero-controls .show-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-controls .show-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero-controls .show-dots { gap: 6px; padding: 0 6px; }
.hero-controls .show-dots button { width: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); }
.hero-controls .show-dots button[aria-current="true"] { width: 34px; background: var(--accent); }
.hero-banner .show-track { padding: 0; margin: 0; }
.hero-controls { bottom: calc(clamp(54px, 6.7vw, 96px) - clamp(16px, 2.6vw, 40px) + 22px); }
@media (max-width: 900px) { .hero-welcome { padding-bottom: 76px; } }
.hero-controls { bottom: calc(clamp(54px, 6.7vw, 96px) - clamp(16px, 2.6vw, 40px) + 34px); }
/* flowing curve under the top slideshow (replaces the drip) */
.hero-drip { display: none; }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(56px, 8vw, 120px); display: block; pointer-events: none; z-index: 1; }
.hero-banner { overflow: hidden; }
.hero-welcome { padding-bottom: clamp(110px, 11vw, 150px); }
.hero-controls { bottom: clamp(52px, 7vw, 104px); z-index: 2; }
@media (max-width: 900px) { .hero-welcome { padding-bottom: 120px; } .hero-controls { bottom: 58px; } }

/* ================= Brand book alignment ================= */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
/* the logo: real files, never retyped */
body:not(.is-admin) .brand::before { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 0; }
.brand .logo { height: 40px; width: auto; display: block; }
.site-foot .foot-brand .brand .logo { height: 48px; }
.brand .logo-custom { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.brand span { line-height: 1.4; }
.is-admin .brand .logo { height: 34px; }
@media (max-width: 480px) { .brand .logo { height: 34px; } }
/* slogan: bold, sentence case, under the logo */
.foot-slogan { margin: 12px 0 0; font-weight: 700; color: #fff; font-size: 1rem; }
/* brush tick under the key word of the hero headline */
.tick-word { position: relative; display: inline-block; }
.tick-word::after { content: ""; position: absolute; left: -2%; right: -14%; bottom: -0.16em; height: 0.24em; background: url("/static/brand/brush-tick.svg") center / 100% 100% no-repeat; }
/* deeper orange text on orange tints (accent-text only passes on white and cream) */
:root { --accent-deep: #9A3412; }
.nav a.on, .brand span, .pill, .hv-face, .leader-face, .face.initials, .leader span.leader-face { color: var(--accent-deep); }
/* campaign flyer uploaded by the admin */
.flyer-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.flyer-thumb { display: block; width: 180px; border-radius: var(--radius, 14px); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 34px -22px rgba(124, 45, 18, .45); }
.flyer-thumb img { display: block; width: 100%; height: auto; }
.flyer-field { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 16px; margin: 14px 0; }
.flyer-field legend { font-weight: 700; padding: 0 6px; }
.flyer-current { display: flex; align-items: flex-end; gap: 14px; margin: 8px 0 12px; }
.flyer-current img { width: 120px; border-radius: 10px; border: 1px solid var(--line); display: block; }
/* keep the nominee bio (and any long words) inside the left column */
.nominee-page > * { min-width: 0; }
.nominee-info { min-width: 0; overflow-wrap: anywhere; }
.bio { overflow-wrap: anywhere; word-break: break-word; white-space: pre-line; }
/* breathing room between the page content and the orange "host" banner */
.host-cta { margin-top: clamp(48px, 6vw, 80px); }
.inline-confirm { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.inline-confirm label { margin: 0; }
.inline-confirm input { max-width: 180px; }
/* admin: bulk delete orders */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 14px 0 6px; }
.bulk-bar .check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
th.pick, td.pick { width: 36px; text-align: center; }
th.pick input, td.pick input { width: 18px; height: 18px; }

/* Check-in: which event is being scanned, and the event search */
.scan-for { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin: 6px 0 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); }
.scan-for > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scan-for strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.event-pick { display: grid; gap: 6px; margin: 8px 0 14px; }
.event-pick button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.event-pick button:hover, .event-pick button:focus-visible { border-color: var(--accent); }
.scanbox video { margin-top: 6px; }
.scan-for { flex-wrap: wrap; }
.scan-for > div { flex: 1 1 240px; }
.scan-for .btn { white-space: nowrap; flex: 0 0 auto; }

/* Admin header: bell and account menu */
.admin-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
details.menu { position: relative; }
details.menu > summary { list-style: none; display: flex; align-items: center; gap: 2px; padding: 8px; border-radius: 99px; color: var(--muted); cursor: pointer; position: relative; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover, details.menu[open] > summary { background: var(--accent-soft); color: var(--ink); }
details.menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink, #24130F); font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(340px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(36, 19, 15, .16); padding: 8px; }
.menu-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head > span { display: flex; flex-direction: column; min-width: 0; }
.menu-head strong { overflow-wrap: anywhere; }
.menu-empty { padding: 6px 10px 10px; margin: 0; }
.note-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.note-item:hover, .note-item:focus-visible { background: var(--accent-soft); }
.note-item > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-item strong { font-size: .92rem; overflow-wrap: anywhere; }
.note-dot { flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 99px; background: transparent; }
.note-item.is-new .note-dot { background: var(--accent); }
.menu-links { display: grid; }
.menu-links a, .menu-logout { display: block; width: 100%; text-align: left; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; }
.menu-links a:hover, .menu-logout:hover, .menu-links a:focus-visible, .menu-logout:focus-visible { background: var(--accent-soft); }
.menu-panel form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-logout { color: var(--bad); }
@media (max-width: 1000px) {
  .is-admin .top-inner .admin-tools { order: 2; }
  .is-admin .top-inner .nav { order: 3; flex-basis: 100%; padding-bottom: 8px; }
}

/* Organiser login details shown once, and their contests and events */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.share-login { border: 2px solid var(--accent); }
.share-login textarea:not(.visually-hidden) { width: 100%; min-height: 150px; margin-top: 10px; }
.share-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 16px; }
.share-list dt { color: var(--muted); font-weight: 600; }
.share-list dd { margin: 0; overflow-wrap: anywhere; }
.share-pw { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); }
.org-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.org-items li:first-child { border-top: 0; }
.org-items { padding-left: 0; list-style: none; margin: 0; }

/* Organiser type picker */
.kind-pick { border: 0; padding: 0; margin: 18px 0 6px; }
.kind-pick legend { font-weight: 700; padding: 0; }
.kind-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.kind-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.kind-option > span { display: flex; flex-direction: column; gap: 2px; }
.kind-option input { margin-top: 3px; accent-color: var(--accent); }
.kind-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kind-option input { width: auto; flex: 0 0 auto; min-height: 0; }

/* Team roles */
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 18px; }
.role-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.role-form { display: flex; gap: 6px; align-items: center; }
.role-form select { width: auto; min-height: 36px; padding: 4px 10px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.board-head h2 { margin-bottom: 0; }
.board-head + .board-rows { margin-top: 14px; }

/* Space between the header and the page content. ".wrap" was overriding main's own padding. */
main.wrap { padding-top: 32px; padding-bottom: 72px; }

/* Phones: breathing room */
@media (max-width: 760px) {
  /* solid header (the see-through blur smudged scrolled content behind the logo) with space around the logo */
  .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top-inner { padding-top: 10px; padding-bottom: 6px; row-gap: 6px; }
  .nav { margin-left: -8px; }
  main.wrap { padding-top: 24px; padding-bottom: 56px; }
  /* voting lists */
  .board { margin-top: 44px; }
  .board-head + .board-rows { margin-top: 16px; }
  .board-rows { gap: 14px; }
  .nom { padding: 14px 12px; row-gap: 12px; }
  .contest-head { gap: 18px; margin-bottom: 20px; }
  .lede { margin-bottom: 8px; }
}
@media (max-width: 760px) { .host-cta { margin-top: 16px; } }

/* ---------- Search ---------- */
.list-search { display: flex; gap: 8px; max-width: 560px; margin: 0 0 24px; }
.list-search input { flex: 1; min-width: 0; }
.list-search .btn { flex: 0 0 auto; }
[data-search][hidden] { display: none !important; }
.filter-empty { margin: 8px 0 24px; }
body:not(.is-admin) .top-inner .nav { margin-left: auto; }
details.site-search > summary { color: var(--ink); }
.search-panel { width: min(420px, calc(100vw - 24px)); padding: 12px; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid var(--accent); border-radius: 99px; background: var(--surface); color: var(--muted); }
.search-field input { border: 0; background: transparent; padding: 10px 0; flex: 1; min-width: 0; outline: none; box-shadow: none; }
.search-field:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.search-suggest { margin-top: 8px; max-height: min(60vh, 460px); overflow-y: auto; }
.search-suggest > p.small { padding: 6px 4px; margin: 0; }
.suggest-label { margin: 10px 4px 4px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.suggest-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.suggest-item:hover, .suggest-item:focus-visible { background: var(--accent-soft); }
.suggest-all { display: block; margin-top: 8px; padding: 10px; border-top: 1px solid var(--line); font-weight: 700; color: var(--accent-text); text-decoration: none; }
.results-group { margin-top: 32px; }
.results-group h2 { display: flex; align-items: center; gap: 10px; }
.results-group .count { font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-deep); }
.result-list { display: flex; flex-direction: column; gap: 10px; }
.result-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.result-row:hover { border-color: var(--ink); }
.result-row:hover .go { background: var(--ink); color: var(--bg); box-shadow: none; }
.result-row .who small { white-space: normal; }
@media (max-width: 760px) {
  body:not(.is-admin) .top-inner .site-search { order: 2; margin-left: auto; }
  body:not(.is-admin) .top-inner .nav { order: 3; flex-basis: 100%; margin-left: -8px; }
  .search-panel { right: -6px; width: calc(100vw - 28px); }
  .result-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .result-row .face { width: 46px; height: 46px; }
}

.search-panel form { border-top: 0; margin-top: 0; padding-top: 0; }
.results-group h2 { margin-bottom: 14px; }

/* ================= Admin shell: sidebar + top bar ================= */
body.is-admin { --side-w: 248px; --side-bg: #24130F; --side-ink: #F3E6DD; --side-muted: #B9A399; --side-hover: rgba(255, 241, 230, .08); --side-on: rgba(255, 122, 26, .18); }
.admin-shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40; display: flex; flex-direction: column; background: var(--side-bg); color: var(--side-ink); overflow-y: auto; overscroll-behavior: contain; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.side-brand { display: inline-flex; }
.side-brand .logo { height: 34px; width: auto; }
.side-close { display: none; background: none; border: 0; color: var(--side-ink); padding: 8px; border-radius: 10px; cursor: pointer; }
.side-who { margin: 6px 12px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 241, 230, .06); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-who strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who span { font-size: .78rem; color: var(--side-muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 16px; flex: 1; }
.side-label { margin: 14px 10px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); }
.side-nav a, .side-foot a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.side-nav a svg, .side-foot svg { flex: 0 0 auto; opacity: .85; }
.side-nav a:hover, .side-foot a:hover, .side-foot button:hover { background: var(--side-hover); }
.side-nav a:focus-visible, .side-foot a:focus-visible, .side-foot button:focus-visible, .side-close:focus-visible { outline: 2px solid #FF7A1A; outline-offset: 1px; }
.side-nav a.on { background: var(--side-on); color: #FFFFFF; box-shadow: inset 3px 0 0 #FF7A1A; }
.side-nav a.on svg { opacity: 1; color: #FF9A4D; }
.side-foot { padding: 10px 12px 18px; border-top: 1px solid rgba(255, 241, 230, .1); }
.side-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(36, 19, 15, .45); }

.admin-main { margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.admin-main .devbar { position: static; }
.admin-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.side-open { display: none; background: none; border: 0; padding: 8px; margin-left: -8px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.side-open:focus-visible { outline: 2px solid var(--accent); }
.admin-top-brand { display: none; }
.admin-top-brand .logo { height: 28px; width: auto; }
.admin-top-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.admin-top-right .admin-tools { margin-left: 0; }
.mode-pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 99px; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid; }
.mode-pill.test { color: var(--bad); border-color: rgba(180, 35, 24, .35); background: #FFF5F4; }
.mode-pill.live { color: var(--good); border-color: rgba(19, 122, 75, .35); background: var(--good-soft); }
main.wrap.admin-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; flex: 1; }
.admin-main > .foot { width: 100%; max-width: 1180px; padding-left: 24px; padding-right: 24px; }

@media (max-width: 1000px) {
  .side { transform: translateX(-100%); transition: transform .22s ease, visibility .22s; visibility: hidden; width: min(300px, 86vw); }
  body.side-is-open .side { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
  .side-close { display: inline-flex; }
  .admin-main { margin-left: 0; }
  .side-open { display: inline-flex; }
  .admin-top { padding: 0 16px; gap: 8px; min-height: 58px; }
  .admin-top-brand { display: inline-flex; }
  .admin-top-title { display: none; }
  main.wrap.admin-content { padding: 20px 16px 48px; }
  body.side-is-open { overflow: hidden; }
}
@media (max-width: 420px) { .mode-pill { padding: 5px 10px; font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* ================= Dashboard ================= */
.dhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.dhead h1 { margin: 0; }
.dhead p { margin: 4px 0 0; }
.dfilters select, .dmetric select { width: auto; min-height: 40px; padding: 6px 36px 6px 14px; font-weight: 700; border-radius: 99px; background-color: var(--surface); }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 16px); padding: 20px; min-width: 0; }
.dlabel { margin: 0 0 6px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.dbig { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dmid { margin: 0; font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-bottom: 16px; }
.dgrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dmain-head { text-align: center; margin-bottom: 12px; }
.dmetric select { border: 0; background-color: transparent; color: var(--muted); }
.dmetric select:hover { background-color: var(--surface-2); }
.dtotal { margin: 2px 0 2px; font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dchange { display: inline-block; font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.dchange.up { color: var(--good); background: var(--good-soft); }
.dchange.down { color: var(--bad); background: #FDECEA; }
.dchange.new { color: var(--muted); background: var(--surface-2); }
.dchange .muted { font-weight: 500; }
.dsplit { margin: 8px 0 0; }
.dsplit b { color: var(--ink); }
.dpayout { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dpayout hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.dpayout .btn { margin-top: auto; }
.dpayout .small { margin: 4px 0 12px; }

/* bar chart: one series, hairline grid, 4px rounded tops, tooltip on hover/tap/focus */
.dchart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; height: 260px; padding-bottom: 26px; }
.dchart-y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; transform: translateY(-.45em); height: 100%; }
.dchart-plot { position: relative; min-width: 0; }
.dchart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.dchart-grid i { display: block; border-top: 1px solid var(--line); }
.dchart-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; }
.dbar { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.dbar i { display: block; width: min(24px, calc(100% - 2px)); background: #E8661A; border-radius: 4px 4px 0 0; transition: opacity .15s; }
.dbar:hover i, .dbar:focus i { background: #C2410C; }
.dbar:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 6px; }
.dtip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 3; display: none; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .78rem; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.dtip b { font-size: .92rem; }
.dbar:hover .dtip, .dbar:focus .dtip { display: flex; bottom: auto; top: -8px; transform: translate(-50%, -100%); }
.dbar:first-child .dtip { left: 0; transform: translate(0, -100%); }
.dbar:last-child .dtip { left: auto; right: 0; transform: translate(0, -100%); }
.dx { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.dx.minor { display: none; }
.dtable { margin-top: 10px; }
.dtable summary { cursor: pointer; font-size: .85rem; color: var(--muted); font-weight: 600; }
.dtable .table-wrap { margin-top: 8px; max-height: 280px; overflow: auto; }

.meter { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; border-radius: inherit; background: #E8661A; }
.meter.good i { background: var(--good); }
.issue-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.issue-row:first-of-type { border-top: 0; }
.issue-row > b { min-width: 2.2ch; font-size: 1.4rem; font-variant-numeric: tabular-nums; color: var(--bad); }
.issue-row.none > b { color: var(--muted); }
.issue-row span { display: flex; flex-direction: column; }
.issue-row small { color: var(--muted); }
.issue-row:hover strong { text-decoration: underline; }
.mrow { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; margin-top: 10px; }
.mrow .meter, .mrow small { grid-column: 1 / -1; }
.mrow .meter { margin: 6px 0 2px; }
.trow, .lrow { display: grid; align-items: center; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.trow { grid-template-columns: minmax(0, 1fr) auto; }
.trow .meter { grid-column: 1 / -1; margin: 4px 0 0; height: 6px; }
.trow-name, .lrow > span { display: flex; flex-direction: column; min-width: 0; }
.trow-name strong, .lrow strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow { grid-template-columns: minmax(0, 1fr) auto; }
.lrow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow:hover strong, .lrow:hover strong { text-decoration: underline; }
.dcard .between .dlabel { margin: 0; }
.dquick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dquick a { padding: 9px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.dquick a:hover { border-color: var(--ink); }
details.checklist > summary { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
details.checklist > summary::-webkit-details-marker { display: none; }
details.checklist > summary > span:first-child { display: flex; flex-direction: column; }
details.checklist > summary .meter { flex: 1; max-width: 260px; margin: 0 0 0 auto; }
details.checklist[open] > summary { margin-bottom: 10px; }

@media (max-width: 1100px) { .dgrid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dgrid3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .dgrid, .dgrid2, .dgrid3 { grid-template-columns: minmax(0, 1fr); }
  .dgrid3 > :last-child { grid-column: auto; }
  .dchart { height: 220px; }
}
@media (max-width: 560px) {
  .dcard { padding: 16px; }
  .dchart { height: 200px; gap: 6px; }
  .dhead { align-items: center; }
  .dhead h1 { font-size: 1.7rem; }
  details.checklist > summary .meter { display: none; }
}
.dmetric { display: flex; justify-content: center; }
.admin-top-title { visibility: hidden; }

/* Earnings: where the money goes */
.flow-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.5ch; align-items: baseline; column-gap: 14px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.flow-row:first-of-type { border-top: 0; }
.flow-row .meter { grid-column: 1 / -1; margin: 8px 0 4px; }
.flow-name { display: flex; flex-direction: column; min-width: 0; }
.flow-row > b { font-variant-numeric: tabular-nums; }
.flow-pct { text-align: right; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-hi { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.total-row td { border-top: 2px solid var(--line); }
@media (max-width: 560px) { .flow-row { grid-template-columns: minmax(0, 1fr) auto; } .flow-pct { grid-column: 2; grid-row: 2; } .flow-row .meter { grid-row: 3; } }

/* Smaller slideshow controls */
.hero-controls { gap: 2px; padding: 3px; border-radius: 12px; }
.hero-controls .show-btn { width: 26px; height: 26px; border-radius: 9px; }
.hero-controls .show-btn svg { width: 14px; height: 14px; stroke-width: 2.6; }
.hero-controls .show-dots { gap: 4px; padding: 0 4px; }
.hero-controls .show-dots button { width: 12px; height: 3px; }
.hero-controls .show-dots button[aria-current="true"] { width: 22px; }

/* ================= Event pages v2: poster hero, info cards, sticky Get tickets bar, ticket sheet ================= */
.with-icon { display: inline-flex; align-items: center; gap: 6px; }
.with-icon svg, .ev-ico svg, .ev-org-face svg, .ev-call svg, .ev-maplink svg, .buy-bar .btn svg {
  width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* cards and the trending slider */
.card-art { position: relative; display: block; }
.poster-cat { position: absolute; top: 12px; right: 12px; background: rgba(36, 19, 15, .8); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 99px; }
.poster-date .yr { display: block; font-size: .6rem; color: var(--muted); margin-top: 2px; }
.trend-price { color: var(--accent-text); font-weight: 800; font-size: .98rem; }
.poster-body .with-icon { align-items: flex-start; }
.poster-body .with-icon svg { margin-top: 3px; }
.trending { margin: 36px 0 34px; }
.trending .show-track .slide { flex: 0 0 min(290px, 80%); min-height: 0; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 22px; padding: 2px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { flex: none; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.cat-chips a:hover { border-color: var(--accent); }
.cat-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* the event page */
.ev-page { max-width: 860px; margin: 0 auto; padding-bottom: 110px; }
.ev-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: -32px; height: clamp(240px, 40vw, 440px); overflow: hidden; background: #24130F; }
.ev-hero img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; z-index: 1; }
.ev-hero::before { content: ""; position: absolute; inset: -40px; background: var(--hero-img, none) center / cover; filter: blur(30px) saturate(1.2); opacity: .7; }
.ev-hero-art { position: absolute; inset: 0; }
.ev-hero-art .poster-art span { font-size: clamp(1.6rem, 5vw, 3rem); }
.ev-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; margin-top: 18px; box-shadow: 0 18px 40px -32px rgba(124, 45, 18, .55); }
.ev-card h2 { font-size: 1.2rem; margin: 0 0 12px; }
.ev-intro { margin-top: -70px; z-index: 2; }
.ev-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.ev-title-row h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0; letter-spacing: -.03em; line-height: 1.1; }
.ev-cat { flex: none; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; padding: 6px 12px; border-radius: 99px; text-decoration: none; }
.ev-cat:hover { background: var(--accent); color: var(--accent-ink); }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 20px; }
.ev-fact { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ev-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.ev-ico svg { width: 22px; height: 22px; }
.ev-fact small, .ev-org-text small { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ev-fact b { font-size: .98rem; line-height: 1.3; }
.ev-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.ev-video.tall { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.ev-video iframe, .ev-video video { width: 100%; height: 100%; border: 0; display: block; }
.ev-about p { margin: 0 0 12px; }
.ev-about p:last-child { margin-bottom: 0; }
.ev-org { display: flex; align-items: center; gap: 16px; }
.ev-org-face { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #C2410C); color: #fff; display: grid; place-items: center; flex: none; }
.ev-org-face svg { width: 28px; height: 28px; }
.ev-org-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ev-org-text b { font-size: 1.12rem; }
.ev-org-text a { color: var(--muted); text-decoration: none; font-size: .9rem; overflow-wrap: anywhere; }
.ev-org-text a:hover { color: var(--accent-text); }
.ev-call { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.ev-call svg { width: 22px; height: 22px; }
.ev-call:hover { background: var(--accent); color: var(--accent-ink); }
.ev-policies h2 { margin-bottom: 4px; }
.ev-policies details { border-bottom: 1px solid var(--line); }
.ev-policies details:last-child { border-bottom: 0; }
.ev-policies summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ev-policies summary::-webkit-details-marker { display: none; }
.ev-policies summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; }
.ev-policies details[open] summary::after { transform: rotate(-135deg); }
.ev-policies details p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.ev-map .between { align-items: center; }
.ev-map h2 { margin: 0; }
.ev-map p { margin: 4px 0 10px; }
.ev-maplink { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.ev-map iframe { width: 100%; height: 300px; border: 0; border-radius: 16px; display: block; background: var(--surface); }

/* sticky bar */
.buy-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 20; width: min(860px, calc(100% - 24px)); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-radius: 20px; background: linear-gradient(110deg, #C2410C, #7C2D12); color: #fff; box-shadow: 0 22px 40px -18px rgba(124, 45, 18, .75); }
.buy-bar-text small { display: block; opacity: .85; font-size: .8rem; font-weight: 600; }
.buy-bar-text b { font-size: 1.1rem; }
.buy-bar .btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); white-space: nowrap; }
.buy-bar .btn:hover { background: #fff; color: #9A3412; }
.buy-bar .btn svg { width: 18px; height: 18px; }
body.sheet-open { overflow: hidden; }
body.sheet-open .buy-bar { visibility: hidden; }

/* the ticket form: a plain section without JavaScript, a bottom sheet (phone) or dialog (desktop) with it */
.buy-sheet { margin-top: 18px; scroll-margin-top: 90px; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.sheet-scrim, .sheet-close, .sheet-grip { display: none; }
.sheet-head { display: flex; gap: 12px; align-items: center; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); position: relative; }
.sheet-head b { display: block; font-size: 1.05rem; }
.sheet-head small { color: var(--muted); font-size: .85rem; }
.sheet-body { padding: 16px 22px 18px; }
.sheet-foot { padding: 14px 22px 18px; border-top: 1px solid var(--line); background: #fff; }
.sheet-foot .fine { margin: 8px 0 0; text-align: center; }
html.js-sheet .buy-sheet { position: fixed; inset: 0; z-index: 60; margin: 0; display: none; }
html.js-sheet .buy-sheet[data-open] { display: block; }
html.js-sheet .sheet-scrim { display: block; position: absolute; inset: 0; background: rgba(20, 10, 6, .55); animation: fade-in .2s ease; }
html.js-sheet .sheet { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(640px, 100%); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; border-radius: 24px 24px 0 0; border: 0; animation: sheet-up .25s ease; }
html.js-sheet .sheet-body { overflow-y: auto; flex: 1; }
html.js-sheet .sheet-close { display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
html.js-sheet .sheet-close:hover { background: var(--accent-soft); color: var(--accent-text); }
html.js-sheet .sheet-grip { display: block; position: absolute; top: 7px; left: 50%; width: 42px; height: 4px; border-radius: 9px; background: var(--line); transform: translateX(-50%); }
html.js-sheet .sheet-head { padding-top: 22px; }
@media (min-width: 760px) {
  html.js-sheet .sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 24px; max-height: 88vh; animation: fade-in .2s ease; }
  html.js-sheet .sheet-grip { display: none; }
  html.js-sheet .sheet-head { padding-top: 18px; }
}
@keyframes sheet-up { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.js-sheet .sheet, html.js-sheet .sheet-scrim { animation: none; } }

.tix-list { display: grid; gap: 10px; }
.tix-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .15s, background .15s; }
.tix-row.picked { border-color: var(--accent); background: linear-gradient(100deg, rgba(255, 122, 26, .09), #fff 70%); }
.tix-row.is-out { opacity: .6; }
.tix-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.tix-info b { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: .95rem; }
.tix-price { flex-basis: 100%; color: var(--accent-text); font-weight: 800; }
.tix-badge { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px; }
.tix-badge.out { background: var(--bad-soft); color: var(--bad); }
.tix-badge.low { background: var(--warn-soft); color: var(--warn); }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.stepper button:not(:disabled):hover { border-color: var(--accent); color: var(--accent-text); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper input { width: 42px; text-align: center; margin: 0; padding: 6px 0; border: 0; background: transparent; font-weight: 800; font-size: 1.1rem; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.promo-row { display: flex; gap: 8px; margin-top: 16px; }
.promo-row input { margin: 0; text-transform: uppercase; }
.promo-row input::placeholder { text-transform: none; }
.promo-row .btn { flex: none; }
.promo-msg { font-size: .88rem; margin: 6px 0 0; min-height: 1.3em; font-weight: 600; }
.promo-msg.good { color: var(--good); }
.promo-msg.bad { color: var(--bad); }
.buyer { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.buyer legend { font-weight: 800; padding: 0; margin-bottom: 2px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-weight: 700; }
.sum-fig b { font-size: 1.35rem; }
.sum-fig s { color: var(--muted); font-weight: 500; margin-right: 8px; }
@media (max-width: 600px) {
  .ev-card { padding: 18px; border-radius: 18px; }
  .ev-intro { margin-top: -48px; }
  .ev-title-row { flex-direction: column-reverse; gap: 10px; }
  .buy-bar { bottom: 10px; padding-left: 18px; }
  .buy-bar .btn { padding: 10px 16px; }
  .sheet-body, .sheet-head, .sheet-foot { padding-left: 16px; padding-right: 16px; }
  .ev-map iframe { height: 240px; }
}

/* admin: event extras and promo codes */
.more-fields { margin-top: 16px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 16px 14px; }
.more-fields summary { font-weight: 700; cursor: pointer; padding: 4px 0; }
.joined { display: flex; gap: 6px; margin-top: 6px; }
.joined input, .joined select { margin-top: 0; }
.joined input { flex: 1; min-width: 0; }
.joined select { width: auto; flex: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
