/* ═══════════════════════════════════════════════════════════════════════════
   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);
}

/* ─── 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 ───────────────────────────────────────────────────── */

/* ─── 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: 100;
  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: 21 / 9;
  max-height: 500px;
  overflow: hidden;
}

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

.editorial-article__hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: 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;
}

/* 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: 16 / 10;
    max-height: 300px;
  }

  .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;
  }
}

/* ─── 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);
  }
}
