/* TerpTalk — plantilla de artículo (posts de la categoría Artículos) */

/* ---------- Cabeza ---------- */
.tt-site .tt-art-head { row-gap: var(--s3); }
.tt-site .tt-art-head > .tt-art-kick { display: flex !important; flex-wrap: wrap; gap: 6px; }
.tt-site .tt-art-kick .wp-block-post-terms { display: contents; }
.tt-site .tt-art-kick .tt-art-cat a { background: var(--lime); color: var(--ink); }
.tt-site .tt-art-head .wp-block-post-title { grid-column: 1 / 12; font-size: clamp(52px, 7.6vw, 150px); line-height: .88; letter-spacing: -.01em; text-wrap: balance; margin-top: 4px; }
.tt-site .tt-art-head .tt-art-dek { grid-column: 1 / 9; margin: 0; text-wrap: pretty; }
.tt-site .tt-art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: var(--sm); text-transform: uppercase; letter-spacing: .06em; }
.tt-site .tt-art-meta span[aria-hidden] { color: var(--lime-ink); font-weight: 700; }

/* ---------- Foto de portada ---------- */
.tt-site .tt-art-cover { margin: var(--s2) var(--gut) 0 !important; aspect-ratio: 16 / 9; }
.tt-site .tt-art-cover img { display: block; }
/* la portada lleva texto en el arte: se ve completa, sin zoom (GSAP le pone scale 1.08) */
.tt-site .tt-art-cover img { transform: none !important; }
/* es una foto, no un video: sin botón de play */
.tt-site .tt-art-cover::before, .tt-site .tt-cards li.category-articulos .wp-block-post-featured-image::before { content: none !important; display: none !important; }

