/* ==========================================================================
   RETROSPECTIVA — CASA TINTA STYLING SYSTEM
   ========================================================================== */

:root {
  --bg-main: #f5f5f2;
  --bg-panel: #fcfcfa;
  --text-main: #111111;
  --text-muted: #8a8a85;
  --border-light: #e3e3df;
  --font-editorial: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Monaco, "Cascadia Mono", monospace;
  --ease-fluid: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base layout viewport */
.retro-app {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-editorial);
  user-select: none;
}

/* ==========================================================================
   Top Navigation Bar & Live Status Pill
   ========================================================================== */
.retro-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  gap: 16px;
  pointer-events: none;
}

.retro-nav-container {
  pointer-events: auto;
}

.retro-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.retro-nav li {
  display: inline-flex;
  align-items: center;
}

.retro-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.retro-nav a:hover,
.retro-nav .current-menu-item > a,
.retro-nav a.active {
  color: var(--text-main);
}

.retro-nav li::after {
  content: ",";
  color: var(--text-muted);
}

.retro-nav li:last-child::after {
  content: "";
}

/* Status Pill */
.retro-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 14px 6px 6px;
  max-width: 44vw;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.retro-pill-swatch {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: #1d1d1b;
  transition: background-color 0.4s ease;
}

.retro-pill-now {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--text-main);
}

.retro-pill-sep,
.retro-pill-next {
  display: none !important;
}

/* ==========================================================================
   Big Hero Title
   ========================================================================== */
.retro-hero-title {
  position: absolute;
  top: 10px;
  left: 0;
  margin: 0;
  z-index: 20;
  text-align: center;
  pointer-events: none;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  font-size: clamp(34px, 6.2vw, 92px);
  transition: opacity 0.4s ease, width 0.6s var(--ease-fluid);
  width: 100vw;
}

.retro-hero-title .title-sub {
  display: block;
  font-size: 0.78em;
  font-weight: 800;
}

.retro-hero-title .title-main {
  display: block;
}

.retro-hero-title .title-year {
  display: block;
}

.retro-app.is-open .retro-hero-title {
  opacity: 0;
}

/* ==========================================================================
   Carousel Track & Cards
   ========================================================================== */
.retro-carousel-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  overflow: hidden;
  transition: width 0.6s var(--ease-fluid);
  z-index: 15;
}

.retro-app.is-open .retro-carousel-pane {
  width: 50vw;
}

.retro-cards-viewport {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 80px;
  cursor: grab;
}

.retro-cards-viewport:active {
  cursor: grabbing;
}

.retro-cards-track {
  position: absolute;
  left: 0;
  top: 50%;
  height: 0;
  transition: transform 0.7s var(--ease-fluid);
  will-change: transform;
}

.retro-cards-track.is-dragging {
  transition: none !important;
}

/* Individual Card */
.retro-card {
  position: absolute;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  transition: opacity 0.4s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.retro-app.is-open .retro-card {
  opacity: 0.45;
}

.retro-app.is-open .retro-card.is-active {
  opacity: 1;
}

.retro-card-index {
  position: absolute;
  top: -26px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.retro-card-box {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: left;
  border: 0;
  padding: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .retro-cards-viewport .retro-card-box,
  .retro-cards-viewport .retro-card-box * {
    cursor: none !important;
  }
}

.retro-card:hover .retro-card-box {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

/* Featured image background inside card */
/* Featured image element inside card */
.retro-card-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2 !important;
  pointer-events: none !important;
}

.retro-card-img-element {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  image-rendering: auto !important;
  transition: transform 0.6s var(--ease-fluid);
}

.retro-card:hover .retro-card-img-element {
  transform: scale(1.05);
}

.retro-card-image-overlay {
  display: none !important;
}

.retro-card.has-image .retro-card-box {
  color: #ffffff !important;
}

.retro-card-stamp,
.retro-card-word,
.art-word {
  display: none !important;
}

.retro-card-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: none;
  color: var(--text-main);
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==========================================================================
   Category Badge & Dynamic Custom "Leer" Cursor
   ========================================================================== */
.retro-magnetic-badge {
  display: none !important;
}

/* Fixed Category Badge on Card Corner */
.retro-card-cat-badge,
.retro-card-mobile-cat {
  display: inline-flex !important;
  align-items: center;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  background: rgba(17, 17, 17, 0.82);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transform: translateZ(24px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom "Leer" Cursor replacing standard pointer on cards */
.retro-cursor-read {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 9999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-9999px, -9999px, 0) scale(0.3);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.retro-cursor-read.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Inner pulsating core with "Leer" */
.retro-cursor-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.94);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: retro-cursor-pulse 2.2s ease-in-out infinite;
  transition: transform 0.15s ease, background 0.15s ease;
}

.retro-cursor-text {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Continuous radar/pulse ring */
.retro-cursor-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
  animation: retro-cursor-ring 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes retro-cursor-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes retro-cursor-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 255, 255, 0.25);
  }
}

