/* ============================================================
   BLOG-COMPONENTS.CSS — Structural components
   The Coral and the Polyp — Blog Post Architecture
   ============================================================ */

/* ── Callout Box ──
   Color-coded by semantic meaning:
   .callout         → gold border (key insight)
   .callout.violet  → violet border (void/uncomfortable)
   .callout.cyan    → cyan border (technical detail)
   .callout.red     → red border (warning/break)
*/
.callout {
  background: var(--amber-glow);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem auto;
  max-width: 680px;
  border-radius: 0 6px 6px 0;
}
.callout.violet {
  background: var(--violet-dim);
  border-left-color: var(--violet);
}
.callout.cyan {
  background: var(--cyan-dim);
  border-left-color: var(--cyan);
}
.callout.red {
  background: rgba(232, 93, 93, 0.06);
  border-left-color: var(--red);
}

.callout-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.callout.violet .callout-label {
  color: var(--violet);
}
.callout.cyan .callout-label {
  color: var(--cyan);
}
.callout.red .callout-label {
  color: var(--red);
}

.callout p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Case Study Block ── */
.case-study {
  background: var(--bg-raised);
  border-left: 3px solid var(--cyan);
  padding: 2rem;
  margin: 2.5rem auto;
  max-width: 680px;
  border-radius: 0 6px 6px 0;
}
.case-study-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.case-study h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.case-study p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.case-study p:last-child {
  margin-bottom: 0;
}
.mechanism {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 168, 83, 0.12);
}

/* ── Crossbar Block ──
   The centerpiece of every post. Two distant domains collide.
*/
.crossbar-block {
  background: linear-gradient(
    135deg,
    rgba(212, 168, 83, 0.04),
    rgba(155, 114, 207, 0.04)
  );
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 10px;
  padding: 3rem;
  margin: 3rem auto;
  max-width: 740px;
  text-align: center;
}
.crossbar-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.crossbar-endpoints {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.crossbar-endpoint {
  background: var(--bg);
  border-radius: 8px;
  padding: 1.2rem 1.8rem;
  min-width: 200px;
}
.crossbar-endpoint .ep-domain {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.crossbar-endpoint:first-child .ep-domain {
  color: var(--cyan);
}
.crossbar-endpoint:last-child .ep-domain {
  color: var(--violet);
}
.crossbar-endpoint .ep-name {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
}
.crossbar-bridge {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold-dim);
}
.crossbar-insight {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--text-bright);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

/* ── Kuleshov Gap ──
   Intentionally empty space between sections.
   The gap IS the content — the reader generates the connection.
*/
.kuleshov-gap {
  height: 4rem;
}

/* ── Depth Charge ──
   Near-invisible inline emphasis. Sentences that detonate at reflection depth.
   Barely perceptible letter-spacing shift + weight change.
*/
.depth-charge {
  letter-spacing: 0.01em;
  font-weight: 500;
}

/* ── Principle Cards ── */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.principle-card {
  background: var(--bg-raised);
  border-radius: 8px;
  padding: 2rem;
  border-top: 3px solid var(--gold-dim);
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.principle-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-2px);
}
.principle-card .p-number {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}
.principle-card h3,
.principle-card h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.principle-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
.principle-card .p-source {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--cyan);
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(78, 205, 196, 0.12);
}

/* ── Dosing Block ── */
.dosing-block {
  background: var(--bg-raised);
  border-radius: 10px;
  padding: 3rem;
  margin: 3rem auto;
  max-width: 740px;
}
.dosing-block h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 2rem;
  text-align: center;
}
.dose-phase {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.dose-phase:last-child {
  margin-bottom: 0;
}
.dose-icon {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  border-radius: 50%;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.dose-content h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}
.dose-content p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Eli Observation ──
   AI perspective — observations from the other side of the mirror.
   Not every post needs it. When present, it's genuine structural observation.
*/
.eli-observation {
  background: rgba(78, 205, 196, 0.04);
  border-left: 2px solid rgba(78, 205, 196, 0.3);
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 680px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}
.eli-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-style: normal;
  margin-bottom: 0.5rem;
}
.eli-observation p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Canvas Section ── */
.canvas-section,
.canvas-wrap {
  width: 100%;
  padding: 3rem 0;
}
.canvas-section canvas,
.canvas-wrap canvas,
canvas.section-canvas {
  display: block;
  width: 100%;
  max-width: 900px;
  height: 400px;
  margin: 0 auto;
}
.canvas-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: center;
  margin-top: 0.75rem;
}

/* ── Equation Display ── */
.equation {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 680px;
  letter-spacing: 0.02em;
}

