/* Forum '26 · versión 02 "Templo".
   El alzado de un templo leído de arriba abajo: frontón, friso, arquitrabe, columnata y gradas.
   Todo se mide en celdas de la grilla del frontón (--p: 6px en escritorio, 4px bajo 640px); temple.js fija las medidas
   exactas a partir del frontón ya dibujado. Los valores de acá son el respaldo sin JS. */

.t-page { margin: 0; }
.t-site { overflow-x: clip; position: relative; z-index: 1; }   /* encima del piso de greca (.fd-floor) */

.t-skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 8px 12px; background: var(--dot-lit); color: var(--ground); font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.t-skip:focus { top: 12px; }

/* El templo: ancho del frontón, centrado. --tl y --tw alinean todo lo de abajo con la cornisa dibujada. */
.t-temple {
  --p: 6px; --cw: 90px; --g: 48px; --cap-h: 54px; --base-h: 30px;
  width: min(1134px, calc(100% - 32px)); margin-inline: auto; position: relative;
}
.t-body { position: relative; box-sizing: border-box; margin-left: var(--tl, 0px); width: var(--tw, 100%); }

/* Acrotera + navegación */
.t-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 28px; }
.t-nav__link { justify-self: start; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.t-nav__link--end { justify-self: end; }
.t-nav__link:hover { border-bottom-color: currentColor; }
.t-nav__iso { display: block; line-height: 0; }
/* A la derecha: el otro idioma (EN / ES) y la inscripción */
.t-nav__end { display: flex; align-items: center; gap: 26px; }
.t-nav__lang { color: var(--ink-muted); }
.t-nav__iso img { display: block; width: 26px; height: auto; }
.t-nav a:focus-visible, .t-footer a:focus-visible, .t-cella a:focus-visible { outline: 2px solid var(--dot-lit); outline-offset: 3px; }

/* Techo */
.t-roof { line-height: 0; }
.t-roof .fx-pediment { gap: 0; }

/* Friso */
.t-frieze { height: var(--fh, 120px); }
.t-art { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.t-frieze__zone { position: absolute; left: var(--zl, 0px); width: var(--zw, 100%); top: var(--zt, 0px); height: var(--zh, 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; container-type: inline-size; }
.t-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: min(68px, 8.6cqi); line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--dot-lit); text-align: center; white-space: nowrap; }
.t-title i { font-style: normal; color: var(--dot-amber); }

/* Bajada dentro del friso, bajo el título */
.t-tagline { margin: 0; padding-inline: 12px; text-align: center; font-family: var(--font-mono); font-size: 13px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); text-wrap: balance; }

/* Columnata */
.t-colonnade { display: grid; grid-template-columns: var(--cw) var(--g) var(--cw) minmax(0, 1fr) var(--cw) var(--g) var(--cw); height: var(--ch, auto); }
.t-col { grid-row: 1; position: relative; min-width: 0; }
.t-col[data-col="0"] { grid-column: 1; }
.t-col[data-col="1"] { grid-column: 3; }
.t-col[data-col="2"] { grid-column: 5; }
.t-col[data-col="3"] { grid-column: 7; }
.t-cella { grid-row: 1; grid-column: 4; min-width: 0; }
.t-temple[data-mode="mid"] .t-colonnade, .t-temple[data-mode="narrow"] .t-colonnade { grid-template-columns: var(--cw) minmax(0, 1fr) var(--cw); }
/* Con 4 columnas (lo decide temple.js según el frontón) la grilla siempre es la de 4, aunque el respaldo sin JS de abajo (<1200px) diga 2:
   entre ~1167 y 1199px de ancho (iPad horizontal) el templo es "wide" y la cella quedaba corrida. */
.t-temple[data-mode="wide"] .t-colonnade { grid-template-columns: var(--cw) var(--g) var(--cw) minmax(0, 1fr) var(--cw) var(--g) var(--cw); }
.t-temple[data-mode="mid"] .t-col[data-col="1"], .t-temple[data-mode="mid"] .t-col[data-col="2"],
.t-temple[data-mode="narrow"] .t-col[data-col="1"], .t-temple[data-mode="narrow"] .t-col[data-col="2"] { display: none; }
.t-temple[data-mode="mid"] .t-col[data-col="3"], .t-temple[data-mode="narrow"] .t-col[data-col="3"] { grid-column: 3; }
.t-temple[data-mode="mid"] .t-cella, .t-temple[data-mode="narrow"] .t-cella { grid-column: 2; }

.t-cella__inner { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 112px; padding: 88px clamp(10px, 5%, 44px) calc(var(--base-h) + 96px); }

