/* SportsPick site styles. tokens.css (inlined) holds the tokens and the first paint; this file holds the rest.
   Narrow first: one step at 720px, one at 1024px. Plan §7. */

/* ---------- Mobile navigation ---------- */
.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--red-600); color: var(--white); padding: 24px var(--gutter); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mobile-nav a { display: block; padding: 10px 0; font-size: 32px; font-weight: 900; font-style: italic; text-transform: uppercase; text-decoration: none; }
.mobile-nav .btn { margin-top: 24px; }
.site-header__cta { display: none; }
@media (min-width: 1024px) { .site-header__cta { display: inline-flex; margin-left: 8px; } .mobile-nav { display: none !important; } }

/* ---------- Sections ---------- */
.section { padding-block: 48px; }
.section--grey { background: var(--grey-100); }
.section--dark { background: var(--ink-500); color: var(--white); }
.section.section--tight { padding-block: 24px; }
@media (min-width: 720px) { .section { padding-block: 72px; } }
.section__head { max-width: 860px; margin: 0 auto 32px; text-align: center; }
.section__title { font-size: clamp(26px, 4.4vw, 46px); font-weight: 900; font-style: italic; text-transform: uppercase; }
.section__sub { margin-top: 12px; font-size: clamp(16px, 2.2vw, 22px); font-weight: 900; font-style: italic; text-transform: uppercase; }
.section__intro { margin-top: 16px; color: var(--grey-600); font-size: 17px; }
.section__intro p:last-child { margin-bottom: 0; }
.section__foot { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-block: 12px; font-size: 14px; color: var(--grey-600); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.crumbs a { color: var(--ink-700); }
.hero .crumbs, .hero .crumbs a { color: rgb(255 255 255 / 85%); }
.hero--paper .crumbs, .hero--paper .crumbs a { color: var(--grey-600); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
@media (min-width: 1024px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 84px; min-height: 80px; padding: 8px 10px; border: 2px solid var(--grey-300); border-radius: var(--radius-sm); background: var(--white); color: var(--ink-700); font-size: 12px; font-weight: 500; font-style: italic; text-align: center; text-decoration: none; scroll-snap-align: start; }
.chip img { width: 36px; height: 36px; }
.chip:hover { border-color: var(--ink-500); }
.chip[aria-current="page"], .chip.is-selected { border-color: var(--blue-600); background: var(--blue-100); }
.chip__count { color: var(--grey-600); font-style: normal; }
/* A sport chip with its heart (likes.js): the heart is a sibling of the link, so it is not a button inside a link. */
.chip-wrap { position: relative; flex: none; display: inline-flex; scroll-snap-align: start; }
.chip__like { position: absolute; top: -2px; right: 0; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--grey-600); cursor: pointer; }
.chip__like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.chip__like:hover, .chip__like[aria-pressed="true"] { color: var(--red-600); }
.chip__like[aria-pressed="true"] svg { fill: currentColor; }
.chip__like:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 1px; }
/* max-width: a long label (a main event's title) wraps on a narrow screen. Without it, the chip makes the page wider. */
.chip--text { min-height: 40px; min-width: 0; max-width: 100%; flex-direction: row; padding: 6px 14px; border-radius: 999px; font-size: 14px; }

/* ---------- Day strip ---------- */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; }
.day-link { flex: none; display: grid; justify-items: center; min-width: 58px; padding: 8px 6px; border-radius: var(--radius-sm); background: var(--white); border: 2px solid var(--grey-300); text-decoration: none; line-height: 1.2; }
.day-link b { font-size: 20px; font-weight: 900; font-style: italic; }
.day-link small { font-size: 12px; text-transform: uppercase; color: var(--grey-600); }
.day-link[aria-current="date"], .day-link.is-selected { background: var(--ink-700); border-color: var(--ink-700); color: var(--white); }
.day-link[aria-current="date"] small, .day-link.is-selected small { color: var(--grey-300); }
.day-link.is-empty { opacity: .55; }

