/* Taco Triathlon. Palette + type straight from the design file. */
:root {
  --pink: #BD2777;
  --pink-hot: #E85AA6;
  --green: #92CE76;
  --gold: #F3C64E;
  --ink: #000;
  --white: #fff;
  --mint: #EEF8E8;
  --deep-pink: #8A1A57;
  --char: #1A1A1A;
  --line: #5C5C5C;
  --soft: #E6E6E6;
  --rye: Rye, Georgia, serif;
  --bitter: Bitter, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pink); font-family: var(--bitter); color: var(--ink); min-height: 100vh; }
body.dark { background: var(--ink); color: var(--white); }
a { color: var(--ink); }
a:hover { color: var(--pink); }
body.dark a { color: var(--gold); }
body.dark a:hover { color: var(--white); }
button { font: inherit; }
img { max-width: 100%; display: block; }
.rye { font-family: var(--rye); font-weight: 400; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

[hidden] { display: none !important; }
.page { --w: 1200px; width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
/* Content column: full-bleed bars, centered content up to --w. */
.page main { width: 100%; max-width: var(--w); margin-inline: auto; }
.gutter { padding-inline: max(16px, calc((100% - var(--w)) / 2 + 16px)) !important; }

/* Bunting */
.bunting { display: block; width: 100%; height: 34px; background: var(--green); }

/* Top bars */
.bar { background: var(--green); border-bottom: 4px solid var(--ink); padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.bar .title { font-family: var(--rye); font-size: 20px; }
.bar.dark { background: var(--ink); border-bottom-color: var(--pink); justify-content: space-between; }
.bar.dark .title { color: var(--green); font-size: 18px; }
.back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex: none; }
.bar-full { width: 100%; }

main { padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
h1.big { margin: 0; font-family: var(--rye); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--white); }
.lede { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: var(--white); }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 0 16px;
  border: 3px solid var(--ink); border-radius: 12px; text-decoration: none; cursor: pointer; color: var(--ink); }
.btn:hover { color: var(--ink); }
.btn-gold { background: var(--gold); font-family: var(--rye); font-size: 20px; box-shadow: 4px 4px 0 var(--ink); min-height: 56px; }
.btn-gold:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-white { background: var(--white); font-weight: 800; font-size: 16px; min-height: 48px; }
.btn-pink { background: var(--pink); color: var(--white); border-color: var(--white); font-family: var(--rye); font-size: 20px; min-height: 56px; }
body.dark .btn-pink, body.dark .btn-pink:hover { color: var(--white); }
.btn-ghost { background: transparent; color: var(--green); border: 2px dashed var(--green); font-weight: 800; font-size: 16px; min-height: 48px; }
body.dark .btn-ghost:hover { color: var(--green); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* Segmented toggle (taco / mocktail, tabs) */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; }
.seg button { min-height: 48px; border: 0; background: var(--white); color: var(--ink); font-family: var(--rye); font-size: 18px; cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--gold); }
.seg.dark { border-color: var(--line); }
.seg.dark button { background: var(--char); color: var(--white); }
.seg.dark button[aria-pressed="true"], .seg.dark button[aria-selected="true"] { background: var(--green); color: var(--ink); }

/* Cards */
.card { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; }
.panel { margin: 0 20px 20px; border: 3px solid var(--ink); border-radius: 14px; padding: 18px; }
.panel h2 { margin: 0 0 12px; font-family: var(--rye); font-weight: 400; font-size: 24px; }

/* Forms */
.form { padding: 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: 6px 6px 0 var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .lbl, legend { font-weight: 800; font-size: 15px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 8px; padding: 0; }
.input { min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; font-family: var(--bitter); font-size: 16px; background: var(--white); color: var(--ink); width: 100%; }
textarea.input { padding: 12px 14px; min-height: 0; resize: vertical; }
.dark .input { background: var(--char); color: var(--white); border-color: var(--line); }
.input:focus-visible, button:focus-visible, a:focus-visible, .drop:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px;
  border: 3px dashed var(--ink); border-radius: 12px; background: var(--mint); cursor: pointer; text-align: center; padding: 16px; overflow: hidden; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop img { max-height: 220px; border-radius: 8px; border: 2px solid var(--ink); }
.err { background: var(--ink); color: var(--gold); border-radius: 10px; padding: 12px 14px; font-weight: 700; font-size: 15px; }
.ok-box { background: var(--green); border: 3px solid var(--ink); border-radius: 16px; padding: 20px; box-shadow: 6px 6px 0 var(--ink); }

/* Lineup cards */
.entry { overflow: hidden; display: flex; flex-direction: column; }
.entry .ph { height: 190px; background: repeating-linear-gradient(45deg, #EEF8E8 0 14px, #DDEFD2 14px 28px); border-bottom: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative; }
.entry .ph img { width: 100%; height: 100%; object-fit: cover; }
.entry .ph .noimg { font-size: 13px; font-weight: 700; color: #3A3A3A; }
.num { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--gold); font-family: var(--rye); font-size: 16px; padding: 4px 10px; border-radius: 8px; }
.entry .body { padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.entry h2 { margin: 0; font-family: var(--rye); font-weight: 400; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.entry .by { font-size: 14px; }
.entry .status { font-size: 13px; font-weight: 700; color: var(--deep-pink); }
.dial { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; background: #EDEDED; }
.dial .v { font-family: var(--rye); font-size: 24px; line-height: 1; }
.dial .o { font-size: 11px; font-weight: 700; }
.dial.full { background: var(--gold); }
.dial.part { background: var(--green); }
.jnotes { margin: 0; padding: 12px 16px 16px; border-top: 2px solid #E0E0E0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; }
.empty { color: var(--white); text-align: center; font-size: 16px; line-height: 1.5; padding: 20px 0; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: 1px; background: var(--ink); color: var(--white); padding: 6px 10px; border-radius: 999px; }
.live i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: block; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }

footer.site { margin-top: auto; background: var(--green); border-top: 4px solid var(--ink); padding-block: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
footer.site a { font-size: 14px; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* Desktop */
@media (min-width: 900px) {
  main { padding: 40px 32px 48px; gap: 24px; }
  h1.big { font-size: 52px; }
  .lede { font-size: 18px; }
  .bar { padding-block: 14px; }
  .bar .title { font-size: 24px; }
}

/* "Not so fast" dialog */
dialog.nsf { border: 4px solid var(--ink); border-radius: 20px; padding: 0; width: min(440px, calc(100% - 32px)); background: var(--gold); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
dialog.nsf::backdrop { background: rgba(0, 0, 0, .6); }
dialog.nsf[open] { animation: nsf-in .5s ease-out; }
@keyframes nsf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.nsf[open] { animation: none; } }
.nsf .top { background: var(--ink); color: var(--gold); padding: 22px 20px 18px; text-align: center; }
.nsf .top h2 { margin: 10px 0 0; font-family: var(--rye); font-weight: 400; font-size: 34px; line-height: 1.05; }
.nsf .mid { padding: 18px 20px 20px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.nsf .mid p { margin: 0; font-size: 16px; line-height: 1.45; }
.nsf .opens { font-family: var(--rye); font-size: 22px; font-variant-numeric: tabular-nums; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--gold); border: 2px solid var(--gold);
  padding: 12px 18px; border-radius: 12px; font-weight: 800; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