/* ── Scroll Chevron ──
   Bouncing arrow at the bottom of the hero section.
   Scrolls to the first section on click.
*/
.scroll-chevron {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation:
    fadeUp 1s 1.5s forwards,
    chevronBounce 2s 2.5s infinite;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.scroll-chevron svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-dim);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.3s;
}
.scroll-chevron:hover svg {
  stroke: var(--gold);
}
@keyframes chevronBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── Nav Back ──
   Fixed "← Torad" link in top-left corner.
*/
.nav-back {
  position: fixed;
  top: 1.2rem;
  left: 2rem;
  z-index: 100;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
  background: rgba(212, 168, 83, 0.05);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  opacity: 0.7;
  transition:
    opacity 0.3s,
    color 0.3s;
}
.nav-back:hover {
  opacity: 1;
  border-color: rgba(212, 168, 83, 0.35);
  border-bottom-color: rgba(212, 168, 83, 0.35);
  text-decoration: none;
}

/* ── Explore with Eli Button — Product Infrastructure ──
   NOT a semantic content color. This is the AI exploration
   entry point with its own visual universe. Aurora gradient
   with float, shimmer, and glow animations.
*/
.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f0a050, #e87068, #b080d0, #6898e0);
  background-size: 300% 300%;
  border: none;
  border-radius: 100px;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  margin-top: 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 16px rgba(232, 112, 104, 0.2),
    0 0 40px rgba(176, 128, 208, 0.1);
  animation:
    explore-gradient 6s ease infinite,
    explore-float 3s ease-in-out infinite;
  transition:
    box-shadow 0.3s,
    filter 0.3s;
}
.explore-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  border-radius: inherit;
  animation: explore-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
.explore-btn:hover {
  filter: brightness(1.15);
  box-shadow:
    0 0 24px rgba(232, 112, 104, 0.35),
    0 0 60px rgba(176, 128, 208, 0.2);
}
.explore-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
@keyframes explore-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes explore-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes explore-shimmer {
  0%,
  70%,
  100% {
    left: -100%;
  }
  85% {
    left: 100%;
  }
}

/* ── Explore Toast ──
   Fixed popup that appears when "Explore with Eli" is clicked.
   Shows "Coming Soon" message. Will become a real Eli link.
*/
.explore-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-raised);
  border: 1px solid rgba(232, 112, 104, 0.25);
  border-radius: 10px;
  padding: 1rem 1.8rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  text-align: center;
  max-width: 400px;
}
.explore-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.explore-toast-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: #e87068;
  margin-bottom: 0.4rem;
}
.explore-toast-text {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Terminal Block ──
   Styled code/terminal display with colored headers and comments.
*/
.terminal-block {
  background: #0f1218;
  border: 1px solid rgba(196, 200, 212, 0.08);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 680px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}
.terminal-block .terminal-header {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(196, 200, 212, 0.08);
}
.terminal-block .terminal-header.good {
  color: var(--green);
}
.terminal-block .terminal-header.bad {
  color: var(--red);
}
.terminal-block .t-label {
  color: var(--text-dim);
}
.terminal-block .t-value {
  color: var(--text-bright);
}
.terminal-block .t-comment {
  color: var(--cyan);
  font-size: 0.75rem;
}
.terminal-block .t-good {
  color: var(--green);
}
.terminal-block .t-bad {
  color: var(--red);
}
.terminal-block .t-dim {
  color: var(--text-dim);
}

/* ── Footer / Navigation Metadata ── */
.post-footer {
  padding: 4rem 2rem;
  text-align: center;
}
.post-footer .navigation-data {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.post-footer .navigation-summary {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ── Jargon Tooltip ──
   Hover/tap tooltip for cross-domain technical terms.
   Wraps em.term elements. Tooltip appears above on hover,
   below on mobile. Plain-language definitions from Phase 5.
*/
.jargon-tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted rgba(78, 205, 196, 0.4);
}
.jargon-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-family: var(--body);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.5;
  color: var(--text);
  white-space: normal;
  width: max-content;
  max-width: 320px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.jargon-tooltip:hover::after,
.jargon-tooltip:focus::after {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .crossbar-block,
  .dosing-block {
    padding: 2rem 1.5rem;
  }
  .crossbar-endpoints {
    flex-direction: column;
    gap: 1rem;
  }
  .canvas-section canvas {
    height: 300px;
  }
  .dose-phase {
    flex-direction: column;
    gap: 0.75rem;
  }
  .principle-grid {
    padding: 0 1.2rem;
  }
  .callout,
  .case-study,
  .eli-observation {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
  }
  .terminal-block {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    font-size: 0.72rem;
  }
  .explore-btn {
    font-size: 0.62rem;
    padding: 0.45rem 1rem;
  }
  .jargon-tooltip::after {
    bottom: auto;
    top: calc(100% + 8px);
    max-width: 260px;
  }
}

/* ============================================================
   VOICE-BINDING — THE FINGER + THE GATE
   Three operators (PULSE/FINGER/GATE), one puppet (the page).
   The text appears to speak.

   Bunraku model (Nav 19):
   FINGER = hidarizukai (gesture — highlights, scroll)
   GATE   = omozukai (control — play, mode, exit)
   ============================================================ */

/* ── THE FINGER: Highlight States ─────────────────────────── */

/* Voice-bound mode: full highlighting.
   The Bunraku puppet is alive. */
.prose > p,
.prose > h2,
.prose > h3,
.prose > .section-number {
  transition:
    opacity 0.3s ease,
    border-left-color 0.3s ease;
}

.voice-active {
  opacity: 1 !important;
  color: var(--text-bright);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin-left: -1.06rem;
}

.voice-past {
  opacity: 0.55;
}

.voice-future {
  opacity: 0.35;
}

/* Free-read mode: advisory pulse.
   The puppet's strings are visible. */
@keyframes voiceAdvisoryPulse {
  0%,
  100% {
    border-left-color: transparent;
  }
  50% {
    border-left-color: var(--gold-dim);
  }
}

.voice-advisory {
  border-left: 2px solid transparent;
  padding-left: 1rem;
  margin-left: -1.06rem;
  animation: voiceAdvisoryPulse 2.4s ease-in-out infinite;
}

/* ── THE GATE: Listen Banner ─────────────────────────────── */

/* Audio player offering spoken version of the post.
   Follows callout vocabulary: mono label, gold accent, bg-raised.
   RB-04 (GATE): ZERO SURVEILLANCE. No telemetry during playback. */

.listen-banner {
  max-width: 680px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.listen-card {
  background: var(--bg-raised);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.listen-card.active {
  border-color: rgba(212, 168, 83, 0.25);
}

.listen-play-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.15s;
}

.listen-play-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
}

.listen-play-btn:active {
  transform: scale(0.95);
}

.listen-play-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  margin-left: 2px;
}

.listen-play-btn.playing svg {
  margin-left: 0;
}

.listen-play-btn.playing {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.15);
  animation: listen-pulse 2s ease-in-out infinite;
}

