/* ============================================
   AI GUIDE v2 — Single-Page Shell Styles
   Timeline (full + minimized) + Chapter viewport
   ============================================ */


/* ============================================
   SHELL LAYOUT
   ============================================ */
.shell {
  position: relative;
  min-height: 100vh;
}


/* ============================================
   TIMELINE FULL VIEW
   ============================================ */
.timeline-full {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* In chapter mode, timeline-full becomes a slide-out panel (see panel rules below).
   Default state: hidden off-screen via transform, controlled by layout-specific rules. */


/* ---- Hero ---- */
.tl-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tl-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tl-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 var(--sp-xl);
}

.tl-hero__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: tl-fadeUp 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tl-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(30px);
  animation: tl-fadeUp 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tl-hero__title em {
  color: var(--accent);
  font-style: italic;
}

.tl-hero__subtitle {
  margin-top: var(--sp-xl);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: tl-fadeUp 1s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tl-hero__subtitle strong {
  color: var(--text-secondary);
}

.tl-hero__scroll-hint {
  margin-top: var(--sp-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: tl-fadeUp 0.8s 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tl-hero__scroll-dot {
  animation: tl-scrollBob 2s ease-in-out infinite;
}

@keyframes tl-scrollBob {
  0%, 100% { cy: 8; }
  50% { cy: 16; }
}

@keyframes tl-fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---- Timeline section ---- */
.tl-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--sp-4xl) var(--sp-xl);
}

.tl-line {
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--border) 5%,
    var(--accent) 20%,
    var(--accent) 80%,
    var(--border) 95%,
    transparent 100%
  );
  opacity: 0.3;
}


/* ---- Era blocks ---- */
.tl-era {
  position: relative;
  margin-bottom: var(--sp-4xl);
  padding-left: 80px;
  opacity: 0;
  transform: translateY(30px);
}

.tl-era.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-era__header { margin-bottom: var(--sp-2xl); }

.tl-era__years {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-era__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: var(--sp-xs);
}

.tl-era__desc {
  margin-top: var(--sp-md);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 55ch;
  color: var(--text-muted);
}


/* ---- Milestones ---- */
.tl-era__milestones {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
}

.tl-milestone {
  position: relative;
  padding-left: var(--sp-xl);
}

.tl-milestone__dot {
  position: absolute;
  left: -44px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(200,160,100,0.3);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-milestone.is-visible .tl-milestone__dot {
  opacity: 1;
  transform: scale(1);
}

.tl-milestone__year {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.tl-milestone__title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: var(--sp-xs);
}

.tl-milestone__desc {
  margin-top: var(--sp-sm);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 50ch;
}


/* ---- Era chapter chips ---- */
.tl-era__chips {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-sm);
}

.tl-era__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-era__chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200,160,100,0.06);
  transform: translateY(-1px);
}


/* ---- Chapter grid ---- */
.tl-chapters {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--sp-4xl) var(--sp-xl);
}

.tl-chapters__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.tl-chapters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-lg);
}

.tl-chapter-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(20px);
}

.tl-chapter-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.tl-chapter-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.tl-chapter-card__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.tl-chapter-card__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

.tl-chapter-card__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
}


/* Footer uses global .site-footer from lib/components.css */


/* ============================================
   FLOATING CHAPTER NAV — Dot navigation
   (created dynamically in app.js)
   ============================================ */
.chapter-nav {
  position: fixed;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shell.is-chapter .chapter-nav {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Pill background (::before pseudo) ---- */
.chapter-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(26, 24, 22, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}

html[data-theme="light"] .chapter-nav::before {
  background: rgba(245, 242, 238, 0.7);
}

.chapter-nav.is-horizontal::before {
  opacity: 1;
}

.chapter-nav--pill-hidden::before {
  opacity: 0 !important;
}

/* ---- Vertical (left sidebar) ---- */
.chapter-nav.is-vertical {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
}

/* ---- Horizontal (bottom bar) ---- */
.chapter-nav.is-horizontal {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---- Back / Timeline button ---- */
.chapter-nav__back {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.chapter-nav__back:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200,160,100,0.06);
}

.chapter-nav__back.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200,160,100,0.1);
}

/* ---- Divider ---- */
.chapter-nav__divider {
  flex-shrink: 0;
}

