/* Footy base theme (Phase 6). Bootstrap 5.3 underneath; everything colour-related goes through CSS variables so
   the visitor's accent (set server-side in <style id="fp-theme">) and light/dark mode change the whole site.
   Accent tokens (--fp-accent, --fp-on-accent, --fp-link, --fp-50…950) come from web/theme.py. */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap;
  src: url("../../vendor/fonts/barlow-condensed-latin-500-normal.24f826a7cf9c.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url("../../vendor/fonts/barlow-condensed-latin-600-normal.ba4513495282.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url("../../vendor/fonts/barlow-condensed-latin-700-normal.e1180918b873.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 200 900; font-display: swap;
  src: url("../../vendor/fonts/source-sans-3-latin-wght-normal.30164609c163.woff2") format("woff2"); }

:root {
  --fp-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --fp-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fp-paper: #F4F6F8; --fp-surface: #FFFFFF; --fp-raised: #FAFBFC; --fp-ink: #13202B; --fp-muted: #5B6B78;
  --fp-line: #DCE3E8; --fp-line-strong: #C3CED6; --fp-track: #E7ECF0;
  --fp-banker: #15803D; --fp-value: #2457D6; --fp-upset: #B45309; --fp-avoid: #BE123C;
  --fp-won: #15803D; --fp-lost: #BE123C;
  --fp-radius: 14px; --fp-radius-sm: 8px;
  --bs-body-font-family: var(--fp-body); --bs-body-font-size: 1.0625rem; --bs-body-line-height: 1.5;
  --bs-body-bg: var(--fp-paper); --bs-body-color: var(--fp-ink); --bs-secondary-color: var(--fp-muted);
  --bs-border-color: var(--fp-line); --bs-emphasis-color: var(--fp-ink);
  --bs-primary: var(--fp-accent); --bs-primary-rgb: var(--fp-accent-rgb);
  --bs-link-color: var(--fp-link); --bs-link-color-rgb: var(--fp-link-rgb);
  --bs-link-hover-color: var(--fp-link); --bs-focus-ring-color: rgba(var(--fp-accent-rgb), .35);
}
[data-bs-theme=dark] {
  --fp-paper: #0D1821; --fp-surface: #13232F; --fp-raised: #172A38; --fp-ink: #E7EEF3; --fp-muted: #93A4B1;
  --fp-line: #233747; --fp-line-strong: #2F4659; --fp-track: #1D3141;
  --fp-banker: #4ADE80; --fp-value: #8AB0FF; --fp-upset: #F5B14C; --fp-avoid: #FB7185;
  --fp-won: #4ADE80; --fp-lost: #FB7185;
  --bs-body-bg: var(--fp-paper); --bs-body-color: var(--fp-ink); --bs-secondary-color: var(--fp-muted);
  --bs-border-color: var(--fp-line); --bs-emphasis-color: var(--fp-ink);
  --bs-tertiary-bg: var(--fp-raised); --bs-secondary-bg: var(--fp-raised);
}

body { font-feature-settings: "tnum" 1, "lnum" 1; -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, .fp-display { font-family: var(--fp-display); font-weight: 700; letter-spacing: .005em;
  line-height: 1.05; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; font-weight: 600; }
.fp-num { font-family: var(--fp-display); font-variant-numeric: tabular-nums; font-weight: 600; }
.text-muted, .fp-muted { color: var(--fp-muted) !important; }
a { text-underline-offset: .18em; }
.fp-measure { max-width: 68ch; }
::selection { background: rgba(var(--fp-accent-rgb), .25); }
:focus-visible { outline: 3px solid rgba(var(--fp-accent-rgb), .6); outline-offset: 2px; }

/* --- Bootstrap components wearing the accent ------------------------------------------------------------ */
.btn-primary { --bs-btn-bg: var(--fp-accent); --bs-btn-border-color: var(--fp-accent); --bs-btn-color: var(--fp-on-accent);
  --bs-btn-hover-bg: var(--fp-accent-hover); --bs-btn-hover-border-color: var(--fp-accent-hover);
  --bs-btn-hover-color: var(--fp-on-accent); --bs-btn-active-bg: var(--fp-accent-active);
  --bs-btn-active-border-color: var(--fp-accent-active); --bs-btn-active-color: var(--fp-on-accent);
  --bs-btn-disabled-bg: var(--fp-accent); --bs-btn-disabled-border-color: var(--fp-accent);
  --bs-btn-focus-shadow-rgb: var(--fp-accent-rgb); font-weight: 600; }
.btn-outline-primary { --bs-btn-color: var(--fp-link); --bs-btn-border-color: var(--fp-accent);
  --bs-btn-hover-bg: var(--fp-accent); --bs-btn-hover-border-color: var(--fp-accent); --bs-btn-hover-color: var(--fp-on-accent);
  --bs-btn-active-bg: var(--fp-accent-active); --bs-btn-active-color: var(--fp-on-accent);
  --bs-btn-focus-shadow-rgb: var(--fp-accent-rgb); font-weight: 600; }
.btn-ghost { --bs-btn-color: var(--fp-ink); --bs-btn-hover-bg: var(--fp-track); --bs-btn-hover-color: var(--fp-ink);
  --bs-btn-active-bg: var(--fp-track); border: 0; }
.btn { --bs-btn-border-radius: 999px; padding-inline: 1.05rem; }
.btn-sm { padding-inline: .8rem; }
.form-control, .form-select { background-color: var(--fp-surface); border-color: var(--fp-line-strong);
  color: var(--fp-ink); border-radius: var(--fp-radius-sm); }
.form-control:focus, .form-select:focus { border-color: var(--fp-accent); box-shadow: 0 0 0 .2rem rgba(var(--fp-accent-rgb), .2);
  background-color: var(--fp-surface); color: var(--fp-ink); }
.form-check-input:checked { background-color: var(--fp-accent); border-color: var(--fp-accent); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(var(--fp-accent-rgb), .2); border-color: var(--fp-accent); }
.nav-pills .nav-link.active { background: var(--fp-accent); color: var(--fp-on-accent); }
.dropdown-menu { --bs-dropdown-bg: var(--fp-surface); --bs-dropdown-border-color: var(--fp-line);
  --bs-dropdown-link-color: var(--fp-ink); --bs-dropdown-link-hover-bg: var(--fp-track);
  --bs-dropdown-link-active-bg: var(--fp-accent); --bs-dropdown-link-active-color: var(--fp-on-accent);
  box-shadow: 0 18px 40px -18px rgba(8, 20, 30, .45); border-radius: var(--fp-radius); }
.alert { border-radius: var(--fp-radius-sm); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--fp-ink); --bs-table-border-color: var(--fp-line); }

/* --- Masthead ------------------------------------------------------------------------------------------- */
.fp-mast { background: var(--fp-surface); border-bottom: 1px solid var(--fp-line); position: sticky; top: 0; z-index: 1030; }
.fp-mast::before { content: ""; display: block; height: 4px; background: var(--fp-accent); }
.fp-brand { font-family: var(--fp-display); font-weight: 700; font-size: 1.65rem; color: var(--fp-ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; letter-spacing: .01em; }
.fp-brand-mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--fp-accent);
  display: inline-grid; place-items: center; color: var(--fp-on-accent); font-size: .95rem; }