/* ---------- Search ---------- */
.search { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
/* min-width: 0, so the field can be narrower than the input's natural width (size="20"). */
.search__field { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink-700); border-radius: var(--radius-sm); background: var(--white); }
.search__field svg { flex: none; width: 20px; height: 20px; color: var(--grey-600); }
.search__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; }
.search__field:focus-within { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.search .btn { min-height: 48px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar__note { font-size: 14px; color: var(--grey-600); }

/* ---------- Schedule ---------- */
.schedule-layout { display: grid; gap: 24px; }
@media (min-width: 1024px) { .schedule-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.schedule { display: grid; gap: 20px; }
/* clip, not hidden: hidden would make the card the sticky container and push the day header down inside it. */
.day { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: clip; }
.day__head { position: sticky; top: var(--header-h); z-index: 2; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ink-700); color: var(--white); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 15px; }
.day__head small { font-weight: 500; opacity: .8; }
.fixtures { list-style: none; margin: 0; padding: 0; }
.fixture { position: relative; display: grid; grid-template-columns: 64px 40px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--grey-200); }
.fixture:first-child { border-top: 0; }
.fixture:hover { background: var(--grey-100); }
.fixture__time { font-weight: 700; color: var(--blue-600); font-size: 15px; line-height: 1.2; }
.fixture__time small { display: block; font-weight: 400; color: var(--grey-600); font-size: 12px; }
.fixture__icon { width: 40px; height: 40px; }
.fixture__meta { font-size: 13px; color: var(--grey-600); font-style: italic; }
.fixture__title { font-size: 18px; font-weight: 700; font-style: italic; line-height: 1.25; }
.fixture__title a { text-decoration: none; }
.fixture__title a::after { content: ""; position: absolute; inset: 0; }
.fixture__title a:hover { text-decoration: underline; }
.fixture__channels { grid-column: 3; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (min-width: 720px) {
  .fixture { grid-template-columns: 72px 44px minmax(0, 1fr) auto; }
  .fixture__channels { grid-column: 4; grid-row: 1 / span 2; justify-content: flex-end; margin: 0; max-width: 260px; }
}
.channel { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--grey-100); font-size: 12px; white-space: nowrap; }
.channel img { width: auto; height: 18px; }
.channel b { font-weight: 700; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 900; font-style: italic; text-transform: uppercase; vertical-align: 2px; }
.pill--live { background: var(--red-600); color: var(--white); }
.pill--main { background: var(--ink-700); color: var(--white); }
.pill--new { background: var(--blue-600); color: var(--white); }
.fixture:not(.is-live) .pill--live { display: none; }
.empty { padding: 32px 16px; text-align: center; color: var(--grey-600); background: var(--white); border-radius: var(--radius); }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--blue-100); color: var(--ink-700); font-size: 14px; }
.notice--warn { background: #fff4d6; }
.more { display: flex; justify-content: center; margin-top: 20px; }

/* Side panel on the schedule pages */
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel h2, .panel h3 { font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; margin-bottom: 12px; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.panel li a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; text-decoration: none; border-bottom: 1px solid var(--grey-200); }
.panel li a:hover { color: var(--red-600); }
.panel li small { color: var(--grey-600); }
.panel + .panel { margin-top: 16px; }

/* ---------- Main event cards ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cards > .event-card { flex: 0 1 calc((100% - 32px) / 3); min-width: min(260px, 100%); }
.event-card { position: relative; display: grid; align-content: end; min-height: 200px; padding: 16px; border-radius: var(--radius); overflow: hidden; color: var(--white); background: linear-gradient(160deg, var(--ink-500), var(--ink-900)); text-decoration: none; isolation: isolate; }
.event-card img.event-card__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.event-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0%) 20%, rgb(0 0 0 / 80%) 100%); }
.event-card__when { font-size: 13px; color: #9fd0ff; font-weight: 700; }
.event-card__title { margin-top: 4px; font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.15; }
.event-card__meta { margin-top: 4px; font-size: 13px; opacity: .85; }
.event-card:hover .event-card__title { text-decoration: underline; }

/* ---------- Venues ---------- */
.venue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.venue-card { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.venue-card__logo { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: contain; background: var(--grey-100); }
.venue-card__name { font-size: 18px; font-weight: 700; font-style: italic; line-height: 1.2; }
.venue-card__name a { text-decoration: none; }
.venue-card__name a::after { content: ""; position: absolute; inset: 0; }
.venue-card__name a:hover { text-decoration: underline; }
.venue-card__where { font-size: 14px; color: var(--grey-600); }
.venue-card__side { text-align: right; font-size: 13px; color: var(--grey-600); }
.venue-card__distance { display: block; font-weight: 700; color: var(--ink-700); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { padding: 2px 8px; border-radius: 4px; background: var(--blue-050); color: #005bb5; font-size: 12px; font-weight: 500; font-style: italic; }
.tag img, .tag svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.tag--main { background: var(--ink-700); color: var(--white); }
.tag--quiet { background: var(--grey-100); color: var(--grey-600); }
/* One line of tags: the finder script shows the sports as icons, then as icons and "+N more" (finder.js, fitTags). */
.tags.is-fitted { flex-wrap: nowrap; overflow: hidden; }
.tags.is-fitted > .tag { flex-shrink: 0; }
.tag img { max-width: none; }
.tags.is-icons .tag[data-sport] img { margin-right: 0; }
.tags.is-icons .tag[data-sport] .tag__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tag { white-space: nowrap; }
.venue-card[hidden] { display: none; }
.venue-card__status { font-size: 13px; color: var(--grey-600); }
.venue-card__status.is-open strong { color: var(--green-600); }
.venue-card__status.is-closed strong { color: var(--red-600); }

/* ---------- Venue finder (finder.js) ---------- */
.finder__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
/* The field and the button stay on one line. min-width: 0 lets the form shrink to a phone screen (320 px). */
.finder__search { flex: 1 1 420px; min-width: 0; max-width: 640px; flex-wrap: nowrap; }
.finder__search .search__field { flex-basis: 0; }
.finder__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.finder__actions [hidden] { display: none; }
.finder__actions .btn { min-height: 44px; }
.finder__actions .btn[aria-pressed="true"] { background: var(--ink-700); border-color: var(--ink-700); color: var(--white); }
.finder__views { display: inline-flex; border: 2px solid var(--ink-700); border-radius: var(--radius-sm); overflow: hidden; }
.finder__views button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; background: var(--white); color: var(--ink-700); font: inherit; font-weight: 700; font-style: italic; text-transform: uppercase; cursor: pointer; }
.finder__views button svg { width: 18px; height: 18px; }
.finder__views button[aria-pressed="true"] { background: var(--red-600); color: var(--white); }
.finder__chips { margin-bottom: 8px; }
.finder__label { margin-bottom: 6px; font-size: 13px; font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--grey-600); }
.finder__main .chip--text svg { flex: none; width: 14px; height: 14px; margin-right: 6px; color: var(--red-600); }
.finder__main .chip--text small { flex: none; margin-left: 6px; color: var(--grey-600); white-space: nowrap; }
.chip[aria-current="true"] { border-color: var(--blue-600); background: var(--blue-100); }
.finder__note { min-height: 1.5em; margin: 4px 0 12px; }
.finder__note .link-button { color: var(--blue-600); text-decoration: underline; font-weight: 500; }
.finder__map { height: 360px; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: var(--grey-300); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .finder__map { height: 480px; } }
.finder__map[hidden] { display: none; }
/* The nearest venues on a sport page's side panel: short cards, no tags (the page's sport is the filter). */
.venue-panel__intro { margin-bottom: 12px; }
.venue-panel__form .search__field { flex-basis: 100%; }
.venue-panel__actions { display: flex; flex: 1 1 100%; gap: 8px; }
.venue-panel__near { flex: 1 1 auto; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.finder--top { margin-top: 16px; }
.finder--top .finder__note { margin-bottom: 8px; font-size: 13px; }
.finder--top .venue-list { gap: 8px; }
.finder--top .venue-card { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
.finder--top .venue-card__logo { width: 40px; height: 40px; }
.finder--top .venue-card__name { font-size: 15px; }
.finder--top .venue-card__where, .finder--top .venue-card__status { font-size: 12px; }
.finder--top .tags { display: none; }
.finder--top .venue-more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; }
/* Map view: the venues as a grid of cards under the map, as the Guide's Cards view draws its fixtures. */
.finder.is-map .venue-list { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.finder.is-map .venue-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; justify-items: center; align-items: start; gap: 8px; padding: 18px 16px 16px; text-align: center; }
.finder.is-map .venue-card > div { width: 100%; }
.finder.is-map .venue-card__logo { width: 72px; height: 72px; }
.finder.is-map .venue-card .tags { justify-content: safe center; }
.finder.is-map .venue-card__side { text-align: center; }
.finder.is-map .venue-card:hover, .finder.is-map .venue-card:focus-within { box-shadow: 0 0 0 2px var(--blue-600), var(--shadow); }
/* The pip of the venue card under the pointer: a ring that pulses out from it (map.js, highlight). */
.map-pulse { position: relative; width: 22px; height: 22px; }
.map-pulse::before, .map-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.map-pulse::after { inset: 3px; background: #cc0002; border: 3px solid #ffffff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); }
.map-pulse::before { background: rgb(204 0 2 / .45); animation: map-pulse 1.2s ease-out infinite; }
@keyframes map-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pulse::before { animation: none; transform: scale(1.8); } }
.finder__slot:empty { min-height: 120px; }
.finder__more { display: block; margin: 16px auto 0; }
.finder__more[hidden] { display: none; }
.map-pop p { margin: 0; }
.map-pop__name { font-weight: 700; font-style: italic; font-size: 15px; }
.map-pop__where { color: var(--grey-600); font-size: 13px; }
.map-pop__status { font-size: 13px; }
.map-pop__status.is-open strong { color: var(--green-600); }
.map-pop__status.is-closed strong { color: var(--red-600); }
.venue-list__group { margin-top: 16px; font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.venue-list__group:first-child { margin-top: 0; }
.state-group + .state-group { margin-top: 28px; }
.state-group h2 { margin-bottom: 12px; font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; }

.hub-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); list-style: none; margin: 0; padding: 0; }
.hub-grid a { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-height: var(--tap); padding: 10px 14px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; font-weight: 500; }
.hub-grid a:hover { color: var(--red-600); }
.hub-grid small { color: var(--grey-600); font-weight: 400; }
.state-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Event page ---------- */
.event-hero__teams { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.event-hero__teams img { width: 64px; height: 64px; object-fit: contain; background: rgb(255 255 255 / 92%); border-radius: 50%; padding: 6px; }
.event-hero__when { font-size: 20px; font-weight: 900; font-style: italic; }
.event-hero__when small { display: block; font-size: 14px; font-weight: 500; opacity: .85; }
.countdown { font-weight: 900; font-style: italic; text-transform: uppercase; }
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0; }
.facts div { background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); }
.facts dt { font-size: 12px; text-transform: uppercase; color: var(--grey-600); letter-spacing: .04em; }
.facts dd { margin: 4px 0 0; font-weight: 700; }

/* ---------- Venue page ---------- */
.venue-head { display: grid; gap: 16px; align-items: center; }
@media (min-width: 720px) { .venue-head { grid-template-columns: 112px minmax(0, 1fr); } }
.venue-head__logo { width: 112px; height: 112px; border-radius: var(--radius); background: var(--white); object-fit: contain; padding: 8px; }
.venue-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--grey-300); }
.venue-bar a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.venue-bar svg { width: 20px; height: 20px; }
.open-state { font-weight: 700; }
.open-state.is-open { color: var(--green-600); }
.open-state.is-closed { color: var(--red-600); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 6px 0; text-align: left; border-bottom: 1px solid var(--grey-200); }
.hours th { font-weight: 500; width: 45%; }
.hours tr.is-today { font-weight: 700; }

