/*
Theme Name: El Domingolero
Theme URI: https://eldomingolero.es
Description: El periódico digital de las ligas de Domingol. Tema hijo de Twenty Twenty-Five con la marca real de la app (verde/oro/rojo/tinta sobre papel). El cuerpo de cada crónica lo publica el backend de Domingol vía REST API; este tema aporta la mancheta, el pie y los estilos del acta.
Author: Domingol
Template: twentytwentyfive
Version: 0.1.1
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: eldomingolero
*/

/* ===========================================================================
   Paleta y tokens — copiados tal cual de la app (cronica-jornada.scss).
   No inventar colores: estos son los de la marca.
   =========================================================================== */
:root {
  --green: #173f31;
  --green-2: #1f6b53;
  --gold: #f3c850;
  --red: #c73f2e;
  --ink: #15181a;
  --muted: #6b7280;
  --line: #e7e7e2;
  --bg: #f2f3ef;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(20, 30, 25, 0.08);
}

/* El padding cuenta dentro del ancho: sin esto, .wrap (width:100% + padding) mide de más
   y desborda en móvil, dejando la mancheta y el pie sin cubrir el 100%. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

/* Contenedor de página, igual que en la app. Se usa en la mancheta y dentro del acta. */
.wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sticky footer: con poco contenido, el pie se pega al fondo de la ventana en vez de
   quedar a media página. El contenedor de bloques de WP ocupa toda la altura y el <main> crece. */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wp-site-blocks > main {
  flex: 1 0 auto;
  min-width: 0; /* que el contenido ancho (tabla, rejilla) no estire la columna ni desborde */
}

/* ===========================================================================
   Mancheta (template part: header). Markup idéntico al de la app.
   =========================================================================== */
