/* notas.css - Notas semanales (backend/nfl/notas/publicar.py). Usa los tokens de tema-verde.css / tema-claro.css,
   asi que se ve igual de bien en claro y en oscuro. Ocupa todo el ancho de la pagina. */

.tt-nota-pagina { padding-bottom: 8px; }
.tt-nota-ruta { font-size: .85rem; color: var(--tt-muted); margin: 0 0 14px; }
.tt-nota-ruta a { color: var(--tt-muted); text-decoration: none; }
.tt-nota-ruta a:hover { color: var(--tt-green); }

/* paginas que reutilizan la plantilla de notas (partido, historico, equipos): <article class="tt-card tt-nota"> */
.tt-nota h1 { color: var(--tt-strong); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.2; margin: 8px 0 10px; }
.tt-nota > .tt-nota-meta { margin-bottom: 22px; }
.tt-nota-cuerpo h2 { color: var(--tt-strong); font-size: 1.3rem; font-weight: 700; margin: 28px 0 10px; }
.tt-nota-cuerpo h3 { color: var(--tt-strong); font-size: 1.1rem; font-weight: 700; margin: 22px 0 8px; }
.tt-nota-cuerpo ul, .tt-nota-cuerpo ol { padding-left: 1.3rem; margin: 0 0 14px; }
@media (max-width: 575px) { .tt-nota { padding: 18px; } }

/* portada y encabezado */
.tt-nota-hero { border-radius: 20px; overflow: hidden; border: 1px solid var(--tt-border); background: var(--tt-surface); margin-bottom: 28px; }
.tt-nota-portada { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; max-height: 520px; object-fit: cover; }
.tt-nota-encabezado { padding: 26px 32px 30px; }
.tt-nota-encabezado h1 { color: var(--tt-strong); font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; margin: 10px 0 12px; letter-spacing: -.01em; }
.tt-nota-meta { color: var(--tt-muted); font-size: .95rem; }
.tt-nota-indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tt-nota-indice a { font-size: .9rem; font-weight: 600; color: var(--tt-text); text-decoration: none; border: 1px solid var(--tt-border); border-radius: 999px; padding: 6px 14px; background: var(--tt-bg); }
.tt-nota-indice a:hover { border-color: var(--tt-green); color: var(--tt-green); }

/* texto: grande, corto y dividido */
.tt-nota-cuerpo { color: var(--tt-text); font-size: 1.2rem; line-height: 1.75; }
.tt-nota-cuerpo p { margin: 0 0 16px; }
.tt-nota-cuerpo b { color: var(--tt-strong); }
.tt-nota-entrada { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.55; color: var(--tt-strong); font-weight: 500; margin: 0 0 34px; padding-left: 20px; border-left: 5px solid var(--tt-green); }
.tt-nota-entrada p { margin: 0 0 10px; }
.tt-nota-bloque { margin: 0 0 44px; scroll-margin-top: 84px; }
.tt-nota-bloque > h2 { color: var(--tt-strong); font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 800; margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.tt-nota-bloque > h2::before { content: ''; flex: 0 0 8px; align-self: stretch; border-radius: 4px; background: var(--tt-green); }
.tt-nota-bloque h3 { color: var(--tt-strong); font-size: 1.3rem; font-weight: 700; margin: 22px 0 8px; }
.tt-nota-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); align-items: start; }
.tt-nota-partido { background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: 18px; padding: 22px 24px 8px; }
.tt-nota-partido h3 { margin: 0 0 10px; font-size: 1.35rem; color: var(--tt-strong); }
.tt-nota-partido p { font-size: 1.1rem; }
.tt-nota-texto { max-width: 980px; }
.tt-nota-bloque ul, .tt-nota-bloque ol { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); counter-reset: n; }
.tt-nota-bloque li { background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: 14px; padding: 14px 18px; font-size: 1.08rem; line-height: 1.55; }
.tt-nota-bloque ol li { counter-increment: n; }
.tt-nota-bloque ol li::before { content: counter(n) '. '; font-weight: 800; color: var(--tt-green); }
.tt-nota-img { margin: 0 0 24px; grid-column: 1 / -1; }
.tt-nota-img img { display: block; max-width: 100%; max-height: 560px; height: auto; margin: 0 auto; border-radius: 16px; }
.tt-nota-img figcaption { color: var(--tt-muted); font-size: .92rem; text-align: center; margin-top: 8px; }
.tt-nota-cuerpo a { color: var(--tt-green); }

