/*
Theme Name: Teonambulos Umbral
Theme URI: https://teonambulos.com/
Author: Teonambulos
Author URI: https://teonambulos.com/
Description: Tema de bloques para Teonambulos. Direccion "Umbral": el titulo es dueno del borde izquierdo, la imagen acompana en lugar de encabezar, y el articulo trae un aparato de lectura con el indice del propio ensayo. Paleta tomada del logo (azul pizarra y citron), Literata para leer y Jost para etiquetar.
Version: 1.2.2
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teonambulos-umbral
Tags: blog, one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, block-patterns, translation-ready
*/

/* ==========================================================================
   1. Base
   ========================================================================== */

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible {
  outline: 2px solid var(--wp--preset--color--tinta);
  outline-offset: 4px;
}

:where(h1, h2, h3, h4) {
  text-wrap: balance;
  hyphens: none;
}

.wp-block-post-featured-image {
  margin: 0;
  background: var(--wp--preset--color--hueco);
  overflow: hidden;
}

.wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

/* El diseno constrenido de WordPress pone margin-left:auto a cada bloque hijo.
   Con un max-width mas estrecho eso los CENTRA en lugar de acortarlos por la
   derecha. Un bloque de texto tiene un solo borde izquierdo. */
.tl-cuerpo > *:not([class*="align"]),
.tl-umbral .wp-block-column > *:not([class*="align"]) {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ==========================================================================
   2. Barra delgada y persistente
   ========================================================================== */

.tl-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--wp--preset--color--papel);
  border-bottom: 1px solid var(--wp--preset--color--filete);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

@supports (backdrop-filter: blur(6px)) {
  .tl-bar {
    background: color-mix(in srgb, var(--wp--preset--color--papel) 92%, transparent);
    backdrop-filter: blur(8px);
  }
}

.tl-bar .wp-block-site-logo {
  margin: 0;
  line-height: 0;
}

.tl-bar .wp-block-site-logo img {
  height: auto;
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.tl-bar .wp-block-navigation {
  gap: 1.25rem;
}

.tl-bar .wp-block-navigation a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.tl-bar .wp-block-navigation a:hover,
.tl-bar .wp-block-navigation .current-menu-item a {
  color: var(--wp--preset--color--tinta);
  border-bottom-color: var(--wp--preset--color--citron);
}

.tl-bar .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--papel);
  color: var(--wp--preset--color--tinta);
}

/* Barra de progreso de lectura */
.tl-prog {
  position: sticky;
  top: 58px;
  z-index: 19;
  height: 2px;
  background: var(--wp--preset--color--filete);
}

.tl-prog > i {
  display: block;
  height: 2px;
  width: 0;
  background: var(--wp--preset--color--citron);
}

/* ==========================================================================
   3. Umbral: la primera pantalla dice que es esto
   ========================================================================== */

.tl-umbral {
  padding-top: 2.875rem;
  padding-bottom: 1.875rem;
  border-bottom: 1px solid var(--wp--preset--color--tinta);
}

.tl-umbral .wp-block-columns {
  gap: 3.25rem;
  margin-bottom: 0;
}

.tl-umbral h1,
.tl-umbral h2 {
  font-size: 1.688rem;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 0.875rem;
  max-width: 26em;
  text-wrap: pretty;
}

.tl-umbral h1 strong,
.tl-umbral h2 strong {
  font-weight: 600;
}

.tl-quien {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  margin: 0;
}

.tl-quien a {
  color: var(--wp--preset--color--tinta-suave);
  text-decoration: none;
  border-bottom: 1px solid var(--wp--preset--color--filete);
}

.tl-quien a:hover {
  color: var(--wp--preset--color--tinta);
  border-bottom-color: var(--wp--preset--color--citron);
}

/* Formulario de correo: una linea, sin caja */
.tl-sus p {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.844rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  line-height: 1.5;
  margin: 0 0 0.55rem;
}

.tl-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--wp--preset--color--tinta);
}

.tl-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 9px 2px;
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.938rem;
  color: var(--wp--preset--color--tinta);
}

.tl-form input[type="email"]::placeholder {
  color: var(--wp--preset--color--meta);
}

.tl-form input[type="email"]:focus {
  outline: none;
}

.tl-form:focus-within {
  border-bottom: 2px solid var(--wp--preset--color--citron);
}

.tl-form button {
  border: 0;
  background: none;
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--citron-texto);
  cursor: pointer;
  padding: 0 0 0 12px;
  white-space: nowrap;
}

.tl-form button:hover {
  color: var(--wp--preset--color--tinta);
}

