/* Tema Everton: encabezado claro con letras en el azul del escudo y detalles en su dorado.
   Se carga al final de cada página para imponerse a los estilos heredados de SIC. */
:root{--ev-azul:#0f17a4;--ev-azul-hondo:#161d6f;--ev-dorado:#f4b019;--ev-dorado-texto:#9a720c;--ev-borde:#dfe1ec;--ev-fondo:#f5f6fa}

/* Encabezado: blanco, línea dorada fina arriba, texto azul. */
html:root body>header{background:#fff!important;color:var(--ev-azul-hondo)!important;border-top:3px solid var(--ev-dorado)!important;border-bottom:1px solid var(--ev-borde)!important;box-shadow:0 6px 20px #0f17a40d!important}
html:root body>header strong,html:root body>header>b{color:var(--ev-azul)!important;letter-spacing:.2px}
html:root body>header small,html:root body>header>span,html:root body>header>p{color:var(--ev-dorado-texto)!important}
html:root body>header nav:not(.club-nav),html:root body>header nav:not(.club-nav) a,html:root body>header>a{color:var(--ev-azul-hondo)!important}
html:root body>header nav:not(.club-nav) a:hover{color:var(--ev-azul)!important;text-decoration:underline!important;text-decoration-color:var(--ev-dorado)!important}

/* Escudo sin círculo ni placa. */
html:root body>header img[src*="everton-logo"]{width:auto!important;height:64px!important;background:none!important;border-radius:0!important;padding:0!important;box-shadow:none!important;object-fit:contain}

/* Barra de navegación del equipo: botones con contorno azul; la sección actual en azul con ícono dorado. */
html:root body header .club-nav{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 0!important}
html:root body header .club-nav a,html:root body header .club-nav button{background:#fff!important;border:1px solid #cdd0e6!important;color:var(--ev-azul-hondo)!important;box-shadow:0 1px 2px #0f17a412!important;font-weight:650!important}
html:root body header .club-nav a svg,html:root body header .club-nav button svg{color:var(--ev-azul)!important}
html:root body header .club-nav a:hover,html:root body header .club-nav button:hover:not(:disabled){background:#f3f4fc!important;border-color:var(--ev-azul)!important;color:var(--ev-azul)!important;box-shadow:0 4px 12px #0f17a41f!important}
html:root body header .club-nav [aria-current=page],html:root body header .club-nav [aria-current=page]:hover{background:var(--ev-azul)!important;border-color:var(--ev-azul)!important;color:#fff!important;box-shadow:inset 0 -3px 0 var(--ev-dorado),0 4px 12px #0f17a42e!important}
html:root body header .club-nav [aria-current=page] svg{color:var(--ev-dorado)!important}

/* Pantalla de ingreso: fondo azul profundo y tarjeta blanca con filete dorado. */
html:root[data-club-auth="signed-out"] body{background:linear-gradient(150deg,#0a0f52,#161d6f 55%,#0f17a4)!important}
html:root[data-club-auth="signed-out"] body>header{background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important}
html:root[data-club-auth="signed-out"] body>header strong{color:#fff!important}
html:root[data-club-auth="signed-out"] body>header small{color:#f2d48a!important}
html:root[data-club-auth="signed-out"] body>header img[src*="everton-logo"]{height:92px!important;filter:drop-shadow(0 6px 14px #0006)}
html:root[data-club-auth="signed-out"] #acceso-club{border-top:4px solid var(--ev-dorado)!important;color:var(--ev-azul-hondo)!important}
html:root[data-club-auth="signed-out"] #acceso-club h2{color:var(--ev-azul)!important}
html:root[data-club-auth="signed-out"] #acceso-club button{background:var(--ev-azul)!important;border-color:var(--ev-azul)!important}

/* Detalles: títulos en azul del escudo, rótulos en dorado oscuro, tarjetas con filete dorado al pasar. */
html:root body main h1{color:var(--ev-azul)}
html:root body .number{color:var(--ev-dorado-texto)!important}
html:root body .card:hover,html:root body .team-module:hover{border-color:var(--ev-azul)!important}
html:root body .team-module{border-top-color:var(--ev-dorado)!important}
html:root body .card{border-top:3px solid var(--ev-dorado)!important}

/* Plantel: barra de enlaces superior y encabezado propio dentro de #sic-roster. */
html:root body>nav{background:#fff!important;color:var(--ev-azul-hondo)!important;border-top:3px solid var(--ev-dorado);border-bottom:1px solid var(--ev-borde)}
html:root body>nav a{color:var(--ev-azul-hondo)!important;text-decoration:none!important;font-weight:600}
html:root body>nav a:hover{color:var(--ev-azul)!important;text-decoration:underline!important;text-decoration-color:var(--ev-dorado)!important}
html:root #sic-roster>header{background:#fff!important;color:var(--ev-azul)!important;border-top:3px solid var(--ev-dorado)!important;border-bottom:1px solid var(--ev-borde)!important}
html:root #sic-roster>header p{color:var(--ev-dorado-texto)!important}
html:root #sic-roster>header img[src*="everton-logo"]{width:auto!important;height:64px!important;background:none!important;border-radius:0!important;padding:0!important;box-shadow:none!important;vertical-align:middle;margin-right:12px}

/* Convocatoria: escudo y título alineados. */
html:root body>header>img[src*="everton-logo"]+b{margin-right:auto}

/* Mis equipos: tarjetas grandes por equipo (como Fútbol en Lanús), en azul profundo con detalles dorados. */
html body #equipos .league-group{background:transparent!important;border:0!important;margin:0 0 34px;padding:0}
html body #equipos .league-group h3{display:flex;align-items:center;gap:14px;font-size:19px;letter-spacing:2px;text-transform:uppercase;margin:0 0 16px;color:var(--ev-azul-hondo)}
html body #equipos .league-group h3::after{content:'';height:1px;background:linear-gradient(90deg,var(--ev-dorado),transparent);flex:1}
html body #equipos .category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;margin-bottom:0!important}
html body #equipos .category-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:136px;padding:20px!important;border:1px solid #2a3294!important;border-top:3px solid var(--ev-dorado)!important;border-radius:14px;background:linear-gradient(135deg,#1a2390,#0d1356)!important;box-shadow:0 8px 20px #0a0f4526;text-decoration:none;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s}
html body #equipos .category-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#f2d48a!important}
html body #equipos .category-name{font-size:26px;font-weight:700;letter-spacing:-.6px;line-height:1.2;margin:8px 0 14px;color:#fff!important}
html body #equipos .category-action{font-size:12px;font-weight:600;color:#d6d9f2!important}
html body #equipos .category-arrow{position:absolute;right:18px;bottom:18px;display:grid;place-items:center;width:32px;height:32px;border:1px solid #5a62c4;border-radius:50%;color:#fff!important;font-size:19px;background:#ffffff09}
html body #equipos .category-card:hover{transform:translateY(-4px);border-color:#f2d48a!important;box-shadow:0 13px 26px #0a0f454a;background:linear-gradient(135deg,#222ca6,#121a66)!important}
html body #equipos .category-card:hover .category-arrow{border-color:var(--ev-dorado);color:var(--ev-dorado)!important}
@media(max-width:760px){html body #equipos .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){html body #equipos .category-card{padding:17px!important;min-height:130px}html body #equipos .category-name{font-size:23px}html body #equipos .category-arrow{right:15px;bottom:17px}}
@media(prefers-reduced-motion:reduce){html body #equipos .category-card{transition:none}html body #equipos .category-card:hover{transform:none}}

/* Categorías (administradores): solo un botón chico y discreto; el formulario se abre al tocarlo. */
html body #gestion-categorias{margin-top:8px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body #gestion-categorias>summary{display:inline-flex;align-items:center;gap:7px;list-style:none;cursor:pointer;padding:7px 14px;font-size:13px;font-weight:600;letter-spacing:.2px;color:#fff;background:linear-gradient(135deg,#1a2390,#0d1356);border:1px solid #2a3294;border-top:2px solid var(--ev-dorado);border-radius:10px;box-shadow:0 3px 10px #0a0f4520;transition:transform .15s,box-shadow .15s,border-color .15s;user-select:none}
html body #gestion-categorias>summary::-webkit-details-marker{display:none}
html body #gestion-categorias>summary span{color:#f2d48a}
html body #gestion-categorias>summary:hover{transform:translateY(-2px);border-color:#f2d48a;box-shadow:0 6px 14px #0a0f4530}
html body #gestion-categorias>summary:focus-visible{outline:2px solid var(--ev-dorado);outline-offset:2px}
html body #gestion-categorias[open]>summary{background:#fff;color:var(--ev-azul-hondo);border-color:#cdd0e6;border-top-color:var(--ev-dorado)}
html body #gestion-categorias[open]>summary span{color:var(--ev-dorado-texto)}
html body #gestion-categorias .cat-panel{margin-top:12px;padding:18px;background:#fff;border:1px solid var(--ev-borde);border-radius:14px}
html body #gestion-categorias .cat-panel h2{margin-top:0}
@media(prefers-reduced-motion:reduce){html body #gestion-categorias>summary{transition:none}html body #gestion-categorias>summary:hover{transform:none}}

/* Sin títulos "Tira A / Tira B": los grupos quedan separados solo por una línea dorada fina. */
html body #equipos .league-group{margin:0 0 28px!important}
html body #equipos .league-group h3{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html body #equipos .league-group+.league-group{padding-top:28px!important;border-top:1px solid transparent!important;border-image:linear-gradient(90deg,var(--ev-dorado),#f4b01933 70%,transparent) 1!important}

/* Ramas (Femenino / Masculino): pestañas chicas, la activa en azul con filete dorado. */
html body .rama-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
html body .rama-tabs a{padding:7px 16px;border-radius:999px;border:1px solid #cdd0e6;border-top:2px solid transparent;color:var(--ev-azul-hondo);background:#fff;font-size:14px;font-weight:650;text-decoration:none;transition:border-color .15s,color .15s}
html body .rama-tabs a:hover{border-color:var(--ev-azul);color:var(--ev-azul)}
html body .rama-tabs a.activa{background:linear-gradient(135deg,#1a2390,#0d1356);color:#fff;border-color:#2a3294;border-top-color:var(--ev-dorado)}
html:root body>header img[src*="everton-logo"]{filter:none!important}
html:root[data-club-auth="signed-out"] body>header img[src*="everton-logo"]{filter:drop-shadow(0 6px 14px #0006)!important}