.tt-nota-ligas { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }
.tt-nota-ligas .tt-btn { padding: 14px 24px; font-size: 1rem; }
.tt-nota-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tt-nota-tag { font-size: .8rem; color: var(--tt-muted); border: 1px solid var(--tt-border); border-radius: 999px; padding: 3px 12px; }

/* lista de notas: tarjetas con su imagen */
.tt-nota-lista { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.tt-nota-item { display: flex; flex-direction: column; background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: 18px; overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.tt-nota-item:hover { border-color: var(--tt-green); transform: translateY(-2px); }
.tt-nota-item img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--tt-surface-2); }
.tt-nota-item .tt-nota-item-txt { padding: 18px 22px 22px; }
.tt-nota-item h2 { color: var(--tt-strong); font-size: 1.3rem; font-weight: 800; line-height: 1.25; margin: 6px 0 8px; }
.tt-nota-item p { color: var(--tt-muted); margin: 0; font-size: 1rem; line-height: 1.5; }
.tt-nota-item.destacada { grid-column: 1 / -1; flex-direction: row; }
.tt-nota-item.destacada img { width: 55%; height: auto; align-self: stretch; aspect-ratio: auto; min-height: 280px; }
.tt-nota-item.destacada .tt-nota-item-txt { display: flex; flex-direction: column; justify-content: center; padding: 28px 34px; }
.tt-nota-item.destacada h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.tt-nota-item.destacada p { font-size: 1.12rem; }

@media (max-width: 767px) {
  .tt-nota-encabezado { padding: 18px 18px 22px; }
  .tt-nota-cuerpo { font-size: 1.12rem; }
  .tt-nota-partido { padding: 18px 18px 4px; }
  .tt-nota-item.destacada { flex-direction: column; }
  .tt-nota-item.destacada img { width: 100%; min-height: 0; align-self: auto; aspect-ratio: 1200 / 630; }
}

/* Fuentes: letra chica y ocultas por defecto; el switch las muestra (sirve en tema claro y oscuro) */
.tt-nota-fuentes { margin: -12px 0 40px; font-size: .85rem; color: var(--tt-muted); }
.tt-nota-fuentes > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; user-select: none; color: var(--tt-muted); }
.tt-nota-fuentes > summary::-webkit-details-marker { display: none; }
.tt-nota-fuentes > summary:hover { color: var(--tt-text); }
.tt-nota-fuentes > summary:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 3px; border-radius: 6px; }
.tt-fuentes-switch { position: relative; flex: 0 0 auto; width: 34px; height: 20px; border-radius: 999px; background: var(--tt-surface-2, var(--tt-surface)); border: 1px solid var(--tt-border); transition: background .2s, border-color .2s; }
.tt-fuentes-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--tt-muted); transition: transform .2s, background .2s; }
.tt-nota-fuentes[open] .tt-fuentes-switch { background: var(--tt-green); border-color: var(--tt-green); }
.tt-nota-fuentes[open] .tt-fuentes-switch::after { transform: translateX(14px); background: #fff; }
.tt-nota-fuentes-lista { margin-top: 10px; }
.tt-nota-fuentes-lista ul, .tt-nota-fuentes-lista ol { margin: 0; padding-left: 1.2rem; list-style: disc; }
.tt-nota-fuentes-lista li { font-size: .85rem; line-height: 1.5; padding: 2px 0; }
.tt-nota-fuentes-lista p { margin: 0 0 6px; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .tt-fuentes-switch, .tt-fuentes-switch::after { transition: none; } }

/* Audio (podcast) de la nota */
.tt-nota-audio { background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: 16px; padding: 14px 18px; margin: 0 0 24px; }
.tt-nota-audio .tt-eyebrow { margin-bottom: 2px; }
.tt-nota-audio-titulo { color: var(--tt-strong); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.tt-nota-audio audio { width: 100%; display: block; }
