/* 4.54 · Tema «Marcador»: el diseño nuevo que aprobó Roberto (27/11/2026).
   Fondo hueso, tinta negra y naranja solo para lo importante (tu equipo, la sección activa).
   Letra Archivo estrecha para titulares y JetBrains Mono para marcadores, ambas dentro de la app.
   Esquinas rectas, bordes negros de 2 px, sin sombras. Solo cambia el aspecto.
   Se carga después de temas452.css. */

@font-face {
  font-family: 'Archivo';
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fuentes/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/jetbrains-mono-700.woff2') format('woff2');
}

:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']) {
  color-scheme: light;
  --m-ink: #15140f;
  --m-bone: #f2efe6;
  --m-orange: #ff5b14;
  --m-line: #cfc9b8;
  --m-muted: #5e5a50;
  --m-win: #0b5d43;
  --m-loss: #b3261e;
  --m-on-orange: #15140f;
  --m-hero: #15140f;
  --m-hero-text: #f2efe6;
  --m-nav: #15140f;
  --m-nav-text: #f2efe6;
  --t-bg: var(--m-bone);
  --t-glow: var(--m-bone);
  --t-surface: #fbfaf6;
  --t-raised: #e8e4d8;
  --t-input: #ffffff;
  --t-text: var(--m-ink);
  --t-muted: var(--m-muted);
  --t-accent: var(--m-ink);
  --t-on: var(--m-bone);
  --t-edge: var(--m-ink);
  --t-radius: 0px;
  --t-font: 'Archivo', 'Arial Narrow', sans-serif;
  --t-good: var(--m-ink);
  --t-on-good: var(--m-bone);
  --t-shadow: none;
  --t-hero: var(--m-ink);
  --t-nav: var(--m-ink);
}

/* 4.58 · Marcador de noche: los mismos rasgos sobre fondo casi negro. Solo cambian los colores. */
:root[data-liga-theme='marcadornoche'] {
  color-scheme: dark;
  --m-ink: #f2efe6;
  --m-bone: #12110d;
  --m-line: #3a382f;
  --m-muted: #b9b4a6;
  --m-hero: #24221b;
  --m-hero-text: #f2efe6;
  --m-nav: #000000;
  --m-nav-text: #f2efe6;
  --t-surface: #1b1a15;
  --t-raised: #2a2820;
  --t-input: #1b1a15;
}

/* Letra y fondo liso */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) body {
  font-family: 'Archivo', system-ui, sans-serif !important;
  background: var(--m-bone) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(h1, h2, h3, .brand) {
  font-family: 'Archivo', 'Arial Narrow', sans-serif !important;
  font-stretch: 70%;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0 !important;
  line-height: 0.95;
  text-shadow: none !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(h1, h2) {
  font-size: max(1.6em, 28px);
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.eyebrow, .season, .league-sub) {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  color: var(--m-muted) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2)
  :is(.score, .pro-match .score, .points, .standing-points, .stat b, .stats b, .badge, td, th) {
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-weight: 700;
}

/* Todo con esquinas rectas y sin sombras borrosas (los escudos y fotos se quedan como están) */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) body :is(*:not(img):not(svg):not(input[type='checkbox']):not(input[type='radio']), *::before, *::after) {
  border-radius: 0 !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) body :is(main, nav, dialog, aside) :not(:focus-visible) {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Cajas: rectas, borde negro, sin sombra ni brillos */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2)
  :is(section, .panel, .standing-card, .match, .club-tile, .tile, .role, .cal-day, .pro-match, .cal-match, .exercise-card432, #alerts428) {
  border: 2px solid var(--m-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.stat, .position, .notice, .warning, .standing-stats, .private-tile) {
  border-radius: 0 !important;
  box-shadow: none !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.hero, .hero.pro-hero, .stadium) {
  background: var(--m-hero) !important;
  color: var(--m-hero-text) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.hero, .hero.pro-hero, .stadium)::after,
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.hero, .hero.pro-hero, .stadium)::before {
  display: none !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2)
  :is(.hero, .hero.pro-hero, .stadium) :is(h1, h2, h3, p, small, span, b, strong, .muted, .sub) {
  color: var(--m-hero-text) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.hero, .hero.pro-hero, .stadium) .eyebrow {
  color: var(--m-orange) !important;
}

/* Cabecera de la liga: plana, en tinta, sin marco dorado */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) header.head {
  background: var(--m-bone) !important;
  color: var(--m-ink) !important;
  border: 0 !important;
  border-bottom: 2px solid var(--m-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) header.head :is(.brand, .brand *, .muted) {
  background: transparent !important;
  color: var(--m-ink) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) header.head .brand {
  font-size: clamp(26px, 8vw, 34px);
  line-height: 0.9;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) header.head .head-side button {
  background: transparent !important;
  color: var(--m-ink) !important;
  border: 2px solid var(--m-ink) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) body[data-page] main > header:not(.head) {
  background: var(--m-hero) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) body[data-page] main > header:not(.head) :is(h1, h2, p, small, span, b) {
  color: var(--m-hero-text) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) body[data-page] main > header:not(.head) h1 {
  font-size: clamp(30px, 9vw, 40px);
}

/* Botones: negro con letra hueso, mayúsculas */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(button, .btn, .pill, .cta) {
  border-radius: 0 !important;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  box-shadow: none !important;
  background-image: none;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2)
  :is(button.secondary, .btn.alt, .pill, .tabs button:not(.active), .chips button:not(.active), #appMenuDrawer button, .menu-account, nav.quick a) {
  background: transparent !important;
  color: var(--m-ink) !important;
  border: 2px solid var(--m-ink) !important;
}
/* Lo elegido (división, pestaña, filtro) va en naranja */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2)
  :is(.tabs button.active, .chips button.active, button[aria-pressed='true']:not(.theme-card433), button[aria-selected='true'], .division-tabs button.active) {
  background: var(--m-orange) !important;
  color: var(--m-on-orange) !important;
  border: 2px solid var(--m-ink) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  border: 2px solid var(--m-ink) !important;
  border-radius: 0 !important;
  background: var(--t-input) !important;
  color: var(--m-ink) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(a:not(.tile):not(.cta):not(.btn), .account-direct) {
  color: var(--m-ink) !important;
  text-decoration-thickness: 2px;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--m-orange) !important;
}

