/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL BLOG CARDS - TalentoHQ
   A bold, magazine-inspired design with dramatic typography and asymmetric layouts
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  /* Editorial Color Palette - Light Theme */
  --editorial-bg: #ffffff;
  --editorial-surface: #ffffff;
  --editorial-surface-hover: #f5f5f5;
  --editorial-border: #e5e5e5;
  --editorial-text: #1a1a1a;
  --editorial-text-muted: #666666;
  --editorial-accent: #f06987;
  --editorial-accent-light: #fa6e8c;
  --editorial-gradient-start: #ffffff;
  --editorial-gradient-end: #ffffff;

  /* Typography Scale */
  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* ─── CONTAINER ─────────────────────────────────────────────────────────────── */
.editorial-blog {
  background: transparent;
  min-height: 100vh;
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
}

/* Subtle noise texture overlay - disabled for transparent background */
/*
.editorial-blog::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
*/

.editorial-blog > * {
  position: relative;
  z-index: 1;
}

/* ─── HEADER ────────────────────────────────────────────────────────────────── */
.editorial-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding: 0 var(--space-lg);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.editorial-header__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--editorial-accent);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.editorial-header__eyebrow::before,
.editorial-header__eyebrow::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--editorial-accent);
}

.editorial-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--editorial-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.editorial-header__title em {
  font-style: italic;
  color: var(--editorial-accent);
}

.editorial-empty {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #4b5563;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ─── GRID LAYOUT ───────────────────────────────────────────────────────────── */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .editorial-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-xl);
  }
}

/* ─── CARD BASE ─────────────────────────────────────────────────────────────── */
.editorial-card {
  background: var(--editorial-surface);
  border: 1px solid var(--editorial-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  animation: cardReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15),
              0 0 0 1px var(--editorial-accent);
}

/* Staggered animation delays */
.editorial-card:nth-child(1) { animation-delay: 0.1s; }
.editorial-card:nth-child(2) { animation-delay: 0.15s; }
.editorial-card:nth-child(3) { animation-delay: 0.2s; }
.editorial-card:nth-child(4) { animation-delay: 0.25s; }
.editorial-card:nth-child(5) { animation-delay: 0.3s; }
.editorial-card:nth-child(6) { animation-delay: 0.35s; }
.editorial-card:nth-child(7) { animation-delay: 0.4s; }
.editorial-card:nth-child(8) { animation-delay: 0.45s; }
.editorial-card:nth-child(9) { animation-delay: 0.5s; }

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── CARD SIZES ────────────────────────────────────────────────────────────── */
/* Featured / Hero Card */
@media (min-width: 1024px) {
  .editorial-card--featured {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 580px;
    width: 100%;
    max-width: none;
  }

  .editorial-card--large {
    grid-column: span 4;
    grid-row: span 2;
  }

  .editorial-card--medium {
    grid-column: span 4;
  }

  .editorial-card--small {
    grid-column: span 4;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .editorial-card--featured {
    grid-column: span 2;
    min-height: 500px;
    width: 100%;
    max-width: none;
  }
}

/* Ensure all cards expand to fill grid cells */
.editorial-card {
  width: 100%;
  max-width: none;
}

/* ─── CARD NUMBER ───────────────────────────────────────────────────────────── */
.editorial-card__number {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--editorial-text);
  opacity: 0.1;
  z-index: 2;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.editorial-card:hover .editorial-card__number {
  opacity: 0.2;
  color: var(--editorial-accent);
}

.editorial-card--featured .editorial-card__number {
  font-size: 8rem;
  top: var(--space-xl);
  left: var(--space-xl);
  z-index: 4;
  position: absolute;
}

/* ─── CARD IMAGE ────────────────────────────────────────────────────────────── */
.editorial-card__image-wrapper {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.editorial-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(1.1);
  transition: filter 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.editorial-card:hover .editorial-card__image {
  filter: grayscale(0%) contrast(1) brightness(1);
  transform: scale(1.05);
}

/* Featured card image - brighter and less desaturated */
.editorial-card--featured .editorial-card__image {
  filter: grayscale(60%) contrast(1.1) brightness(1.3);
}

/* Image overlay gradient */
.editorial-card__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* Featured card image - no overlay needed since content has its own gradient */
.editorial-card--featured .editorial-card__image-wrapper::after {
  display: none;
}

/* Standard card image */
.editorial-card__image-wrapper {
  aspect-ratio: 16 / 10;
}

/* Featured card - absolute positioning with explicit height */
.editorial-card--featured {
  position: relative;
  min-height: 550px;
}

.editorial-card--featured .editorial-card__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: auto;
  z-index: 1;
}

.editorial-card--featured .editorial-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── CARD CONTENT ──────────────────────────────────────────────────────────── */
.editorial-card__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.editorial-card--featured .editorial-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 40%,
    rgba(255, 255, 255, 0.6) 70%,
    transparent 100%
  );
  z-index: 3;
}

/* ─── CATEGORY TAG ──────────────────────────────────────────────────────────── */
.editorial-card__category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--editorial-accent);
  background: rgba(240, 105, 135, 0.1);
  border: 1px solid rgba(240, 105, 135, 0.3);
  padding: var(--space-xs) var(--space-sm);
  width: fit-content;
  margin-bottom: var(--space-md);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.editorial-card:hover .editorial-card__category {
  background: rgba(240, 105, 135, 0.2);
  border-color: var(--editorial-accent);
}

