/* ═══════════════════════════════════════════════════════
   Guide Subsystem, V4 Fashion Brutalist Reading Theme
   Inherits design tokens from ../global.css (V4 Gold + Boska)
   Gold Champagne #E8C872, Cabinet Grotesk + Boska italique
   ═══════════════════════════════════════════════════════ */

:root {
  --primary-color: var(--primary);
  --primary-light: var(--primary-soft);
  --primary-hover: var(--primary-hover);
  --bg-color: var(--bg-body);
  --text-color: var(--text-secondary);
  --heading-color: var(--text-primary);
  --card-bg: var(--bg-card);
  --border-color: var(--border-card);
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);
  --title-gradient-start: #ffffff;
  --title-gradient-end: #b4c0ff;
}

/* Base, no * reset, delegated to global.css */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-body);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 18px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold, #e8c872);
  text-decoration: underline;
}

::selection {
  background: rgba(232, 200, 114, 0.3);
  color: #fff;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════
   V4 HEADER / NAV
   Articles use <header>, styles apply automatically.
   Aligné avec .nav-fixed de labo/index.html.
   ═══════════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  padding: 0;
  margin: 0;
  margin-bottom: 60px;
  transition: border-color 0.3s ease;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1120px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.brand::before {
  content: "IA";
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold, #e8c872);
  background: rgba(232, 200, 114, 0.08);
  border: 1px solid rgba(232, 200, 114, 0.22);
  border-radius: 4px;
  padding: 2px 8px;
}

header nav {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 24px;
}

header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
  margin-left: 0 !important;
  padding: 6px 4px;
}

header nav a:hover {
  color: var(--gold, #e8c872);
  text-decoration: none;
}

header nav a.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gold, #e8c872);
  color: #0b0f1a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

header nav a.nav-cta:hover {
  color: #0b0f1a;
  background: #f0d48a;
}

/* ═══════════════════════════════════════════════════════
   V4 BACKGROUND, Dot pattern subtle
   ═══════════════════════════════════════════════════════ */
.aurora-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.aurora-band {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  animation: none !important;
}

.aurora-band-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -80px;
  background: rgba(112, 132, 255, 0.1);
}

.aurora-band-2 {
  width: 440px;
  height: 440px;
  top: 40%;
  right: -140px;
  left: auto;
  background: rgba(232, 200, 114, 0.06);
}

.aurora-band-3 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  top: auto;
  background: rgba(112, 132, 255, 0.05);
}

.dot-pattern {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.dot-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(232, 200, 114, 0.06) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
}

.spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 200, 114, 0.05),
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* ═══════════════════════════════════════════════════════
   V4 EYEBROW éditorial (pour hub + auteur + articles)
   Aligné avec .eyebrow-edito de global.css
   ═══════════════════════════════════════════════════════ */
.eyebrow-edito {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold, #e8c872);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.eyebrow-edito .eb-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold, #e8c872);
  opacity: 0.7;
}
.eyebrow-edito .eb-label {
  color: inherit;
}
.eyebrow-edito--center {
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   ARTICLE TYPOGRAPHY, V4 Fashion Brutalist
   H1 + H2 signature Boska italique.
   ═══════════════════════════════════════════════════════ */
article h1 {
  font-family: var(--font-display, "Boska"), "Cabinet Grotesk", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

article h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(232, 200, 114, 0.18);
  color: var(--text-primary);
}

article h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

article p {
  margin-bottom: 1.5rem;
}

article ul,
article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

article li {
  margin-bottom: 0.5rem;
}

article strong {
  color: var(--text-primary);
  font-weight: 700;
}

article em {
  color: var(--gold, #e8c872);
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--gold, #e8c872);
  padding: 20px 24px;
  font-family: var(--font-display, "Boska"), "Cabinet Grotesk", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
  margin: 2rem 0;
  background: rgba(232, 200, 114, 0.04);
  border-radius: 0 4px 4px 0;
}

/* ═══════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════ */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-card);
}

article thead {
  background: rgba(232, 200, 114, 0.08);
}

article th {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  padding: 14px 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(232, 200, 114, 0.25);
}

