/* ==========================================================================
   ORACLO editorial redesign
   Navy hero, lime accents, warm paper surfaces and generous whitespace.
   This file loads after styles.css and intentionally overrides the dashboard
   theme while leaving the forecast engine, fatigue UI and data flow untouched.
   ========================================================================== */

:root {
  --navy: #07152f;
  --navy-deep: #040c1c;
  --navy-2: #0e1e3d;
  --navy-3: #182a50;
  --paper: #f5f3ec;
  --paper-2: #ffffff;
  --ink: #0a1730;
  --ink-mut: #5b6475;
  --mut: #5b6475;
  --mut-2: #79818e;
  --txt: #0a1730;
  --panel: #ffffff;
  --panel-2: #efece3;
  --line: #dedbd1;
  --line-2: #c8c4b8;
  --lime: #b9f227;
  --lime-soft: rgba(185, 242, 39, 0.15);
  --coral: #f45b4f;
  --coral-soft: rgba(244, 91, 79, 0.1);
  --gold: #c48a16;
  --green: #4b7b16;
  --red: #c43a30;
  --radius: 12px;
  --shadow: 0 18px 46px rgba(7, 21, 47, 0.09);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--navy);
}

.bg-grid {
  display: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(185, 242, 39, 0.8);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--lime);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ chrome */

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 15px clamp(18px, 3.5vw, 42px);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 20px rgba(185, 242, 39, 0.2));
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong,
.brand-text .wordmark {
  display: block;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
}

.brand-text .dotlive {
  color: var(--coral);
}

.brand-text small {
  color: #aab5cb;
  letter-spacing: 0.16em;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d5dceb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(185, 242, 39, 0.13);
}

.utility-menu {
  position: relative;
}

.utility-toggle,
.more-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.23);
  background: transparent;
  color: #fff;
  padding: 9px 13px;
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.utility-toggle::-webkit-details-marker,
.more-toggle::-webkit-details-marker {
  display: none;
}

.utility-toggle:hover,
.utility-menu[open] .utility-toggle {
  border-color: var(--lime);
  color: var(--lime);
}

.utility-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(350px, calc(100vw - 32px));
  padding: 20px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(4, 12, 28, 0.28);
  display: grid;
  gap: 14px;
  z-index: 100;
}

.utility-menu:not([open]) .utility-panel {
  display: none;
}

.utility-head .eyebrow {
  margin-bottom: 5px;
}

.utility-head p {
  margin: 0;
  color: var(--ink-mut);
  font-size: 12px;
  line-height: 1.5;
}

.utility-panel .field {
  display: grid;
  gap: 5px;
}

.utility-panel .field > span {
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.utility-panel select,
.utility-panel input {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  width: 100%;
}

.utility-panel select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230A1730' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 7px;
  appearance: none;
  padding-right: 32px;
}

.utility-panel select option,
.utility-panel select optgroup {
  background: #fff;
  color: var(--ink);
}

.utility-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.utility-buttons .btn {
  padding: 8px 11px;
  font-size: 12px;
}

/* --------------------------------------------------------------- navigation */

.tabs {
  position: sticky;
  top: var(--topbar-height, 75px);
  z-index: 70;
  display: block;
  overflow: visible;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(7, 21, 47, 0.04);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(10px, 3vw, 36px);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #4d576a;
  padding: 16px 14px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.tab:hover {
  color: var(--navy);
}

.tab.active {
  color: var(--navy);
  border-bottom-color: var(--lime);
  font-weight: 800;
}

.more-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
}

.more-toggle {
  align-self: center;
  margin: 7px 0;
  border-color: var(--line);
  color: var(--navy);
  background: var(--paper);
}

.more-toggle:hover,
.more-menu[open] .more-toggle,
.more-toggle.active {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--lime);
}

.more-panel {
  position: fixed;
  top: calc(var(--topbar-height, 75px) + 58px);
  right: clamp(12px, 3vw, 40px);
  width: 238px;
  display: grid;
  gap: 2px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(4, 12, 28, 0.22);
  z-index: 120;
}

.more-menu:not([open]) .more-panel {
  display: none;
}

.more-label {
  padding: 4px 10px 8px;
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.more-panel .tab {
  text-align: left;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  font-size: 12.5px;
}

.more-panel .tab:hover,
.more-panel .tab.active {
  background: var(--paper);
  color: var(--navy);
  border: 0;
}

/* ------------------------------------------------------------------- shell */

.view {
  --view-pad: clamp(16px, 4vw, 48px);
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--view-pad) 64px;
}

.loading {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 50vh;
  color: var(--ink-mut);
}

.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.eyebrow {
  display: block;
  color: var(--ink-mut);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--lime);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--navy);
  padding: 1px 0;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.text-link:hover {
  border-bottom-color: var(--navy);
}

.btn {
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--navy);
}

.btn.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
  font-weight: 800;
}

.btn.primary:hover {
  background: #c9fb48;
  border-color: #c9fb48;
}

.btn.ghost {
  background: transparent;
}