/* ==========================================================================
   4. Indice: el titulo es dueno del borde izquierdo
   ========================================================================== */

.tl-idx {
  padding-top: 0.375rem;
}

.tl-ent {
  gap: 2.125rem;
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--wp--preset--color--filete);
  margin-bottom: 0;
}

.tl-ent:hover {
  background: #f6f7f5;
  box-shadow: -16px 0 0 #f6f7f5, 16px 0 0 #f6f7f5;
}

.tl-ent .wp-block-post-title {
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.27;
  margin: 0 0 0.44rem;
  max-width: 26em;
}

.tl-ent:hover .wp-block-post-title a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tl-ent .wp-block-post-excerpt {
  margin: 0 0 0.625rem;
  max-width: 44em;
}

.tl-ent .wp-block-post-featured-image img {
  aspect-ratio: 4 / 3;
}

.tl-ent:hover .wp-block-post-featured-image img {
  opacity: 0.88;
}

/* La entrada de arriba, a todo el ancho y mas grande */
.tl-prim {
  padding: 2.375rem 0 1.875rem;
}

.tl-prim .wp-block-post-title {
  font-size: var(--wp--preset--font-size--x-large);
  line-height: 1.16;
  letter-spacing: -0.014em;
}

.tl-prim .wp-block-post-excerpt {
  font-size: 1.094rem;
}

.tl-prim .wp-block-post-featured-image img {
  aspect-ratio: 3 / 2;
}

/* Linea de materia, fecha y minutos */
.tl-linea {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  gap: 0.875rem;
  align-items: center;
}

.tl-linea > * {
  margin: 0;
}

.tl-linea p {
  font-size: inherit;
  color: inherit;
}

.tl-lectura {
  margin: 0;
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
}


/* ==========================================================================
   4b. Reticula de dos columnas y columna lateral
   ========================================================================== */

.tl-cols {
  gap: 3.5rem;
  padding-top: 0.375rem;
  margin-bottom: 0;
}

.tl-lateral {
  position: sticky;
  top: 74px;
  font-family: var(--wp--preset--font-family--jost);
}

.tl-bl {
  margin-bottom: 2.25rem;
}

.tl-bl:last-child {
  margin-bottom: 0;
}

.tl-bl-cab {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--wp--preset--color--meta);
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--wp--preset--color--tinta);
  display: block;
}

.tl-bl-cab::before {
  content: none;
}

/* Materias: el bloque de categorias de WordPress */
.tl-mat ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-mat li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.906rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  font-variant-numeric: tabular-nums;
  padding: 7px 0;
  border-bottom: 1px solid var(--wp--preset--color--filete);
}

.tl-mat li:last-child {
  border-bottom: 0;
}

.tl-mat li a {
  font-weight: 400;
  font-size: 0.906rem;
  color: var(--wp--preset--color--tinta);
  text-decoration: none;
}

.tl-mat li:hover,
.tl-mat li:hover a {
  color: var(--wp--preset--color--citron-texto);
}

/* Suscripcion en la columna */
.tl-lateral .tl-sus p {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.844rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  line-height: 1.5;
  margin: 0 0 0.6rem;
}

.tl-lateral .tl-form input[type="email"] {
  font-size: 0.906rem;
  padding: 8px 2px;
}

.tl-lateral .tl-form button {
  font-size: 0.844rem;
  padding-left: 10px;
}

/* Del archivo */
.tl-sel .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-sel li {
  padding: 9px 0;
  border-bottom: 1px solid var(--wp--preset--color--filete);
}

.tl-sel li:last-child {
  border-bottom: 0;
}

.tl-sel .wp-block-post-title {
  font-size: 0.938rem;
  line-height: 1.32;
  margin: 0 0 0.2rem;
}

.tl-sel .wp-block-post-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tl-sel .tl-linea {
  font-size: 0.781rem;
  gap: 0.625rem;
}

/* Se habla de */
.tl-etq .wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.tl-etq .wp-block-tag-cloud a {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem !important;
  font-weight: 300;
  color: var(--wp--preset--color--tinta-suave);
  text-decoration: none;
  border-bottom: 1px solid var(--wp--preset--color--filete);
  padding-bottom: 2px;
}

.tl-etq .wp-block-tag-cloud a:hover {
  color: var(--wp--preset--color--tinta);
  border-bottom-color: var(--wp--preset--color--citron);
}

/* Descripcion de la categoria en su archivo */
.tl-desc-materia {
  font-family: var(--wp--preset--font-family--literata);
  font-size: 1.031rem;
  line-height: 1.55;
  color: var(--wp--preset--color--tinta-suave);
  max-width: 44em;
}