/* ─── CARD TITLE ────────────────────────────────────────────────────────────── */
.editorial-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--editorial-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md) 0;
  transition: color 0.3s ease;
}

.editorial-card__title-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.editorial-card__title-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}

.editorial-card:hover .editorial-card__title {
  color: var(--editorial-accent-light);
}

/* Title sizes */
.editorial-card--featured .editorial-card__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.editorial-card--large .editorial-card__title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.editorial-card:not(.editorial-card--featured):not(.editorial-card--large) .editorial-card__title {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

/* ─── CARD EXCERPT ──────────────────────────────────────────────────────────── */
.editorial-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--editorial-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-card--featured .editorial-card__excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 4;
  max-width: 600px;
}

/* ─── CARD FOOTER ───────────────────────────────────────────────────────────── */
.editorial-card__footer {
  margin-top: auto;
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--editorial-border);
}

.editorial-card--featured .editorial-card__footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.editorial-card__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--editorial-text-muted);
  text-transform: uppercase;
}

.editorial-card__arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--editorial-border);
  color: var(--editorial-text-muted);
  transition: all 0.3s ease;
}

.editorial-card:hover .editorial-card__arrow {
  border-color: var(--editorial-accent);
  color: var(--editorial-accent);
  transform: translateX(4px);
}

.editorial-card__arrow svg {
  width: 12px;
  height: 12px;
}

/* ─── READ MORE LINK ────────────────────────────────────────────────────────── */
.editorial-card__read-more {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--editorial-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.editorial-card:hover .editorial-card__read-more {
  opacity: 1;
  transform: translateY(0);
}

.editorial-card__read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.editorial-card:hover .editorial-card__read-more::after {
  transform: translateX(4px);
}

/* ─── DECORATIVE ELEMENTS ───────────────────────────────────────────────────── */
/* Corner accent */
.editorial-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, var(--editorial-accent) 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 4;
}

.editorial-card:hover::before {
  opacity: 1;
}

/* Vertical line accent */
.editorial-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--editorial-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 4;
}

.editorial-card:hover::after {
  transform: scaleY(1);
}

/* ─── RESPONSIVE ADJUSTMENTS ────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .editorial-blog {
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .editorial-header {
    margin-bottom: var(--space-2xl);
  }

  .editorial-card__number {
    font-size: 3rem;
  }

  .editorial-card--featured .editorial-card__number {
    font-size: 5rem;
  }

  .editorial-card--featured .editorial-card__content {
    padding: var(--space-lg);
  }

  .editorial-card--featured {
    min-height: 400px;
  }
}

/* ─── BASE THEME IS LIGHT ───────────────────────────────────────────────────── */

/* ==========================================================================
   PREMIUM BLOG INDEX
   Brand-aligned treatment for listing pages. Keeps the existing featured,
   large, and medium post variants while removing image-overlay contrast risk.
   ========================================================================== */

.editorial-blog {
  --editorial-bg: oklch(98% 0.012 286);
  --editorial-surface: oklch(99% 0.006 286);
  --editorial-surface-hover: oklch(97% 0.018 286);
  --editorial-border: oklch(88% 0.035 286);
  --editorial-text: var(--color-premium-ink, oklch(22% 0.075 286));
  --editorial-text-muted: oklch(43% 0.04 286);
  --editorial-accent: var(--color-pink-thq);
  --editorial-accent-light: var(--color-light-pink);
  --editorial-violet: var(--color-premium-violet, oklch(28% 0.19 286));
  --editorial-violet-soft: var(--color-premium-violet-soft, oklch(94% 0.035 286));
  --editorial-coral-soft: oklch(96% 0.038 12);
  --font-display: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Titillium Web", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Nunito", ui-sans-serif, system-ui, sans-serif;

  isolation: isolate;
  overflow: hidden;
  min-block-size: 100vh;
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(5rem, 9vw, 7rem);
  background:
    radial-gradient(circle at 85% 4%, oklch(75% 0.16 12 / 0.2), transparent 24rem),
    linear-gradient(135deg, oklch(99% 0.006 286), var(--editorial-violet-soft) 52%, oklch(98% 0.014 174));
}

.editorial-blog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, oklch(28% 0.19 286 / 0.055) 1px, transparent 1px),
    linear-gradient(180deg, oklch(28% 0.19 286 / 0.055) 1px, transparent 1px);
  background-size: clamp(3rem, 7vw, 5rem) clamp(3rem, 7vw, 5rem);
  mask-image: linear-gradient(to bottom, oklch(0% 0 0 / 0.75), transparent 78%);
  pointer-events: none;
}

.editorial-blog::after {
  content: "";
  position: absolute;
  inset-block-start: clamp(11rem, 18vw, 16rem);
  inset-inline-start: max(-16rem, -14vw);
  z-index: 0;
  inline-size: clamp(20rem, 38vw, 34rem);
  aspect-ratio: 1;
  border-radius: 41% 59% 56% 44%;
  background: oklch(70% 0.17 12 / 0.16);
  pointer-events: none;
}

.editorial-header {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.5rem);
  max-inline-size: 80rem;
  margin-inline: auto;
  margin-block-end: clamp(2.75rem, 6vw, 4.5rem);
  padding-inline: var(--container-gutter, clamp(1.5rem, 4vw, 3.75rem));
  text-align: start;
}