/* Active click snap feedback */
.retro-cursor-read.is-active .retro-cursor-inner {
  transform: scale(0.9) !important;
  background: #000000;
  border-color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Decorative Geometric Motifs
   ========================================================================== */
.deco-shape {
  position: absolute;
  pointer-events: none;
}

.deco-ring {
  left: 18%;
  top: 22%;
  width: 64%;
  aspect-ratio: 1;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.deco-disc {
  left: 22%;
  top: 26%;
  width: 56%;
  aspect-ratio: 1;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0.9;
}

.deco-stripes {
  inset: 0;
  background: repeating-linear-gradient(0deg, currentColor 0 2px, transparent 2px 14px);
  opacity: 0.35;
}

.deco-bars {
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background-color: currentColor;
  opacity: 0.9;
}

.deco-half {
  left: 0;
  top: 0;
  width: 52%;
  height: 100%;
  background-color: currentColor;
  opacity: 0.14;
}

.deco-grid {
  inset: 0;
  background:
    linear-gradient(currentColor 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, currentColor 1px, transparent 1px) 0 0 / 32px 32px;
  opacity: 0.28;
}

.deco-image {
  inset: 0;
  background-size: cover;
  background-position: center;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
}

/* ==========================================================================
   Timeline / Ruler (Bottom 150px)
   ========================================================================== */
.retro-ruler-pane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 16;
  overflow: hidden;
  user-select: none;
}

.retro-ruler-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 150px;
  transition: transform 0.7s var(--ease-fluid);
  will-change: transform;
}

.retro-ruler-track.is-dragging {
  transition: none !important;
}

.retro-ruler-ticks {
  position: absolute;
  left: 0;
  top: 50px;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--text-muted) 0 1px, transparent 1px 12px);
  pointer-events: none;
}

.retro-ruler-item {
  position: absolute;
  top: 0;
  width: 1px;
}

.retro-ruler-marker {
  position: absolute;
  left: 0;
  top: 36px;
  width: 1px;
  height: 28px;
  background: var(--text-main);
}

.retro-ruler-btn {
  position: absolute;
  left: 0;
  top: 84px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
  transform: translateX(-50%);
}

.retro-ruler-btn:hover,
.retro-ruler-item.is-active .retro-ruler-btn {
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   Side Article Panel (Animated Split View)
   ========================================================================== */
.retro-article-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  max-width: 50vw;
  box-sizing: border-box;
  z-index: 30;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-light);
  overflow-x: hidden !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease-fluid), visibility 0s linear 0.6s;
  user-select: text;
}

.retro-app.is-open .retro-article-panel {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.6s var(--ease-fluid), visibility 0s linear 0s;
}

.retro-panel-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(24px, 4.5vw, 72px) 16px 24px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--bg-panel);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.retro-article-panel.scrolled .retro-panel-header {
  border-bottom-color: var(--border-light);
}

.retro-btn-action {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: underline;
  color: var(--text-main);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.retro-btn-action:hover {
  opacity: 0.65;
}

.retro-panel-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden !important;
  padding: 60px clamp(24px, 4vw, 56px) 80px clamp(24px, 4vw, 56px);
}

.retro-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  text-transform: uppercase;
}

.retro-tag-pill {
  background: #e9ddf7;
  color: #5b3394;
  padding: 6px 12px;
  border-radius: 3px;
  font-weight: 500;
}

.retro-date-label {
  color: var(--text-main);
}