/* Marcadores en caja negra con números de marcador */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.score, .pro-match .score) {
  border-radius: 0 !important;
  letter-spacing: 0.04em;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) .badge {
  border-radius: 0 !important;
}

/* Tablas: filas con raya fina, cabecera en mono */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) tbody tr:nth-child(odd),
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) tbody tr:nth-child(even) {
  background: transparent !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(th, td) {
  border-color: var(--m-line) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) th {
  background: transparent !important;
  color: var(--m-muted) !important;
  border-bottom: 2px solid var(--m-ink) !important;
}

/* Barra inferior: negra, y la sección en la que estás, en naranja */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.nav, nav.bottom445) {
  background: var(--m-nav) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* 4.57: con «a:not(...)» para ganar a la regla de enlaces en negro; si no, los textos de abajo salían negros sobre negro */
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.nav button, nav.bottom445 a:not(.tile):not(.cta):not(.btn)) {
  color: var(--m-nav-text) !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.nav button.active, nav.bottom445 a.active:not(.tile):not(.cta):not(.btn), nav.bottom445 a[aria-current='page']:not(.tile):not(.cta)) {
  background: var(--m-orange) !important;
  color: var(--m-on-orange) !important;
}
:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) #appMenuDrawer {
  background: var(--m-bone) !important;
}

:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) :is(.nav button .nav-icon, nav.bottom445 a .nav-icon) {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

:root:is([data-liga-theme='marcador'], [data-liga-theme='marcadornoche']):not(#_m1):not(#_m2) .theme-card433[aria-pressed='true'] {
  outline: 4px solid var(--m-orange) !important;
  outline-offset: -4px;
}

/* Vista previa en el selector de temas */
.theme-preview433[data-preview-theme='marcadornoche'] {
  border: 2px solid #f2efe6;
  border-radius: 0 !important;
}
.theme-preview433[data-preview-theme='marcadornoche'] .tp-title {
  font-family: 'Archivo', sans-serif;
  font-stretch: 70%;
  font-weight: 900;
}
.theme-preview433[data-preview-theme='marcadornoche'] :is(.tp-hero, .tp-row span) {
  border-radius: 0 !important;
}
.theme-preview433[data-preview-theme='marcadornoche'] .tp-row span:first-child {
  background: #ff5b14 !important;
  color: #15140f !important;
}
.theme-preview433[data-preview-theme='marcador'] {
  border: 2px solid #15140f;
  border-radius: 0 !important;
}
.theme-preview433[data-preview-theme='marcador'] .tp-title {
  font-family: 'Archivo', sans-serif;
  font-stretch: 70%;
  font-weight: 900;
}
.theme-preview433[data-preview-theme='marcador'] .tp-hero {
  background: #15140f !important;
  color: #f2efe6 !important;
  border-radius: 0 !important;
}
.theme-preview433[data-preview-theme='marcador'] .tp-row span:first-child {
  background: #ff5b14 !important;
  color: #15140f !important;
}