.chapter-nav.is-vertical .chapter-nav__divider {
  width: 16px;
  height: 1px;
  background: var(--border-subtle);
  margin: 2px 0;
}

.chapter-nav.is-horizontal .chapter-nav__divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
  margin: 0 2px;
}

/* ---- Arrow buttons ---- */
.chapter-nav__arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}

.chapter-nav__arrow:hover {
  color: var(--accent);
}

.chapter-nav__arrow:hover svg {
  transform: scale(1.15);
  transition: transform 0.2s;
}

.chapter-nav__arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Dots container ---- */
.chapter-nav__dots {
  display: flex;
  align-items: center;
  position: relative;
}

.chapter-nav.is-vertical .chapter-nav__dots {
  flex-direction: column;
  gap: 8px;
}

.chapter-nav.is-horizontal .chapter-nav__dots {
  flex-direction: row;
  gap: 8px;
}

/* ---- Individual dot ---- */
.chapter-nav__dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.chapter-nav__circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.chapter-nav__dot.is-current .chapter-nav__circle {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(200,160,100,0.4);
}

.chapter-nav__dot:hover .chapter-nav__circle {
  background: var(--text-secondary);
  transform: scale(1.2);
}

.chapter-nav__dot.is-current:hover .chapter-nav__circle {
  background: var(--accent);
}

/* Ripple pulse when corresponding chip is hovered */
.chapter-nav__circle {
  position: relative;
}

.chapter-nav__circle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--text-secondary);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.chapter-nav__dot.is-pulsing .chapter-nav__circle {
  background: var(--text-secondary);
  transform: scale(1.15);
}

.chapter-nav__dot.is-pulsing .chapter-nav__circle::after {
  animation: nav-ripple 1.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes nav-ripple {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(3.5);
  }
}

/* ---- Hover labels ---- */
.chapter-nav__label {
  position: absolute;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}

/* Vertical: labels appear to the right */
.chapter-nav.is-vertical .chapter-nav__label {
  left: 36px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}

.chapter-nav.is-vertical .chapter-nav__dot:hover .chapter-nav__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Horizontal: labels appear above */
.chapter-nav.is-horizontal .chapter-nav__label {
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}

.chapter-nav.is-horizontal .chapter-nav__dot:hover .chapter-nav__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Progress bar (inside dots container) ---- */
.chapter-nav__progress {
  position: absolute;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 1px;
  transition: width 0.15s linear, height 0.15s linear;
  pointer-events: none;
}

.chapter-nav.is-vertical .chapter-nav__progress {
  left: -4px;
  top: 0;
  width: 2px;
}

.chapter-nav.is-horizontal .chapter-nav__progress {
  bottom: -4px;
  left: 0;
  height: 2px;
}

/* ---- Layout toggle ---- */
.chapter-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}

.chapter-nav__toggle:hover {
  color: var(--text-secondary);
}


/* ============================================
   TIMELINE PANEL — Slide-out overlay
   ============================================ */
.timeline-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.shell.is-panel-open .timeline-panel-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Panel overlay for timeline-full in chapter mode */
.shell.is-chapter .timeline-full {
  position: fixed;
  z-index: 160;
  overflow-y: auto;
  background: var(--bg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Vertical panel: slides from left */
.shell.is-chapter.layout-vertical .timeline-full {
  top: 0;
  left: 0;
  bottom: 0;
  width: 400px;
  max-width: 85vw;
  padding-left: 56px;
  border-right: 1px solid var(--border-subtle);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  height: auto;
}

.shell.is-chapter.layout-vertical.is-panel-open .timeline-full {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Horizontal panel: slides from bottom */
.shell.is-chapter.layout-horizontal .timeline-full {
  left: 0;
  right: 0;
  bottom: 0;
  height: 50vh;
  padding-bottom: 56px;
  border-top: 1px solid var(--border-subtle);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: auto;
}

.shell.is-chapter.layout-horizontal.is-panel-open .timeline-full {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---- Panel header (compact title in slide-out) ---- */
.tl-panel-header {
  display: none;
  text-decoration: none;
}

.shell.is-chapter .timeline-full .tl-panel-header {
  display: block;
  position: relative;
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-xl);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  overflow: hidden;
}

/* Radial glow on hover — warm gold bloom behind the title */
.tl-panel-header::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 160, 100, 0.12) 0%, rgba(200, 160, 100, 0.04) 40%, transparent 70%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
  opacity: 0;
  pointer-events: none;
}

.shell.is-chapter .timeline-full .tl-panel-header:hover::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
}

