/* Discovery: "find an event → choose a market" (home/feed, sport pages, search, match page).
   Loaded globally (base.html) because fixture rows, the sports nav and kick-off text appear on every page.
   Tokens only (docs/design/DESIGN_V4.md): mint accent, red only for live and errors. */

/* ---------------------------------------------------------------- live vs upcoming in fixture rows */
.mrow .live-tag { display: none; }
.mrow[data-status="live"] .live-tag, .mrow[data-status="interval"] .live-tag, .mrow[data-status="delayed"] .live-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px;
  background: var(--live); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.mrow[data-status="live"] .mrow-dot, .mrow[data-status="interval"] .mrow-dot, .mrow[data-status="delayed"] .mrow-dot { display: none; }
.mrow-time .when.is-soon, .mrow-time .when-day.is-soon { color: var(--accent-text); }
.mrow-time .when-day.is-soon { font-weight: 600; }

/* scheduled but past its start with no feed update */
.mrow .od-tag { display: none; }
.mrow.is-overdue[data-status="scheduled"] .when, .mrow.is-overdue[data-status="scheduled"] .when-day { display: none; }
.mrow.is-overdue[data-status="scheduled"] .od-tag {
  display: inline-block; max-width: 100%; padding: 2px 6px; border-radius: 4px; font-size: 11px; line-height: 14px; font-weight: 600;
  background: var(--warning-soft, rgba(245, 184, 75, .16)); color: var(--warning-text, var(--warning)); white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none;
}
.mrow.is-overdue[data-status="scheduled"] .od-tag.is-awaiting { background: var(--surface-3); color: var(--text-2); }
.mrow-closed { display: flex !important; align-items: center; min-height: 42px; }
@container main (min-width: 701px) {
  .comp-card .mrow.is-overdue, .fx-v4 .mrow.is-overdue, .sport-block .mrow.is-overdue { grid-template-columns: 80px minmax(0, 1fr) 44px minmax(150px, 220px) 40px; }
}
.mrow-closed .od-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.mrow:not([data-status="scheduled"]) .od-note::after { content: " — reload for prices"; }
.comp-card.is-awaiting .comp-cols { visibility: hidden; }
.band-note { margin: 0 0 8px; font-size: 13px; line-height: 19px; color: var(--muted); max-width: 72ch; }
.fx-band.band-awaiting .fx-band-head { flex-wrap: wrap; }
.fx-band.band-awaiting .fx-band-head h3 .icon { color: var(--warning); }
@container main (max-width: 700px) {
  .mrow-closed { grid-area: odds; min-height: 36px; }
  .mrow.is-overdue[data-status="scheduled"] .od-tag { font-size: 10px; padding: 2px 4px; letter-spacing: 0; }
}

/* ---------------------------------------------------------------- Show more */
.feed-more { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 16px; }
.feed-more-btn { min-height: 44px; padding: 0 20px; gap: 8px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; }
.feed-more-btn:hover { background: var(--surface-2); color: var(--text); }
.feed-more-btn.is-loading { opacity: .7; cursor: progress; }
.feed-more-btn .muted { font-weight: 500; }
.feed-more-status:not(.sr-only) { margin: 0; font-size: 13px; color: var(--muted); }
.fx-comps { display: contents; }

/* ---------------------------------------------------------------- first-visit orientation strip */
.orient { margin: 0 0 16px; padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: opacity .2s ease, transform .2s ease; }
.orient.is-leaving { opacity: 0; transform: translateY(-4px); }
.orient-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.orient-head h2 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--text); }
.orient-x { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.orient-x:hover { background: var(--hover); color: var(--text); }
.orient-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.orient-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.orient-steps li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.orient-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.orient-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.orient-copy strong { font-size: 15px; line-height: 20px; color: var(--text); }
.orient-copy > span { font-size: 13px; line-height: 18px; color: var(--text-2); }
.orient-copy a { color: var(--accent-text); font-weight: 600; }
.orient-live { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--live); color: #fff; font-size: 11px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; vertical-align: 1px; }
.orient-foot { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; line-height: 19px; color: var(--text-2); }
.orient-foot .icon { flex: none; margin-top: 2px; color: var(--muted); }
.orient-foot a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: var(--accent-text); font-weight: 600; }
@media (max-width: 767px) {
  .orient-steps { grid-template-columns: 1fr; gap: 6px; }
  .orient-steps li { padding: 8px 10px; }
}