/* ---------- Competitions ---------- */
.comp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.comp-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: end; min-height: 150px; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--comp, var(--red-600)); color: var(--white); text-decoration: none; isolation: isolate; }
.comp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgb(255 255 255 / 12%), rgb(0 0 0 / 25%)); }
.comp-card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.comp-card--photo::before { background: linear-gradient(180deg, rgb(0 0 0 / 0%) 45%, rgb(0 0 0 / 35%)); }
.comp-card__badge { grid-column: 2; grid-row: 1; align-self: center; width: 88px; height: 88px; object-fit: contain; margin: 12px; }
.comp-card__label { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 14px -6px; padding: 8px 16px 8px 22px; background: var(--ink-700); transform: skewX(var(--skew)); }
.comp-card__label > span { display: block; transform: skewX(calc(var(--skew) * -1)); }
.comp-card__title { display: block; font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; }
.comp-card__more { display: block; font-size: 13px; font-style: italic; opacity: .85; }
.comp-card:hover .comp-card__title { text-decoration: underline; }
.comp-hero { background: var(--comp, var(--red-600)); }
.comp-hero__badge { width: 120px; height: 120px; object-fit: contain; }
.comp-hero .hero__inner { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .comp-hero .hero__inner { grid-template-columns: minmax(0, 1fr) auto; } .comp-hero__badge { width: 180px; height: 180px; } }
.tabs { position: sticky; top: var(--header-h); z-index: 3; background: var(--white); border-bottom: 1px solid var(--grey-300); }
.tabs ul { display: flex; gap: 4px; overflow-x: auto; list-style: none; margin: 0; padding: 0; }
.tabs a { display: block; padding: 14px 16px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 14px; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a:hover, .tabs a.is-active { border-color: var(--red-600); color: var(--red-600); }
/* The scroll-padding-top of html clears the header. This margin clears the sticky tabs (53 px high), so a section
   opened by its anchor starts 12 px under the tabs. */
.comp-section { scroll-margin-top: 53px; }
.comp-section + .comp-section { margin-top: 48px; }
.comp-section > h2 { margin-bottom: 16px; font-size: clamp(22px, 3vw, 32px); font-weight: 900; font-style: italic; text-transform: uppercase; }

/* The Winners tab (website-tipping-live item 3). On a phone, each row is a card with labels. */
.winners__title { margin: 12px 0; font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.winners__note { max-width: 72ch; margin: 0; padding: 18px; background: var(--white); border-radius: var(--radius-sm); font-weight: 700; }
.winners__round { margin-bottom: 12px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.winners__round summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: var(--tap); padding: 14px 18px; cursor: pointer; font-weight: 900; font-style: italic; text-transform: uppercase; list-style: none; }
.winners__round summary::-webkit-details-marker { display: none; }
.winners__round summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; font-style: normal; line-height: 1; }
.winners__round[open] summary::after { content: "−"; }
.winners__table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); font-size: 15px; }
.winners__table th, .winners__table td { padding: 10px 14px; border-top: 1px solid var(--grey-300); text-align: left; vertical-align: top; }
.winners__table th { font-size: 12px; text-transform: uppercase; color: var(--grey-600); }
.winners__tipster { font-weight: 700; }
.winners__amount { display: block; font-size: 13px; color: var(--grey-600); }
@media (max-width: 719px) {
  .winners__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .winners__table, .winners__table tbody, .winners__table tr, .winners__table td { display: block; }
  .winners__table tr { padding: 10px 14px; border-top: 1px solid var(--grey-300); }
  .winners__table td { padding: 2px 0; border: 0; }
  .winners__table td::before { content: attr(data-label) ": "; font-weight: 400; color: var(--grey-600); }
  .winners__table td.winners__tipster::before { content: none; }
  .winners__amount { display: inline; margin-left: 4px; }
}