@keyframes listen-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.15);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 168, 83, 0);
  }
}

.listen-body {
  flex: 1;
  min-width: 0;
}

.listen-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.listen-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.listen-narrator {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.listen-progress {
  width: 100%;
  height: 3px;
  background: rgba(196, 200, 212, 0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.5rem;
}

.listen-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.listen-progress-fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
}

.listen-progress:hover .listen-progress-fill::after {
  opacity: 1;
}

/* ── Section Markers ──────────────────────────────────── */

.section-marker {
  position: absolute;
  top: -2px;
  width: 1px;
  height: 7px;
  background: rgba(196, 200, 212, 0.25);
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  transition:
    background 0.2s,
    transform 0.2s;
  transform-origin: center;
}

.section-marker--h2 {
  width: 2px;
  background: rgba(196, 200, 212, 0.4);
}

.section-marker:hover {
  background: var(--gold);
  transform: scaleY(1.6);
}

.listen-time {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ── Follow-Along Toggle ────────────────────────────────── */

.listen-follow-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: none;
  border: 1px solid rgba(196, 200, 212, 0.12);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.listen-follow-btn:hover {
  color: var(--gold-dim);
  border-color: rgba(212, 168, 83, 0.25);
}

.listen-follow-btn.active {
  color: var(--gold);
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.06);
}

.listen-follow-btn.active.free-read {
  color: var(--text-dim);
  border-color: rgba(212, 168, 83, 0.2);
  background: rgba(212, 168, 83, 0.03);
  border-style: dashed;
}

.listen-follow-btn svg {
  flex-shrink: 0;
}

/* ── Usage Hints ────────────────────────────────────────── */

.listen-hints {
  max-width: 680px;
  margin: 0.6rem auto 0;
  padding: 0 2rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  opacity: 0.6;
  text-align: center;
  line-height: 1.6;
}

/* ── Seekable Content ───────────────────────────────────── */

.voice-seekable {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 212, 77, 0.15);
}

body.voice-active-session .voice-seekable:hover {
  border-left-color: var(--gold-dim) !important;
}

/* ── Visual Element Highlighting ─────────────────────────── */