.fp-nav .nav-link { white-space: nowrap; color: var(--fp-muted); font-weight: 600; padding: .9rem .75rem; border-bottom: 3px solid transparent;
  margin-bottom: -1px; }
.fp-nav .nav-link:hover { color: var(--fp-ink); }
.fp-nav .nav-link.active { color: var(--fp-ink); border-bottom-color: var(--fp-accent); }
.fp-nav-mobile { overflow-x: auto; scrollbar-width: none; }
.fp-nav-mobile::-webkit-scrollbar { display: none; }

.fp-status { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--fp-muted);
  white-space: nowrap; }
.fp-status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--fp-banker);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fp-banker) 22%, transparent); }
.fp-status.is-degraded .fp-status-dot { background: var(--fp-upset);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fp-upset) 25%, transparent); }

/* --- Colour picker ---------------------------------------------------------------------------------------- */
.fp-swatch-btn { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--fp-line-strong);
  background: conic-gradient(var(--fp-accent) 0 50%, var(--fp-ink) 50% 100%); padding: 0; }
.fp-picker { width: 19rem; padding: 1rem; }
.fp-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.fp-swatch { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--sw); position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.fp-swatch[aria-pressed=true]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--fp-ink); }
.fp-custom-color { width: 2.6rem; height: 2.6rem; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.fp-custom-color::-webkit-color-swatch-wrapper { padding: 0; }
.fp-custom-color::-webkit-color-swatch { border-radius: 50%; border: 1px solid var(--fp-line-strong); }
.fp-segment { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--fp-track); border-radius: 999px; padding: 3px; }
.fp-segment input { position: absolute; opacity: 0; pointer-events: none; }
.fp-segment label { text-align: center; padding: .3rem .4rem; border-radius: 999px; font-size: .9rem; cursor: pointer; font-weight: 600; color: var(--fp-muted); }
.fp-segment input:checked + label { background: var(--fp-surface); color: var(--fp-ink); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.fp-segment input:focus-visible + label { outline: 2px solid var(--fp-accent); }

/* --- Panels: one radius for page panels, rows inside them are flat -------------------------------------- */
.fp-panel { background: var(--fp-surface); border: 1px solid var(--fp-line); border-radius: var(--fp-radius); }
.fp-panel-head { padding: 1rem 1.25rem .75rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fp-panel-head h2, .fp-panel-head h3 { margin: 0; }
.fp-panel-body { padding: 0 1.25rem 1.25rem; }
.fp-divide > * + * { border-top: 1px solid var(--fp-line); }

/* --- Board: the date, as a matchday programme cover --------------------------------------------------- */
.fp-day { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.fp-day-name { font-family: var(--fp-display); font-weight: 700; font-size: clamp(3rem, 2rem + 4.5vw, 5.6rem);
  line-height: .85; letter-spacing: -.01em; }
.fp-day-meta { color: var(--fp-muted); padding-bottom: .4rem; }
.fp-day-nav .btn { width: 2.4rem; height: 2.4rem; padding: 0; display: inline-grid; place-items: center; }

.fp-fixture { display: grid; grid-template-columns: 4.2rem minmax(0, 1.25fr) minmax(0, 1.6fr) auto; gap: .25rem 1.1rem;
  align-items: center; padding: .95rem 1.25rem; position: relative; }
.fp-fixture:hover { background: var(--fp-raised); }
.fp-kick { font-family: var(--fp-display); font-weight: 600; font-size: 1.55rem; line-height: 1; }
.fp-kick small { display: block; font-family: var(--fp-body); font-size: .75rem; font-weight: 600; color: var(--fp-muted); margin-top: .2rem; }
.fp-teams { font-family: var(--fp-display); font-weight: 600; font-size: 1.3rem; line-height: 1.12; min-width: 0; }
.fp-teams a { color: inherit; text-decoration: none; }
.fp-teams a::after { content: ""; position: absolute; inset: 0; }  /* whole row opens the match */
.fp-teams span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-teams .fp-league { font-family: var(--fp-body); font-size: .8rem; font-weight: 600; color: var(--fp-muted); }
.fp-score { font-family: var(--fp-display); font-weight: 700; font-size: 1.5rem; }
.fp-teaser { grid-column: 2 / -1; color: var(--fp-muted); font-size: .95rem; margin: 0; }
.fp-teaser .fp-lock-link { position: relative; z-index: 2; white-space: nowrap; }
.fp-row-tools { position: relative; z-index: 2; display: flex; align-items: center; gap: .35rem; }

/* The signature: us against the bookmaker on one track. Accent bar = our probability, ink tick = market. */
.fp-gauge { min-width: 0; }
.fp-gauge-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem; flex-wrap: wrap; }
.fp-pickname { font-weight: 700; }
.fp-track { position: relative; height: .7rem; border-radius: 999px; background: var(--fp-track); }
.fp-track-us { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--fp-accent); }
.fp-track-us.is-split { border-radius: 999px 0 0 999px; }
.fp-track-edge { position: absolute; top: 0; bottom: 0; border-radius: 0 999px 999px 0; background: repeating-linear-gradient(135deg,
  var(--fp-accent) 0 2px, rgba(var(--fp-accent-rgb), .16) 2px 6px);
  box-shadow: inset 0 0 0 1px rgba(var(--fp-accent-rgb), .55); }
.fp-track-mkt { position: absolute; top: -.25rem; bottom: -.25rem; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--fp-ink); }
.fp-gauge-legend { display: flex; gap: .9rem; font-size: .85rem; color: var(--fp-muted); margin-top: .35rem; flex-wrap: wrap; }
.fp-gauge-legend b { color: var(--fp-ink); font-family: var(--fp-display); font-size: 1rem; }
.fp-edge-pos { color: var(--fp-banker); }
.fp-edge-neg { color: var(--fp-avoid); }

