/* ============================================================ */
/* BOUYON GLOSSARY — Main stylesheet                             */
/* ============================================================ */
/* Used by:                                                      */
/*  - bouyon/glossaire/index.html (page index)                  */
/*  - bouyon/glossaire/<term>/index.html (page term individuelle)*/
/*  - en/bouyon/glossary/* (English equivalents)                 */
/*  - chapter HTMLs that include this CSS for `.term-glossary`   */
/*    inline span styling                                        */
/* Tokens reused from src/styles/bouyon-chapter.css palette      */

:root {
  /* Bouyon glossary palette — matches bouyon-chapter.css */
  --bg:     #050505;
  --bg-2:   #0a0a0e;
  --bg-3:   #14141a;
  --text:   #F2F2F2;
  --muted:  rgba(242, 242, 242, 0.55);
  --faint:  rgba(242, 242, 242, 0.32);
  --border: rgba(255, 255, 255, 0.10);
  --accent: #0887F8;
  /* Glossary signature accent — corail (per spec) */
  --coral:        #FF6B6B;
  --coral-soft:   rgba(255, 107, 107, 0.40);
  --coral-faint:  rgba(255, 107, 107, 0.12);
  /* Channel coloring (CTA blocks) */
  --channel-streaming: #1DB954;  /* Spotify green */
  --channel-library:   #0887F8;  /* TIITII NBA accent blue */
  --channel-social:    #E4405F;  /* Instagram pinkish */
}

/* ============================================================ */
/* GLOBAL — body + skip link + breadcrumb                        */
/* ============================================================ */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link — keyboard a11y, hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 8px 16px;
  background: var(--coral);
  color: var(--bg);
  z-index: 1000;
  text-decoration: none;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
  /* touch target — keep ≥40px hit area via padding */
  padding: 6px 4px;
  display: inline-block;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--coral);
  outline: none;
}

.breadcrumb a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 2px;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ============================================================ */
/* INLINE TAGGED TERM — `.term-glossary` (span in chapter prose) */
/* ============================================================ */
/* This class is used INSIDE chapter articles. The visual: corail */
/* color, dotted underline 1px corail 40% opacity, cursor help.   */

.term-glossary {
  /* Inline visual — corail accent + dotted underline */
  color: var(--coral);
  background: none;
  border: none;
  /* Use border-bottom (not text-decoration) for finer control of color/opacity */
  border-bottom: 1px dotted var(--coral-soft);
  text-decoration: none;
  cursor: help;
  /* Inherit font from surrounding paragraph (Source Serif 4 in chapter) */
  font: inherit;
  font-style: inherit;
  /* Touch target via padding — keeps ≥40px hit area on mobile */
  padding: 2px 2px 1px;
  margin: 0;
  /* Smooth transitions for hover/focus */
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  /* Prevent line-break inside the term */
  white-space: nowrap;
  /* Keep button-like behaviour but blend with text */
  -webkit-appearance: none;
  appearance: none;
  display: inline;
  position: relative;
}

.term-glossary:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
  background: var(--coral-faint);
}

.term-glossary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Active state — when dropdown is open */
.term-glossary--active {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 2px;
  background: var(--coral-faint);
}

/* ============================================================ */
/* BOTTOM SHEET — `.term-glossary__dropdown`                     */
/* ============================================================ */
/* Toujours hors du flux du texte: panneau fixé en bas viewport, */
/* lisible sans couvrir le terme cliqué. Cohérent desktop/mobile.*/

.term-glossary__dropdown {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 200;
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  min-width: 0;
  background: var(--bg-3);
  border-left: 3px solid var(--coral);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px 16px;
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.term-glossary__dropdown[data-open="true"],
.term-glossary__dropdown.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.term-glossary__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.term-glossary__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.term-glossary__category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  flex-shrink: 0;
}

.term-glossary__dropdown .term-glossary__def {
  margin: 6px 0 12px;
  color: rgba(242, 242, 242, 0.85);
  font-size: 15px;
  line-height: 1.55;
  /* Specificity 0,2,0 to override .bouyon-chapter__article p (0,1,1)
     reveal animation that hides descendant <p> until intersection
     observed. Tooltip <p> must show immediately when dropdown opens. */
  opacity: 1;
  transform: none;
}