.editorial-header__eyebrow {
  gap: 0.65rem;
  margin: 0;
  color: var(--editorial-violet);
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.editorial-header__eyebrow::before {
  inline-size: 0.65rem;
  block-size: 0.65rem;
  border-radius: var(--radius-sm, 4px);
  background: var(--editorial-accent);
  transform: rotate(12deg);
}

.editorial-header__eyebrow::after {
  display: none;
}

.editorial-header__title {
  max-inline-size: 13ch;
  margin: 0;
  color: var(--editorial-text);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.85rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.editorial-header__title em {
  color: var(--editorial-violet);
  font-style: normal;
}

.editorial-header__lead {
  max-inline-size: 45rem;
  margin: 0;
  color: color-mix(in oklch, var(--editorial-text), var(--editorial-text-muted) 48%);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.editorial-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  max-inline-size: 80rem;
  padding-inline: var(--container-gutter, clamp(1.5rem, 4vw, 3.75rem));
}

.editorial-card {
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--editorial-border), transparent 10%);
  border-radius: var(--radius-lg, 16px);
  background: color-mix(in oklch, var(--editorial-surface), var(--editorial-violet-soft) 26%);
  box-shadow: 0 20px 52px oklch(28% 0.19 286 / 0.08);
  animation: cardReveal 0.75s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px oklch(28% 0.19 286 / 0.14), 0 10px 24px oklch(28% 0.19 286 / 0.08);
}

.editorial-card::before,
.editorial-card::after {
  display: none;
}

.editorial-card__number {
  inset-block-start: 1rem;
  inset-inline: auto 1rem;
  color: color-mix(in oklch, var(--editorial-violet), transparent 72%);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0;
  opacity: 1;
  pointer-events: none;
}

.editorial-card:hover .editorial-card__number {
  color: color-mix(in oklch, var(--editorial-accent), transparent 55%);
  opacity: 1;
}

.editorial-card__image-wrapper {
  aspect-ratio: 16 / 10;
  background: var(--editorial-violet-soft);
}

.editorial-card__image-wrapper::after {
  background: linear-gradient(to top, oklch(22% 0.075 286 / 0.16), transparent 56%);
}