@media (max-width: 767.98px) {
  .fp-fixture { grid-template-columns: 3.4rem minmax(0, 1fr) auto; padding: .9rem 1rem; }
  .fp-gauge { grid-column: 1 / -1; }
  .fp-teaser { grid-column: 1 / -1; }
  .fp-kick { font-size: 1.3rem; }
  .fp-row-tools { grid-column: 3; grid-row: 1; }
}

/* --- Tags: icon + word, never colour alone ----------------------------------------------------------------- */
.fp-tag { --c: var(--fp-muted); display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700;
  padding: .15rem .55rem .15rem .45rem; border-radius: 999px; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  white-space: nowrap; line-height: 1.35; }
.fp-tag--banker { --c: var(--fp-banker); } .fp-tag--value { --c: var(--fp-value); }
.fp-tag--upset { --c: var(--fp-upset); } .fp-tag--avoid { --c: var(--fp-avoid); }
.fp-tag.lg { font-size: .95rem; padding: .25rem .75rem .25rem .6rem; }
.fp-result { font-weight: 700; font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; }
.fp-result--won { color: var(--fp-won); background: color-mix(in srgb, var(--fp-won) 14%, transparent); }
.fp-result--lost { color: var(--fp-lost); background: color-mix(in srgb, var(--fp-lost) 14%, transparent); }
.fp-result--void { color: var(--fp-muted); background: var(--fp-track); }
.fp-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; padding: .15rem .6rem;
  border-radius: 999px; background: var(--fp-track); color: var(--fp-muted); white-space: nowrap; }