.shell.is-chapter .timeline-full .tl-panel-header:hover .tl-panel-header__title {
  color: var(--text-primary);
}

.shell.is-chapter .timeline-full .tl-panel-header:hover .tl-panel-header__title em {
  text-shadow: 0 0 24px rgba(200, 160, 100, 0.3);
}

.tl-panel-header__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  position: relative;
  transition: color 0.3s;
}

.tl-panel-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.1;
  position: relative;
  transition: color 0.3s;
}

.tl-panel-header__title em {
  color: var(--accent);
  font-style: italic;
  transition: text-shadow 0.3s;
}

.tl-panel-header__subtitle {
  margin-top: var(--sp-lg);
  font-size: 0.8125rem;
  line-height: 2;
  color: var(--text-muted);
  position: relative;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0;
}

.shell.is-chapter .timeline-full .tl-panel-header:hover .tl-panel-header__subtitle {
  opacity: 1;
  max-height: 6em;
  margin-top: var(--sp-lg);
}

.tl-panel-header__subtitle strong {
  color: var(--text-muted);
}

/* Hide hero canvas in panel — too large for a 400px panel */
.shell.is-chapter .timeline-full .tl-hero {
  display: none;
}

/* Hide milestone dots and vertical line in panel — conflicts with chapter nav */
.shell.is-chapter .timeline-full .tl-milestone__dot,
.shell.is-chapter .timeline-full .tl-line {
  display: none;
}

/* Reduce left padding since dots/line are gone */
.shell.is-chapter .timeline-full .tl-era {
  padding-left: var(--sp-xl);
}

.shell.is-chapter .timeline-full .tl-milestone {
  padding-left: 0;
}


/* ============================================
   CHAPTER VIEWPORT
   ============================================ */
.chapter-viewport {
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100vh;
}

.shell.is-chapter .chapter-viewport {
  opacity: 1;
  pointer-events: auto;
}

/* No margins needed — floating nav overlays content */

.chapter-viewport__content {
  min-height: 100vh;
}

.chapter-viewport__loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 50;
}

.chapter-viewport__loading.is-active {
  opacity: 1;
  pointer-events: auto;
}

.chapter-viewport__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ============================================
   CHAPTER CONTENT OVERRIDES
   Force chapter elements visible inside the
   viewport. Base CSS sets many elements to
   opacity:0 for scroll-triggered reveal, but
   in the SPA context we need them visible as
   a fallback (GSAP will still animate them
   if JS runs correctly).
   ============================================ */

/* Force chapter elements visible — delayed so GSAP animates first,
   but if GSAP hasn't run by the timeout, CSS takes over cleanly.
   Uses transition + a toggled class instead of keyframes to avoid
   conflicting with GSAP inline styles. */
.chapter-viewport .hero__title-line,
.chapter-viewport .hero__subtitle,
.chapter-viewport .hero__scroll-hint,
.chapter-viewport .prologue__line,
.chapter-viewport .act__header,
.chapter-viewport .epilogue__line {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolly steps — make first one visible */
.chapter-viewport .scrolly__step:first-child {
  opacity: 1;
}

.chapter-viewport .hero {
  height: 100vh;
}

.chapter-viewport .scrolly__graphic {
  height: 100vh;
}

/* No height overrides needed — floating nav doesn't affect layout */


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .tl-line { left: 20px; }
  .tl-era { padding-left: 50px; }
  .tl-milestone__dot { left: -34px; }
  .tl-chapters__grid { grid-template-columns: 1fr; }
  .tl-era__links { flex-direction: column; }

  /* Nav closer to edge on mobile */
  .chapter-nav.is-vertical { left: 8px; }
  .chapter-nav.is-horizontal { bottom: 8px; }

  /* Hide hover labels on mobile */
  .chapter-nav__label { display: none; }

  /* Panel takes more width on mobile */
  .shell.is-chapter.layout-vertical .timeline-full {
    width: 85vw;
  }
}
