/* ===== Fresh Legs: the BMB presenter search =====
   Colours and type copied from the Barking Mad Merch shop and Predictor so
   all BMB pages read as one family. Mobile first. */

@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap;
  src: url('/freshlegs/assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap;
  src: url('/freshlegs/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap;
  src: url('/freshlegs/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #0b0d18;
  --panel: #151827;
  --panel-2: #1b1f33;
  --line: #262a40;
  --line-2: #363b58;
  --ink: #ffffff;
  --ink-2: #c8ccdb;
  --ink-3: #9096ad;
  --orange: #ff6600;
  --orange-2: #ff8a3d;
  --gold: #f5b400;
  --error: #ff8f7a;
  --ok: #7fd99a;
  --wrap: 1080px;
  --gutter: 18px;
  --radius: 2px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .005em; line-height: .95;
  text-wrap: balance; margin: 0;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--orange-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.accent { color: var(--orange); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--orange); color: var(--bg);
  padding: 10px 14px; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* ===== Header ===== */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11,13,24,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { height: 20px; width: auto; }
.brand-text { font-family: 'Barlow Condensed', Impact, sans-serif; font-weight: 800; font-size: 22px;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.brand-sub { display: none; color: var(--ink-3); font-size: 13px; font-weight: 600; }
@media (min-width: 560px) { .brand-sub { display: inline; } }
.topbar .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
/* Text on orange is the night ink: white on #ff6600 is only 2.9:1 */
.btn-primary { background: var(--orange); color: var(--bg); }
.btn-primary:hover { background: var(--orange-2); color: var(--bg); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero { padding: 44px 0 36px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::after { /* three thin rings, a quiet nod to the board */
  content: ''; position: absolute; right: -140px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none; opacity: .5;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 46px var(--bg), 0 0 0 47px var(--line), 0 0 0 92px var(--bg), 0 0 0 93px var(--line-2);
}
.hero .wrap { position: relative; z-index: 1; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); margin: 0 0 14px; }
.hero h1 { font-size: clamp(4rem, 19vw, 8.5rem); line-height: .84; }
.tagline { font-family: 'Barlow Condensed', Impact, sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 6.4vw, 2.6rem); line-height: 1; margin: 10px 0 18px; color: var(--orange); }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 40ch; margin-bottom: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.deadline { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.deadline::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ===== Sections ===== */
.section { padding: 44px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .section { padding: 64px 0; } }
.section-head { margin-bottom: 20px; }
.section h2 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 64ch; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin: 40px 0 14px; color: var(--ink); }
.prose h3 { font-size: 1.5rem; margin: 28px 0 10px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .ticks.two { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.crosses li::before { border: 0; width: 14px; height: 14px; top: .3em;
  background: linear-gradient(45deg, transparent 44%, var(--error) 44% 56%, transparent 56%),
              linear-gradient(-45deg, transparent 44%, var(--error) 44% 56%, transparent 56%); transform: none; }

.placeholder { display: inline; background: rgba(245,180,0,.14); color: var(--gold); padding: 1px 6px; border-radius: var(--radius); font-size: .92em; }

/* ===== Cards and panels ===== */
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .grid.cols-2-lg { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) and (max-width: 899px) { .grid.cols-4 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .host-rule { font-size: 15px; color: var(--ink); }
.card-bad { border-color: rgba(255,143,122,.35); }
.callout { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); padding: 16px 18px; margin-top: 18px; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.callout-warn { border-color: rgba(245,180,0,.45); background: rgba(245,180,0,.07); }

/* How to film */
.film { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 760px) { .film { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.orient { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.orient figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; }
.orient figcaption { font-weight: 600; font-size: 14px; text-align: center; }
.orient .yes figcaption { color: var(--ok); }
.orient .no figcaption { color: var(--error); }
.orient .no { border-color: rgba(255,143,122,.35); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.checklist .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,102,0,.12); color: var(--orange); }
.checklist strong { display: block; color: var(--ink); }
.checklist span { color: var(--ink-2); font-size: 15px; }

/* Dates */
.dates { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
@media (min-width: 640px) { .dates { grid-template-columns: 1fr 1fr; } }
.dates li { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; border-radius: var(--radius); }
.dates .label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.dates .when { font-family: 'Barlow Condensed', Impact, sans-serif; font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }

/* FAQ */
.faq details:first-child summary { padding-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--orange); }
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

/* ===== Form ===== */
.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
@media (min-width: 720px) { .form-panel { padding: 32px; } }
.form-note { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; }
.free-lines { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.free-lines li { padding: 12px 14px; background: var(--panel-2); border-radius: var(--radius); color: var(--ink-2); font-size: 15px; }
.free-lines strong { color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-family: 'Barlow Condensed', Impact, sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1.5rem; line-height: 1; padding: 0; margin-bottom: 14px; }
.field { margin-bottom: 18px; }
.field > label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--orange-2); font-weight: 600; font-size: 13px; margin-left: 4px; }
.opt { color: var(--ink-3); font-weight: 400; font-size: 13px; margin-left: 4px; }
.hint { display: block; color: var(--ink-3); font-size: 14px; margin: -2px 0 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.counter { display: block; text-align: right; color: var(--ink-3); font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.error-msg { display: block; color: var(--error); font-size: 14px; font-weight: 600; margin-top: 6px; }
.error-msg:empty { display: none; }
.link-status { display: block; font-size: 14px; margin-top: 8px; }
.link-status:empty { display: none; }
.link-status.ok { color: var(--ok); }
.link-status.bad { color: var(--error); font-weight: 600; }
.link-status.info { color: var(--ink-2); }

.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  padding: 12px; background: var(--panel-2); border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; }
.check:hover { border-color: var(--line-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.check .why { display: block; color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.check-group .error-msg { margin: 4px 0 0 48px; }
.weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.weeks .check { padding: 10px; }

.socials { display: grid; gap: 12px; }
@media (min-width: 640px) { .socials { grid-template-columns: 1fr 1fr; } }
.socials label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }

.error-summary { border: 2px solid var(--error); background: rgba(255,143,122,.08); padding: 16px; margin-bottom: 22px; border-radius: var(--radius); }
.error-summary h2 { font-size: 1.5rem; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }
.form-alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; }
.form-alert:empty { display: none; }
.form-alert.bad { background: rgba(255,143,122,.1); border: 1px solid var(--error); color: var(--ink); }
.form-alert.info { background: rgba(245,180,0,.1); border: 1px solid var(--gold); color: var(--ink); }
.turnstile-wrap { margin: 4px 0 18px; min-height: 65px; }
.notice { font-size: 14px; color: var(--ink-3); margin-top: 18px; }
.notice a { color: var(--ink-2); }
.closed-panel { text-align: left; }
.closed-panel h2 { font-size: clamp(2.2rem, 9vw, 3.2rem); margin-bottom: 12px; }

/* Landing */
.disc { display: grid; gap: 14px; }
@media (min-width: 760px) { .disc { grid-template-columns: 1.3fr 1fr; } }
.disc .card { padding: 22px; display: flex; flex-direction: column; }
.disc .card h2 { font-size: clamp(2.4rem, 9vw, 3.4rem); margin-bottom: 10px; }
.disc .card .btn { margin-top: auto; align-self: flex-start; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius); margin-bottom: 14px; align-self: flex-start; }
.badge-live { background: var(--orange); color: var(--bg); }
.badge-soon { background: var(--line); color: var(--ink-2); }
.inline-form { display: grid; gap: 10px; margin-top: 8px; }
.inline-form .row { display: grid; gap: 10px; }
@media (min-width: 480px) { .inline-form .row { grid-template-columns: 1fr auto; } }
.success { color: var(--ok); font-weight: 600; }

/* Draft banner */
.draft-banner { background: var(--gold); color: var(--bg); font-weight: 800; text-align: center; padding: 14px var(--gutter);
  font-family: 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; font-size: 1.4rem; letter-spacing: .02em; line-height: 1.1; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-3); font-size: 14px; }
.footer .rg { color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.footer .rg a { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.footer nav a { color: var(--ink-2); }
.footer p { margin-bottom: 6px; }

/* Landing: one darts feature, no card grid */
.feature { max-width: var(--wrap); }
.feature h2 { font-size: clamp(2.4rem, 10vw, 4rem); margin-bottom: 14px; }
.feature .lede { margin-bottom: 26px; }
.facts-list { margin: 0 0 28px; max-width: 720px; border-top: 1px solid var(--line); }
.facts-list > div { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts-list > div { grid-template-columns: 160px 1fr; align-items: baseline; } }
.facts-list dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.facts-list dd { margin: 0; color: var(--ink); }