.editorial-card__image {
  filter: saturate(1.04) contrast(0.98);
  transform: scale(1.001);
  transition: filter 0.45s cubic-bezier(0.23, 1, 0.32, 1), transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.editorial-card:hover .editorial-card__image {
  filter: saturate(1.12) contrast(1.02);
  transform: scale(1.035);
}

.editorial-card__content {
  gap: 0.85rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.editorial-card__category {
  margin-block-end: 0;
  border: 1px solid color-mix(in oklch, var(--editorial-accent), transparent 62%);
  border-radius: var(--radius-pill, 9999px);
  background: color-mix(in oklch, var(--editorial-coral-soft), var(--editorial-surface) 30%);
  color: var(--editorial-violet);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.editorial-card:hover .editorial-card__category {
  border-color: color-mix(in oklch, var(--editorial-accent), transparent 38%);
  background: color-mix(in oklch, var(--editorial-coral-soft), var(--editorial-accent) 8%);
}

.editorial-card__title {
  margin: 0;
  color: var(--editorial-text);
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.editorial-card:hover .editorial-card__title {
  color: var(--editorial-violet);
}

.editorial-card--featured .editorial-card__title {
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.06;
}

.editorial-card--large .editorial-card__title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.editorial-card:not(.editorial-card--featured):not(.editorial-card--large) .editorial-card__title {
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
}

.editorial-card__excerpt {
  color: color-mix(in oklch, var(--editorial-text), var(--editorial-text-muted) 52%);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.58;
  -webkit-line-clamp: 4;
}

.editorial-card__footer {
  gap: 1rem;
  margin-block-start: auto;
  padding-block-start: 1.1rem;
  border-block-start: 1px solid color-mix(in oklch, var(--editorial-border), transparent 18%);
}

.editorial-card__date {
  color: var(--editorial-text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.editorial-card__arrow {
  inline-size: 2.45rem;
  block-size: 2.45rem;
  border: 1px solid color-mix(in oklch, var(--editorial-violet), transparent 70%);
  border-radius: var(--radius-md, 8px);
  background: var(--editorial-surface);
  color: var(--editorial-violet);
}

.editorial-card:hover .editorial-card__arrow {
  border-color: color-mix(in oklch, var(--editorial-accent), transparent 30%);
  background: var(--editorial-accent);
  color: var(--editorial-violet);
  transform: translateX(3px);
}

.editorial-card__title-link:focus-visible {
  border-radius: var(--radius-sm, 4px);
}

.editorial-empty {
  inline-size: min(100% - (var(--container-gutter, 1.5rem) * 2), 48rem);
  border: 1px solid color-mix(in oklch, var(--editorial-border), transparent 20%);
  border-radius: var(--radius-lg, 16px);
  background: var(--editorial-surface);
  box-shadow: 0 20px 52px oklch(28% 0.19 286 / 0.08);
  color: var(--editorial-text-muted);
}

.editorial-pagination {
  max-inline-size: 80rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding-inline: var(--container-gutter, clamp(1.5rem, 4vw, 3.75rem));
  font-family: var(--font-heading);
  font-weight: 800;
}

.editorial-pagination a,
.editorial-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.25rem;
  min-block-size: 2.25rem;
  margin: 0.15rem;
  border-radius: var(--radius-md, 8px);
}

.editorial-pagination a {
  border: 1px solid color-mix(in oklch, var(--editorial-border), transparent 10%);
  background: var(--editorial-surface);
  color: var(--editorial-violet);
  text-decoration: none;
}

.editorial-pagination a:hover {
  border-color: color-mix(in oklch, var(--editorial-accent), transparent 30%);
  background: var(--editorial-coral-soft);
  color: var(--editorial-violet);
}

.editorial-pagination .current {
  background: var(--editorial-violet);
  color: oklch(98% 0.01 286);
}

@media (min-width: 48rem) {
  .editorial-header {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.62fr);
    align-items: end;
  }

  .editorial-header__eyebrow,
  .editorial-header__title {
    grid-column: 1;
  }

  .editorial-header__lead {
    grid-column: 2;
    grid-row: 2;
    padding-block-end: 0.35rem;
  }

  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .editorial-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }

  .editorial-card--featured {
    display: grid;
    grid-column: span 12;
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
    min-block-size: clamp(28rem, 42vw, 35rem);
  }

  .editorial-card--large {
    grid-column: span 4;
    grid-row: auto;
    min-block-size: 0;
  }

  .editorial-card--medium {
    grid-column: span 4;
    grid-row: auto;
  }

  .editorial-card--featured .editorial-card__image-wrapper {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: auto;
  }

  .editorial-card--featured .editorial-card__image-wrapper::after {
    display: block;
    background: linear-gradient(90deg, transparent 62%, oklch(28% 0.19 286 / 0.14));
  }

  .editorial-card--featured .editorial-card__image {
    filter: saturate(1.08) contrast(1);
  }

  .editorial-card--featured .editorial-card__content {
    position: relative;
    inset: auto;
    z-index: 2;
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
    min-block-size: 100%;
    padding: clamp(2rem, 4vw, 3.25rem);
    background:
      radial-gradient(circle at 90% 12%, oklch(70% 0.17 12 / 0.28), transparent 15rem),
      linear-gradient(145deg, var(--editorial-violet), oklch(24% 0.16 286));
  }

  .editorial-card--featured .editorial-card__number {
    inset-block-start: 1.2rem;
    inset-inline: auto 1.35rem;
    z-index: 4;
    color: oklch(98% 0.01 286 / 0.3);
    font-size: clamp(4rem, 10vw, 8rem);
  }

  .editorial-card--featured .editorial-card__category {
    border-color: oklch(98% 0.01 286 / 0.22);
    background: oklch(98% 0.01 286 / 0.12);
    color: oklch(98% 0.01 286);
  }

  .editorial-card--featured .editorial-card__title,
  .editorial-card--featured:hover .editorial-card__title {
    color: oklch(98% 0.01 286);
  }

  .editorial-card--featured .editorial-card__excerpt {
    max-inline-size: 34rem;
    color: oklch(92% 0.025 286);
    font-size: 1.08rem;
  }

  .editorial-card--featured .editorial-card__footer {
    border-block-start-color: oklch(98% 0.01 286 / 0.18);
  }

  .editorial-card--featured .editorial-card__date {
    color: oklch(90% 0.025 286);
  }

  .editorial-card--featured .editorial-card__arrow {
    border-color: oklch(98% 0.01 286 / 0.22);
    background: oklch(98% 0.01 286 / 0.12);
    color: oklch(98% 0.01 286);
  }

  .editorial-card--featured:hover .editorial-card__arrow {
    background: var(--editorial-accent);
    color: var(--editorial-violet);
  }
}

@media (max-width: 47.9375rem) {
  .editorial-blog {
    padding-block-start: 3.25rem;
  }

  .editorial-header {
    margin-block-end: 2rem;
  }

  .editorial-header__title {
    max-inline-size: 10.5ch;
    font-size: clamp(2.85rem, 14vw, 4.2rem);
  }

  .editorial-card--featured {
    min-block-size: auto;
  }

  .editorial-card--featured .editorial-card__image-wrapper {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
  }

  .editorial-card--featured .editorial-card__content {
    position: relative;
    inset: auto;
    padding: 1.35rem;
    background: var(--editorial-surface);
  }

  .editorial-card--featured .editorial-card__number {
    inset-block-start: 0.85rem;
    inset-inline-end: 0.85rem;
    font-size: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-card,
  .editorial-card__image,
  .editorial-card__arrow {
    animation: none;
    transition: none;
  }
}

/* ─── DARK MODE OVERRIDE (optional - uncomment if needed) ───────────────────── */
/*
.editorial-blog--dark {
  --editorial-bg: #0f0f0f;
  --editorial-surface: #1a1a1a;
  --editorial-surface-hover: #242424;
  --editorial-border: #2a2a2a;
  --editorial-text: #fafafa;
  --editorial-text-muted: #8a8a8a;
  --editorial-gradient-start: #1a1a1a;
  --editorial-gradient-end: #0a0a0a;
}
*/

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL ARTICLE PAGE - Single Post View
   Magazine-style reading experience with refined typography
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── ARTICLE CONTAINER ────────────────────────────────────────────────────── */
.editorial-article {
  background: transparent;
  min-height: 100vh;
  position: relative;
}

/* ─── BACK NAVIGATION ──────────────────────────────────────────────────────── */
.editorial-article__nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid var(--editorial-border);
}

.editorial-article__nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

.editorial-article__back-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--editorial-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: color 0.3s ease;
}

.editorial-article__back-link:hover {
  color: var(--editorial-accent);
}

.editorial-article__back-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.editorial-article__back-link:hover .editorial-article__back-arrow {
  transform: translateX(-4px);
}

/* ─── HERO IMAGE ───────────────────────────────────────────────────────────── */
.editorial-article__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 40 / 21;
  max-height: 630px;
  overflow: hidden;
  background: var(--editorial-bg);
}

.editorial-article__hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.editorial-article__hero-gradient {
  display: none;
}

/* ─── ARTICLE HEADER ───────────────────────────────────────────────────────── */
.editorial-article__header {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  text-align: center;
}

.editorial-article__category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--editorial-accent);
  background: rgba(240, 105, 135, 0.1);
  border: 1px solid rgba(240, 105, 135, 0.3);
  padding: var(--space-xs) var(--space-md);
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.editorial-article__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--editorial-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-lg) 0;
}