/* La paginacion vive dentro de la columna izquierda */
.tl-cols .wp-block-query-pagination {
  padding-top: 2rem;
}

/* ==========================================================================
   5. Banda azul: empieza por aqui
   ========================================================================== */

.tl-banda {
  background: var(--wp--preset--color--tinta);
  color: var(--wp--preset--color--papel);
  margin-top: 2.875rem;
  padding-top: 2.375rem;
  padding-bottom: 2.625rem;
  position: relative;
  overflow: hidden;
}

.tl-buho {
  position: absolute;
  right: -30px;
  top: -46px;
  width: 300px;
  opacity: 0.09;
  color: #fff;
  pointer-events: none;
}

.tl-banda .tl-cab {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 0.55rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.tl-banda .tl-cab p {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.tl-banda .tl-cab a {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.844rem;
  font-weight: 400;
  color: var(--wp--preset--color--citron);
  text-decoration: none;
}

.tl-banda .tl-cab a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tl-banda .wp-block-post-template {
  gap: 1.5rem;
  position: relative;
}

.tl-banda .wp-block-post-featured-image {
  background: #213542;
  margin-bottom: 0.813rem;
}

.tl-banda .wp-block-post-featured-image img {
  aspect-ratio: 4 / 3;
  opacity: 0.9;
}

.tl-banda .wp-block-post-featured-image:hover img {
  opacity: 1;
}

.tl-banda .wp-block-post-title {
  font-size: 1.156rem;
  line-height: 1.28;
  margin: 0 0 0.375rem;
  color: var(--wp--preset--color--papel);
}

.tl-banda .wp-block-post-title a {
  color: inherit;
}

.tl-banda .wp-block-post-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tl-banda .tl-linea,
.tl-banda .tl-lectura,
.tl-banda .wp-block-post-terms,
.tl-banda .wp-block-post-terms a {
  color: rgba(255, 255, 255, 0.62);
}

/* ==========================================================================
   6. Pie
   ========================================================================== */

.tl-footer {
  background: var(--wp--preset--color--hondo);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.844rem;
  font-weight: 300;
  margin-top: 2.75rem;
  padding-top: 1.625rem;
  padding-bottom: 1.875rem;
}

.tl-footer p {
  margin: 0;
}

.tl-footer a {
  color: inherit;
  text-decoration: none;
}

.tl-footer a:hover {
  color: #fff;
}

/* ==========================================================================
   7. Articulo: reticula con aparato de lectura
   ========================================================================== */

.tl-art {
  gap: 3.75rem;
  padding-top: 2.375rem;
  margin-bottom: 0;
}

.tl-rail {
  font-family: var(--wp--preset--font-family--jost);
  position: sticky;
  top: 74px;
  align-self: start;
}

.tl-rail .wp-block-post-terms {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0.875rem;
}

.tl-rail .wp-block-post-terms::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--wp--preset--color--citron);
}

.tl-ficha {
  font-size: 0.813rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  line-height: 1.7;
  margin: 0 0 1.375rem;
}

.tl-ficha dt {
  font-weight: 500;
  color: var(--wp--preset--color--tinta);
  margin-top: 0.625rem;
}

.tl-ficha dt:first-child {
  margin-top: 0;
}

.tl-ficha dd {
  margin: 0;
}

.tl-ficha .tl-dt {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--wp--preset--color--tinta);
  margin: 0.625rem 0 0;
  line-height: 1.5;
}

.tl-ficha > .tl-dt:first-child {
  margin-top: 0;
}

.tl-ficha .tl-dd {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  margin: 0;
  line-height: 1.5;
}

.tl-ficha .wp-block-post-date {
  margin: 0;
}

/* Indice del ensayo */
.tl-indice {
  border-top: 1px solid var(--wp--preset--color--filete);
  padding-top: 0.875rem;
}

.tl-indice > p {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.781rem;
  font-weight: 500;
  color: var(--wp--preset--color--meta);
  margin: 0 0 0.625rem;
}

.tl-indice a {
  display: block;
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem;
  font-weight: 300;
  color: var(--wp--preset--color--tinta-suave);
  line-height: 1.4;
  text-decoration: none;
  padding: 5px 0 5px 11px;
  border-left: 2px solid var(--wp--preset--color--filete);
}

.tl-indice a:hover {
  color: var(--wp--preset--color--tinta);
}

