@font-face {
  font-family: "Outfit";
  src: url("outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #101828;
  --muted: #5f6f83;
  --line: #e7edf5;
  --line-strong: #b9c4d2;
  --bg: #f5f7fb;
  --surface: #fff;
  --brand: #0777c9;
  --brand-ink: #fff;
  --accent: #0777c9;
  --accent-soft: #e9f6fd;
  --night: #07111f;
  --cyan: #35d0ff;
  --danger: #b3261e;
  --ok-bg: #e7f4ea;
  --ok-ink: #1d5c2e;
  --err-bg: #fbeae9;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Outfit, Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 72px; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .875rem; }
.hint { font-size: .875rem; margin: 0; }
.top-gap { margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-title { font-size: 1.3rem; margin-top: 2rem; }
.foot { padding-top: 16px; padding-bottom: 24px; color: var(--muted); font-size: .85rem; text-align: center; }

/* Header */
.topbar { background: var(--night); color: #fff; }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; font-weight: 500; text-decoration: none; min-width: 0; }
.wordmark { font-weight: 300; font-size: 1.3rem; letter-spacing: -.01em; }
.wordmark b { font-weight: 700; color: var(--cyan); }
.brand-sub { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .3); overflow-wrap: anywhere; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; font-size: .95rem; }
.nav a, .nav .linklike { color: inherit; text-decoration: none; opacity: .85; }
.nav a:hover, .nav .linklike:hover { opacity: 1; text-decoration: underline; }
.nav a[aria-current] { opacity: 1; font-weight: 600; color: var(--cyan); }
.nav form { margin: 0; }
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; gap: 16px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; font-size: .95rem; white-space: nowrap; }
.subnav a { text-decoration: none; }
.subnav a:hover { text-decoration: underline; }
.orgbar { display: flex; align-items: flex-end; gap: 10px; padding-top: 10px; }
.orgbar label { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.orgbar select { margin: 0; padding: 4px 8px; width: auto; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 22px; border: 1px solid var(--brand); border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-wide { width: 100%; }
.btn-small { padding: 5px 14px; font-size: .875rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.linklike.danger { color: var(--danger); }
.linklike.small { font-size: .875rem; }
form.inline { display: inline; margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Messages */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; overflow-wrap: anywhere; }
.flash-success { background: var(--ok-bg); color: var(--ok-ink); }
.flash-error { background: var(--err-bg); color: var(--danger); }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); margin: 8px 0 16px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }

/* Forms */
label { display: block; font-weight: 600; font-size: .95rem; }
label .muted { font-size: .875rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), textarea, select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  font: inherit; font-weight: 400; background: var(--surface); color: var(--ink);
}
input[type=file] { display: block; margin-top: 6px; font-weight: 400; max-width: 100%; }
input[type=color] { display: block; margin-top: 6px; width: 64px; height: 36px; padding: 2px; }
textarea { resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack h2 { margin-bottom: 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.form-wide { max-width: 760px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; }
.auth { max-width: 400px; margin: 24px auto; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.auth h2 { margin-top: 0; }
.auth .linklike { margin-top: 12px; }
.suggest { display: flex; gap: 8px; margin-top: 12px; }
.suggest input { margin: 0 !important; }
.suggest .btn { white-space: nowrap; }

/* Cards */
.intro { margin-bottom: 20px; max-width: 720px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-photo { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0b2440, #0777c9); }
.card-photo:has(img) { background: #0b2440; }
.no-photo { display: flex; height: 100%; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 1.1rem; text-align: center; padding: 8px; }
.card-body { padding: 14px 16px 12px; flex: 1; }
.card-body h2 { margin: 0 0 4px; }
.card-body h2 a { color: inherit; text-decoration: none; }
.card-body h2 a:hover { text-decoration: underline; }
.when { margin: 0; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chips:empty { display: none; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 99px; background: var(--accent-soft); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip-danger { background: var(--err-bg); color: var(--danger); }
.summary { margin: 8px 0 0; }
.winner { margin: 8px 0 0; font-weight: 600; color: var(--ok-ink); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 8px 16px 14px; }
.entry-no { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.entry-title { margin: 2px 0; font-size: 1.1rem; }
.dietary { margin: 6px 0 0; color: var(--muted); }
.prize-note p:last-child { margin-bottom: 0; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.step { width: 44px; height: 44px; border: 1px solid var(--brand); border-radius: 50%; background: var(--surface); color: var(--brand); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.step:hover:not(:disabled) { background: var(--brand); color: var(--brand-ink); }
.step:disabled { opacity: .3; cursor: default; }
input.qty { width: 52px !important; margin: 0 !important; padding: 8px 2px !important; text-align: center; font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; appearance: textfield; }
input.qty::-webkit-outer-spin-button, input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.status-error { color: var(--danger) !important; }

/* Sticky save bar for ballots and tickets */
.vote-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); }
.vote-bar .btn { margin-left: auto; }

/* Event page */
.crumb { margin: 0 0 12px; font-size: .95rem; }
.event-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 18px; }
.event-head.no-hero { grid-template-columns: minmax(0, 1fr); }
.hero { width: 100%; height: auto; max-height: 520px; border-radius: var(--radius); object-fit: contain; background: #eef2f7; }
.lead { font-size: 1.05rem; margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.event-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.event-main .panel:first-child, .event-side .panel:first-child { margin-top: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 10px 4px; border: 1px solid var(--line-strong); border-radius: 8px; text-align: center; font-weight: 600; font-size: .9rem; }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--accent-soft); font-weight: 600; }
.choice-wide { flex: 1; }
.bars { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.bars meter { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 10px; }
.bar-n { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.slots { list-style: none; margin: 0; padding: 0; }
.slots li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.slots li:first-child { border-top: 0; }
.slots form { flex: none; }
.people { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.prose p { margin: 0 0 .75rem; }
.prose ul { margin: 0 0 .75rem; padding-left: 1.3rem; }
.prose a { overflow-wrap: anywhere; }
.awards { list-style: none; margin: 0; padding: 0; }
.awards li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.awards li:first-child { border-top: 0; }
.award-label { font-weight: 700; color: var(--brand); }
.results { border-color: var(--brand); }
@media (max-width: 860px) {
  .event-cols, .event-head { grid-template-columns: minmax(0, 1fr); }
  .event-side { order: -1; }
}

/* Judging sheet */
.score-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.score-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.score-card legend { font-weight: 700; padding: 0 4px; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 2px 10px; font-weight: 400; margin-top: 8px; }
.score-row input { margin: 0 !important; text-align: center; }

/* Admin */
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.head-row h1, .head-row h2, .head-row h3 { margin: 0; }
.panel { padding: 16px 18px; margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel > h2:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
.panel summary, details summary { font-weight: 600; cursor: pointer; }
.panel details[open] summary, details.panel[open] summary { margin-bottom: 14px; }
.panel details { margin-top: 12px; }
.panel-danger { border-color: #e6b8b5; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.two-col > .panel { margin: 0; }
.two-col { margin: 18px 0; }
.sublist { padding: 10px 0; border-top: 1px solid var(--line); }
.judge-pick { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.judge-pick legend { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.rows { list-style: none; margin: 8px 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.addon-grid form { display: block; }
.addon { display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; padding: 12px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; text-align: left; cursor: pointer; }
.addon:hover { border-color: var(--brand); background: var(--accent-soft); }
.org-logo { max-height: 72px; width: auto; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 14px 0; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-n { font-size: 1.5rem; font-weight: 700; }
.stat .muted { font-size: .875rem; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-off td { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .875rem; min-width: 220px; }
.search { display: flex; gap: 8px; margin: 18px 0 6px; max-width: 480px; }
.search input { margin: 0 !important; }
.pager { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }
.failures { margin: 8px 0 12px; padding-left: 1.2rem; font-size: .9rem; color: var(--danger); overflow-wrap: anywhere; }
.winners { list-style: none; margin: 10px 0; padding: 0; }
.winners li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.draw-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }

/* Printable table cards */
.cards-print { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.table-card { padding: 22px 16px; background: #fff; border: 2px dashed var(--line-strong); border-radius: 8px; text-align: center; break-inside: avoid; }
.tc-no { font-size: 4rem; font-weight: 700; line-height: 1; color: #000; }
.tc-title { font-size: 1.25rem; font-weight: 600; margin-top: 6px; }
.tc-who, .tc-diet { margin-top: 4px; font-size: .95rem; }
@media print {
  .topbar, .subnav, .orgbar, .foot, .no-print { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
  .cards-print { grid-template-columns: 1fr 1fr; }
}

/* ---- Visual layer ---- */
:root {
  --shadow-sm: 0 1px 2px rgba(7, 17, 31, .06), 0 2px 8px rgba(7, 17, 31, .05);
  --shadow-md: 0 2px 4px rgba(7, 17, 31, .05), 0 14px 34px rgba(7, 17, 31, .11);
  --gold: #b7791f;
  --radius: 16px;
}
body { background: var(--bg); }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-weight: 650; letter-spacing: -.01em; }
.section-title { font-size: 1.5rem; }
.small { font-size: .875rem; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(7, 17, 31, .92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav a[aria-current] { box-shadow: 0 2px 0 var(--cyan); padding-bottom: 2px; }
.subnav { background: rgba(255, 255, 255, .9); }

/* Heroes span the full window, breaking out of the page column */
body { overflow-x: clip; }
.page-hero {
  margin: 0 calc(50% - 50vw) 28px; color: #fff;
  background:
    radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--brand) 75%, transparent), transparent 70%),
    radial-gradient(620px 340px at 8% 120%, rgba(53, 208, 255, .22), transparent 70%),
    var(--night);
}
.main > .page-hero:first-child { margin-top: -24px; }
.page-hero-in { display: grid; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.page-hero-in.has-photo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.page-hero h1 { margin: 0; }
.page-hero .lead { margin: 12px 0 0; color: rgba(255, 255, 255, .82); font-size: 1.15rem; max-width: 620px; }
.page-hero a { color: var(--cyan); }
.page-hero .crumb { margin-bottom: 18px; color: rgba(255, 255, 255, .5); }
.page-hero .org-logo { max-height: 56px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.eyebrow { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.hero-title { display: flex; align-items: center; gap: 18px; }
.hero-dim { color: rgba(255, 255, 255, .65); }
.page-hero .facts { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.page-hero .facts dt { color: rgba(255, 255, 255, .6); font-weight: 500; }
.hero-photo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); background: #0b2440; }
@media (max-width: 860px) { .page-hero-in.has-photo { grid-template-columns: minmax(0, 1fr); } .page-hero-in { padding-top: 32px; padding-bottom: 32px; } }

/* Whole photo on a blurred copy of itself */
.fill-back, .fill-front { position: absolute; inset: 0; width: 100%; height: 100%; }
.fill-back { object-fit: cover; filter: blur(22px) saturate(1.2) brightness(.8); transform: scale(1.2); }
.fill-front { object-fit: contain; }

/* Date tile */
.tile { display: inline-flex; flex: none; flex-direction: column; width: 58px; overflow: hidden; border-radius: 12px; background: #fff; color: var(--ink); text-align: center; line-height: 1; box-shadow: 0 6px 18px rgba(7, 17, 31, .28); }
.tile-m { padding: 5px 0 4px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tile-d { padding: 7px 0 8px; font-size: 1.5rem; font-weight: 700; }
.card-photo .tile { position: absolute; top: 12px; left: 12px; }

/* Cards */
.grid { gap: 22px; }
.card { border: 0; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-photo { position: relative; overflow: hidden; background: linear-gradient(135deg, #0b2440, var(--brand)); }
.no-photo { font-size: 1.25rem; letter-spacing: -.01em; }
.no-photo-prize { background: linear-gradient(135deg, #3b1d71, #0777c9); }
.card-body h2 { font-size: 1.25rem; }
.chip { background: var(--accent-soft); color: var(--brand); }
.entry-no { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; margin-bottom: 8px; border-radius: 12px; background: var(--night); color: var(--cyan); font-size: 1.2rem; }
.dietary { display: inline-block; padding: 2px 9px; border-radius: 99px; background: #fff4e0; color: #8a5a10; }
.winner { padding: 8px 12px; border-radius: 10px; background: #fff7e3; color: #7a5208; }

/* Panels */
.panel { border: 0; box-shadow: var(--shadow-sm); padding: 20px 22px; }
.panel-danger { box-shadow: var(--shadow-sm), inset 0 0 0 1px #e6b8b5; }
.table-scroll, .stat, .auth, .vote-bar { border: 0; box-shadow: var(--shadow-sm); }
.stat-n { font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; }
.event-side { position: sticky; top: 76px; }
@media (max-width: 860px) { .event-side { position: static; } }
#rsvp { box-shadow: var(--shadow-md); border-top: 4px solid var(--brand); }

/* Buttons */
.btn { box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); filter: none; }
.seg span { transition: background-color .15s, color .15s, border-color .15s; }
.choice { transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--brand); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }

/* Poll bars */
.bars meter { appearance: none; -webkit-appearance: none; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line); border: 0; }
.bars meter::-webkit-meter-bar { background: var(--line); border: 0; border-radius: 99px; height: 10px; }
.bars meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--brand), var(--cyan)); border-radius: 99px; }
.bars meter::-moz-meter-bar { background: linear-gradient(90deg, var(--brand), var(--cyan)); }

/* Winners */
.results { color: #fff; border: 0; background: radial-gradient(600px 240px at 90% 0, color-mix(in srgb, var(--brand) 70%, transparent), transparent 70%), var(--night); box-shadow: var(--shadow-md); }
.results h2 { font-size: 1.5rem; }
.results .muted { color: rgba(255, 255, 255, .7); }
.results .awards li { border-color: rgba(255, 255, 255, .14); }
.results .award-label { color: #ffd166; }
.results .awards strong { font-size: 1.25rem; }

/* Sticky ballot and ticket bar */
.vote-bar { bottom: 12px; background: var(--night); color: #fff; box-shadow: 0 14px 34px rgba(7, 17, 31, .35); }
.vote-bar .muted { color: rgba(255, 255, 255, .7); }
.vote-bar .status-error { color: #ff9c94 !important; }

/* Add-on buttons */
.addon { border-color: var(--line); box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .15s, background-color .15s; }
.addon:hover { transform: translateY(-2px); }

/* Sign in */
.auth-hero { margin-top: 48px; padding: 32px; box-shadow: var(--shadow-md); }
.auth-hero .eyebrow { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .addon, .seg span, .choice { transition: none; }
  .card:hover, .btn:hover, .addon:hover { transform: none; }
}
@media print {
  .page-hero { display: none; }
  .table-card { box-shadow: none; }
}

.table td.num:first-child { width: 1%; padding-right: 4px; font-weight: 700; color: var(--brand); }

/* ---- Richer pages ---- */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(100deg, transparent 35%, #000); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; border: 56px solid color-mix(in srgb, var(--cyan) 22%, transparent); }
.hero-banner { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.home-hero:has(.hero-banner) { background: linear-gradient(90deg, color-mix(in srgb, var(--night) 88%, transparent), color-mix(in srgb, var(--night) 35%, transparent)); }
.home-hero .page-hero-in { padding-top: 56px; padding-bottom: 96px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.btn-glow { background: var(--cyan); border-color: var(--cyan); color: var(--night); box-shadow: 0 8px 26px color-mix(in srgb, var(--cyan) 40%, transparent); }
.page-hero a.btn-glow { color: var(--night); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; box-shadow: none; }
.page-hero a.btn-outline { color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); filter: none; }

/* Brand */
.brand-logo { display: inline-flex; align-items: center; height: 34px; padding: 3px 8px; border-radius: 8px; background: #fff; }
.brand-logo img { height: 28px; width: auto; }
.logo-preview { display: inline-flex; align-self: flex-start; padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.logo-preview img { max-height: 64px; width: auto; }
.banner-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }

/* Theme picker */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.theme-pick { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick:has(input:checked) { border-color: var(--brand); background: var(--accent-soft); }
.theme-pick:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.swatch { display: block; height: 52px; border-radius: 8px; }
.swatch-ocean { background: linear-gradient(120deg, #07111f 30%, #0777c9 70%, #35d0ff); }
.swatch-sunset { background: linear-gradient(120deg, #1f0d14 30%, #c9450c 70%, #ffb454); }
.swatch-forest { background: linear-gradient(120deg, #08190f 30%, #1f7a4d 70%, #6ee7a8); }
.swatch-grape { background: linear-gradient(120deg, #140c2a 30%, #6d3bd1 70%, #c4a6ff); }
.swatch-cherry { background: linear-gradient(120deg, #1f0a14 30%, #c2184b 70%, #ff8fb1); }
.swatch-slate { background: linear-gradient(120deg, #0f1720 30%, #37506b 70%, #9fc2e0); }

/* Spotlight: overlaps the hero */
.spotlight { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: -72px 0 32px; overflow: hidden; border-radius: 22px; background: var(--surface); box-shadow: 0 24px 60px rgba(7, 17, 31, .2); }
.spotlight-photo { aspect-ratio: auto; min-height: 340px; height: 100%; }
.spotlight-photo .no-photo { font-size: 2rem; font-weight: 700; }
.spotlight-body { padding: 26px 28px; }
.spotlight-body .hero-title { margin: 6px 0 12px; }
.spotlight-body h2 { margin: 0; font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.spotlight-body h2 a { color: inherit; text-decoration: none; }
.spotlight-body h2 a:hover { text-decoration: underline; }
.spotlight-cta { margin-top: 18px; }
.chip-next { background: var(--night); color: var(--cyan); }
.chip-time { background: #fff4e0; color: #8a5a10; }
.chip-draft { background: #fff4e0; color: #8a5a10; white-space: normal; }
.fact-line { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--muted); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.feature-tags li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border: 1px solid var(--line); border-radius: 99px; font-size: .82rem; font-weight: 600; }
.feature-tags .icon { color: var(--brand); }
@media (max-width: 760px) { .spotlight { grid-template-columns: minmax(0, 1fr); } .spotlight-photo { min-height: 200px; aspect-ratio: 16 / 9; } }

/* Icon discs */
.icon-disc { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); font-size: 1.05rem; }
.icon-disc-lg { width: 58px; height: 58px; font-size: 1.5rem; background: rgba(255, 255, 255, .12); color: var(--cyan); }
.with-icon { display: flex; align-items: center; gap: 12px; }

/* Landing */
.landing-hero .page-hero-in { padding-top: 72px; padding-bottom: 80px; }
.landing-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
.mock { padding: 20px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); transform: rotate(1.5deg); }
.mock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mock-dim { color: var(--muted); font-size: .85rem; }
.mock-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; font-weight: 600; }
.mock-no { display: grid; place-items: center; grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; background: var(--night); color: var(--cyan); }
.mock-bar { display: block; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.mock-w90 { width: 90%; } .mock-w70 { width: 70%; } .mock-w45 { width: 45%; }
.mock-win, .mock-tickets { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.mock-win { background: #fff7e3; color: #7a5208; }
.mock-tickets { background: var(--accent-soft); color: var(--brand); }
.landing-section { padding: 48px 0 16px; }
.landing-h { margin: 0 0 24px; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; }
.eyebrow-dark { color: var(--brand); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; }
.landing-band { margin-top: 40px; margin-bottom: 0; }
.landing-band .wrap { padding-top: 40px; padding-bottom: 44px; }
.idea-cloud { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.idea-cloud li { padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.cta-card { margin: 40px 0 0; padding: 44px 24px; border-radius: 22px; text-align: center; color: #fff; background: radial-gradient(600px 260px at 50% 120%, color-mix(in srgb, var(--brand) 85%, transparent), transparent 75%), var(--night); }
.cta-card h2 { margin: 0 0 6px; font-size: 1.9rem; letter-spacing: -.02em; }
.cta-card p { color: rgba(255, 255, 255, .8); margin: 0 0 18px; }
.cta-card .btn-glow { color: var(--night); }
@media (max-width: 860px) { .mock { transform: none; } .landing-hero .page-hero-in { padding-top: 40px; padding-bottom: 44px; } }
@media (prefers-reduced-motion: reduce) { .feature { transition: none; } .feature:hover { transform: none; } }

.role-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.role-form select { margin: 0 !important; padding: 5px 8px; min-width: 110px; }

.plan-meter { padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); }
.plan-list { list-style: none; margin: 8px 0 18px; padding: 0; }
.plan-list li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.plan-list .icon { color: var(--brand); }
.addon:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.slot-detail { display: flex; flex: 1; justify-content: flex-end; gap: 6px; max-width: 340px; }
.slot-detail input { margin: 0 !important; padding: 5px 10px !important; }
.slot-detail .btn { white-space: nowrap; }
.nowrap { white-space: nowrap; align-items: center; }
.nowrap input { margin-top: 0; }
@media (max-width: 560px) { .slots li { flex-wrap: wrap; } .slot-detail { max-width: none; flex-basis: 100%; } }

.edit-inline { margin: 0 !important; }
.edit-inline summary { font-weight: 400 !important; font-size: .875rem; color: var(--brand); text-decoration: underline; }
.edit-inline[open] { flex-basis: 100%; min-width: 240px; padding: 10px 12px; margin: 6px 0 !important; border-radius: 10px; background: var(--bg); }
.edit-inline[open] summary { margin-bottom: 8px; }
.rows .btn-row { align-items: flex-start; }

.sublist .suggest { flex-wrap: wrap; align-items: flex-end; }
.sublist .suggest .grow { flex: 1 1 200px; font-size: .875rem; }
.sublist .suggest .how-many { flex: 0 0 150px; font-size: .875rem; }
.sublist .suggest .nowrap { padding-bottom: 10px; font-size: .875rem; }

.audience { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); }
.audience legend { font-weight: 600; font-size: .95rem; float: left; margin-bottom: 4px; }