/* The Leaderboard tab (website-tipping-live item 4). Its table is the Winners tab's, so a phone shows each row as a card
   with labels. The venue form is a GET form: label, select and button wrap on a phone. */
.leaderboard__venue { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 16px; }
.leaderboard__venue label { font-weight: 700; }
.leaderboard__venue select { flex: 1 1 240px; min-width: 0; max-width: 100%; min-height: 45px; padding: 8px 12px; border: 2px solid var(--ink-700); border-radius: var(--radius-sm); background: var(--white); color: var(--ink-700); font-size: 16px; }
.leaderboard__venue select:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.leaderboard__scope { margin: 0 0 12px; font-weight: 700; }
.leaderboard__scope a, .leaderboard__table a { color: var(--red-600); }
.leaderboard__more { margin: 12px 0 0; color: var(--grey-600); }

/* ---------- Editorial blocks ---------- */
.prose { max-width: 72ch; font-size: 17px; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; font-weight: 900; font-style: italic; text-transform: uppercase; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; } .prose h4 { font-size: 18px; }
.prose a { color: var(--red-600); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { padding: 6px 8px; border: 1px solid var(--grey-300); }
.prose--centre { margin-inline: auto; text-align: center; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--left .split__media { order: -1; } }
.split__media img { width: 100%; border-radius: var(--radius); }
.split__art { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--ink-500) center / cover; }
.split__title { margin-bottom: 16px; font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; font-style: italic; text-transform: uppercase; }