.tl-indice a[aria-current="true"] {
  color: var(--wp--preset--color--tinta);
  font-weight: 500;
  border-left-color: var(--wp--preset--color--citron);
}

/* Cabecera del texto */
.tl-cuerpo .wp-block-post-title {
  margin: 0 0 0.8rem;
}

.tl-cuerpo > .wp-block-post-excerpt {
  font-size: 1.188rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}

.tl-firma {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.844rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  gap: 1.125rem;
  border-top: 1px solid var(--wp--preset--color--filete);
  padding-top: 0.875rem;
}

.tl-firma > * {
  margin: 0;
}

/* Imagen destacada del articulo: al ancho de la columna de lectura, nunca a
   sangre y nunca antes del titulo. El texto sigue entrando primero. */
.tl-afig {
  margin-top: 1.625rem;
}

.tl-afig .wp-block-post-featured-image img {
  aspect-ratio: 3 / 2;
}

.tl-afig:has(.wp-block-post-featured-image:empty) {
  margin-top: 0;
}

/* Sin imagen destacada el grupo no debe dejar un hueco */
.tl-afig > .wp-block-post-featured-image:empty {
  display: none;
}

/* Cuerpo del ensayo */
.entry-content {
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.75;
  text-wrap: pretty;
  margin-top: 1.625rem;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.15em;
}

/* Primer parrafo, medio punto mas grande. Menos que antes, porque ahora la
   imagen destacada ya marca la entrada al texto. */
.entry-content > p:first-child {
  font-size: 1.219rem;
  line-height: 1.64;
}

.entry-content strong,
.entry-content b {
  font-weight: 600;
}

/* Subtitulos visibles: el escaneo vertical tiene que encontrarlos */
.entry-content h2,
.entry-content .tl-subtitulo {
  font-family: var(--wp--preset--font-family--literata);
  font-size: 1.375rem;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--wp--preset--color--tinta);
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 2em;
  margin-bottom: 0.7em;
  scroll-margin-top: 90px;
}

.entry-content h2::before,
.entry-content .tl-subtitulo::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--wp--preset--color--citron);
}

.entry-content h3 {
  font-size: 1.063rem;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  scroll-margin-top: 90px;
}

.entry-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content figure,
.entry-content .wp-block-image {
  margin-top: 2em;
  margin-bottom: 2em;
}

.entry-content .wp-block-image img {
  width: 100%;
}

.entry-content figcaption {
  max-width: 36em;
  padding-top: 9px;
}

.entry-content ol,
.entry-content ul {
  padding-left: 1.2em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.wp-block-quote {
  margin: 1.9em 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--wp--preset--color--citron);
  border-radius: 0;
}

.wp-block-quote p {
  margin-bottom: 0.4em;
}

.wp-block-quote cite {
  display: block;
  font-family: var(--wp--preset--font-family--jost);
  font-style: normal;
  font-size: 0.813rem;
  font-weight: 300;
  color: var(--wp--preset--color--meta);
  margin-top: 0.7rem;
}

/* Fuentes */
.tl-fuentes {
  margin-top: 2.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wp--preset--color--filete);
}

.tl-fuentes h2,
.tl-fuentes h3,
.tl-fuentes h4 {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--wp--preset--color--meta);
  margin: 0 0 0.55rem;
  letter-spacing: 0;
  display: block;
}

.tl-fuentes h2::before,
.tl-fuentes h3::before {
  content: none;
}

.tl-fuentes ol,
.tl-fuentes ul {
  font-size: 0.938rem;
  color: var(--wp--preset--color--tinta-suave);
  line-height: 1.65;
  margin: 0;
  padding-left: 1.2em;
}

/* Etiquetas */
.tl-tags {
  padding-top: 1.375rem;
  gap: 0.625rem;
}

.tl-tags a {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.813rem;
  color: var(--wp--preset--color--tinta-suave);
  text-decoration: none;
  border-bottom: 1px solid var(--wp--preset--color--filete);
  padding-bottom: 2px;
}

.tl-tags a:hover {
  color: var(--wp--preset--color--tinta);
  border-bottom-color: var(--wp--preset--color--citron);
}

/* Sigue leyendo */
.tl-sigue {
  padding-top: 2.125rem;
}

.tl-sigue .tl-cab {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.844rem;
  font-weight: 500;
  color: var(--wp--preset--color--meta);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--wp--preset--color--tinta);
  margin-bottom: 0.25rem;
}

.tl-sigue .tl-cab p {
  margin: 0;
}

.tl-sig-fila {
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--wp--preset--color--filete);
  margin-bottom: 0;
}

