/* ═══════════════════════════════════════════════
   EsportsNext Magazine — Styles
   Dark navy/gold/white theme for magazine section
   ═══════════════════════════════════════════════ */

:root {
  --mag-blue: #00008f;
}

/* ─────────────────────────────────────
   SECONDARY NAV
───────────────────────────────────── */
.mag-nav {
  position: relative;
  z-index: 900;
  background: var(--mag-blue, #00008f);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: box-shadow 0.25s ease, height 0.3s ease;
}

/* Placeholder inserted by JS to prevent content jump */
.mag-nav-placeholder {
  display: none;
}

/* Fixed state — applied via JS on scroll */
.mag-nav.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.mag-nav.is-stuck + .mag-nav-placeholder {
  display: block;
}

.mag-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 52px;
  transition: height 0.3s ease;
}

/* ── Stuck state: logo moves to center ── */
.mag-nav.is-stuck .mag-nav-inner {
  justify-content: center;
  position: relative;
  height: 44px;
}

.mag-nav.is-stuck .mag-nav-left {
  position: absolute;
  left: 40px;
}

.mag-nav.is-stuck .mag-nav-right {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mag-nav.is-stuck .mag-nav-logo-img {
  height: 18px;
}

.mag-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mag-nav-hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mag-nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.mag-nav-link:hover,
.mag-nav-link.is-active {
  color: #fff;
}

.mag-nav-right {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.mag-nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.mag-nav-logo-img {
  height: 24px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

@media (max-width: 900px) {
  .mag-nav-inner { padding: 0 20px; position: relative; justify-content: center; }
  .mag-nav-left { position: absolute; left: 20px; }
  .mag-nav-link { display: none; }
  .mag-nav.is-stuck .mag-nav-left { left: 20px; }
}

/* ─────────────────────────────────────
   MAGAZINE MOBILE MENU
───────────────────────────────────── */
.mag-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mag-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mag-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mag-blue, #00008f);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mag-menu.is-open {
  transform: translateY(0);
}

.mag-menu-inner {
  padding: 48px 40px 40px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.mag-menu-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
}

.mag-menu-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
  flex: 1;
}

.mag-menu-link-lg {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s;
}
.mag-menu-link-lg:hover {
  color: var(--gold, #c9a227);
}

.mag-menu-group {
  margin-bottom: 32px;
}

.mag-menu-group-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold, #c9a227);
  margin: 0 0 12px;
}

.mag-menu-group-link {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.mag-menu-group-link:hover {
  color: #fff;
}

.mag-menu-issue-card {
  display: block;
  text-decoration: none;
}
.mag-menu-issue-card img {
  width: 100%;
  max-width: 200px;
  border-radius: 4px;
}


@media (max-width: 768px) {
  .mag-menu-inner {
    padding: 48px 20px 20px;
  }
  .mag-menu-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ─────────────────────────────────────
   HERO BANNER
───────────────────────────────────── */
.mag-hero {
  background: var(--mag-blue, #00008f);
  padding: 64px 40px 56px;
  text-align: center;
}

.mag-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.mag-hero-logo-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Issue name shown below logo on single-issue pages */
.mag-hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .mag-hero { padding: 40px 20px 36px; }
}

/* ─────────────────────────────────────
   LATEST ISSUE BANNER
───────────────────────────────────── */
.mag-latest-issue {
  background: var(--card-bg, #f7f7fa);
  padding: 56px 0;
}

.mag-latest-issue-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: #fff;
  border: 1px solid var(--body-border, #e2e2ea);
  border-radius: 12px;
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

.mag-latest-issue-cover {
  flex-shrink: 0;
  width: 200px;
}
.mag-latest-issue-cover img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.mag-latest-issue-info {
  flex: 1;
  text-align: center;
}

.mag-latest-issue-label {
  display: inline-block;
  background: var(--mag-blue, #00008f);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.mag-latest-issue-desc {
  font-size: 1.05rem;
  color: var(--body-muted, #5a5a72);
  line-height: 1.7;
  margin: 0 0 20px;
}

.mag-latest-issue-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold, #c9a227);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.mag-latest-issue-link:hover {
  gap: 10px;
  color: var(--gold, #c9a227);
}

@media (max-width: 600px) {
  .mag-latest-issue { padding: 40px 0; }
  .mag-latest-issue-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 32px;
  }
  .mag-latest-issue-cover { width: 160px; }
}

/* ─────────────────────────────────────
   HERO FEATURE (first article highlight)
───────────────────────────────────── */
.mag-hero-feature {
  padding: 72px 0 64px;
}

.mag-hero-feature-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  max-width: 1040px;
  margin: 0 auto;
}

.mag-hero-feature-image {
  overflow: hidden;
}
.mag-hero-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mag-hero-feature-card:hover .mag-hero-feature-image img {
  transform: scale(1.03);
}

.mag-hero-feature-text {
  background: #00085b;
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mag-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold, #c9a227);
  margin-bottom: 14px;
  display: block;
}

.mag-hero-feature-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 18px;
}

.mag-hero-feature-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0 0 24px;
}

.mag-keep-reading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold, #c9a227);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.mag-keep-reading:hover {
  gap: 10px;
}

@media (max-width: 768px) {
  .mag-hero-feature { padding: 48px 0; }
  .mag-hero-feature-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mag-hero-feature-image {
    max-height: 300px;
  }
  .mag-hero-feature-text {
    padding: 32px 28px;
  }
}

/* ─────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────── */
.mag-section {
  padding: 64px 0;
}

.mag-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--body-border, #e2e2ea);
  padding-bottom: 14px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.mag-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--body-color, #1a1a2e);
  margin: 0;
}

.mag-section-view-all {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--body-color, #1a1a2e);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s;
}
.mag-section-view-all:hover {
  color: var(--gold, #c9a227);
}

/* ─────────────────────────────────────
   FEATURES GRID — flexible for any count
───────────────────────────────────── */
.mag-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
}

/* Single remaining feature — full width */
.mag-features-grid .mag-feature-card:only-child {
  grid-column: 1 / -1;
}

/* Odd last item spans full width for 3+ items */
.mag-features-grid .mag-feature-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.mag-feature-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.mag-feature-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
  background: var(--card-bg, #f7f7fa);
}
.mag-feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mag-feature-card a:hover .mag-feature-card-image img {
  transform: scale(1.03);
}

.mag-card-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body-muted, #5a5a72);
  display: block;
  margin-bottom: 6px;
}