.btn.ghost.light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn.ghost.light:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn.large {
  padding: 13px 19px;
  font-size: 13.5px;
}

.btn.active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.btn.wide {
  width: 100%;
  margin-top: 18px;
}

.btn.small {
  padding: 6px 10px;
  font-size: 11.5px;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--navy);
  color: #fff;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 38px clamp(18px, 4vw, 48px) 26px;
}

.footer-brand {
  max-width: 440px;
}

.footer-wordmark {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.footer-wordmark span {
  color: var(--coral);
}

.footer-brand p {
  margin: 0;
  color: #aab5cb;
  font-size: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 7px 18px;
  max-width: 430px;
}

.footer-links button {
  border: 0;
  background: transparent;
  color: #d6deee;
  padding: 2px 0;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-links button:hover {
  color: var(--lime);
}

.statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px clamp(18px, 4vw, 48px) 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #7c8aa7;
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.statusbar .grow {
  flex: 1;
}

/* ----------------------------------------------------------------- homepage */

.home-hero {
  position: relative;
  isolation: isolate;
  width: calc(100% + (var(--view-pad) * 2));
  margin-left: calc(-1 * var(--view-pad));
  margin-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(680px 400px at 92% -10%, rgba(185, 242, 39, 0.16), transparent 64%),
    linear-gradient(135deg, #07152f 0%, #040c1c 82%);
  color: #fff;
}

.hero-field {
  position: absolute;
  inset: 0 0 0 52%;
  z-index: -1;
  opacity: 0.34;
  pointer-events: none;
}

.hero-field::before {
  content: "";
  position: absolute;
  inset: 8% -8% 8% 4%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.hero-field::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 31%;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-field span {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(185, 242, 39, 0.28);
  border-radius: 50%;
}

.hero-field span:nth-child(1) {
  right: 13%;
  top: 16%;
}

.hero-field span:nth-child(2) {
  left: 45%;
  bottom: 12%;
  width: 74px;
  height: 74px;
}

.hero-field span:nth-child(3) {
  right: 31%;
  bottom: 22%;
  width: 18px;
  height: 18px;
  background: var(--coral);
  border: 0;
}

.hero-stadium {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 118%, rgba(185, 242, 39, 0.18), transparent 62%),
    radial-gradient(90% 70% at 50% -12%, rgba(126, 158, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #081a38 0%, #040c1c 84%);
}

.hero-stadium::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18%;
  transform: translateX(-50%);
  width: 150%;
  max-width: 1120px;
  height: 62%;
  background: linear-gradient(180deg, rgba(185, 242, 39, 0.16), rgba(13, 25, 48, 0.96) 76%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-stadium::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 100% 12.5%, 8.33% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 78%);
  mask-image: linear-gradient(180deg, transparent, #000 78%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 86px) clamp(16px, 4vw, 48px) clamp(46px, 6vw, 74px);
}

.hero-copy h1 {
  max-width: 790px;
  margin: 15px 0 0;
  font-size: clamp(44px, 6.5vw, 82px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-dek {
  max-width: 570px;
  margin: 20px 0 0;
  color: #c7d0e2;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #aeb9cf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta b {
  color: var(--lime);
  font-size: 15px;
  margin-right: 3px;
}

.hero-side {
  min-width: 0;
}

.hero-pick {
  display: block;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hero-pick:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
}

.hero-pick.is-empty {
  display: grid;
  gap: 8px;
  min-height: 210px;
  align-content: center;
}

.hero-pick.is-empty strong {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-pick.is-empty p {
  margin: 0;
  color: #b9c4d8;
  font-size: 12.5px;
}

.hero-pick-head,
.hero-pick-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #bcc7da;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-pick-head span:last-child {
  color: var(--lime);
}

.hero-pick-teams {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 17px;
  font-size: clamp(21px, 2.7vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-pick-teams span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-pick-probs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-pick-probs span {
  display: grid;
  gap: 1px;
  padding: 10px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
}

.hero-pick-probs span:last-child {
  border-right: 0;
}

.hero-pick-probs b {
  color: #fff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.hero-pick-probs em {
  color: #9ba9c2;
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-pick-foot {
  margin-top: 13px;
}

.hero-pick-foot b {
  color: var(--lime);
}

.hero-note {
  margin: 12px 2px 0;
  color: #8c9ab5;
  font-size: 10.5px;
  line-height: 1.55;
}

.home-body {
  padding-top: 22px;
}

/* date rail + competition filters */

.matchday-bar {
  margin-bottom: 12px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

.matchday-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.matchday-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.matchday-title strong {
  font-size: 13px;
  color: var(--ink);
}

.md-eyebrow {
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.matchday-rail {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.rail-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(58px, 1fr));
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.rail-arrow {
  width: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.rail-arrow:hover:not(:disabled) {
  border-color: var(--navy);
  background: #fff;
}

.rail-arrow:disabled {
  opacity: 0.35;
}

.day-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 58px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-mut);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.day-chip:hover {
  border-color: var(--navy);
  color: var(--ink);
}

.day-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.day-chip.active .dc-rel,
.day-chip.active .dc-mon {
  color: var(--lime);
  opacity: 1;
}

.day-chip.today:not(.active) {
  border-color: var(--navy);
}

.day-chip.today:not(.active) .dc-rel {
  color: var(--navy);
}

.dc-rel {
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.day-chip strong {
  font-size: 17px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.dc-mon {
  color: var(--ink-mut);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comp-filter {
  margin: 12px 0 26px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.comp-filter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.comp-filter-note {
  color: var(--ink-mut);
  font-size: 10px;
}

.comp-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.comp-chip {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-mut);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
  white-space: nowrap;
}

.comp-chip b {
  margin-left: 4px;
  color: var(--ink-mut);
}

.comp-chip:hover {
  border-color: var(--navy);
  color: var(--ink);
}

.comp-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.comp-chip.active b {
  color: var(--lime);
}

/* section system */

.home-section,
.prediction-section,
.league-directory {
  margin-top: 36px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.section-heading p {
  max-width: 640px;
  margin: 5px 0 0;
  color: var(--ink-mut);
  font-size: 12.5px;
  line-height: 1.5;
}

.section-action {
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.row-count {
  color: var(--ink-mut);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* top match cards */

.top-match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.top-match-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.top-match-card:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  box-shadow: 0 14px 34px rgba(7, 21, 47, 0.08);
}

.top-match-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.top-rank {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.top-comp {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-match-top .status-pill {
  margin-left: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.live {
  border-color: rgba(244, 91, 79, 0.45);
  color: var(--red);
}

.top-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin: 18px 0 16px;
  font-size: 18px;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.top-v {
  color: var(--ink-mut);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-prob-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.top-prob-row span {
  display: grid;
  gap: 1px;
  padding: 8px 0;
  border-right: 1px solid var(--line);
  text-align: center;
}

.top-prob-row span:last-child {
  border-right: 0;
}

.top-prob-row b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.top-prob-row em {
  color: var(--ink-mut);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.top-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-pick span {
  color: var(--ink-mut);
}

.top-pick strong {
  color: var(--ink);
}

.top-pick em {
  margin-left: auto;
  color: var(--ink-mut);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

/* compact prediction rows */

.pred-group {
  margin-top: 12px;
}

.pred-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 7px;
  border-bottom: 1px solid var(--line);
}

.pred-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pred-group-head span {
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pred-list {
  display: grid;
}

.pred-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1.3fr) 160px 110px 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, padding 0.14s ease;
}

.pred-row:hover {
  background: rgba(255, 255, 255, 0.72);
  padding-left: 8px;
  padding-right: 8px;
}

.pred-time {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pred-time b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pred-time small {
  overflow: hidden;
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pred-fixture {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  line-height: 1.25;
}

.pred-fixture strong {
  font-size: 14px;
  letter-spacing: -0.015em;
}

.pred-vs {
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.pred-fixture small {
  flex-basis: 100%;
  overflow: hidden;
  color: var(--ink-mut);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pred-probs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pred-probs > span {
  display: grid;
  gap: 1px;
  padding: 4px 5px;
  border-radius: 4px;
  text-align: center;
}

.pred-probs b {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pred-probs em {
  color: var(--ink-mut);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pred-probs > span.is-pick {
  background: var(--lime-soft);
}

.pred-probs > span.is-pick b {
  color: var(--ink);
}

.pred-pick {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pred-pick span {
  overflow: hidden;
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pred-pick b {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pred-pick small {
  color: var(--ink-mut);
  font-size: 9px;
}

.pred-arrow {
  color: var(--ink-mut);
  font-size: 16px;
  text-align: right;
  transition: transform 0.16s ease, color 0.16s ease;
}

.pred-row:hover .pred-arrow {
  transform: translateX(3px);
  color: var(--navy);
}

.pred-row.is-unavailable .pred-probs {
  display: flex;
}

.pred-row.is-unavailable .pred-probs span {
  display: grid;
  text-align: left;
}

.pred-probs.unavailable b {
  font-size: 10.5px;
  color: var(--ink-mut);
}

.result-row .pred-probs.result-label {
  display: flex;
}

.result-row .pred-probs.result-label span {
  display: grid;
  text-align: left;
}

.result-row .pred-probs.result-label b {
  font-size: 14px;
  font-weight: 800;
}

/* empty states */

.honest-empty,
.discovery-empty,
.panel-empty {
  padding: 24px 22px;
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--ink-mut);
}

.honest-empty strong,
.discovery-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.honest-empty p,
.discovery-empty p,
.panel-empty p {
  max-width: 620px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.discovery-empty .text-link {
  margin-top: 10px;
}

.empty-day {
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: #fff;
}

.empty-day .empty {
  color: var(--ink-mut);
}

.empty-day .empty strong {
  color: var(--ink);
}

/* editorial panels */

.editorial-section {
  margin-top: 42px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.editorial-panel,
.editorial-news {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.editorial-panel {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  color: var(--ink);
  text-decoration: none;
}

a.editorial-panel:hover {
  border-color: var(--navy);
}

.editorial-panel.feature-story {
  background: linear-gradient(160deg, #0b1b3a 0%, #07152f 100%);
  border: 1px solid rgba(185, 242, 39, 0.38);
  border-top: 3px solid var(--lime);
  color: #fff;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
}

.editorial-panel.feature-story h2 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.editorial-panel.feature-story p {
  color: #c7d0e2;
}

.editorial-panel.feature-story .story-read {
  color: var(--lime);
}

.editorial-panel.feature-story:hover {
  border-color: var(--lime);
}

.editorial-panel.is-empty {
  background: linear-gradient(160deg, #fff 0%, #f1efe6 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--lime);
}

.editorial-panel h2 {
  margin: 13px 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(25px, 3.1vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.editorial-panel.is-empty h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(24px, 2.7vw, 31px);
}

.editorial-panel p {
  max-width: 640px;
  margin: 0 0 18px;
  color: var(--ink-mut);
  font-size: 12.5px;
  line-height: 1.6;
}

.editorial-panel .btn {
  align-self: flex-start;
  margin-top: auto;
}

.story-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-rule .eyebrow {
  margin: 0;
}

.story-dek {
  max-width: 650px;
  color: #3d475b !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.story-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.feature-story:hover .story-read {
  color: #527d0d;
}

.editorial-news {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 12px;
}

.news-mini-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.news-mini {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.news-mini:last-child {
  border-bottom: 0;
}

.news-mini-date {
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-mini strong {
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.news-mini p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-mut);
  font-size: 11px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-mini:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-empty-mini {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding-top: 2px;
}

.news-empty-mini strong {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.news-empty-mini p {
  margin: 0 0 8px;
  color: var(--ink-mut);
  font-size: 12px;
  line-height: 1.55;
}

.news-empty-mini .text-link {
  font-size: 9.5px;
}

.editorial-skeleton,
.news-mini-skeleton {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.editorial-skeleton span,
.news-mini-skeleton span {
  display: block;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eeebe2, #f8f6f0, #eeebe2);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.editorial-skeleton span:nth-child(1) {
  width: 70%;
  height: 25px;
}

.editorial-skeleton span:nth-child(3) {
  width: 52%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* discovery grid */

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.discovery-panel {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 12px;
}

.discovery-panel:nth-child(1) {
  border-top-color: var(--lime);
}

.discovery-panel:nth-child(2) {
  border-top-color: var(--navy);
}

.discovery-panel:nth-child(3) {
  border-top-color: var(--coral);
}

.discovery-panel:nth-child(4) {
  border-top-color: var(--lime);
}

.discovery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.discovery-head .eyebrow {
  margin: 0;
}

.discovery-head .text-link {
  font-size: 9px;
}

.league-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.league-guide {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.league-guide:hover {
  border-color: var(--navy);
  background: #fff;
}

.league-guide.is-focus {
  border-color: var(--navy);
  box-shadow: inset 3px 0 0 var(--lime);
}

.league-guide-country {
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.league-guide strong {
  overflow: hidden;
  font-size: 12px;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-guide-meta {
  color: var(--ink-mut);
  font-size: 9px;
}

.team-insight-list {
  display: grid;
}

.team-insight {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.team-insight:last-child {
  border-bottom: 0;
}

.team-rank {
  width: 16px;
  color: var(--ink-mut);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.team-avatar.small {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  font-size: 7px;
}

.team-insight-name {
  display: grid;
  min-width: 0;
  gap: 0;
}

.team-insight-name strong {
  overflow: hidden;
  font-size: 12.5px;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-insight-name small {
  color: var(--ink-mut);
  font-size: 9px;
}

.team-points {
  display: grid;
  justify-items: end;
  margin-left: auto;
}

.team-points b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.team-points small {
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journal-preview {
  display: grid;
  gap: 4px;
}

.journal-preview strong {
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.journal-preview p {
  margin: 0 0 5px;
  color: var(--ink-mut);
  font-size: 11.5px;
  line-height: 1.55;
}

.stats-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stats-preview > div {
  display: grid;
  gap: 1px;
  padding: 8px;
  border-radius: 7px;
  background: var(--paper);
}

.stats-preview span {
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-preview b {
  font-size: 18px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stats-preview small {
  color: var(--ink-mut);
  font-size: 8.5px;
}

.stats-preview .text-link {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
  font-size: 9px;
}

/* --------------------------------------------------------------- predictions */

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0 22px;
  border-bottom: 0;
}

.page-intro .eyebrow {
  margin-bottom: 7px;
}

.page-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.93;
}

.page-intro p {
  max-width: 660px;
  margin: 10px 0 0;
  color: var(--ink-mut);
  font-size: 13px;
  line-height: 1.55;
}

.intro-actions {
  flex: 0 0 auto;
  padding-bottom: 3px;
}

.predictions-intro {
  padding-top: 34px;
}

.prediction-section .section-heading {
  margin-top: 0;
}

.results-section {
  opacity: 0.94;
}

.forecast-legend {
  margin-top: 34px;
}

.forecast-legend summary {
  cursor: pointer;
  color: var(--ink-mut);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.legend-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 10px;
  color: var(--ink-mut);
}

.legend-item b {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

/* --------------------------------------------------------------- match detail */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 26px 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink-mut);
  padding: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.back-link:hover {
  color: var(--navy);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 14px;
  background:
    radial-gradient(620px 320px at 92% -20%, rgba(185, 242, 39, 0.18), transparent 65%),
    linear-gradient(135deg, #07152f 0%, #040c1c 82%);
  color: #fff;
}

.detail-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -76px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.detail-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-hero .status-pill {
  border-color: rgba(255, 255, 255, 0.25);
  color: #d5deee;
}

.detail-hero .status-pill.live {
  border-color: rgba(244, 91, 79, 0.55);
  color: #ff8a80;
}

.detail-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.detail-team {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-width: 0;
}

.detail-team.away {
  justify-items: end;
  text-align: right;
}

.detail-crest {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.detail-team h1 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 58px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.detail-team small {
  color: #9eabc3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-vs {
  display: grid;
  justify-items: center;
  gap: 1px;
}

.detail-vs span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-vs b {
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
}

.detail-vs small {
  color: #9eabc3;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 23px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aab5ca;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detail-side {
  position: sticky;
  top: calc(var(--topbar-height, 75px) + 64px);
}

.detail-panel {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head .eyebrow {
  margin-bottom: 4px;
}

.panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.panel-note {
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.confidence-chip {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.confidence-chip.strong {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.confidence-chip.moderate {
  background: var(--paper);
  border-color: var(--line-2);
}

.detail-prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.detail-prob {
  display: grid;
  gap: 1px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.detail-prob.is-pick {
  border-color: var(--navy);
  background: #fff;
  box-shadow: inset 0 -3px 0 var(--lime);
}

.detail-prob > span {
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-prob b {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.detail-prob small {
  overflow: hidden;
  color: var(--ink-mut);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prob-bar {
  display: flex;
  height: 6px;
  margin: 13px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-2);
}

.prob-bar span {
  display: block;
  height: 100%;
}

.prob-bar .h {
  background: var(--navy);
}

.prob-bar .d {
  background: var(--line-2);
}

.prob-bar .a {
  background: var(--coral);
}

.model-pick-line {
  margin: 0;
  color: var(--ink-mut);
  font-size: 11px;
}

.model-pick-line strong {
  color: var(--ink);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.market {
  display: grid;
  gap: 2px;
  padding: 11px;
  border-radius: 8px;
  background: var(--paper);
}

.market span {
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market b {
  font-size: 18px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.market small {
  color: var(--ink-mut);
  font-size: 9px;
}

.scoreline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.scoreline-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.scoreline-card.is-top {
  border-color: var(--navy);
  background: #fff;
}

.scoreline-card b {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.scoreline-card span {
  color: var(--ink-mut);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.panel-footnote {
  margin: 12px 0 0;
  color: var(--ink-mut);
  font-size: 9.5px;
  line-height: 1.5;
}

.plain-read {
  margin: 0 0 15px;
  color: #313b4e;
  font-size: 14px;
  line-height: 1.7;
}

.factor-list {
  border-top: 1px solid var(--line);
}

.factor-list h3 {
  margin: 12px 0 5px;
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.factor-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}

.factor-row span {
  color: var(--ink-mut);
}

.factor-row b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.panel-copy {
  margin: 0 0 12px;
  color: var(--ink-mut);
  font-size: 11.5px;
  line-height: 1.55;
}

.detail-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.detail-pick-row .btn {
  flex: 1;
  min-width: 72px;
  padding: 8px 7px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.confidence-control {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confidence-control input {
  flex: 1;
  accent-color: var(--navy);
}

.confidence-control b {
  color: var(--ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.intuition-state {
  margin: 10px 0 0;
  font-size: 10px;
  color: var(--ink-mut);
}

.detail-unavailable {
  margin-top: 16px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.detail-unavailable h2 {
  margin: 7px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.detail-unavailable p {
  max-width: 660px;
  margin: 0;
  color: var(--ink-mut);
  font-size: 13px;
  line-height: 1.6;
}

.detail-unavailable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-result-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.detail-result-line span,
.detail-result-line em {
  color: var(--ink-mut);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-result-line b {
  font-size: 25px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- directories */

.league-directory {
  margin-top: 30px;
}

.league-directory .section-heading {
  margin-bottom: 12px;
}

.league-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.league-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.league-card:hover {
  transform: translateY(-1px);
  border-color: var(--navy);
}

.league-card.is-current {
  border-color: var(--navy);
  box-shadow: inset 3px 0 0 var(--lime);
}

.league-card-country {
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.league-card strong {
  overflow: hidden;
  font-size: 13px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-card-meta {
  color: var(--ink-mut);
  font-size: 9.5px;
}

.current-focus {
  margin-top: 3px;
  color: #527d0d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teams-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.teams-side {
  display: grid;
  gap: 14px;
}

.teams-table td,
.teams-table th {
  white-space: nowrap;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.form-dot {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  font-size: 7.5px;
  font-weight: 800;
}

.form-dot.win {
  background: var(--lime);
  color: var(--navy);
}

.form-dot.draw {
  background: var(--paper-2);
  color: var(--ink-mut);
}

.form-dot.loss {
  background: rgba(244, 91, 79, 0.13);
  color: var(--red);
}

/* --------------------------------------------------------------- analysis desk */

.desk-shell {
  margin-top: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.desk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 30px;
  align-items: end;
  padding: clamp(28px, 4.5vw, 48px);
  background:
    radial-gradient(620px 340px at 93% -30%, rgba(185, 242, 39, 0.18), transparent 65%),
    linear-gradient(135deg, #07152f 0%, #040c1c 84%);
  color: #fff;
}

.desk-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 3px;
  background: var(--lime);
}

.desk-hero h1 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.desk-hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.desk-hero-copy > p {
  max-width: 640px;
  margin: 15px 0 0;
  color: #c4cee1;
  font-size: 13.5px;
  line-height: 1.6;
}

.desk-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  overflow: hidden;
}

.desk-kpis > div {
  display: grid;
  gap: 1px;
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.desk-kpis > div:nth-child(2n) {
  border-right: 0;
}

.desk-kpis > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.desk-kpis b {
  color: var(--lime);
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.desk-kpis span {
  color: #aab6cd;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.desk-hero-note {
  grid-column: 1 / -1;
  margin-top: 3px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #91a0bb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desk-body {
  padding: clamp(20px, 3.5vw, 36px);
  background: var(--paper);
}

.desk-toolbar {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  padding-bottom: 17px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.desk-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #e8e5dc;
}

.desk-switch-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-mut);
  padding: 7px 13px;
  font: inherit;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.desk-switch-btn.active {
  background: var(--navy);
  color: var(--lime);
}

.desk-policy {
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.desk-toolbar .text-link {
  margin-left: auto;
  font-size: 9px;
}

.desk-loading {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 52px 20px;
  color: var(--ink-mut);
}

.desk-loading p {
  margin: 0;
  font-size: 11px;
}

.desk-gate,
.desk-empty {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: 11px;
}

.desk-gate h2,
.desk-empty h2 {
  max-width: 860px;
  margin: 3px 0 0;
  color: var(--ink);
  font-size: clamp(27px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.desk-gate p,
.desk-empty p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-mut);
  font-size: 13px;
  line-height: 1.65;
}

.desk-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 8px;
}

.desk-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 620px;
  margin-top: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.desk-policy-grid > div {
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.desk-policy-grid > div:last-child {
  border-right: 0;
}

.desk-policy-grid span {
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desk-policy-grid b {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.empty-rule {
  width: 40px;
  height: 3px;
  background: var(--lime);
}

.desk-lead {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.desk-lead-link,
.desk-card {
  color: var(--ink);
  text-decoration: none;
}

.desk-lead h2 {
  max-width: 980px;
  margin: 11px 0 0;
  color: var(--ink);
  font-size: clamp(31px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.desk-lead-link:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.desk-lead-dek {
  max-width: 760px;
  margin: 12px 0 0;
  color: #3d475b;
  font-size: 15px;
  line-height: 1.6;
}

.desk-lead .news-meta,
.desk-card .news-meta {
  margin: 13px 0 0;
}

.desk-lead .story-read {
  margin-top: 14px;
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 22px;
}

.desk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.desk-card:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
}

.desk-card h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.desk-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 11px;
  color: var(--ink-mut);
  font-size: 11.5px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.desk-card .story-read {
  margin-top: auto;
}

.desk-card .news-meta {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

/* ORACLO news badges from the base stylesheet, tightened for the new desk */

.news-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.news-kind,
.news-draft,
.news-published {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.news-kind {
  background: var(--navy);
  color: var(--lime);
}

.news-draft {
  border: 1px solid rgba(244, 91, 79, 0.5);
  color: var(--red);
}

.news-published {
  border: 1px solid var(--line-2);
  color: var(--ink);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-meta > span + span::before {
  content: "·";
  margin-right: 7px;
  color: var(--line-2);
}

.news-meta-league {
  color: var(--ink);
}

/* article detail */

.article-shell {
  max-width: 900px;
  margin: 8px auto 0;
  padding: clamp(24px, 4vw, 50px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.article-head {
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}

.article-head h1 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-wrap: balance;
}

.article-dek {
  max-width: 760px;
  margin: 14px 0 0;
  color: #3d475b;
  font-size: 16px;
  line-height: 1.6;
}

.article-head .news-meta {
  margin-top: 14px;
}

.article-byline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-body {
  padding: 25px 0 8px;
  color: #2e3749;
  font-size: 16.5px;
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.article-body h2 {
  margin: 34px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: clamp(23px, 3.2vw, 31px);
}

.article-body h3 {
  margin: 26px 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -0.02em;
}

.article-body h4 {
  margin: 22px 0 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-body ul {
  margin: 0 0 19px;
  padding: 0;
  list-style: none;
}

.article-body li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 22px;
}

.article-body li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}

.article-body a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-body a:hover {
  color: var(--coral);
  text-decoration-color: var(--coral);
}

.article-body a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}

.article-body p:first-child::first-letter {
  float: left;
  padding: 5px 9px 0 0;
  color: var(--ink);
  font-size: 60px;
  font-weight: 700;
  line-height: 0.78;
}

.article-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-loading {
  min-height: 320px;
}

/* ---------------------------------------------------------- generic views */

.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 34px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.page-head .sub {
  color: var(--ink-mut);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.card h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--ink-mut);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card .hint {
  color: var(--ink-mut);
  font-size: 11.5px;
  line-height: 1.55;
}

.kpi {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.kpi .label {
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kpi b {
  color: var(--ink);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.kpi small {
  color: var(--ink-mut);
  font-size: 9.5px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 12px;
}

.table th {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.table td {
  padding: 9px;
  border-bottom: 1px solid var(--line);
}

.table tbody tr:hover {
  background: var(--paper);
}

.table td.name {
  color: var(--ink);
  font-weight: 700;
}

.table td.empty {
  color: var(--ink-mut);
  text-align: center;
}

.scroll {
  overflow-x: auto;
}

.pill {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill.good,
.pill.confidence.strong {
  background: var(--lime-soft);
  border-color: rgba(185, 242, 39, 0.45);
  color: #4a6c0f;
}

.pill.bad {
  background: var(--coral-soft);
  border-color: rgba(244, 91, 79, 0.3);
  color: var(--red);
}

.pill.hot {
  background: var(--coral-soft);
  border-color: rgba(244, 91, 79, 0.35);
  color: var(--red);
}

.pill.live {
  background: var(--coral-soft);
  border-color: rgba(244, 91, 79, 0.45);
  color: var(--red);
}

.pill.comp {
  border-color: var(--line);
  color: var(--ink-mut);
}

.empty {
  padding: 20px;
  color: var(--ink-mut);
  font-size: 12px;
}

.notice {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}

.notice.error {
  border-left-color: var(--red);
  background: var(--coral-soft);
}

.notice.success {
  border-left-color: #5d8b19;
  background: rgba(185, 242, 39, 0.12);
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="password"],
textarea,
select {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  min-width: 120px;
  outline: none;
  color-scheme: light;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230A1730' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 7px;
  appearance: none;
  padding-right: 32px;
}

select option,
select optgroup {
  background: #fff;
  color: var(--ink);
}

select option:checked {
  background: var(--navy);
  color: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(7, 21, 47, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 4px;
}

.form-row label {
  color: var(--ink-mut);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
  align-items: start;
}

.admin-event {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.admin-event p {
  margin: 6px 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.context-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: 8px;
  background: var(--paper);
}

.context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.context-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.context-row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.context-row p {
  margin: 4px 0;
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.55;
}

.context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: var(--ink-mut);
  font-size: 9px;
}

.context-cat,
.context-status,
.context-pill {
  color: var(--ink-mut);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Journal uses a light paper shell; keep it aligned with the new system. */

.magazine {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.mag-masthead {
  border-bottom-color: var(--ink);
}

.mag-title,
.mag-lead h2,
.mag-entry h2,
.mag-entry h3 {
  color: var(--ink);
}

.mag-dek,
.mag-kicker,
.mag-meta,
.mag-item .mag-meta {
  color: var(--ink-mut);
}

.mag-grid {
  gap: 28px;
}

.mag-lead {
  border-right-color: var(--line);
}

.mag-card,
.mag-desk {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.mag-card h3,
.mag-desk h2 {
  color: var(--ink);
}

.mag-desk p {
  color: var(--ink-mut);
}

/* Toast */

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 160;
  display: grid;
  gap: 7px;
}

.toast {
  padding: 10px 13px;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-left: 3px solid var(--lime);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(4, 12, 28, 0.25);
  font-size: 11.5px;
}

.toast.err {
  border-left-color: var(--coral);
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .top-match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .league-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.7fr);
    gap: 38px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  }

  .desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar-live {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 45px;
  }

  .hero-side {
    max-width: 540px;
  }

  .home-hero .hero-field {
    inset: 0 -20% 0 20%;
    opacity: 0.22;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .discovery-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout,
  .teams-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .desk-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .desk-kpis {
    max-width: 430px;
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-intro {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 11px 15px;
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text .wordmark {
    font-size: 22px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .utility-toggle {
    padding: 8px 10px;
    font-size: 9px;
  }

  .nav-inner {
    padding: 0 8px;
  }

  .tab {
    padding: 13px 11px 11px;
    font-size: 11px;
  }

  .more-toggle {
    margin: 5px 0;
    font-size: 9px;
  }

  .view {
    --view-pad: 14px;
    padding: 0 var(--view-pad) 46px;
  }

  .more-menu {
    position: absolute;
    top: 0;
    right: 4px;
    z-index: 6;
    height: 100%;
    margin: 0;
    padding-left: 9px;
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 18%, #fff);
  }

  .nav-inner {
    padding-right: 82px;
  }

  .home-hero {
    width: calc(100% + (var(--view-pad) * 2));
    margin-left: calc(-1 * var(--view-pad));
  }

  .hero-inner {
    padding: 38px 16px 42px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .hero-meta {
    gap: 7px 16px;
    margin-top: 27px;
  }

  .hero-meta b {
    font-size: 13px;
  }

  .home-body {
    padding-top: 15px;
  }

  .matchday-bar {
    padding: 10px;
  }

  .rail-days {
    grid-template-columns: repeat(7, minmax(48px, 1fr));
    gap: 3px;
  }

  .day-chip {
    min-height: 52px;
    padding: 5px 2px;
  }

  .day-chip strong {
    font-size: 15px;
  }

  .dc-rel,
  .dc-mon {
    font-size: 7px;
  }

  .rail-arrow {
    width: 28px;
    flex-basis: 28px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .section-heading p {
    font-size: 11.5px;
  }

  .section-action {
    padding: 0;
  }

  .top-match-grid {
    grid-template-columns: 1fr;
  }

  .top-match-card {
    padding: 14px;
  }

  .pred-row {
    grid-template-columns: 49px minmax(0, 1fr) 74px 16px;
    gap: 7px;
    padding: 12px 0;
  }

  .pred-time b {
    font-size: 11px;
  }

  .pred-time small {
    display: none;
  }

  .pred-fixture strong {
    font-size: 13px;
  }

  .pred-fixture small {
    font-size: 8.5px;
  }

  .pred-probs {
    grid-template-columns: repeat(3, 1fr);
  }

  .pred-probs b {
    font-size: 10.5px;
  }

  .pred-probs em {
    font-size: 6.5px;
  }

  .pred-pick {
    display: none;
  }

  .pred-arrow {
    font-size: 15px;
  }

  .pred-row.result-row {
    grid-template-columns: 49px minmax(0, 1fr) 64px 16px;
  }

  .editorial-panel,
  .editorial-news,
  .discovery-panel {
    padding: 16px;
  }

  .editorial-panel h2 {
    font-size: 28px;
  }

  .league-guide-grid {
    grid-template-columns: 1fr;
  }

  .page-intro {
    padding: 27px 0 18px;
    flex-direction: column;
    gap: 14px;
  }

  .page-intro h1 {
    font-size: 48px;
  }

  .page-intro p {
    font-size: 12px;
  }

  .detail-hero {
    padding: 21px 16px;
  }

  .detail-teams {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    gap: 7px;
  }

  .detail-team h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .detail-crest {
    width: 37px;
    height: 37px;
    font-size: 9px;
  }

  .detail-vs b {
    font-size: 15px;
  }

  .detail-vs span {
    font-size: 9px;
  }

  .detail-meta {
    font-size: 8px;
  }

  .detail-panel {
    padding: 16px;
  }

  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .panel-head h2 {
    font-size: 21px;
  }

  .detail-prob {
    padding: 10px;
  }

  .detail-prob b {
    font-size: 25px;
  }

  .scoreline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .league-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desk-shell {
    margin-top: 18px;
  }

  .desk-hero {
    padding: 25px 17px;
  }

  .desk-hero h1 {
    font-size: 51px;
  }

  .desk-body {
    padding: 17px;
  }

  .desk-toolbar {
    align-items: flex-start;
  }

  .desk-toolbar .text-link {
    margin-left: 0;
  }

  .desk-grid {
    grid-template-columns: 1fr;
  }

  .desk-policy-grid {
    grid-template-columns: 1fr;
  }

  .desk-policy-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .desk-policy-grid > div:last-child {
    border-bottom: 0;
  }

  .article-shell {
    padding: 20px 17px;
  }

  .article-head h1 {
    font-size: 40px;
  }

  .article-body {
    font-size: 15px;
  }

  .article-body h2 {
    margin-top: 28px;
    font-size: 23px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
    padding-top: 28px;
  }

  .footer-links {
    gap: 8px 15px;
  }

  .form-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand-text small {
    display: none;
  }

  .hero-pick {
    padding: 17px;
  }

  .hero-pick-teams {
    font-size: 24px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .pred-row,
  .pred-row.result-row {
    grid-template-columns: 43px minmax(0, 1fr) 68px 14px;
    gap: 5px;
  }

  .pred-fixture strong {
    font-size: 12.5px;
  }

  .pred-fixture small {
    max-width: 160px;
  }

  .pred-probs b {
    font-size: 10px;
  }

  .detail-prob b {
    font-size: 22px;
  }

  .detail-team h1 {
    font-size: 22px;
  }

  .detail-vs span {
    font-size: 8px;
  }

  .league-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.desk-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 12px;
  background: #07152F;
}
.desk-media-lead {
  margin-bottom: 16px;
}
.desk-media-article {
  margin: 0 0 20px;
}