.term-glossary__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  text-decoration: none;
  padding: 8px 0 4px;
  /* min height for touch */
  min-height: 36px;
  border-bottom: 1px solid var(--coral-soft);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.term-glossary__cta:hover,
.term-glossary__cta:focus-visible {
  color: var(--text);
  border-bottom-color: var(--coral);
  outline: none;
}

.term-glossary__cta:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Mobile — anchored to viewport bottom edges */
@media (max-width: 640px) {
  .term-glossary__dropdown {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    transform: translateY(16px);
  }

  .term-glossary__dropdown[data-open="true"],
  .term-glossary__dropdown.is-open {
    transform: translateY(0);
  }
}

/* Close button inside the bottom sheet (a11y: 40×40 touch target) */
.term-glossary__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.term-glossary__close:hover {
  color: var(--text);
  border-color: var(--coral-soft);
  background: rgba(255, 255, 255, 0.04);
}

/* ============================================================ */
/* GLOSSARY PAGE — Term page individuelle (`.glossary-page`)    */
/* ============================================================ */

.glossary-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.glossary-page__hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.glossary-page__eyebrow {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--coral);
  margin-bottom: 18px;
  opacity: 0.92;
}

.glossary-page__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.glossary-page__lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}

/* Definition body — Source Serif 4 longform */
.glossary-page__definition {
  max-width: 740px;
  margin: 0 auto 56px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.78;
  color: rgba(242, 242, 242, 0.88);
}

.glossary-page__definition h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text);
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
}

.glossary-page__definition h2:first-child {
  margin-top: 0;
}

.glossary-page__definition p {
  margin: 0 0 20px;
}

.glossary-page__definition strong { color: var(--text); font-weight: 600; }
.glossary-page__definition em     { color: var(--text); font-style: italic; }
.glossary-page__definition a {
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px dotted var(--coral-soft);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.glossary-page__definition a:hover,
.glossary-page__definition a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--coral);
  outline: none;
}
.glossary-page__definition a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================ */
/* AUDIO EMBED — Spotify (`.glossary-page__audio`)              */
/* ============================================================ */

.glossary-page__audio {
  margin: 56px 0;
  max-width: 740px;
}

.glossary-page__audio-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--coral);
  opacity: 0.92;
  margin: 0 0 16px;
}

.glossary-page__audio iframe,
.glossary-page__audio .spotify-embed {
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
  display: block;
}

.glossary-page__audio-caption {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ============================================================ */
/* CHAPTERS REFERENCED (`.glossary-page__chapters`)             */
/* ============================================================ */

.glossary-page__chapters {
  margin: 56px 0;
  padding: 8px 0 8px 32px;
  background: transparent;
  border-left: 2px solid var(--accent);
  border-radius: 0;
}

.glossary-page__chapters h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.92;
  color: var(--accent);
  margin: 0 0 16px;
}

.glossary-page__chapters ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glossary-page__chapters li {
  margin-bottom: 16px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
}

.glossary-page__chapters li:last-child {
  margin-bottom: 0;
}

.glossary-page__chapters li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.glossary-page__chapters li a:hover,
.glossary-page__chapters li a:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
  outline: none;
}

.glossary-page__chapters li a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 2px;
}

.glossary-page__chapters li em {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.glossary-page__chapters--empty p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
}

/* ============================================================ */
/* NEIGHBORS GRID (`.glossary-page__neighbors`)                 */
/* ============================================================ */

.glossary-page__neighbors {
  margin: 64px 0;
}

.glossary-page__neighbors h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--coral);
  opacity: 0.92;
  margin: 0 0 20px;
}

.glossary-page__neighbors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.glossary-page__neighbor-card {
  display: block;
  padding: 20px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  /* min height for touch target */
  min-height: 88px;
}

.glossary-page__neighbor-card:hover,
.glossary-page__neighbor-card:focus-visible {
  border-color: var(--coral);
  background: var(--bg-3);
  transform: translateY(-2px);
  outline: none;
}