.tl-sigue .wp-block-post-title {
  font-size: 1.125rem;
  line-height: 1.28;
  margin: 0 0 0.375rem;
}

.tl-sigue .wp-block-post-featured-image img {
  aspect-ratio: 4 / 3;
}

.tl-sig-fila:hover .wp-block-post-featured-image img {
  opacity: 0.88;
}

.tl-sig-fila:hover .wp-block-post-title a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Cierre del articulo */
.tl-cierre-art {
  margin-top: 2.375rem;
  border-top: 1px solid var(--wp--preset--color--tinta);
  padding-top: 1.625rem;
}

.tl-cierre-art h2,
.tl-cierre-art h3 {
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
  display: block;
}

.tl-cierre-art h2::before {
  content: none;
}

/* ==========================================================================
   8. Paginacion, busqueda, archivo
   ========================================================================== */

.wp-block-query-pagination {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.938rem;
  font-weight: 400;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--wp--preset--color--tinta);
}

.wp-block-query-pagination a {
  text-decoration: none;
  color: var(--wp--preset--color--tinta-suave);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.wp-block-query-pagination a:hover {
  color: var(--wp--preset--color--citron-texto);
  border-bottom-color: var(--wp--preset--color--citron);
}

/* Las flechas de "anterior" y "siguiente" no llevan simbolos pegados */
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  font-weight: 500;
}

.wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination-next-arrow {
  display: none;
}

.wp-block-query-pagination-numbers {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  color: var(--wp--preset--color--meta);
  font-size: 0.875rem;
}

.wp-block-query-pagination-numbers .current {
  color: var(--wp--preset--color--tinta);
  font-weight: 500;
  border-bottom: 2px solid var(--wp--preset--color--citron);
  padding-bottom: 2px;
}

.wp-block-query-pagination-numbers .dots {
  border: 0;
}

/* Cuando solo queda un lado, el que quede no se centra */
.wp-block-query-pagination > :only-child {
  margin-right: auto;
}

.wp-block-search .wp-block-search__input {
  border: 0;
  border-bottom: 1px solid var(--wp--preset--color--tinta);
  border-radius: 0;
  background: none;
  font-family: var(--wp--preset--font-family--jost);
  padding: 9px 2px;
  color: var(--wp--preset--color--tinta);
}

.wp-block-search .wp-block-search__button {
  border: 0;
  background: none;
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.906rem;
  font-weight: 500;
  color: var(--wp--preset--color--citron-texto);
  padding: 0 0 0 14px;
}

.tl-titulo-archivo {
  font-family: var(--wp--preset--font-family--jost);
  font-size: 0.906rem;
  font-weight: 500;
  color: var(--wp--preset--color--meta);
  letter-spacing: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--wp--preset--color--tinta);
  display: block;
}

.tl-titulo-archivo::before {
  content: none;
}

/* ==========================================================================
   9. Movil
   ========================================================================== */

@media (max-width: 1000px) {
  .tl-cols {
    gap: 2.75rem;
  }
  .tl-cols > .wp-block-column {
    flex-basis: 100% !important;
  }
  .tl-lateral {
    position: static;
    border-top: 1px solid var(--wp--preset--color--tinta);
    padding-top: 1.5rem;
  }
  .tl-lateral .tl-bl-cab {
    border-bottom-color: var(--wp--preset--color--filete);
  }
}

@media (max-width: 900px) {
  .tl-art {
    gap: 1.625rem;
  }
  .tl-art > .wp-block-column {
    flex-basis: 100% !important;
  }
  .tl-rail {
    position: static;
  }
  .tl-ficha {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
  }
  .tl-ficha dt {
    margin-top: 0;
  }
  .tl-indice {
    display: none;
  }
  .tl-umbral .wp-block-column {
    flex-basis: 100% !important;
  }
  .tl-umbral .wp-block-columns {
    gap: 1.625rem;
  }
}

@media (max-width: 781px) {
  .tl-ent {
    gap: 0.875rem;
  }
  .tl-ent .wp-block-column {
    flex-basis: 100% !important;
  }
  /* En movil la foto va arriba y a todo el ancho */
  .tl-ent .wp-block-column:last-child {
    order: -1;
  }
  .tl-ent .wp-block-post-featured-image img,
  .tl-prim .wp-block-post-featured-image img {
    aspect-ratio: 2 / 1;
  }
  .tl-ent:hover {
    background: none;
    box-shadow: none;
  }
  .tl-sig-fila .wp-block-column:last-child {
    flex-basis: 88px !important;
  }
  .tl-prog {
    top: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