.editorial-article__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--editorial-text-muted);
  display: block;
}

/* ─── ARTICLE CONTENT ──────────────────────────────────────────────────────── */
.editorial-article__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
}

.editorial-article__prose {
  max-width: 720px;
  margin: 0 auto;
}

/* ─── PROSE STYLING ────────────────────────────────────────────────────────── */
/* Paragraphs */
.editorial-article__prose p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--editorial-text);
  margin: 0 0 var(--space-lg) 0;
}

/* First paragraph - lede style */
.editorial-article__prose > div > p:first-of-type,
.editorial-article__prose > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--editorial-text-muted);
}

/* Headings */
.editorial-article__prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--editorial-text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: var(--space-3xl) 0 var(--space-lg) 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--editorial-border);
}

.editorial-article__prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.editorial-article__prose h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--editorial-text);
  line-height: 1.3;
  margin: var(--space-2xl) 0 var(--space-md) 0;
}

.editorial-article__prose h4 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--editorial-text);
  line-height: 1.4;
  margin: var(--space-xl) 0 var(--space-md) 0;
}

/* Links */
.editorial-article__prose a {
  color: var(--editorial-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.editorial-article__prose a:hover {
  color: var(--editorial-accent-light);
  text-decoration-color: transparent;
}

/* Lists */
.editorial-article__prose ul,
.editorial-article__prose ol {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--editorial-text);
  margin: 0 0 var(--space-lg) 0;
  padding-left: var(--space-xl);
}

.editorial-article__prose ul {
  list-style: none;
}

.editorial-article__prose ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.editorial-article__prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--editorial-accent);
  border-radius: 50%;
}

.editorial-article__prose ol {
  list-style: none;
  counter-reset: ol-counter;
}

.editorial-article__prose ol li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  counter-increment: ol-counter;
}

.editorial-article__prose ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--editorial-accent);
}

/* Blockquotes */
.editorial-article__prose blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--editorial-text-muted);
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 3px solid var(--editorial-accent);
  background: rgba(240, 105, 135, 0.03);
}

.editorial-article__prose blockquote p {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  margin: 0;
}

/* Images */
.editorial-article__prose img {
  width: 100%;
  height: auto;
  margin: var(--space-2xl) 0;
  border: 1px solid var(--editorial-border);
  border-radius: 4px;
}

/* Videos */
.editorial-article__prose .editorial-video {
  margin: var(--space-2xl) 0;
}

.editorial-article__prose .editorial-video__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--editorial-border);
  border-radius: 4px;
  background: #050508;
  object-fit: cover;
}

.editorial-article__prose .editorial-video figcaption {
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--editorial-text-muted);
}

/* Tables */
.editorial-article__prose table {
  width: 100%;
  margin: var(--space-2xl) 0;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.editorial-article__prose th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--editorial-text-muted);
  padding: var(--space-md);
  border-bottom: 2px solid var(--editorial-border);
}

.editorial-article__prose td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--editorial-border);
  color: var(--editorial-text);
}

.editorial-article__prose tr:last-child td {
  border-bottom: none;
}

/* Code */
.editorial-article__prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.editorial-article__prose pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  background: #1a1a1a;
  color: #f0f0f0;
  padding: var(--space-lg);
  margin: var(--space-2xl) 0;
  border-radius: 4px;
  overflow-x: auto;
}

.editorial-article__prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Horizontal rule */
.editorial-article__prose hr {
  border: none;
  height: 1px;
  background: var(--editorial-border);
  margin: var(--space-3xl) 0;
}

/* ─── FOOTER CTA ───────────────────────────────────────────────────────────── */
.editorial-article__footer {
  background: linear-gradient(
    135deg,
    rgba(240, 105, 135, 0.05) 0%,
    rgba(240, 105, 135, 0.1) 100%
  );
  border-top: 1px solid var(--editorial-border);
  padding: var(--space-3xl) var(--space-lg);
}

.editorial-article__cta {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.editorial-article__cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--editorial-text);
  margin: 0 0 var(--space-md) 0;
}

.editorial-article__cta-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--editorial-text-muted);
  margin: 0 0 var(--space-xl) 0;
}