.points { display: grid; gap: 16px; counter-reset: point; }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { counter-increment: point; padding: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.point::before { content: counter(point, decimal-leading-zero); display: block; margin-bottom: 8px; font-size: 40px; font-weight: 900; font-style: italic; color: var(--red-400); line-height: 1; }
.point h3 { margin-bottom: 8px; font-size: 19px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.point p { margin: 0; color: var(--grey-600); }
.section--grey .point { box-shadow: none; }

.columns { display: grid; gap: 24px; }
@media (min-width: 900px) { .columns { grid-template-columns: repeat(3, 1fr); } }
.column h3 { margin-bottom: 8px; font-size: 19px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.column img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 12px; }

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: var(--tap); padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq__answer { padding: 0 18px 16px; }

.cta-banner { display: grid; gap: 16px; padding: 32px; border-radius: var(--radius); background: var(--red-600) center / cover; color: var(--white); }
@media (min-width: 900px) { .cta-banner { grid-template-columns: 1fr auto; align-items: center; padding: 40px 48px; } }
.cta-banner h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; font-style: italic; text-transform: uppercase; }
.cta-banner p { margin: 8px 0 0; }

.marquee { overflow: hidden; background: var(--red-400); color: var(--white); padding-block: 10px; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: marquee 28s linear infinite; font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; }
/* Space after each copy, not a flex gap: half the track is then exactly four copies, so the loop does not jump. */
.marquee__track > span { padding-inline-end: 48px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Crossed bands: two large strips tilted 3° each way, red over dark grey, both scrolling to the right. The block is one
   band high. The tilted ends reach over the hero above and the section below. */
.marquee-x { --band-font: 24px; --band-pad: 6px; position: relative; z-index: 1; height: calc(var(--band-font) * 1.2 + 2 * var(--band-pad)); overflow-x: clip; }
/* Without clip (Safari before 16), clip both ways: the tilted ends are cut, but the page does not scroll sideways. */
@supports not (overflow-x: clip) { .marquee-x { overflow: hidden; } }
@media (min-width: 720px) { .marquee-x { --band-font: 44px; --band-pad: 11px; } }
@media (min-width: 1024px) { .marquee-x { --band-font: 64px; --band-pad: 16px; } }
.marquee-x__band { position: absolute; top: 0; left: -1%; width: 102%; padding-block: var(--band-pad); overflow: hidden; white-space: nowrap; color: var(--white); box-shadow: 0 4px 16px rgb(0 0 0 / 25%); }
.marquee-x__band .marquee__track { font-size: var(--band-font); line-height: 1.2; animation-duration: 40s; animation-direction: reverse; }
.marquee-x__band--grey { background: var(--ink-500); transform: rotate(3deg); }
.marquee-x__band--red { background: var(--red-400); transform: rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: rgb(0 0 0 / 35%) center / cover; color: var(--white); cursor: pointer; }
.video button svg { width: 76px; height: 76px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.addresses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.address { padding: 18px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.address h3 { margin-bottom: 6px; font-size: 16px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.address p { margin: 0; white-space: pre-line; color: var(--grey-600); }

.policy { display: grid; gap: 28px; }
@media (min-width: 1024px) { .policy { grid-template-columns: 260px minmax(0, 1fr); } .policy__index { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }
.policy__index ol { margin: 0; padding-left: 1.2em; font-size: 14px; display: grid; gap: 6px; }
.policy__updated { color: var(--grey-600); font-style: italic; }

.hubspot { min-height: 420px; }
.hubspot__placeholder { padding: 24px; border: 2px dashed var(--grey-300); border-radius: var(--radius-sm); color: var(--grey-600); text-align: center; }

/* ---------- Home hero carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.carousel__dot { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; }
.carousel__dot[aria-current="true"] { background: var(--white); }
/* The pause button is quiet: a small icon beside the dots, faint until the reader points at it or tabs to it. */
.carousel__pause { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; padding: 0; border: 0; background: transparent; color: var(--white); opacity: .6; cursor: pointer; transition: opacity .15s; }
.carousel__pause[hidden] { display: none; }
.carousel__pause:hover, .carousel__pause:focus-visible { opacity: 1; }
.carousel__pause svg { width: 12px; height: 12px; fill: currentColor; }
.carousel__play-icon, .carousel[data-paused] .carousel__pause-icon { display: none; }
.carousel[data-paused] .carousel__play-icon { display: block; }
.slide__badge { width: 72px; height: 72px; object-fit: contain; }
.slide__floating { position: absolute; right: 2%; bottom: 0; z-index: -1; width: min(42%, 520px); height: auto; display: none; }
@media (min-width: 900px) { .slide__floating { display: block; } }
.slide__disclaimer { max-width: 60ch; font-size: 12px; opacity: .8; }
.slide__disclaimer p { margin: 0; }

/* ---------- App banner ---------- */
.app-banner { background: var(--ink-500); color: var(--white); overflow: hidden; }
.app-banner__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 40px; }
@media (min-width: 900px) { .app-banner__inner { grid-template-columns: 380px minmax(0, 1fr); padding-block: 32px; } .app-banner__inner--text { grid-template-columns: minmax(0, 1fr); } }
.app-banner__art { width: 100%; max-width: 380px; height: auto; margin-inline: auto; }
.app-banner h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; font-style: italic; text-transform: uppercase; }
.app-banner p { margin: 12px 0 20px; font-weight: 500; font-style: italic; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores img { height: 44px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: var(--white); padding-block: 40px 28px; font-size: 15px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.site-footer__logo { width: 220px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer h2 { font-size: 15px; font-weight: 900; font-style: italic; text-transform: uppercase; margin-bottom: 12px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; background: rgb(255 255 255 / 10%); }
.socials svg { width: 22px; height: 22px; }
/* FHV brand family row: logos (or names, until a logo file lands) in one row separated by rules, wrapping on
   narrow screens. The operator statement sits above it and the tagline below. */
.site-footer__brands { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 20%); }
.site-footer__brands p { margin: 0 0 16px; color: var(--grey-400); }
.brand-family ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; }
.brand-family li { display: flex; align-items: center; }
.brand-family li + li::before { content: ""; width: 1px; height: 20px; background: rgb(255 255 255 / 25%); margin: 0 18px; }
.brand-family a { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-400); }
.brand-family a:hover, .brand-family a.is-current { color: var(--white); text-decoration: none; }
.brand-family img { display: block; height: 32px; width: auto; opacity: 0.85; }
.brand-family a:hover img, .brand-family a.is-current img { opacity: 1; }
.site-footer small { display: block; margin-top: 8px; color: var(--grey-400); }

/* ---------- Consent banner (plan §7.2): fixed to the foot of the window, never over the page as a modal ---------- */
.consent { position: fixed; inset: auto 0 0; z-index: 60; background: var(--ink-900); color: var(--white); box-shadow: 0 -4px 16px rgb(0 0 0 / 20%); }
.consent[hidden] { display: none; }
.consent__inner { display: grid; gap: 16px; padding-block: 20px; }
@media (min-width: 900px) { .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; } }
.consent h2 { font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; margin-bottom: 6px; }
.consent p { margin: 0; font-size: 15px; }
.consent a { color: var(--white); text-decoration: underline; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent__actions .btn { flex: 1 1 140px; }
.link-button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.site-footer .link-button:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 16px; }
.muted { color: var(--grey-600); }
.centre { text-align: center; }
.no-js .js-only { display: none; }
[data-loading] { opacity: .55; transition: opacity .2s; }
.htmx-request [data-results], .htmx-request[data-results] { opacity: .55; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* The portal site (website-reimplementation.md §8.4): a header with the way in, a one-line footer. */
.portal-header__login { margin-left: auto; }
.portal-footer { padding-block: 24px; }
.portal-footer p { margin: 0 0 4px; }

/* Competitions menu and banner */
/* The header's Competitions menu. No script: on wide screens it opens on hover and while focus is inside it, so Tab
   walks into it. In the mobile menu a disclosure beside the Competitions link opens the list. The banner on the
   Competitions page is a Call to action block and uses the .cta-banner rules. */
.site-nav__drop { position: relative; }
.site-nav__menu { display: none; position: absolute; top: 100%; left: 0; z-index: 51; min-width: 220px; max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; margin: 0; padding: 8px 0; list-style: none; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
@media (min-width: 1024px) {
  .site-nav__drop > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
  .site-nav__drop:hover > .site-nav__menu, .site-nav__drop:focus-within > .site-nav__menu { display: block; }
  .site-nav__menu a { padding: 8px 20px; font-style: normal; text-transform: none; letter-spacing: 0; white-space: nowrap; }
  .site-nav__menu a:hover, .site-nav__menu a:focus-visible { background: var(--grey-100); }
}
.mobile-nav__drop { position: relative; }
.mobile-nav__drop > a { padding-right: calc(var(--tap) + 8px); }
.mobile-nav__drop summary { position: absolute; top: 12px; right: 0; display: flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-sm); cursor: pointer; list-style: none; }
.mobile-nav__drop summary::-webkit-details-marker { display: none; }
.mobile-nav__drop summary::after { content: ""; width: 12px; height: 12px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mobile-nav__drop details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.mobile-nav__drop details ul { gap: 0; padding: 0 0 8px 16px; }
.mobile-nav__drop details a { padding: 8px 0; font-size: 20px; font-weight: 700; }
/* The venue page's one competition at the venue (ET-6060): the reader came from that competition's Find a venue. */
.venue-focus { margin: 0 0 24px; padding: 20px 24px; border: 2px solid currentColor; border-radius: 12px; }
.venue-focus__title { margin: 0 0 4px; }
.venue-focus__note { margin: 8px 0; }
.venue-focus__facts { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 12px 0; }
.venue-focus__facts dt { font-weight: 700; }
.venue-focus__facts dd { margin: 0; }
.venue-focus__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
/* The national prize ladder from the App (ET-6060), at the top of a competition's Prizes section. */
.national-prizes { margin: 0 0 24px; }
.national-prizes__title { margin: 0 0 8px; }
.national-prizes__list { display: grid; gap: 6px; margin: 0; }
.national-prizes__list > div { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.national-prizes__list dt { font-weight: 700; min-width: 220px; }
.national-prizes__list dd { margin: 0; }
.championship-panel p { margin: 8px 0 0; }