.glossary-page__neighbor-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.glossary-page__neighbor-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 6px;
}

.glossary-page__neighbor-card p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ============================================================ */
/* CTA UNIVERSAL — hero conversion-first                         */
/* ============================================================ */
/* Image artist gauche · CTA principal Spotify droite · liens   */
/* secondaires hierarchies (Apple/Deezer · Catalogue · Réseaux)  */

.glossary-cta-universal {
  margin: 96px -24px 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(8, 135, 248, 0.06) 60%, transparent);
  border-top: 1px solid rgba(255, 107, 107, 0.14);
  border-bottom: 1px solid rgba(8, 135, 248, 0.10);
  overflow: hidden;
  position: relative;
}

.glossary-cta-universal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.10), transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(8, 135, 248, 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.glossary-cta-universal__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px;
}

/* Visual / artist photo */
.glossary-cta-universal__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 107, 107, 0.18) inset;
}

.glossary-cta-universal__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.05);
}

.glossary-cta-universal__visual-glow {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 107, 107, 0.45));
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Body */
.glossary-cta-universal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.glossary-cta-universal__eyebrow {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--coral);
  opacity: 0.92;
  margin: 0;
}

.glossary-cta-universal__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 4px;
}

.glossary-cta-universal__intro {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(242, 242, 242, 0.78);
  margin: 0 0 8px;
  max-width: 520px;
}

/* Primary CTA — gros bouton Spotify */
.glossary-cta-universal__primary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.glossary-cta-universal__primary-btn {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 16px;
  padding: 18px 26px;
  background: linear-gradient(135deg, #FF7A6B, #FF5E54);
  color: #0A0A0A;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 20px 40px -8px rgba(255, 107, 107, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  overflow: hidden;
  isolation: isolate;
  max-width: 380px;
}

.glossary-cta-universal__primary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.glossary-cta-universal__primary-btn:hover,
.glossary-cta-universal__primary-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 28px 50px -8px rgba(255, 107, 107, 0.65),
              0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  outline: none;
}

.glossary-cta-universal__primary-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.glossary-cta-universal__primary-label {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: #0A0A0A;
}

.glossary-cta-universal__primary-meta {
  grid-column: 1;
  grid-row: 2;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(10, 10, 14, 0.72);
}

.glossary-cta-universal__primary-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  line-height: 1;
  font-style: italic;
  color: #0A0A0A;
  transition: transform 0.18s ease;
}

.glossary-cta-universal__primary-btn:hover .glossary-cta-universal__primary-arrow {
  transform: translateX(4px);
}