.retro-article-title {
  margin: 36px 0 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.88;
  font-size: clamp(34px, 4.4vw, 66px);
  color: var(--text-main);
}

.retro-article-author {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.retro-article-author::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background-color: var(--text-muted);
}

.retro-article-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden !important;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #1a1a19;
  word-break: break-word;
  overflow-wrap: break-word;
}

.retro-article-content p {
  margin: 0 0 28px;
  max-width: 100%;
}

.retro-article-content p:last-child {
  margin-bottom: 50px;
}

.retro-article-content img,
.retro-article-content figure,
.retro-article-content .wp-block-image,
.retro-article-content iframe,
.retro-article-content video {
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
}

.retro-article-content img {
  width: 100% !important;
  border-radius: 2px;
}

.retro-article-content blockquote {
  margin: 30px 0;
  padding-left: 20px;
  border-left: 3px solid var(--text-main);
  font-style: italic;
  font-size: 1.1em;
}

.retro-article-featured-media {
  margin: 28px 0 36px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 4px;
  background: transparent !important;
}

.retro-panel-featured-img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 560px;
  object-fit: cover !important;
  box-sizing: border-box;
  border-radius: 4px;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  image-rendering: auto !important;
}

/* Big Visual Artwork Footer inside Article */
.retro-article-art {
  position: relative;
  height: 440px;
  overflow: hidden;
  margin-top: 48px;
  color: #f2f1ec;
  background-color: #1d1d1b;
  border-radius: 2px;
}

.retro-art-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.retro-art-overlay {
  display: none !important;
}

