/* 4.43 · Capa común de interfaz para el móvil.
   Se carga la última en todas las páginas: textos más legibles, botones
   más fáciles de pulsar y cabeceras más compactas. No cambia los temas. */

body {
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
:focus-visible {
  outline: 3px solid var(--t-accent, #ffda76) !important;
  outline-offset: 2px;
}

/* Botones y campos: objetivo táctil mínimo de 44 px */
button,
.btn,
.pill,
select,
input:not([type='checkbox']):not([type='radio']) {
  min-height: 44px;
}
input[type='checkbox'],
input[type='radio'] {
  width: 22px;
  height: 22px;
}

/* Cabecera de la liga: fila superior con menú y cuenta, y el título debajo,
   sin que el botón «Mi cuenta» pise el nombre de la liga */
.head {
  display: grid !important;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 10px 4px 14px;
  gap: 4px 8px;
}
.head .brandbox {
  display: contents;
}
.head > .head-side:first-child {
  grid-column: 1;
  grid-row: 1;
}
.head > .head-side:empty {
  display: none;
}
.head .brandmark {
  grid-column: 2;
  grid-row: 1;
  font-size: 26px;
}
.head #roleBtn {
  grid-column: 3;
  grid-row: 1;
  position: static;
  justify-self: end;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  max-width: 130px;
}
.head .brand {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 6px 14px;
  font-size: clamp(16px, 4.6vw, 22px);
  white-space: nowrap;
}
.head .league-sub {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 14px;
}
.head .muted {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: 14px;
}
.head-side {
  width: 46px;
  flex: 0 0 46px;
}
.head-side button {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

/* El tema se cambia desde el menú ☰ en la liga; en el resto queda un botón discreto */
body:has(#appMenuDrawer) .theme-bar433 {
  display: none;
}
.theme-bar433 {
  margin: 4px 0 8px !important;
}
.theme-bar433 .theme-name433 {
  display: none;
}
.theme-open433 {
  font-size: 14px !important;
}

/* Barra inferior: etiquetas legibles */
.nav button {
  font-size: 12px !important;
  font-weight: 700;
  min-height: 56px;
}
.nav button .nav-icon {
  font-size: 21px;
}

/* Textos pequeños: nada por debajo de 12-13 px */
.eyebrow,
.season,
.notice,
.foot,
.badge {
  font-size: 13px !important;
}
.club-label span,
.cal-match .club-label,
.fixture-grid .club-label span {
  font-size: 14px !important;
  line-height: 1.25;
}
.club-info span {
  font-size: 14px !important;
}
.standing-stats small {
  font-size: 12px !important;
}
.standing-stats b {
  font-size: 15px !important;
}
.standing-top .club-label span {
  font-size: 16px !important;
  font-weight: 700;
}
.standing-points {
  font-size: 17px;
}
th {
  font-size: 13px !important;
}
.cal-day small {
  font-size: 11px !important;
}

/* Portal privado: cabecera sencilla */
body[data-page='acceso_seguro'] main > header h1 {
  font-size: 20px;
  line-height: 1.25;
}
body[data-page='acceso_seguro'] main > header p {
  font-size: 14px;
}
.nav-tile434 small,
main #dashboard .nav-tile434 small {
  font-size: 13px !important;
}
main #dashboard .nav-tile434 span:nth-child(2) {
  font-size: 15px !important;
}

/* Temas claros y de color: sin sombras borrosas en los títulos */
:root[data-liga-theme]:not([data-liga-theme='nocturno']) :is(.hero h2, .brand, .brand *) {
  text-shadow: none !important;
}
:root:is([data-liga-theme='prensa'], [data-liga-theme='arena'], [data-liga-theme='clasico']) .brand {
  background: var(--t-surface) !important;
  color: var(--t-text) !important;
  border-color: var(--t-accent) !important;
}
:root:is([data-liga-theme='prensa'], [data-liga-theme='arena'], [data-liga-theme='clasico']) .brand .gold {
  color: var(--t-accent) !important;
}
:root:is([data-liga-theme='prensa'], [data-liga-theme='arena'], [data-liga-theme='clasico']) .hero h2 {
  color: var(--t-text) !important;
}

/* 4.50: flechas de jornada y equipo que descansa */
.round-nav450 {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}
.round-nav450 button {
  min-height: 52px;
  margin: 0;
  padding: 0;
  font-size: 20px;
  border-radius: 14px;
}
.round-nav450 button:disabled {
  opacity: 0.35;
}
.round-nav450 > div {
  text-align: center;
  line-height: 1.15;
}
.round-nav450 b {
  display: block;
  font-size: 20px;
}
.round-nav450 small {
  color: var(--t-muted, #b9cbd8);
  font-size: 13px;
}
.rest450 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed var(--t-edge, #527181);
  background: var(--t-raised, #193b4e);
}
.rest450-mine {
  border-style: solid;
  border-color: var(--t-accent, #e9c46a);
}
.rest450-icon {
  font-size: 26px;
}
.rest450 small {
  display: block;
  color: var(--t-muted, #b9cbd8);
  font-size: 13px;
}
.rest450 .club-label {
  font-weight: 700;
}