.fp-chip.on { background: rgba(var(--fp-accent-rgb), .14); color: var(--fp-link); }
.fp-chip.off { text-decoration: line-through; opacity: .7; }

/* --- Locks: honest teasers, never hidden data ------------------------------------------------------------------ */
.fp-locked { position: relative; border-radius: var(--fp-radius-sm); overflow: hidden; }
.fp-ghost-row { display: grid; grid-template-columns: 3rem 1fr 4rem; gap: 1rem; align-items: center; padding: .7rem 0; }
.fp-ghost-bar { height: .7rem; border-radius: 999px; background: var(--fp-track); }
.fp-ghost-row:nth-child(3n) .fp-ghost-bar.w { width: 72%; } .fp-ghost-row:nth-child(3n+1) .fp-ghost-bar.w { width: 88%; }
.fp-ghost-row:nth-child(3n+2) .fp-ghost-bar.w { width: 60%; }
.fp-lock-veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--fp-surface) 35%, transparent), var(--fp-surface) 70%); }
.fp-lock-veil .bi-lock-fill { font-size: 1.4rem; color: var(--fp-link); }
.fp-lock-inline { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }

/* --- Match page ------------------------------------------------------------------------------------------------ */
.fp-matchhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; text-align: center; }
.fp-matchhead .team { font-family: var(--fp-display); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); line-height: 1; }
.fp-matchhead .mid { font-family: var(--fp-display); font-weight: 700; font-size: clamp(2rem, 1.3rem + 3vw, 3.8rem); }
.fp-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.fp-three .cell { border: 1px solid var(--fp-line); border-radius: var(--fp-radius-sm); padding: .75rem .9rem; }
.fp-three .cell.is-pick { border-color: var(--fp-accent); box-shadow: inset 0 0 0 1px var(--fp-accent); }
.fp-big { font-family: var(--fp-display); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.fp-why { counter-reset: none; padding-left: 0; list-style: none; margin: 0; }
.fp-why li { padding: .55rem 0 .55rem 1.1rem; border-left: 3px solid var(--fp-line); margin-left: .1rem; }
.fp-why li:first-child { border-left-color: var(--fp-accent); font-weight: 600; }

.fp-wf-row { display: grid; grid-template-columns: minmax(0, 13rem) 1fr 4.2rem; gap: .75rem; align-items: center; padding: .35rem 0; font-size: .95rem; }
.fp-wf-track { position: relative; height: .8rem; }
.fp-wf-track::before { content: ""; position: absolute; left: 50%; top: -.3rem; bottom: -.3rem; width: 1px; background: var(--fp-line-strong); }
.fp-wf-bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.fp-wf-bar.up { left: 50%; background: var(--fp-accent); }
.fp-wf-bar.down { right: 50%; background: var(--fp-avoid); opacity: .8; }
.fp-heat { border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
.fp-heat th { font-size: .8rem; color: var(--fp-muted); font-weight: 600; text-align: center; padding: 0 .2rem; }
.fp-heat td { width: 3rem; height: 2.4rem; text-align: center; border-radius: 6px; font-size: .78rem; font-weight: 600;
  background: rgba(var(--fp-accent-rgb), var(--a)); color: var(--fp-ink); }
.fp-heat td.hot { color: var(--fp-on-accent); }
.fp-timeline { list-style: none; padding: 0; margin: 0; }
.fp-timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; }
.fp-timeline li::before { content: ""; position: absolute; left: .32rem; top: .5rem; bottom: -.2rem; width: 2px; background: var(--fp-line); }
.fp-timeline li:last-child::before { display: none; }
.fp-timeline .dot { position: absolute; left: 0; top: .3rem; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--fp-surface); border: 3px solid var(--fp-accent); }
.fp-market-group + .fp-market-group { margin-top: 1.25rem; }
.fp-market { padding: .8rem 0; border-top: 1px solid var(--fp-line); }
.fp-market summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .75rem; align-items: center; }
.fp-market summary::-webkit-details-marker { display: none; }
.fp-market summary::after { content: "\F282"; font-family: bootstrap-icons; color: var(--fp-muted); transition: transform .15s; }
.fp-market[open] summary::after { transform: rotate(180deg); }
.fp-market .fp-why { margin-top: .6rem; }