.editorial-article__cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.editorial-article__cta-button {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-md) var(--space-xl);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.editorial-article__cta-button--primary {
  background: var(--editorial-accent);
  color: white;
}

.editorial-article__cta-button--primary:hover {
  background: var(--editorial-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 105, 135, 0.3);
}

.editorial-article__cta-button--secondary {
  background: transparent;
  color: var(--editorial-accent);
  border-color: var(--editorial-accent);
}

.editorial-article__cta-button--secondary:hover {
  background: var(--editorial-accent);
  color: white;
}

.editorial-article__footer-nav {
  max-width: 600px;
  margin: var(--space-2xl) auto 0;
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ─── ARTICLE RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .editorial-article__hero {
    aspect-ratio: 40 / 21;
    max-height: none;
  }

  .editorial-article__header {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
  }

  .editorial-article__content {
    padding: 0 var(--space-md) var(--space-2xl);
  }

  .editorial-article__prose p,
  .editorial-article__prose ul,
  .editorial-article__prose ol {
    font-size: 1rem;
  }

  .editorial-article__prose > div > p:first-of-type,
  .editorial-article__prose > p:first-of-type {
    font-size: 1.1rem;
  }

  .editorial-article__prose h2 {
    margin-top: var(--space-2xl);
  }

  .editorial-article__prose blockquote {
    padding: var(--space-md) var(--space-lg);
    font-size: 1.1rem;
  }

  .editorial-article__footer {
    padding: var(--space-2xl) var(--space-md);
  }

  .editorial-article__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .editorial-article__cta-button {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ==========================================================================
   PREMIUM ARTICLE READING VIEW
   Scoped to the Spanish article redesign so existing locale pages keep their
   current treatment until they are intentionally migrated.
   ========================================================================== */

.editorial-article--reading {
  --editorial-bg: oklch(98% 0.012 286);
  --editorial-surface: oklch(99% 0.006 286);
  --editorial-border: oklch(88% 0.035 286);
  --editorial-text: var(--color-premium-ink, oklch(22% 0.075 286));
  --editorial-text-muted: oklch(43% 0.04 286);
  --editorial-accent: var(--color-pink-thq);
  --editorial-accent-light: var(--color-light-pink);
  --editorial-violet: var(--color-premium-violet, oklch(28% 0.19 286));
  --editorial-violet-soft: var(--color-premium-violet-soft, oklch(94% 0.035 286));
  --editorial-coral-soft: oklch(96% 0.038 12);
  --font-display: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Titillium Web", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Nunito", ui-sans-serif, system-ui, sans-serif;

  isolation: isolate;
  overflow: hidden;
  color: var(--editorial-text);
  background:
    radial-gradient(circle at 88% 4%, oklch(75% 0.16 12 / 0.18), transparent 24rem),
    linear-gradient(135deg, oklch(99% 0.006 286), var(--editorial-violet-soft) 48%, oklch(98% 0.014 174));
}

.editorial-article--reading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, oklch(28% 0.19 286 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, oklch(28% 0.19 286 / 0.045) 1px, transparent 1px);
  background-size: clamp(3rem, 7vw, 5rem) clamp(3rem, 7vw, 5rem);
  mask-image: linear-gradient(to bottom, oklch(0% 0 0 / 0.65), transparent 46rem);
  pointer-events: none;
}

.editorial-article--reading > * {
  position: relative;
  z-index: 1;
}

.editorial-article--reading .editorial-article__nav {
  position: relative;
  top: auto;
  z-index: 5;
  border-block-end: 1px solid color-mix(in oklch, var(--editorial-border), transparent 18%);
  background: color-mix(in oklch, var(--editorial-surface), transparent 12%);
}

.editorial-article--reading .editorial-article__nav-inner {
  max-inline-size: 80rem;
  padding: 1rem var(--container-gutter, clamp(1.5rem, 4vw, 3.75rem));
}

.editorial-article--reading .editorial-article__back-link {
  gap: 0.55rem;
  color: var(--editorial-violet);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.editorial-article--reading .editorial-article__back-link:hover {
  color: var(--editorial-accent);
}

.editorial-article--reading .editorial-article__intro {
  padding: clamp(3rem, 7vw, 5.75rem) var(--container-gutter, clamp(1.5rem, 4vw, 3.75rem)) clamp(2rem, 5vw, 4rem);
}

.editorial-article--reading .editorial-article__intro-inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  max-inline-size: 80rem;
  margin-inline: auto;
}

.editorial-article--reading .editorial-article__header {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  max-inline-size: 54rem;
  margin: 0;
  padding: 0;
  text-align: start;
}

.editorial-article--reading .editorial-article__category {
  inline-size: fit-content;
  margin: 0;
  border: 1px solid color-mix(in oklch, var(--editorial-accent), transparent 62%);
  border-radius: var(--radius-pill, 9999px);
  background: color-mix(in oklch, var(--editorial-coral-soft), var(--editorial-surface) 30%);
  color: var(--editorial-violet);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.editorial-article--reading .editorial-article__title {
  max-inline-size: 16ch;
  margin: 0;
  color: var(--editorial-text);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.editorial-article--reading .editorial-article__summary {
  max-inline-size: 44rem;
  margin: 0;
  color: color-mix(in oklch, var(--editorial-text), var(--editorial-text-muted) 46%);
  font-family: var(--font-body);
  font-size: clamp(1.16rem, 2vw, 1.36rem);
  line-height: 1.56;
}

.editorial-article--reading .editorial-article__date {
  color: var(--editorial-text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.editorial-article--reading .editorial-article__hero {
  inline-size: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--editorial-border), transparent 10%);
  border-radius: var(--radius-lg, 16px);
  background: color-mix(in oklch, var(--editorial-surface), var(--editorial-violet-soft) 20%);
  box-shadow: 0 28px 70px oklch(28% 0.19 286 / 0.14), 0 10px 24px oklch(28% 0.19 286 / 0.08);
  aspect-ratio: 16 / 10;
  max-block-size: none;
}

.editorial-article--reading .editorial-article__hero-image {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.editorial-article--reading .editorial-article__body-shell {
  padding: clamp(1rem, 3vw, 2rem) var(--container-gutter, clamp(1.5rem, 4vw, 3.75rem)) clamp(4rem, 8vw, 6rem);
}

.editorial-article--reading .editorial-article__content {
  max-inline-size: 49rem;
  margin-inline: auto;
  padding: 0;
}

.editorial-article--reading .editorial-article__prose {
  max-inline-size: 46rem;
  margin-inline: auto;
}

.editorial-article--reading .editorial-article__prose > * + * {
  margin-block-start: 1.2rem;
}

.editorial-article--reading .editorial-article__prose p {
  color: color-mix(in oklch, var(--editorial-text), oklch(30% 0.035 286) 22%);
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.4vw, 1.18rem);
  line-height: 1.78;
  margin: 0;
}

.editorial-article--reading .editorial-article__prose > div > p:first-of-type,
.editorial-article--reading .editorial-article__prose > p:first-of-type {
  color: color-mix(in oklch, var(--editorial-text), var(--editorial-text-muted) 35%);
  font-size: clamp(1.18rem, 1.8vw, 1.34rem);
  line-height: 1.68;
}

.editorial-article--reading .editorial-article__prose h2 {
  margin: clamp(3.25rem, 6vw, 4.5rem) 0 0;
  padding-block-start: clamp(1.6rem, 3vw, 2.25rem);
  border-block-start: 1px solid color-mix(in oklch, var(--editorial-border), transparent 18%);
  color: var(--editorial-violet);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.editorial-article--reading .editorial-article__prose h2:first-child {
  margin-block-start: 0;
  padding-block-start: 0;
  border-block-start: 0;
}

.editorial-article--reading .editorial-article__prose h3 {
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  color: var(--editorial-text);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.editorial-article--reading .editorial-article__prose h4 {
  margin: clamp(1.75rem, 3vw, 2.25rem) 0 0;
  color: var(--editorial-text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.3;
}

.editorial-article--reading .editorial-article__prose a {
  color: var(--editorial-violet);
  font-weight: 700;
  text-decoration-color: color-mix(in oklch, var(--editorial-accent), transparent 32%);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

.editorial-article--reading .editorial-article__prose a:hover {
  color: var(--editorial-accent);
  text-decoration-color: currentColor;
}

.editorial-article--reading .editorial-article__prose ul,
.editorial-article--reading .editorial-article__prose ol {
  color: color-mix(in oklch, var(--editorial-text), oklch(30% 0.035 286) 22%);
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.4vw, 1.18rem);
  line-height: 1.72;
  margin: 0;
  padding-inline-start: 0;
}

.editorial-article--reading .editorial-article__prose li {
  margin-block-end: 0.65rem;
}

.editorial-article--reading .editorial-article__prose ul li {
  padding-inline-start: 1.5rem;
}

.editorial-article--reading .editorial-article__prose ul li::before {
  inset-block-start: 0.82em;
  inline-size: 0.42rem;
  block-size: 0.42rem;
  border-radius: var(--radius-sm, 4px);
  background: var(--editorial-accent);
}

.editorial-article--reading .editorial-article__prose ol li {
  padding-inline-start: 2rem;
}

.editorial-article--reading .editorial-article__prose ol li::before {
  color: var(--editorial-violet);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
}

.editorial-article--reading .editorial-article__prose blockquote {
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid color-mix(in oklch, var(--editorial-accent), transparent 58%);
  border-radius: var(--radius-lg, 16px);
  background: color-mix(in oklch, var(--editorial-coral-soft), var(--editorial-surface) 45%);
  color: var(--editorial-violet);
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: normal;
  line-height: 1.58;
}

.editorial-article--reading .editorial-article__prose img {
  inline-size: 100%;
  block-size: auto;
  margin: clamp(2rem, 5vw, 3.25rem) 0;
  border: 1px solid color-mix(in oklch, var(--editorial-border), transparent 12%);
  border-radius: var(--radius-lg, 16px);
  background: var(--editorial-surface);
  box-shadow: 0 18px 45px oklch(28% 0.19 286 / 0.1);
}

.editorial-article--reading .editorial-article__prose .editorial-video {
  margin: clamp(2rem, 5vw, 3.25rem) 0;
}

.editorial-article--reading .editorial-article__prose .editorial-video__media {
  border: 1px solid color-mix(in oklch, var(--editorial-border), transparent 12%);
  border-radius: var(--radius-lg, 16px);
  background: oklch(18% 0.05 286);
}

.editorial-article--reading .editorial-article__prose table {
  display: block;
  inline-size: 100%;
  overflow-x: auto;
  margin: clamp(2rem, 5vw, 3rem) 0;
  border: 1px solid color-mix(in oklch, var(--editorial-border), transparent 14%);
  border-radius: var(--radius-md, 8px);
  background: var(--editorial-surface);
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
}

.editorial-article--reading .editorial-article__prose th {
  color: var(--editorial-violet);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.editorial-article--reading .editorial-article__prose th,
.editorial-article--reading .editorial-article__prose td {
  min-inline-size: 11rem;
  padding: 0.95rem 1rem;
}

.editorial-article--reading .editorial-article__prose code {
  border: 1px solid color-mix(in oklch, var(--editorial-border), transparent 16%);
  border-radius: var(--radius-sm, 4px);
  background: color-mix(in oklch, var(--editorial-violet-soft), var(--editorial-surface) 38%);
  color: var(--editorial-violet);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.editorial-article--reading .editorial-article__prose pre {
  border-radius: var(--radius-lg, 16px);
  background: oklch(20% 0.08 286);
  color: oklch(94% 0.018 286);
}

.editorial-article--reading .editorial-article__footer {
  border-block-start: 1px solid color-mix(in oklch, var(--editorial-border), transparent 10%);
  background:
    radial-gradient(circle at 82% 8%, oklch(70% 0.17 12 / 0.24), transparent 16rem),
    linear-gradient(145deg, var(--editorial-violet), oklch(24% 0.16 286));
}

.editorial-article--reading .editorial-article__cta {
  max-inline-size: 46rem;
}

.editorial-article--reading .editorial-article__cta-title {
  color: oklch(98% 0.01 286);
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0;
}

.editorial-article--reading .editorial-article__cta-text {
  color: oklch(91% 0.025 286);
  font-size: 1.1rem;
}

.editorial-article--reading .editorial-article__cta-button {
  border-radius: var(--radius-md, 8px);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.editorial-article--reading .editorial-article__cta-button--primary {
  background: var(--editorial-accent);
  color: var(--editorial-violet);
}

.editorial-article--reading .editorial-article__cta-button--primary:hover {
  background: oklch(98% 0.01 286);
  color: var(--editorial-violet);
}

.editorial-article--reading .editorial-article__cta-button--secondary {
  border-color: oklch(98% 0.01 286 / 0.5);
  color: oklch(98% 0.01 286);
}

.editorial-article--reading .editorial-article__cta-button--secondary:hover {
  background: oklch(98% 0.01 286 / 0.12);
  color: oklch(98% 0.01 286);
}

.editorial-article--reading .editorial-article__footer-nav {
  border-block-start: 1px solid oklch(98% 0.01 286 / 0.18);
}

.editorial-article--reading .editorial-article__footer .editorial-article__back-link {
  color: oklch(92% 0.025 286);
}

.editorial-article--reading .editorial-article__footer .editorial-article__back-link:hover {
  color: var(--editorial-accent);
}

@media (min-width: 64rem) {
  .editorial-article--reading .editorial-article__intro-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 1fr);
    align-items: end;
  }

  .editorial-article--reading .editorial-article__hero {
    align-self: stretch;
  }
}

@media (max-width: 47.9375rem) {
  .editorial-article--reading .editorial-article__intro {
    padding-block-start: 2.75rem;
  }

  .editorial-article--reading .editorial-article__title {
    max-inline-size: 12.5ch;
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .editorial-article--reading .editorial-article__summary {
    font-size: 1.08rem;
  }

  .editorial-article--reading .editorial-article__hero {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md, 8px);
  }

  .editorial-article--reading .editorial-article__prose {
    max-inline-size: none;
  }

  .editorial-article--reading .editorial-article__prose p,
  .editorial-article--reading .editorial-article__prose ul,
  .editorial-article--reading .editorial-article__prose ol {
    font-size: 1.04rem;
    line-height: 1.72;
  }

  .editorial-article--reading .editorial-article__prose h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }
}

/* ─── PAGINATION ───────────────────────────────────────────────────────────── */
.editorial-pagination {
  display: flex;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.editorial-pagination .pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.editorial-pagination .pagination a,
.editorial-pagination .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--space-sm);
  text-decoration: none;
  color: var(--editorial-text-muted);
  border: 1px solid var(--editorial-border);
  transition: all 0.2s ease;
}

.editorial-pagination .pagination a:hover {
  color: var(--editorial-accent);
  border-color: var(--editorial-accent);
}

.editorial-pagination .pagination .current {
  background: var(--editorial-accent);
  color: white;
  border-color: var(--editorial-accent);
  font-weight: 500;
}

.editorial-pagination .pagination .disabled,
.editorial-pagination .pagination .gap {
  color: var(--editorial-border);
  border-color: transparent;
  pointer-events: none;
}

.editorial-pagination .pagination .prev a,
.editorial-pagination .pagination .next a {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .editorial-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ─── PRINT STYLES ──────────────────────────────────────────────────────────── */
@media print {
  .editorial-blog {
    background: white;
  }

  .editorial-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .editorial-card__image {
    filter: none;
  }

  /* Article print styles */
  .editorial-article__nav,
  .editorial-article__footer {
    display: none;
  }

  .editorial-article__hero-image {
    filter: none;
  }

  .editorial-article__prose a {
    color: var(--editorial-text);
    text-decoration: underline;
  }

  .editorial-article__prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--editorial-text-muted);
  }
}