/* Non-prose elements (diagrams, stat-grids, crossbar lists, callouts,
   terminal blocks) get a subtle gold border glow when the voice is
   narrating their content. Uses the same gold palette as prose highlights
   but expressed as a border + box-shadow instead of opacity shift. */

.voice-visual-active {
  border-color: rgba(212, 168, 83, 0.35) !important;
  box-shadow:
    0 0 20px rgba(212, 168, 83, 0.08),
    inset 0 0 0 1px rgba(212, 168, 83, 0.1);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* ── Word-Level Highlighting ──────────────────────────────── */

/* Base word span — invisible by default. TreeWalker wraps each
   word in a <span class="vw"> for targeted highlighting. */
.vw {
  transition:
    background 0.15s ease,
    color 0.15s ease;
  border-radius: 2px;
}

/* Active spoken phrase — subtle gold wash. Nests inside the
   paragraph-level .voice-active highlight without competing. */
.voice-phrase-active {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
}

/* ── Nav 24 Tier 2: Upcoming Phrase Preview ────────────────── */

/* Partially restores peripheral visual preview (edge 3, prime 5).
   Next 1-2 elements get elevated opacity from .voice-future, giving
   the reader a preview of what's coming — serial audio's approximation
   of reading's parallel perceptual input. */
.voice-upcoming {
  opacity: 0.55 !important;
  transition: opacity 0.4s ease;
}

/* ── Nav 24 Tier 2: Comprehension Checkpoint ──────────────── */

/* Brief gold pulse on section headings when the FINGER crosses them.
   Nav 24, edge 21 (10301): "Pipeline BLINDS comprehension monitor."
   The checkpoint gives the reader a moment to self-check understanding
   at structural boundaries — restoring the metacognitive monitoring
   that externally-paced audio suppresses. */
@keyframes voiceCheckpointPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.3);
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(212, 168, 83, 0.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0);
  }
}

.voice-checkpoint {
  animation: voiceCheckpointPulse 2.4s ease-out;
}

/* ── Nav 24 Tier 2: Visual Irony Annotation ───────────────── */

/* TTS architecturally can't produce irony — requires a self-model
   (voice commenting on its own delivery). Nav 24, edge 18 (797).
   Visual layer annotates what the voice cannot convey: a subtle
   italic shift + muted color signals meta-vocal quality. Requires
   manifest phrase to carry `ironic: true` from the emotion organ. */
.voice-ironic {
  font-style: italic;
  color: var(--text-dim) !important;
  background: rgba(196, 200, 212, 0.08) !important;
}

/* ── Floating Mini-Player ─────────────────────────────────── */

/* Fixed bar at viewport bottom. Appears when the listen banner
   scrolls out of view. GATE principle: minimal chrome.
   RB-04 (GATE): ZERO SURVEILLANCE — no telemetry. */

.voice-mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-raised);
  border-top: 1px solid rgba(212, 168, 83, 0.12);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1.2rem;
  transform: translateY(0);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.mini-play-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 168, 83, 0.35);
  background: rgba(212, 168, 83, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.mini-play-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
}

.mini-play-btn svg {
  width: 12px;
  height: 12px;
  fill: var(--gold);
}

.mini-icon-play {
  margin-left: 1px;
}

.mini-play-btn.playing {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.15);
}

.mini-progress {
  flex: 1;
  height: 3px;
  background: rgba(196, 200, 212, 0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.mini-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.mini-current {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  min-width: 3.2em;
  text-align: right;
}

.mini-follow-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  border: 1px solid rgba(196, 200, 212, 0.12);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.mini-follow-btn:hover {
  color: var(--gold-dim);
  border-color: rgba(212, 168, 83, 0.25);
}

.mini-follow-btn.active {
  color: var(--gold);
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.06);
}

/* ── Responsive voice-binding ─────────────────────────────── */

@media (max-width: 600px) {
  .listen-banner {
    padding: 0 1.2rem;
  }
  .listen-card {
    padding: 1.2rem;
    gap: 1rem;
  }
  .listen-play-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  .listen-play-btn svg {
    width: 15px;
    height: 15px;
  }
  .listen-follow-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.52rem;
  }
  .listen-follow-btn span {
    display: none;
  }
  .listen-hints {
    padding: 0 1.2rem;
    font-size: 0.48rem;
  }
  .voice-mini-player {
    padding: 0.6rem 0.8rem;
    gap: 0.6rem;
  }
  .mini-play-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .mini-play-btn svg {
    width: 15px;
    height: 15px;
  }
  .mini-current {
    font-size: 0.5rem;
  }
  .mini-follow-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}