/* --- Newsroom -------------------------------------------------------------------------------------------------- */
.fp-event { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .8rem; padding: .85rem 0; align-items: start; }
.fp-event-icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--fp-accent-rgb), .12); color: var(--fp-link); font-size: 1.05rem; }
.fp-event time { color: var(--fp-muted); font-size: .85rem; white-space: nowrap; }
.fp-event .what { font-weight: 600; }
.fp-event.fp-new { animation: fp-arrive 1.2s ease-out; }
@keyframes fp-arrive { from { background: rgba(var(--fp-accent-rgb), .18); } to { background: transparent; } }

/* --- Slips ---------------------------------------------------------------------------------------------------- */
.fp-slip-num { font-family: var(--fp-display); font-weight: 700; font-size: 2.6rem; line-height: .95; }
.fp-slip-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem; }
.fp-slip-stats dt { font-size: .82rem; color: var(--fp-muted); font-weight: 600; }
.fp-slip-stats dd { margin: 0; font-family: var(--fp-display); font-size: 1.45rem; font-weight: 600; }
.fp-leg { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .2rem .8rem; padding: .7rem 0; align-items: start; }
.fp-leg-n { font-family: var(--fp-display); font-weight: 700; color: var(--fp-muted); font-size: 1.2rem; }
.fp-leg .why { grid-column: 2 / -1; font-size: .9rem; color: var(--fp-muted); }
.fp-variant-name { font-family: var(--fp-display); font-weight: 700; font-size: 1.6rem; }

/* --- Ledger ---------------------------------------------------------------------------------------------------- */
.fp-hash { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: .82rem; word-break: break-all; }
.fp-chain { display: grid; gap: .5rem; }
.fp-sealed { color: var(--fp-muted); display: inline-flex; gap: .35rem; align-items: center; }
pre.fp-payload { background: var(--fp-raised); border: 1px solid var(--fp-line); border-radius: var(--fp-radius-sm);
  padding: .9rem; font-size: .8rem; max-height: 26rem; overflow: auto; }

/* --- Footer ---------------------------------------------------------------------------------------------------- */
.fp-foot { border-top: 1px solid var(--fp-line); background: var(--fp-surface); color: var(--fp-muted); font-size: .92rem; margin-top: 3rem; }
.fp-foot a { color: var(--fp-ink); }
.fp-18 { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 2px solid var(--fp-ink); color: var(--fp-ink); font-family: var(--fp-display); font-weight: 700; }

/* --- Small helpers ------------------------------------------------------------------------------------------------ */
.fp-kpi { font-family: var(--fp-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.fp-kpi-label { font-size: .85rem; color: var(--fp-muted); }
.fp-motd { border-top: 4px solid var(--fp-accent); }
.htmx-request .fp-spin, .htmx-request.fp-spin { opacity: 1 !important; }
.fp-spin { opacity: 0; transition: opacity .2s; }
.htmx-request.fp-dim, .htmx-request .fp-dim { opacity: .55; transition: opacity .2s; }
.fp-empty { text-align: center; padding: 2.5rem 1rem; color: var(--fp-muted); }
.fp-empty .bi { font-size: 2rem; display: block; margin-bottom: .5rem; color: var(--fp-line-strong); }
.fp-auth { max-width: 26rem; margin: 3rem auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .fp-mast, .fp-foot, .fp-row-tools { display: none !important; } }

/* --- Team search in the masthead ---------------------------------------------------------------------------- */
.fp-search { width: 12rem; }
.fp-search .form-control { border-radius: 999px; padding-left: .9rem; }
.fp-search #fp-q-results:empty { display: none; }
.fp-search #fp-q-results { top: 110%; }
.fp-search #fp-q-results { left: auto; right: 0; min-width: 22rem; }
.fp-mast .btn, .fp-brand { white-space: nowrap; }
.fp-nav { flex-wrap: nowrap; }