.glossary-cta-universal__platforms {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: rgba(242, 242, 242, 0.65);
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.glossary-cta-universal__platforms a {
  color: rgba(242, 242, 242, 0.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  padding: 4px 0;
}

.glossary-cta-universal__platforms a:hover,
.glossary-cta-universal__platforms a:focus-visible {
  color: var(--coral);
  border-bottom-color: var(--coral);
  outline: none;
}

/* Secondary library link */
.glossary-cta-universal__library {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 18px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  align-self: flex-start;
}

.glossary-cta-universal__library:hover,
.glossary-cta-universal__library:focus-visible {
  border-color: var(--coral);
  background: rgba(255, 107, 107, 0.06);
  transform: translateY(-1px);
  outline: none;
}

/* Social row — pills inline */
.glossary-cta-universal__social {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.glossary-cta-universal__social-intro {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(242, 242, 242, 0.55);
  margin: 0 0 10px;
}

.glossary-cta-universal__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.glossary-cta-universal__social-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: rgba(242, 242, 242, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.glossary-cta-universal__social-list a:hover,
.glossary-cta-universal__social-list a:focus-visible {
  color: var(--coral);
  border-color: var(--coral);
  background: rgba(255, 107, 107, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.glossary-cta-universal__social-list a span[aria-hidden] {
  font-size: 14px;
  font-style: normal;
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 767px) {
  .glossary-cta-universal {
    margin: 64px -16px 0;
  }

  .glossary-cta-universal__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px;
  }

  .glossary-cta-universal__visual {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 14px;
  }

  .glossary-cta-universal__title {
    font-size: clamp(36px, 9vw, 48px);
  }

  .glossary-cta-universal__primary-btn {
    max-width: none;
    padding: 16px 22px;
  }

  .glossary-cta-universal__primary-label {
    font-size: 19px;
  }

  .glossary-cta-universal__platforms {
    flex-wrap: wrap;
  }
}

.glossary-cta-block a:last-child {
  border-bottom: none;
}

/* ============================================================ */
/* GLOSSARY INDEX (`.glossary-index`) — list page                */
/* ============================================================ */

.glossary-index {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.glossary-index__hero {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.glossary-index__eyebrow {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--coral);
  opacity: 0.92;
  margin-bottom: 18px;
}

.glossary-index__hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 20px;
}

.glossary-index__lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.glossary-index__section {
  margin-bottom: 56px;
}

.glossary-index__section h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--coral);
  opacity: 0.92;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.glossary-index__list li {
  border-bottom: 1px solid var(--border);
}

.glossary-index__list li:last-child {
  border-bottom: none;
}

.glossary-index__list li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  /* Touch target ≥44px via line-height + padding */
  padding: 16px 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  transition: color 0.18s ease, background 0.18s ease;
}

.glossary-index__list li a:hover,
.glossary-index__list li a:focus-visible {
  color: var(--coral);
  background: var(--coral-faint);
  outline: none;
}

.glossary-index__list li a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: -2px;
}

.glossary-index__list li a strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.glossary-index__list li a:hover strong,
.glossary-index__list li a:focus-visible strong {
  color: var(--coral);
}

.glossary-index__list li a .dots {
  color: var(--faint);
  flex-shrink: 0;
  user-select: none;
}

.glossary-index__list li a .def {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
  min-width: 220px;
  font-style: italic;
}

/* ============================================================ */
/* RESPONSIVE — breakpoints (320px, 768px, 1280px)              */
/* ============================================================ */

/* Mobile small (320–639px) */
@media (max-width: 639px) {
  body {
    font-size: 17px;
  }

  .breadcrumb {
    padding: 16px 16px 0;
    font-size: 11px;
  }

  .glossary-page,
  .glossary-index {
    padding: 24px 16px 64px;
  }

  .glossary-page__hero {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .glossary-page__title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .glossary-page__lead {
    font-size: 18px;
  }

  .glossary-page__definition {
    font-size: 17px;
    line-height: 1.7;
  }

  .glossary-page__definition h2 {
    font-size: 24px;
    margin: 32px 0 16px;
  }

  .glossary-page__chapters,
  .glossary-page__neighbors {
    margin: 40px 0;
  }

  .glossary-page__neighbors-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* CTA — single column on mobile */
  .glossary-cta-universal {
    margin-left: -16px;
    margin-right: -16px;
    padding: 32px 16px;
  }

  .glossary-cta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Glossary index list — visually clearer on small screens */
  .glossary-index__hero h1 {
    font-size: clamp(36px, 12vw, 64px);
  }

  .glossary-index__lead {
    font-size: 17px;
  }

  .glossary-index__list li a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .glossary-index__list li a .dots {
    display: none;
  }

  .glossary-index__list li a .def {
    min-width: 0;
  }
}

/* Tablet (640–1023px) */
@media (max-width: 1023px) and (min-width: 640px) {
  .glossary-cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .glossary-cta-grid .glossary-cta-block:last-child {
    grid-column: 1 / -1;
  }
}

/* Desktop (≥1280px) — generous max-widths kept; no extra rules needed */

/* ============================================================ */
/* PREFERS-REDUCED-MOTION                                       */
/* ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .term-glossary,
  .term-glossary__dropdown,
  .term-glossary__cta,
  .glossary-page__neighbor-card,
  .glossary-cta-block a,
  .glossary-index__list li a,
  .breadcrumb a,
  .glossary-page__definition a,
  .glossary-page__chapters li a {
    transition: none !important;
  }

  .term-glossary__dropdown {
    transform: none !important;
  }

  .glossary-page__neighbor-card:hover,
  .glossary-page__neighbor-card:focus-visible {
    transform: none !important;
  }
}