article td {
  padding: 12px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-card);
  vertical-align: top;
  line-height: 1.5;
}

article tbody tr:last-child td {
  border-bottom: none;
}

article tbody tr:hover {
  background: rgba(232, 200, 114, 0.03);
}

article td:first-child,
article th:first-child {
  font-weight: 600;
  color: rgba(244, 245, 251, 0.92);
}

@media (max-width: 640px) {
  article table {
    font-size: 0.8rem;
  }
  article th,
  article td {
    padding: 10px 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   CODE BLOCKS
   ═══════════════════════════════════════════════════════ */
article pre {
  background: rgba(12, 20, 41, 0.9);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

article pre code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #e4c98a;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}

article code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--gold, #e8c872);
  background: rgba(232, 200, 114, 0.08);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(232, 200, 114, 0.18);
}

article pre::-webkit-scrollbar {
  height: 6px;
}
article pre::-webkit-scrollbar-track {
  background: rgba(244, 245, 251, 0.04);
  border-radius: 3px;
}
article pre::-webkit-scrollbar-thumb {
  background: rgba(232, 200, 114, 0.2);
  border-radius: 3px;
}
article pre::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 200, 114, 0.35);
}

/* ═══════════════════════════════════════════════════════
   META INFO / DATE
   ═══════════════════════════════════════════════════════ */
.meta-info {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
}

.article-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════
   CTA BOX, V4 Gold signature
   ═══════════════════════════════════════════════════════ */
.cta-box {
  background: rgba(232, 200, 114, 0.04);
  border: 1px solid rgba(232, 200, 114, 0.25);
  border-radius: 4px;
  padding: 40px;
  margin: 60px 0;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-box h3 {
  margin-top: 0;
  font-family: var(--font-display, "Boska"), serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--text-primary);
}

.btn-cta {
  display: inline-block;
  background: var(--gold, #e8c872);
  border: 1px solid rgba(232, 200, 114, 0.4);
  color: #0b0f1a;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.3s var(--ease-premium, ease);
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  text-decoration: none;
  color: #0b0f1a;
  background: #f0d48a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 200, 114, 0.25);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 15px;
  margin-left: 10px;
  border: 1px solid var(--border-card);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(232, 200, 114, 0.35);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════
   TABLE OF CONTENTS
   ═══════════════════════════════════════════════════════ */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 0 0 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toc-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gold, #e8c872);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toc-title i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.toc.collapsed .toc-title i {
  transform: rotate(-90deg);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc.collapsed .toc-list {
  display: none;
}

.toc-list li {
  margin: 0;
  padding: 0;
}

.toc-list a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--gold, #e8c872);
  padding-left: 8px;
  border-left-color: var(--gold, #e8c872);
}

.toc-list a.toc-h3 {
  padding-left: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.toc-list a.toc-h3:hover {
  padding-left: 24px;
}

.toc-list a.toc-active {
  color: var(--gold, #e8c872);
  border-left-color: var(--gold, #e8c872);
}

/* ═══════════════════════════════════════════════════════
   HERO IMAGE
   ═══════════════════════════════════════════════════════ */
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════
   AUTHOR BIO (in-article)
   ═══════════════════════════════════════════════════════ */
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  margin: 2.5rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.author-bio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(232, 200, 114, 0.25);
  flex-shrink: 0;
}

.author-bio strong {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.author-bio p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 6px 0;
}

.author-bio-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.author-bio-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gold, #e8c872);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 114, 0.22);
  transition: all 0.2s;
}

.author-bio-links a:hover {
  background: rgba(232, 200, 114, 0.08);
  border-color: rgba(232, 200, 114, 0.4);
}

/* ═══════════════════════════════════════════════════════
   FAQ SECTION (article-level)
   ═══════════════════════════════════════════════════════ */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
}

.faq-section h2 {
  border-bottom: none;
}

.faq-item {
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.35s var(--ease-premium, ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-item:hover {
  border-color: rgba(232, 200, 114, 0.25);
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--gold, #e8c872);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "\2212";
}

.faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    opacity 0.3s ease;
  padding: 0 20px;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 600px !important;
  opacity: 1;
  padding: 0 20px 16px;
}

/* ═══════════════════════════════════════════════════════
   SKIP LINK
   ═══════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold, #e8c872);
  color: #0b0f1a;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
  border-radius: 0 0 4px 0;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* ═══════════════════════════════════════════════════════
   V4 FOOTER
   Articles use <footer> inside .container.
   ═══════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border-card);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
}

footer a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--gold, #e8c872);
}

/* ═══════════════════════════════════════════════════════
   KEY TAKEAWAYS (GEO)
   ═══════════════════════════════════════════════════════ */
.key-takeaways {
  background: rgba(232, 200, 114, 0.05);
  border: 1px solid rgba(232, 200, 114, 0.2);
  border-left: 3px solid var(--gold, #e8c872);
  border-radius: 0 4px 4px 0;
  padding: 20px 24px;
  margin: 1.5rem 0 2rem;
}

.kt-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gold, #e8c872);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-takeaways ul {
  margin: 0;
  padding: 0 0 0 18px;
}

.key-takeaways li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 6px;
}

.key-takeaways li:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   READING PROGRESS BAR
   ═══════════════════════════════════════════════════════ */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold, #e8c872), var(--primary));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════════════════════════
   EXIT-INTENT POPUP
   ═══════════════════════════════════════════════════════ */
#exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

#exit-popup {
  background: var(--bg-elevated);
  border: 1px solid rgba(232, 200, 114, 0.25);
  border-radius: 4px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#exit-popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

#exit-popup-close:hover {
  color: var(--text-primary);
}

.exit-popup-emoji {
  font-size: 4rem;
  margin-bottom: 8px;
}

#exit-popup h3 {
  font-family: var(--font-display, "Boska"), serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

#exit-popup p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.exit-popup-sub {
  font-size: 0.85rem !important;
  color: var(--text-tertiary) !important;
  margin-bottom: 20px !important;
}