.retro-article-art .art-word {
  position: absolute;
  left: 24px;
  bottom: 18px;
  font-weight: 800;
  font-size: clamp(64px, 8vw, 96px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  z-index: 3;
  word-break: break-word;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Article Social Share Bar
   ========================================================================== */
.retro-share-bar {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.retro-share-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.retro-share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.retro-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s var(--ease-fluid);
  position: relative;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.retro-share-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.retro-share-btn:hover {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.retro-share-btn:hover svg {
  transform: scale(1.1);
}

.retro-share-btn:active {
  transform: translateY(0);
}

.retro-share-copy {
  position: relative;
}

.retro-copied-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #111111;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.retro-copied-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #111111 transparent transparent transparent;
}

.retro-share-copy.is-copied .retro-copied-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.retro-share-copy.is-copied {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

/* ==========================================================================
   Article Comments Section
   ========================================================================== */
.retro-comments-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.retro-comments-title,
.retro-reply-title,
.comment-reply-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
  margin: 0 0 28px 0;
}

.retro-comment-list {
  list-style: none;
  margin: 0 0 44px 0;
  padding: 0;
}

.retro-comment-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.retro-comment-item:last-child {
  border-bottom: none;
  margin-bottom: 32px;
  padding-bottom: 0;
}

.retro-comment-list .children {
  list-style: none;
  padding-left: 28px;
  margin-top: 20px;
  border-left: 2px solid var(--border-light);
}

.retro-comment-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.retro-comment-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #e6e6e2;
  border: 1px solid var(--border-light);
}

.retro-avatar-img,
.retro-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.retro-comment-info {
  flex: 1;
  min-width: 0;
}

.retro-comment-author {
  display: block;
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  color: var(--text-main);
  line-height: 1.2;
}

.retro-comment-author a {
  color: inherit;
  text-decoration: none;
}

.retro-comment-author a:hover {
  text-decoration: underline;
}

.retro-comment-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.retro-comment-reply a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.retro-comment-reply a:hover {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.retro-comment-content {
  font-size: 15.5px;
  line-height: 1.6;
  color: #242422;
  margin-left: 56px;
}

.retro-comment-content p {
  margin: 0 0 12px 0;
}

.retro-comment-content p:last-child {
  margin-bottom: 0;
}

.retro-comment-awaiting-moderation {
  display: block;
  margin-left: 56px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c8321e;
}

.retro-comments-pagination {
  margin: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
}

.retro-no-comments {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

/* Comment Form styling */
.comment-respond {
  margin-top: 36px;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.comment-respond .comment-reply-title {
  margin-top: 0;
  margin-bottom: 18px;
}

.comment-respond #cancel-comment-reply-link {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-left: 12px;
  color: #c8321e;
  text-decoration: underline;
  font-weight: 400;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.retro-comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.comment-form label .required {
  color: #c8321e;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  background: #fafaf8;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-editorial);
  font-size: 14.5px;
  color: var(--text-main);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  background: #ffffff;
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.comment-form textarea {
  resize: vertical;
  min-height: 100px;
}

.comment-form .form-submit {
  margin-top: 8px;
}

/* Cloudflare Turnstile CAPTCHA container */
.cf-turnstile,
.retro-turnstile-wrapper {
  margin: 16px 0;
  display: block;
  min-height: 65px;
  overflow: visible;
  clear: both;
}

.retro-submit-btn,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--text-main);
  color: #ffffff;
  border: 1px solid var(--text-main);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retro-submit-btn:hover,
.comment-form input[type="submit"]:hover {
  background: #333333;
  border-color: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.retro-submit-btn:active,
.comment-form input[type="submit"]:active {
  transform: translateY(0);
}

/* Desktop: Hide mobile article carousel slot section */
@media (min-width: 760px) {
  .retro-article-carousel-section {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive Adaptations (< 760px)
   ========================================================================== */
@media (max-width: 759px) {
  /* 1. Header: Hide .retro-pill completely on mobile */
  .retro-pill {
    display: none !important;
  }

  .retro-topbar {
    padding: 14px 18px;
    z-index: 25;
    transition: opacity 0.3s ease;
    display: none;
  }

  .retro-app.is-open .retro-topbar {
    opacity: 0;
    pointer-events: none;
  }

  .retro-nav {
    font-size: 15px;
  }

  .retro-hero-title {
    top: 25px;
    font-size: clamp(20px, 11.2vw, 60px);
    transition: opacity 0.3s ease;
  }

  .retro-app.is-open .retro-hero-title {
    opacity: 0;
    pointer-events: none;
  }

  /* 2. Carousel Pane on mobile */
  .retro-carousel-pane {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw !important;
    height: 100%;
    height: 100dvh;
    z-index: 15;
    overflow: hidden;
    transition: height 0.5s var(--ease-fluid), top 0.5s var(--ease-fluid);
  }

  /* When an article is open on mobile: Hide root carousel pane (moved inline inside article) */
  .retro-app.is-open > .retro-carousel-pane {
    display: none !important;
  }

  .retro-cards-viewport {
    bottom: 130px;
  }

  .retro-app.is-open .retro-cards-viewport {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  .retro-app.is-open .retro-cards-track {
    top: 26px !important;
  }

  /* 3. Ruler pane on mobile: Fully visible when carousel is viewed (closed), omitted when article is open */
  .retro-ruler-pane {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 25;
    display: block;
    overflow: hidden;
    user-select: none;
  }

  .retro-app.is-open .retro-ruler-pane {
    display: none !important;
  }

  .retro-ruler-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 90px;
  }

  .retro-ruler-ticks {
    position: absolute;
    left: 0;
    top: 26px;
    height: 10px;
    background: repeating-linear-gradient(90deg, var(--text-muted) 0 1px, transparent 1px 10px);
    pointer-events: none;
  }

  .retro-ruler-marker {
    position: absolute;
    left: 0;
    top: 18px;
    width: 1.5px;
    height: 22px;
    background: var(--text-main);
  }

  .retro-ruler-btn {
    position: absolute;
    left: 0;
    top: 48px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transform: translateX(-50%);
    padding: 4px 6px;
    cursor: pointer;
  }

  .retro-ruler-item.is-active .retro-ruler-btn {
    color: var(--text-main);
    font-weight: 700;
  }

  /* 4. Article Panel on mobile: Spans from top: 0 down to bottom: 135px (zero gap) */
  .retro-article-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100%;
    border-left: 0;
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-105%);
    visibility: hidden;
    z-index: 30;
    overflow-x: hidden !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.4s var(--ease-fluid), visibility 0s linear 0.4s;
  }

  .retro-app.is-open .retro-article-panel {
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: none !important;
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.4s var(--ease-fluid), visibility 0s linear 0s;
  }

  .retro-panel-header {
    position: sticky;
    top: 0;
    padding: 14px 18px 12px 18px;
    background: var(--bg-panel);
    z-index: 10;
    border-bottom: 1px solid var(--border-light);
  }

  .retro-panel-body {
    padding: 24px 18px 50px 18px;
  }

  .retro-article-title {
    margin: 18px 0 14px;
    font-size: clamp(24px, 6.8vw, 38px);
    line-height: 0.95;
  }

  .retro-article-author {
    font-size: 11.5px;
    margin-top: 0;
    margin-bottom: 20px;
    gap: 8px;
  }

  .retro-article-author::before {
    width: 14px;
  }

  .retro-article-content p {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .retro-article-featured-media {
    margin: 16px 0 22px;
  }

  .retro-article-art {
    height: 220px;
    margin-top: 28px;
  }

  /* Mobile Share Bar */
  .retro-share-bar {
    margin-top: 28px;
    padding-top: 22px;
    gap: 10px;
  }

  .retro-share-label {
    font-size: 11.5px;
  }

  .retro-share-buttons {
    gap: 8px;
  }

  .retro-share-btn {
    padding: 7px 11px;
    font-size: 12px;
    gap: 6px;
  }

  /* Mobile: Inline Carousel Section (placed after article, before comments) */
  .retro-article-carousel-section {
    display: block;
    margin: 32px -18px 24px -18px;
    padding: 22px 0 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.02);
    clear: both;
  }

  .retro-carousel-slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 14px 18px;
  }

  .retro-carousel-slot-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .retro-carousel-slot-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
  }

  .retro-article-carousel-slot {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  /* When .retro-carousel-pane is located inside the article slot */
  .retro-article-carousel-slot .retro-carousel-pane {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 185px !important;
    min-height: 185px !important;
    max-height: 185px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .retro-article-carousel-slot .retro-cards-viewport {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .retro-article-carousel-slot .retro-cards-track {
    top: 24px !important;
  }

  .retro-article-carousel-slot .retro-ruler-pane {
    display: none !important;
  }

  .retro-article-carousel-slot .retro-card {
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .retro-article-carousel-slot .retro-card.is-active {
    opacity: 1;
    transform: scale(1.02);
  }

  .retro-article-carousel-slot .retro-card.is-active .retro-card-box {
    box-shadow: 0 0 0 2px var(--text-main), 0 8px 18px rgba(0, 0, 0, 0.22);
  }

  .retro-article-carousel-slot .retro-card-label {
    display: -webkit-box !important;
    font-size: 11px;
    line-height: 1.25;
    margin-top: 8px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-main);
  }

  .retro-article-carousel-slot .retro-card-index {
    display: block !important;
    font-size: 10px;
    top: -18px;
    color: var(--text-muted);
  }

  /* Mobile Comments */
  .retro-comments-section {
    margin-top: 36px;
    padding-top: 30px;
  }

  .retro-comments-title,
  .retro-reply-title,
  .comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .retro-comment-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .retro-comment-content {
    margin-left: 0;
    margin-top: 8px;
    font-size: 14.5px;
  }

  .retro-comment-awaiting-moderation {
    margin-left: 0;
  }

  .comment-respond {
    padding: 20px 16px;
  }

  .retro-comment-list .children {
    padding-left: 14px;
  }

  /* 5. Mobile Card details */
  .retro-card-label {
    font-size: 11px;
    line-height: 1.25;
    margin-top: 8px;
    -webkit-line-clamp: 2;
  }

  .retro-card-index {
    font-size: 11px;
    top: -20px;
  }

  .retro-app.is-open .retro-card-index {
    font-size: 10px;
    top: -16px;
    color: var(--text-muted);
  }

  .retro-app.is-open .retro-card {
    opacity: 0.55;
  }

  .retro-app.is-open .retro-card.is-active {
    opacity: 1;
    transform: scale(1.03);
  }

  .retro-app.is-open .retro-card.is-active .retro-card-box {
    box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .retro-cursor-read,
  .retro-magnetic-badge {
    display: none !important;
  }

  .retro-card-cat-badge,
  .retro-card-mobile-cat {
    display: inline-block !important;
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 5;
    background: rgba(17, 17, 17, 0.88);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .retro-app.is-open .retro-card-cat-badge,
  .retro-app.is-open .retro-card-mobile-cat {
    display: none !important;
  }
}