/* ---------------------------------------------------------------- sports nav: empty sports dimmed + last */
.side-link.is-empty .side-name { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; text-align: left; }
.side-link .side-sub { font-size: 12px; line-height: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-link.is-empty { color: var(--text-2); height: auto; min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
.side-link.is-empty .side-ico { opacity: .55; }
.side-link.is-empty:not([aria-current="page"]) .truncate { opacity: .8; }
.side-link[aria-current="page"] .side-sub { color: var(--on-accent); opacity: .85; }
.side-link .side-meta-soon { font-weight: 500; color: var(--muted); }
.side-link[aria-current="page"] .side-meta-soon { color: var(--on-accent); }
.sport-chips .chip.is-empty { color: var(--text-2); border-style: dashed; }
.sport-chips .chip.is-empty .icon { opacity: .55; }
.sport-chips .chip.is-empty .chip-count { color: var(--muted); font-weight: 500; }
.sport-chips .chip.is-empty[aria-current="page"] { border-style: solid; color: var(--on-accent); }
.sport-chips .chip.is-empty[aria-current="page"] .icon, .sport-chips .chip.is-empty[aria-current="page"] .chip-count { opacity: 1; color: var(--on-accent); }
.disc-sport-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.disc-sport-links .chip { min-height: 44px; }
.disc-elsewhere { padding: 16px; margin-top: 16px; }
.disc-elsewhere h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; }
.disc-elsewhere p { margin: 4px 0 0; }
.disc-elsewhere .disc-sport-links { justify-content: flex-start; }

/* ---------------------------------------------------------------- search filters */
@media (max-width: 420px) { .search-box > .icon { top: 24px; } }
.disc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.disc-filters .seg { flex-wrap: wrap; }
.disc-filters .seg-btn { min-height: 44px; }
.disc-select { position: relative; display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); max-width: 100%; }
.disc-select > .icon:first-of-type { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.disc-select > .icon:last-of-type { position: absolute; right: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.disc-select select { appearance: none; -webkit-appearance: none; min-height: 44px; max-width: min(320px, calc(100vw - 48px)); padding: 0 34px 0 36px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; border-radius: 10px; text-overflow: ellipsis; }
.disc-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.disc-select select option { background: var(--surface); color: var(--text); }
.disc-clear { min-height: 44px; gap: 6px; }
.disc-live { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--live); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 16px; }
.disc-player-note { display: flex; gap: 6px; align-items: center; margin: 12px 2px 0; }
.page-search .mrow-comp { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) {
  .disc-filters .seg { width: 100%; }
  .disc-filters .seg-btn { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
  .disc-select, .disc-select select { width: 100%; max-width: none; }
}

/* ---------------------------------------------------------------- match page */
.guest-acts .guest-act { display: grid; place-items: center; text-decoration: none; }
.mc-actions .guest-act { min-width: 44px; min-height: 44px; }
.mc-kickoff { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }
.mc-ko-label { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mc-hero.has-photo .mc-ko-label { color: rgba(255, 255, 255, .75); }
.mc-kickoff time.is-soon { color: var(--accent-text); }
.mc-live-pill.is-overdue { background: var(--warning-soft, rgba(245, 184, 75, .16)) !important; color: var(--warning-text, var(--warning)) !important; }
.mc-live-pill.is-overdue .dot { background: var(--warning) !important; animation: none !important; }
.od-notice { margin: 0 0 12px; }

/* "How odds work" helper */
.odds-help { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.odds-help > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--text); border-radius: 10px; }
.odds-help > summary::-webkit-details-marker { display: none; }
.odds-help > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.odds-help > summary .icon:first-child { color: var(--accent-text); }
.odds-help .oh-chev { margin-left: auto; transition: transform .15s ease; color: var(--muted); }
.odds-help[open] .oh-chev { transform: rotate(180deg); }
.oh-body { padding: 0 14px 12px; }
.oh-example { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: 15px; color: var(--text); }
.oh-example b { font-weight: 700; }
.oh-example .oh-win { color: var(--accent-text); }
.oh-arrow { color: var(--muted); }
.oh-points { margin: 0; padding-left: 18px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.oh-points li + li { margin-top: 2px; }
.page-help .odds-help { margin: 12px 0; }
