/* ============================================================
   Slideshow page — show one limerick capsule at a time
   ============================================================ */
body {
  /* Background already comes from the book's styles.css */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.ss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.9rem, 3vw, 1.4rem) clamp(1rem, 4vw, 2.2rem);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.ss-back {
  color: var(--ink-soft, #4a423b);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  letter-spacing: 0.02em;
}
.ss-back:hover { color: var(--accent, #ee0a14); }
.ss-back-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}
.ss-back--gallery {
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  opacity: 0.9;
}
.ss-counter {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft, #4a423b);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
}

.ss-stage {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* The capsule comes in straight from book/styles.css — no override needed.
   We just make sure it takes the full stage width. */
.ss-stage > article.lim {
  width: 100%;
}

/* ===== Nav buttons (sticky bottom bar) ===== */
.ss-nav {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--cream-deep, #ecdfc1) 0%, rgba(244,236,216,0.96) 60%, rgba(244,236,216,0) 100%);
  padding: 1rem clamp(1rem, 4vw, 2rem) max(1rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  z-index: 10;
}
.ss-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--ink, #2b2724);
  background: var(--ink, #2b2724);
  color: #fff5dc;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  padding: 0.85rem clamp(1rem, 3vw, 1.6rem);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
  min-width: 8.5rem;
  justify-content: center;
}
.ss-btn:hover { transform: translateY(-1px); background: #1a1714; }
.ss-btn:active { transform: translateY(0); }
.ss-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}
.ss-btn svg { flex-shrink: 0; }

/* On very narrow screens the labels can hide and arrows alone are fine */
@media (max-width: 360px) {
  .ss-btn span { display: none; }
  .ss-btn { min-width: 3rem; padding: 0.85rem 1rem; }
}

/* Footnote explainer — appears only on the first limerick.
   Card style mirrors the .instr-section--intro treatment used on the
   coach instructions page (cream fill, warm border, left accent bar,
   subtle shadow) so it reads as the same kind of "page intro" card. */
.ss-footnote-intro {
  /* Match the coach-instructions intro card exactly */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: #2b1d12;
  text-align: left;
  /* Stay well inside the parchment edges on mobile and cap on desktop */
  width: calc(100% - 3.5rem);
  max-width: 26rem;
  box-sizing: border-box;
  /* tight to the logo above, roomier before the capsule below */
  margin: -0.5rem auto 1.5rem;
  /* Tighter top, roomier bottom — the pill on line 1 adds visual weight,
     so we balance by trimming head space and adding a hair to foot space. */
  padding: 0 1rem 0.7rem 1.25rem;
  background: #DDE9F7;
  border: 1px solid rgba(70, 115, 180, 0.38);
  border-left: 5px solid #4A79B5;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(30, 45, 80, 0.28), 0 4px 8px rgba(30, 45, 80, 0.18);
  white-space: pre-line;
}
/* Inline pill styled to match the real .lw-footnote-btn under each limerick. */
.ss-footnote-intro__pill {
  display: inline-flex;
  align-items: baseline;
  background: #1a2348;
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  line-height: 1.1;
  vertical-align: baseline;
  transform: translateY(-0.05em);
  white-space: nowrap;
}
.ss-footnote-intro[hidden] { display: none; }

/* Hide the '1 / 63' counter per user request. */
.ss-counter { display: none !important; }