.masthead {
  background: var(--green);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.masthead__brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.masthead__brand b {
  color: var(--gold);
}

.masthead__ball {
  font-size: 1.05rem;
}

.masthead__chip {
  background: rgba(255, 255, 255, 0.14);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.masthead__date {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
  opacity: 0.9;
}

/* ===========================================================================
   Pie (template part: footer). Casi igual que el de la app (site-footer):
   misma firma, copy, legales y el icono de X. Como el periódico es papel claro
   y el pie de la app es crema sobre oscuro, va sobre una banda verde — la misma
   de la mancheta — para que los colores crema funcionen igual y "encuaderne".
   =========================================================================== */
.site-footer-band {
  margin-top: 3rem;
  background: #17120e; /* el casi-negro cálido del pie de la app */
  border-top: 1px solid rgba(255, 241, 204, 0.14);
}

.site-footer {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.site-footer__origin {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 241, 204, 0.42);
}

/* Firma con cambio de idioma: por defecto inglés, español al pasar el ratón. */
.site-footer__sign {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer__flag {
  font-size: 0.95rem;
  filter: saturate(1.1);
}

.site-footer__tag {
  font-weight: 700;
  color: rgba(255, 241, 204, 0.72);
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease;
}

.site-footer__tag--es {
  display: none;
}

.site-footer__sign:hover .site-footer__tag {
  border-bottom-color: rgba(255, 241, 204, 0.5);
}

.site-footer__sign:hover .site-footer__tag--en {
  display: none;
}

.site-footer__sign:hover .site-footer__tag--es {
  display: inline;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.site-footer__legal a {
  color: rgba(255, 241, 204, 0.7);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.site-footer__legal a:hover {
  color: #fff;
  border-bottom-color: currentColor;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 241, 204, 0.7);
  transition: color 0.15s ease;
}

.site-footer__social:hover {
  color: #fff;
}

/* ===========================================================================
   Landing placeholder (front-page.html). "Próximamente" con la marca y la voz
   real de la app, mientras no hay crónicas publicadas. Es temporal: cuando el
   quiosco abra, se quita front-page.html y la home vuelve a ser la hemeroteca.
   =========================================================================== */
.placeholder {
  min-height: 62vh;
  display: flex;
  align-items: center;
}

.placeholder__inner {
  text-align: center;
  padding: 4rem 1rem 5rem;
}

.placeholder__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
}

.placeholder__title {
  margin: 0.6rem 0 0;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.placeholder__claim {
  margin: 0.8rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  color: var(--green);
}

.placeholder__intro {
  margin: 1.1rem auto 0;
  max-width: 46ch;
  color: #33403a;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}

.placeholder__soon {
  margin: 1.6rem 0 0;
}

.placeholder__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder__cta {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  justify-content: center;
}

.placeholder__btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: background 0.15s ease;
}

.placeholder__btn:hover {
  background: var(--green-2);
}

.placeholder__x {
  color: var(--green-2);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease;
}

.placeholder__x:hover {
  border-bottom-color: currentColor;
}

/* ===========================================================================
   Landing / portada de prelanzamiento: dos columnas (gancho + formulario a la
   izquierda; panel de portada con el degradado verde→oro del mockup a la derecha).
   =========================================================================== */
.lead {
  padding: 2.5rem 0 3.5rem;
}

/* Cabecera de periódico (nameplate): el lockup de marca a lo grande, verde/oro. */
.nameplate {
  background: var(--green);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  padding: 2.4rem 0 2rem;
  text-align: center;
}

.nameplate__title {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff;
}

.nameplate__title b {
  color: var(--gold);
}

.nameplate__ball {
  font-size: 0.78em;
  margin-right: 0.08em;
}

.nameplate__motto {
  margin: 0.55rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 800;
  color: var(--gold);
}

.nameplate__folio {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.lead__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.6rem;
  align-items: center;
}

@media (max-width: 52rem) {
  .lead__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.lead__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.lead__bar {
  width: 1.6rem;
  height: 0.28rem;
  background: var(--red);
  border-radius: 2px;
}

.lead__title {
  margin: 0.6rem 0 0;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead__claim {
  margin: 0.7rem 0 0;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--green);
}

.lead__intro {
  margin: 1.1rem 0 0;
  max-width: 48ch;
  color: #33403a;
  font-size: 1.05rem;
}

.lead__hook {
  margin: 1rem 0 0;
  max-width: 48ch;
  font-size: 0.96rem;
  color: #4a5550;
}

.lead__hook strong {
  color: var(--green);
  font-weight: 800;
}

.lead .signup {
  margin: 1.6rem 0 0;
  max-width: 32rem;
}

.lead__links {
  margin: 1.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.lead__links a {
  color: var(--green-2);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease;
}

.lead__links a:hover {
  border-bottom-color: currentColor;
}

/* Panel de portada: el degradado del mockup, con mancheta, número de edición y sello. */
.lead__media {
  min-height: 24rem;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(243, 200, 80, 0.4), transparent 60%),
    linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
}

.lead__paper {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  color: #fff;
}

/* Guiño a Domingol: su escudo en el recuadro de portada. */
.lead__crest {
  width: 7.5rem;
  height: 7.5rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.lead__crest svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lead__league {
  margin-top: 0.4rem;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.lead__guino {
  font-size: 0.9rem;
  max-width: 24ch;
  opacity: 0.9;
}

.lead__mast {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.lead__mast b {
  color: var(--gold);
}

.lead__ball {
  font-size: 1.1rem;
}

.lead__kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
}

.lead__edition {
  margin-top: 0.1rem;
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.lead__badge {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead__when {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Gancho de fundadores y formulario de captación (lista de espera → invitación a Domingol). */
.placeholder__hook {
  margin: 1.2rem auto 0;
  max-width: 48ch;
  font-size: 0.96rem;
  color: #33403a;
}

.placeholder__hook strong {
  color: var(--green);
  font-weight: 800;
}

.signup {
  margin: 1.8rem auto 0;
  max-width: 30rem;
  text-align: left;
}

.signup__label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.signup__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.signup__row input[type='email'] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font: inherit;
  color: var(--ink);
}

.signup__row input[type='email']:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.signup__row .placeholder__btn {
  flex: none;
  border: 0;
  cursor: pointer;
}

.signup__small {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.signup__error {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}

.signup--done {
  margin: 1.8rem auto 0;
  max-width: 30rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
}

.signup--done .signup__label {
  color: var(--green-2);
}

.signup__done-text {
  margin: 0.3rem 0 0;
  color: #33403a;
}

/* ===========================================================================
   Páginas legales (aviso legal, privacidad, cookies): prosa en tarjeta con la
   marca del periódico — papel, sombra y la barra roja de sección.
   =========================================================================== */
.legal {
  max-width: 46rem;
  margin: 2rem auto 3rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.2rem 2.4rem;
}

.legal h1 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.015em;
}

.legal__updated {
  margin: 0 0 1.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.legal h2 {
  margin: 1.8rem 0 0.6rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--red);
  font-size: 1.1rem;
  font-weight: 900;
}

.legal p {
  margin: 0 0 0.9rem;
  color: #2a322e;
}

.legal ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.3rem 0;
  color: #2a322e;
}

.legal a {
  color: var(--green-2);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: color 0.15s ease;
}

.legal a:hover {
  color: var(--green);
}

@media (max-width: 40rem) {
  .legal {
    padding: 1.4rem 1.3rem 1.8rem;
  }
}

/* ===========================================================================
   El acta de la crónica. El backend publica el HTML del acta dentro de un
   contenedor .domingolero (el wrapper de post-content del tema), así que todo
   lo de abajo va scopeado bajo .domingolero para no pisar al editor ni a TT5.

   Contrato de markup con el backend: los escudos SVG inline van envueltos en
   un <span class="crest">…</span>.
   =========================================================================== */

.domingolero {
  padding-bottom: 1rem;
}

/* Encabezados de sección */
.domingolero .sec {
  margin: 1.8rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.domingolero .sec::before {
  content: '';
  width: 5px;
  height: 1.1rem;
  background: var(--red);
  border-radius: 2px;
}

.domingolero .sec h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Etiquetas */
.domingolero .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
}

.domingolero .tag--soft {
  background: #eef2f0;
  color: var(--green-2);
}

/* Escudos del periódico: el SVG real, dimensionado según el contexto. */
.domingolero .crest {
  display: inline-block;
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
}

.domingolero .crest svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero — portada de periódico. */
.domingolero .hero {
  margin-top: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
}

.domingolero .hero__tags {
  display: flex;
  gap: 0.4rem;
}

.domingolero .hero__title {
  margin: 0.7rem 0 0;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.domingolero .hero__lead {
  margin: 0.7rem 0 0;
  color: #33403a;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  max-width: 52ch;
}

.domingolero .hero__match {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.domingolero .hero__match-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.domingolero .hero__scoreline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.55rem;
}

.domingolero .hero__side {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.domingolero .hero__side--right {
  flex-direction: row-reverse;
}

.domingolero .hero__crest {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
}

.domingolero .hero__team {
  font-weight: 800;
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domingolero .hero__n {
  flex: none;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--green);
}

@media (max-width: 40rem) {
  .domingolero .hero {
    padding: 1.2rem 1.2rem;
  }

  .domingolero .hero__scoreline {
    gap: 0.6rem;
  }

  .domingolero .hero__team {
    font-size: 0.95rem;
  }

  .domingolero .hero__n {
    font-size: 2rem;
  }
}

/* Lo último — breves verticales, estilo sumario de periódico. */
.domingolero .latest {
  margin-top: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
}

.domingolero .latest__head {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.domingolero .latest__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.domingolero .latest__item {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.domingolero .latest__item + .latest__item {
  border-top: 1px solid var(--line);
}

.domingolero .latest__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--red);
  border-radius: 1px;
}

/* Resultados */
.domingolero .scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.8rem;
}

.domingolero .game {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow);
}

.domingolero .game__r {
  display: grid;
  grid-template-columns: 1.7rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.15rem 0;
}

.domingolero .game__r + .game__r {
  border-top: 1px solid var(--line);
}

.domingolero .team {
  font-weight: 700;
  font-size: 0.92rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domingolero .team.win {
  font-weight: 900;
}

.domingolero .gf {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
}

.domingolero .gf.win {
  color: var(--green-2);
}

.domingolero .game__foot {
  margin: 0.5rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.6rem;
}

.domingolero .game__foot--empty {
  font-style: italic;
}

.domingolero .game__goal,
.domingolero .game__moment {
  white-space: nowrap;
}

.domingolero .game__round {
  font-weight: 800;
  opacity: 0.7;
}

.domingolero .star {
  color: #e0a400;
}

/* Layout: columna principal (crónica + resultados + tabla) y raíl de premios.
   Que la principal lleve el grueso evita el hueco cuando el raíl de golazos es largo. */
.domingolero .grid {
  display: grid;
  grid-template-columns: 1fr 19rem;
  gap: 1.4rem;
  align-items: start;
}

/* min-width:0 deja que la columna principal encoja en vez de desbordar la rejilla
   (la tabla y los resultados, si no, fuerzan el ancho y se comen el raíl). */
.domingolero .main {
  min-width: 0;
}

@media (max-width: 52rem) {
  .domingolero .grid {
    grid-template-columns: 1fr;
  }
}

/* Artículo */
.domingolero .article {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
}

.domingolero .article h1 {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.domingolero .byline {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.domingolero .article__body :first-child {
  margin-top: 0;
}

.domingolero .article__body p {
  margin: 0 0 0.9rem;
  font-size: 1.04rem;
}

.domingolero .article__body p:first-of-type {
  font-size: 1.12rem;
}

.domingolero .article__body strong {
  font-weight: 800;
}

.domingolero .article__pending p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Sidebar */
.domingolero .aside {
  display: grid;
  gap: 1rem;
}

.domingolero .widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.domingolero .widget__head {
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.domingolero .widget--pichichi .widget__head {
  background: #c79a16;
}

.domingolero .widget--mvp .widget__head {
  background: var(--green-2);
}

.domingolero .widget--cagada .widget__head {
  background: var(--red);
}

.domingolero .widget--golazos .widget__head,
.domingolero .widget--caos .widget__head {
  background: var(--ink);
}

.domingolero .widget__body {
  padding: 0.8rem 0.9rem;
}

.domingolero .star-player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.domingolero .star-player .crest {
  width: 2.2rem;
  height: 2.2rem;
}

.domingolero .star-player .name {
  font-weight: 900;
  line-height: 1.1;
}

.domingolero .star-player .sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.domingolero .widget__detail {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.domingolero .golist {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.domingolero .golist li {
  margin: 0.2rem 0;
}

/* Clasificación */
.domingolero .standings {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto; /* en móvil la tabla scrollea dentro de la tarjeta, no desborda la página */
}

.domingolero table {
  width: 100%;
  border-collapse: collapse;
}

.domingolero th,
.domingolero td {
  padding: 0.5rem 0.7rem;
  text-align: left;
  font-size: 0.88rem;
}

.domingolero thead th {
  background: #fafbfa;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}

.domingolero tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.domingolero tbody tr.leader td {
  background: rgba(243, 200, 80, 0.16);
}

.domingolero .pos {
  width: 2rem;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}

.domingolero .leader .pos {
  color: #c79a16;
}

.domingolero .t {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.domingolero .num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.domingolero .pts {
  font-weight: 900;
}

.domingolero .mov {
  font-weight: 900;
  font-size: 0.82rem;
}

.domingolero .mov--sube {
  color: var(--green-2);
}

.domingolero .mov--baja {
  color: var(--red);
}

.domingolero .mov--igual {
  color: var(--muted);
}