/* Secciones del intercolumnio: simétricas, la prosa alineada a la izquierda */
.t-sec { width: 100%; max-width: 600px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.t-numeral { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 28px; letter-spacing: 2px; color: var(--dot-amber); }
.t-prose { width: 100%; text-align: left; }
.t-prose strong { color: var(--dot-lit); }

.t-day { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 34px; letter-spacing: 1px; text-transform: uppercase; color: var(--dot-lit); text-wrap: balance; }
.t-meta { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.t-meta a { color: var(--dot-lit); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.t-meta a:hover { color: var(--dot-amber); }
.t-cta { margin-top: 4px; }
.t-cta span { margin-left: -2px; }

.t-label { margin: 0; font-family: var(--font-mono); font-weight: 400; font-size: 14px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--dot-lit); }
.t-label__note { color: var(--ink-muted); white-space: nowrap; }
.t-part { white-space: nowrap; }
.t-note { margin: 0; max-width: 46ch; font-family: var(--font-sans); font-size: 17px; line-height: 28px; color: var(--ink); text-wrap: pretty; }

/* Agenda: metopas lisas, por tallar */
.t-metopes { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.t-metopes__art { position: relative; width: 100%; height: var(--mh, 84px); }
.t-metopes__hours { display: flex; justify-content: space-between; padding-inline: var(--mx, 0px); font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 1px; color: var(--ink-muted); }

/* El año pasado: 270 figuras que van saliendo, como en la versión 06 */
.t-label::before { content: '< '; }
.t-label::after { content: ' />'; }
.t-sec--past { max-width: none; }
.t-sec--past .t-note { max-width: 46ch; }
.t-crowd { width: 100%; line-height: 0; }
.t-crowd canvas { display: block; margin: 0 auto; }
.t-stats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; justify-content: center; gap: clamp(28px, 8%, 56px); text-align: left; }
.t-stats li { display: grid; grid-template-columns: 10px auto; align-items: center; gap: 6px 10px; }
.t-key { width: 10px; height: 10px; background: var(--dot-lit); }
.t-stats li[data-tone="1"] .t-key { background: var(--dot-amber); }
.t-stats li[data-tone="2"] .t-key { background: var(--dot-dim); }
.t-stats strong { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--dot-lit); }
.t-stats li > span:last-child { grid-column: 2; font-family: var(--font-mono); font-size: 12px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }

/* Sponsors y cierre */
.t-sponsor { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 22px; letter-spacing: 1px; text-transform: uppercase; }
.t-sponsor a { color: var(--dot-lit); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.t-sponsor a:hover { color: var(--dot-amber); }
.t-tile { width: min(328px, 100%); line-height: 0; margin-top: 28px; }
.t-sec--close { gap: 24px; }

/* Gradas */
.t-steps { position: relative; width: 100%; height: var(--sh, 72px); overflow: hidden; }

/* Footer bajo las gradas */
.t-footer { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 44px 16px 56px; text-align: center; }
.t-footer__mark { display: block; line-height: 0; }
.t-footer__mark img { display: block; width: 145px; height: auto; }
.t-footer__links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.t-footer__links a, .t-footer__date { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.t-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-footer__date { margin: 0; color: var(--ink-muted); }

/* Respaldo sin JS y medidas por ancho (temple.js las reemplaza con las del frontón) */
@media (max-width: 1199px) {
  .t-temple { --cw: 78px; }
  .t-temple .t-colonnade { grid-template-columns: var(--cw) minmax(0, 1fr) var(--cw); }
}
@media (max-width: 639px) {
  .t-temple { --p: 4px; --cw: 28px; --cap-h: 28px; --base-h: 16px; }
  .t-nav { padding-top: 16px; padding-bottom: 8px; }
  .t-nav__link { font-size: 11px; letter-spacing: .5px; }
  .t-nav__end { gap: 16px; }
  .t-title { font-size: min(60px, 15.4cqi); line-height: 1.04; }
  .t-title span { display: block; }
  .t-tagline { font-size: 11px; line-height: 16px; letter-spacing: 1px; padding-inline: 4px; }
  .t-frieze__zone { gap: 8px; }
  .t-cella__inner { gap: 96px; padding: 64px 10px calc(var(--base-h) + 72px); }
  .t-sec { gap: 24px; }
  .t-numeral { font-size: 24px; line-height: 24px; }
  .t-day { font-size: 22px; line-height: 28px; }
  .t-meta { font-size: 12px; line-height: 20px; }
  .t-meta .t-part, .t-label__note { display: block; white-space: normal; }
  .t-sep { display: none; }
  .t-note { font-size: 16px; line-height: 26px; }
  .t-sponsor { font-size: 12px; line-height: 20px; letter-spacing: .5px; text-wrap: balance; }
  .t-prose { font-size: 16px; line-height: 26px; }
  .t-stats { gap: 20px; }
  .t-stats strong { font-size: 26px; }
  .t-footer__links { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .t-nav__link, .t-meta a, .t-sponsor a { transition: none; }
}