#exit-popup-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold, #e8c872);
  color: #0b0f1a;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: 8px;
}

#exit-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 200, 114, 0.35);
  background: #f0d48a;
}

/* ═══════════════════════════════════════════════════════
   STICKY "LIRE AUSSI" BAR
   ═══════════════════════════════════════════════════════ */
#sticky-read-more {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 13, 31, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-card);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9998;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

#sticky-read-more.visible {
  transform: translateY(0);
}

.srm-label {
  color: var(--gold, #e8c872);
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

#sticky-read-more a {
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  transition: color 0.2s;
}

#sticky-read-more a:hover {
  color: var(--gold, #e8c872);
}

#srm-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}

#srm-close:hover {
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   SHARE BUTTONS
   ═══════════════════════════════════════════════════════ */
#share-buttons {
  position: fixed;
  left: max(16px, calc(50% - 440px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#share-buttons.visible {
  opacity: 1;
  pointer-events: auto;
}

#share-buttons a,
#share-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-tertiary);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#share-buttons a:hover,
#share-buttons button:hover {
  color: var(--gold, #e8c872);
  border-color: rgba(232, 200, 114, 0.35);
  background: rgba(232, 200, 114, 0.06);
}

/* ═══════════════════════════════════════════════════════
   RELATED ARTICLES
   ═══════════════════════════════════════════════════════ */
.related-articles {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
}

.related-articles h2 {
  font-size: 1.2rem !important;
  margin-bottom: 16px !important;
  border-bottom: none !important;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.related-card:hover {
  border-color: rgba(232, 200, 114, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.related-card span {
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════ */
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold, #e8c872);
}

.bc-sep {
  margin: 0 6px;
  color: var(--text-muted);
}

.bc-current {
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .aurora-band-1 {
    width: 400px;
    height: 300px;
  }
  .aurora-band-2 {
    width: 350px;
    height: 250px;
  }
  .aurora-band-3 {
    width: 300px;
    height: 200px;
  }
  .spotlight {
    display: none;
  }

  article h1 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }
  article h2 {
    font-size: 1.4rem;
  }

  #share-buttons {
    display: none;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  #sticky-read-more {
    font-size: 0.78rem;
    gap: 10px;
  }
  #sticky-read-more a {
    max-width: 160px;
  }
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-bio-links {
    justify-content: center;
  }
}