/* ---------- Texto ---------- */
.tt-site .tt-art-body .wp-block-post-content { row-gap: 1.1em; }
.tt-site .tt-art-body .wp-block-post-content > * { grid-column: 4 / 10; font-size: 19px; line-height: 1.62; max-width: 66ch; margin: 0; }
.tt-site .tt-art-body .wp-block-post-content > p:first-of-type { font-size: 19px; font-weight: 400; line-height: 1.62; letter-spacing: 0; }
.tt-site .tt-art-body .wp-block-post-content > p:first-of-type::first-letter, .tt-site .tt-art-body .tt-drop { float: left; font-family: var(--display); font-size: 5.6em; line-height: .8; padding: .091em .1em .119em; /* abajo más que arriba: la letra trae aire propio arriba, así el espacio se ve igual */ margin: .06em .14em 0 0; background: var(--ink); color: var(--lime); }
/* en Safari el JS saca la letra grande a su propio span (para poder partir el resto en letras) */
.tt-site .tt-art-body .wp-block-post-content > p.has-drop::first-letter { float: none; font: inherit; padding: 0; margin: 0; background: none; color: inherit; }
.tt-site .tt-art-body .wp-block-post-content > h2 { font-size: clamp(34px, 3.6vw, 66px); line-height: .92; margin-top: .9em; max-width: 18ch; text-wrap: balance; }
.tt-site .tt-art-body .wp-block-post-content > h3 { font-family: inherit; font-size: clamp(22px, 1.7vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; text-transform: none; margin-top: .6em; }
.tt-site .tt-art-body .wp-block-post-content > :is(h2, h3) + * { margin-top: -.2em; }
.tt-site .tt-art-body .wp-block-post-content strong { font-weight: 700; }

/* listas con cuadritos lima */
.tt-site .tt-art-body .wp-block-post-content > :is(ul, ol) { padding-left: 0; list-style: none; display: grid; gap: .5em; }
.tt-site .tt-art-body .wp-block-post-content > :is(ul, ol) li { position: relative; padding-left: 1.6em; }
.tt-site .tt-art-body .wp-block-post-content > ul li::before { content: ""; position: absolute; left: .1em; top: .52em; width: .58em; height: .58em; background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.tt-site .tt-art-body .wp-block-post-content > ol { counter-reset: tt; }
.tt-site .tt-art-body .wp-block-post-content > ol li { counter-increment: tt; }
.tt-site .tt-art-body .wp-block-post-content > ol li::before { content: counter(tt); position: absolute; left: 0; top: .1em; font-family: var(--display); font-size: 1.15em; line-height: 1.2; color: var(--lime-ink); }

/* cita grande */
.tt-site .tt-art-body .wp-block-post-content > :is(.wp-block-quote, .wp-block-pullquote) { grid-column: 2 / 11; max-width: none; position: relative; margin: var(--s3) 0 !important; padding: 0 0 0 clamp(64px, 7vw, 130px); border: 0; text-align: left; }
.tt-site .tt-art-body .wp-block-post-content > :is(.wp-block-quote, .wp-block-pullquote)::before { content: "“"; position: absolute; left: 0; top: -.14em; font-family: var(--display); font-size: clamp(170px, 16vw, 320px); line-height: .8; color: var(--lime); -webkit-text-stroke: 2px var(--ink); }
.tt-site .tt-art-body .wp-block-post-content > .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.tt-site .tt-art-body :is(.wp-block-quote, .wp-block-pullquote) p { font-family: var(--display); font-size: clamp(30px, 3.4vw, 62px); line-height: .98; text-transform: uppercase; margin: 0; }
.tt-site .tt-art-body :is(.wp-block-quote, .wp-block-pullquote) cite { display: inline-block; margin-top: var(--s3); font-size: var(--sm); font-style: normal; text-transform: uppercase; letter-spacing: .06em; }
.tt-site .tt-art-body :is(.wp-block-quote, .wp-block-pullquote) cite::before { content: "— "; }

/* fotos dentro del texto */
.tt-site .tt-art-body .wp-block-post-content > .wp-block-image { grid-column: 2 / 12; max-width: none; margin: var(--s3) 0 !important; }
.tt-site .tt-art-body .wp-block-post-content > .wp-block-image img { display: block; width: 100%; height: auto; filter: contrast(1.08) saturate(.92); }
.tt-site .tt-art-body .wp-block-image figcaption { margin: 12px 0 0; font-size: var(--sm); line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; text-align: left; }

/* separador: un brochazo lima */
.tt-site .tt-art-body .wp-block-post-content > .wp-block-separator { height: 22px; width: min(260px, 60%); border: 0 !important; background: var(--lime); opacity: 1; -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; margin: var(--s3) 0 !important; }

/* ---------- Final del artículo ---------- */
.tt-site .tt-art-end { padding: var(--s2) var(--gut) 0; display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.tt-site .tt-art-end-in { grid-column: 4 / 10; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); border-top: 1.5px solid var(--ink); }
.tt-site .tt-art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tt-site .tt-art-tags .wp-block-post-terms__prefix { font-size: var(--sm); text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.tt-site .tt-art-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: var(--sm); text-transform: uppercase; letter-spacing: .06em; }
.tt-site .tt-art-share a { font-weight: 700; padding: 6px 0; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 3px no-repeat; transition: background-size .3s var(--ease); }
.tt-site .tt-art-share a:hover { background-size: 100% 100%; }

/* ---------- Teléfono ---------- */
@media (max-width: 820px) {
  .tt-site .tt-art-head .wp-block-post-title, .tt-site .tt-art-head .tt-art-dek, .tt-site .tt-art-body .wp-block-post-content > *, .tt-site .tt-art-body .wp-block-post-content > :is(.wp-block-quote, .wp-block-pullquote, .wp-block-image), .tt-site .tt-art-end-in { grid-column: 1 / 13; }
  .tt-site .tt-art-head .wp-block-post-title { font-size: clamp(44px, 12.4vw, 80px); }
  .tt-site .tt-art-cover { margin-left: 0 !important; margin-right: 0 !important; aspect-ratio: 16 / 9; }
  .tt-site .tt-art-body .wp-block-post-content > * , .tt-site .tt-art-body .wp-block-post-content > p:first-of-type { font-size: 18px; }
  .tt-site .tt-art-body .wp-block-post-content > .wp-block-image { margin-left: calc(var(--gut) * -1) !important; margin-right: calc(var(--gut) * -1) !important; }
  .tt-site .tt-art-body .wp-block-image figcaption { padding: 0 var(--gut); }
  .tt-site .tt-art-body .wp-block-post-content > :is(.wp-block-quote, .wp-block-pullquote) { padding-left: 0; padding-top: 74px; }
  .tt-site .tt-art-body .wp-block-post-content > :is(.wp-block-quote, .wp-block-pullquote)::before { font-size: 170px; }
  .tt-site .tt-art-end-in { flex-direction: column; align-items: flex-start; }
}

/* ---------- Carrusel: varias fotos seguidas (galería con la clase tt-carrusel) ---------- */
/* se desliza de lado; WordPress trae su propia galería en cuadrícula, por eso los !important */
.tt-site .tt-art-body .wp-block-post-content .wp-block-gallery.tt-carrusel { grid-column: 2 / 12; max-width: none; margin: var(--s3) 0 !important; display: flex !important; flex-wrap: nowrap !important; align-items: flex-start; gap: 14px !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 0 16px; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.tt-site .tt-art-body .wp-block-gallery.tt-carrusel::-webkit-scrollbar { height: 6px; }
.tt-site .tt-art-body .wp-block-gallery.tt-carrusel::-webkit-scrollbar-thumb { background: var(--ink); }
.tt-site .tt-art-body .wp-block-gallery.tt-carrusel > figure.wp-block-image { flex: 0 0 min(78%, 760px) !important; width: auto !important; max-width: none; margin: 0 !important; display: block !important; scroll-snap-align: start; }
.tt-site .tt-art-body .wp-block-gallery.tt-carrusel > figure.wp-block-image::before { content: none !important; display: none !important; }
.tt-site .tt-art-body .wp-block-gallery.tt-carrusel > figure.wp-block-image img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; flex: none !important; filter: contrast(1.08) saturate(.92); }
.tt-site .tt-art-body .wp-block-gallery.tt-carrusel > figure.wp-block-image figcaption { position: static !important; max-height: none !important; overflow: visible; background: none !important; color: inherit !important; text-shadow: none; padding: 0 !important; margin: 12px 0 0 !important; font-size: var(--sm); line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
@media (max-width: 820px) {
  .tt-site .tt-art-body .wp-block-post-content > .wp-block-gallery.tt-carrusel { grid-column: 1 / 13; margin-left: calc(var(--gut) * -1) !important; margin-right: calc(var(--gut) * -1) !important; padding: 0 var(--gut) 12px; scroll-padding: 0 var(--gut); }
  .tt-site .tt-art-body .wp-block-gallery.tt-carrusel > figure.wp-block-image { flex-basis: 86% !important; }
}

/* carrusel pegado: en pantalla grande lo mueve el scroll (art.js), así que sin barra ni imán */
.tt-site .tt-art-body .wp-block-gallery.tt-carrusel.tt-car-pin { overflow: hidden !important; scroll-snap-type: none; padding-bottom: 0; }
.tt-site .tt-art-body .wp-block-post-content > .pin-spacer:has(> .tt-carrusel) { grid-column: 2 / 12; max-width: none; }
/* en el celular también se pega (art.js): sale de orilla a orilla como el carrusel suelto */
@media (max-width: 820px) { .tt-site .tt-art-body .wp-block-post-content > .pin-spacer:has(> .tt-carrusel) { grid-column: 1 / 13; } }
/* la goma de art.js estira las fotos para arriba y para abajo: el carrusel pegado corta solo los lados */
.tt-site .tt-art-body .wp-block-gallery.tt-carrusel.tt-car-pin { overflow-x: clip !important; overflow-y: visible !important; }

/* La raya de los enlaces en Safari (html.soft): las letras partidas (.pc) son inline-block y no heredan el underline del <a>,
   así que cada letra pinta su pedacito y la raya se dobla con ellas. */
html.soft .wp-block-post-content :is(p,li) a .pc{text-decoration:underline 1px rgb(188,216,36);text-underline-offset:3px}

/* Safari (html.soft): las fotos se doblan en un canvas más grande que la foto. El carrusel pegado cortaba arriba y abajo (overflow hidden);
   así corta solo los lados. Chrome no lo necesita: dobla la página entera después. */
html.soft .tt-site .tt-art-body .wp-block-gallery.tt-carrusel.tt-car-pin { overflow-x: clip !important; overflow-y: visible !important; }

/* Cajitas con texto: la letra display trae más aire arriba que abajo, así que con el mismo padding se veía bajita.
   Medido con la tinta real (2026-10-26): estos paddings dejan el mismo espacio arriba y abajo (Chrome y Safari redondean distinto; quedan a menos de 1px). El alto total no cambia. */
body .tt-site .wp-block-post-terms a { padding-top: .24em; padding-bottom: .21em; }
html.tt2 body .tt-site .tt-btn a, html.tt2 body .tt-site a.tt-btn { padding-top: 15.5px; padding-bottom: 13.5px; }
body .tt-site .tt-dark .end-title .box { padding-top: .039em; padding-bottom: .041em; }
body .tt-site .tt-lbl, html.tt2 body .tt2-age .tt-lbl { padding-top: .115em; padding-bottom: .105em; }