.mag-feature-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--body-color, #1a1a2e);
}
.mag-feature-card a:hover .mag-feature-card-title {
  color: var(--blue-bright, #2655c0);
}

.mag-feature-card-excerpt {
  font-size: 0.95rem;
  color: var(--body-muted, #5a5a72);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .mag-features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ─────────────────────────────────────
   CTA BANNER (In the Works)
───────────────────────────────────── */
.mag-cta-banner {
  padding: 16px 0;
}

.mag-cta-card {
  display: flex;
  align-items: stretch;
  background: var(--navy, #080c18);
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  max-width: 1040px;
  margin: 0 auto;
}

.mag-cta-text {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mag-cta-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 24px;
}

.mag-cta-btn {
  display: inline-block;
  background: var(--gold, #c9a227);
  color: var(--navy, #080c18);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.mag-cta-btn:hover {
  background: var(--gold-light, #e0b830);
  color: var(--navy, #080c18);
  transform: translateY(-2px);
}

.mag-cta-image {
  width: 40%;
  min-width: 200px;
  overflow: hidden;
}
.mag-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .mag-cta-card { flex-direction: column; }
  .mag-cta-text { padding: 32px 28px; }
  .mag-cta-image { width: 100%; min-width: auto; max-height: 200px; }
}

/* ─────────────────────────────────────
   SPOTLIGHTS (alternating split cards)
───────────────────────────────────── */
.mag-spotlights {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}

.mag-spotlight-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 380px;
}

.mag-spotlight--img-right .mag-spotlight-image { order: 2; }
.mag-spotlight--img-right .mag-spotlight-text  { order: 1; }

.mag-spotlight-image {
  overflow: hidden;
}
.mag-spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mag-spotlight-card:hover .mag-spotlight-image img {
  transform: scale(1.03);
}

.mag-spotlight-text {
  background: #00085b;
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mag-spotlight-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 14px;
}

.mag-spotlight-excerpt {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0 0 20px;
}

@media (max-width: 768px) {
  .mag-spotlight-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mag-spotlight--img-right .mag-spotlight-image,
  .mag-spotlight--img-right .mag-spotlight-text {
    order: unset;
  }
  .mag-spotlight-text {
    padding: 32px 28px;
  }
}

/* ─────────────────────────────────────
   RAPID INTEL GRID — flexible for any count
───────────────────────────────────── */
.mag-rapid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
}

/* Single card — full width */
.mag-rapid-grid .mag-rapid-card:only-child {
  grid-column: 1 / -1;
}

/* Odd last item spans full width for 3+ items */
.mag-rapid-grid .mag-rapid-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.mag-rapid-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.mag-rapid-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
  background: var(--card-bg, #f7f7fa);
}
.mag-rapid-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mag-rapid-card a:hover .mag-rapid-card-image img {
  transform: scale(1.03);
}

.mag-rapid-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--body-color, #1a1a2e);
}
.mag-rapid-card a:hover .mag-rapid-card-title {
  color: var(--blue-bright, #2655c0);
}

.mag-rapid-card-excerpt {
  font-size: 0.95rem;
  color: var(--body-muted, #5a5a72);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 600px) {
  .mag-rapid-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─────────────────────────────────────
   SINGLE ARTICLE
───────────────────────────────────── */
.mag-article-container {
  max-width: 760px;
}

.mag-article-header {
  padding: 40px 0 0;
}

.mag-article-breadcrumb {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--body-muted, #5a5a72);
  margin-bottom: 20px;
}
.mag-article-breadcrumb a {
  color: var(--gold, #c9a227);
  text-decoration: none;
}
.mag-article-breadcrumb a:hover {
  text-decoration: underline;
}
.mag-breadcrumb-sep {
  margin: 0 6px;
  color: var(--body-muted, #5a5a72);
}

.mag-article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--body-color, #1a1a2e);
  margin: 0 0 16px;
}

.mag-article-subtitle {
  font-size: 1.35rem;
  color: var(--body-muted, #5a5a72);
  line-height: 1.5;
  margin: 0 0 24px;
  font-weight: 400;
}

.mag-article-excerpt {
  font-size: 1.15rem;
  color: var(--body-muted, #5a5a72);
  line-height: 1.6;
  margin: 0 0 24px;
}

.mag-article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--body-border, #e2e2ea);
  margin-bottom: 32px;
}

.mag-article-author {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold, #c9a227);
}

.mag-article-share {
  display: flex;
  gap: 8px;
}

.mag-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--body-border, #e2e2ea);
  border-radius: 4px;
  color: var(--body-muted, #5a5a72);
  font-size: 14px;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}
.mag-share-icon:hover {
  color: var(--gold, #c9a227);
  border-color: var(--gold, #c9a227);
}

/* Featured Image */
.mag-article-featured-image {
  margin-bottom: 40px;
}
.mag-article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Article Body */
.mag-article-body {
  padding-bottom: 48px;
}

.mag-article-content {
  font-size: 1.125rem;
  line-height: 1.85;
}

/* ── Inline Images — contained within article width ── */
.mag-article-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mag-article-content .wp-block-image,
.mag-article-content figure {
  max-width: 100%;
  margin: 40px 0;
  overflow: hidden;
  border-radius: 6px;
}

.mag-article-content .wp-block-image img,
.mag-article-content figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* ── Captions — navy background, white text ── */
.mag-article-content figcaption,
.mag-article-content .wp-caption-text {
  background: var(--navy, #080c18);
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding: 12px 16px;
  margin: 0;
  border-radius: 0 0 6px 6px;
}

.mag-article-content figcaption a,
.mag-article-content .wp-caption-text a {
  color: var(--gold, #c5a44e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* When caption is present, remove bottom radius from image */
.mag-article-content figure:has(figcaption) img,
.mag-article-content .wp-caption img {
  border-radius: 6px 6px 0 0;
}

/* ── Scroll Animations ── */
.mag-article-content > *,
.mag-article-featured-image,
.mag-article-header,
.mag-related-grid .mag-rapid-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mag-article-content > *.is-visible,
.mag-article-featured-image.is-visible,
.mag-article-header.is-visible,
.mag-related-grid .mag-rapid-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger related cards */
.mag-related-grid .mag-rapid-card:nth-child(2) {
  transition-delay: 0.12s;
}

/* Featured image entrance — slightly larger movement */
.mag-article-featured-image {
  transform: translateY(32px);
  transition-duration: 0.7s;
}

/* Figures get a subtle scale-up */
.mag-article-content > figure,
.mag-article-content > .wp-block-image {
  transform: translateY(32px) scale(0.98);
}
.mag-article-content > figure.is-visible,
.mag-article-content > .wp-block-image.is-visible {
  transform: translateY(0) scale(1);
}

/* No-JS fallback — show everything if JS hasn't loaded */
.no-js .mag-article-content > *,
.no-js .mag-article-featured-image,
.no-js .mag-article-header,
.no-js .mag-related-grid .mag-rapid-card {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .mag-article-content > *,
  .mag-article-featured-image,
  .mag-article-header,
  .mag-related-grid .mag-rapid-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Drop cap for first paragraph — blue square with gold letter */
.mag-article-content > p:first-of-type::first-letter {
  float: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin: 0.05em 12px 0 0;
  padding: 6px 10px;
  color: var(--gold, #c5a44e);
  background: var(--blue-dark, #1a1a4e);
}

/* ─────────────────────────────────────
   RELATED STORIES
───────────────────────────────────── */
.mag-related {
  background: var(--card-bg, #f7f7fa);
  padding: 56px 0;
}

.mag-related-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 36px;
  color: var(--body-color, #1a1a2e);
}

.mag-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 600px) {
  .mag-related-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────
   ARCHIVE PAGE HEADER
───────────────────────────────────── */
.mag-archive-header {
  background: var(--navy, #080c18);
  padding: 48px 40px;
  text-align: center;
}

.mag-archive-header-inner {
  max-width: 700px;
  margin: 0 auto;
}

.mag-archive-header-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
}
.mag-archive-header-title::before,
.mag-archive-header-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 3px;
  background: var(--gold, #c9a227);
}
.mag-archive-header-title::before { right: calc(100% + 20px); }
.mag-archive-header-title::after  { left: calc(100% + 20px); }

.mag-archive-header-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .mag-archive-header { padding: 32px 20px; }
  .mag-archive-header-title::before,
  .mag-archive-header-title::after { display: none; }
}

/* ─────────────────────────────────────
   ARCHIVE ISSUES GRID
───────────────────────────────────── */
.mag-archive-section {
  padding: 48px 0;
}

.mag-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mag-issue-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.mag-issue-card-cover {
  flex-shrink: 0;
  width: 100px;
  display: block;
}
.mag-issue-card-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
}
.mag-issue-card-cover:hover img {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.mag-issue-card-info {
  flex: 1;
}

.mag-issue-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy, #080c18);
  margin: 0 0 8px;
  display: inline-block;
  background: var(--gold, #c9a227);
  padding: 4px 12px;
  border-radius: 3px;
}

.mag-issue-card-desc {
  font-size: 0.9rem;
  color: var(--body-muted, #5a5a72);
  line-height: 1.5;
  margin: 0 0 8px;
}

.mag-issue-card-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold, #c9a227);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.mag-issue-card-link:hover {
  gap: 8px;
  color: var(--gold, #c9a227);
}

@media (max-width: 900px) {
  .mag-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mag-archive-grid { grid-template-columns: 1fr; }
}
