/* LEARN SPRINTS v2.0 — fonts + theme tokens for Obsidian Publish.
   Publish puts .theme-light / .theme-dark on <body>.
   Pink #ff48b0 is for fills only; text that must be read uses --ls-pink-text (5.3:1 on paper). */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800&family=IBM+Plex+Mono:wght@500;600;700&family=Public+Sans:wght@400;600;700&display=swap');

body {
  --ls-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --ls-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ls-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ls-paper: #e9e8e1; --ls-ink: #191c2c; --ls-blue: #3d5588; --ls-pink: #ff48b0; --ls-yellow: #ffe800;
  --ls-pink-text: #b4106f; --ls-focus: #191c2c; --ls-link: #3d5588; --ls-yellow-soft: #ffe800;
  --ls-card: #f3f2ec; --ls-blue-solid: #3d5588; --ls-on-blue: #ffffff;
  --ls-muted: #575b6e; --ls-line: rgba(25,28,44,.16); --ls-line-strong: rgba(25,28,44,.38); --ls-grain: rgba(25,28,44,.10);
  --ls-veil: rgba(25,28,44,.34); --ls-veil-2: rgba(25,28,44,.2);
  --ls-figure: #f3f2ec; --ls-shadow: rgba(10,12,30,.5);
}
body.theme-dark {
  --ls-paper: #161a2b; --ls-ink: #ecebe4; --ls-blue: #7f9be0; --ls-pink: #ff5cb8; --ls-yellow: #ffe800;
  --ls-pink-text: #ff8fd0; --ls-focus: #ffe800; --ls-link: #b3c4f2; --ls-yellow-soft: rgba(255,232,0,.3);
  --ls-card: #1f2439; --ls-blue-solid: #7f9be0; --ls-on-blue: #10142a;
  --ls-muted: #a3a7b8; --ls-line: rgba(236,235,228,.16); --ls-line-strong: rgba(236,235,228,.4); --ls-grain: rgba(236,235,228,.07);
  --ls-veil: rgba(236,235,228,.34); --ls-veil-2: rgba(236,235,228,.2);
  --ls-figure: #eceae2; --ls-shadow: rgba(0,0,0,.7);
}
/* =====================================================================
   LEARN SPRINTS — deck styles v2.0 (core; theme tokens supplied separately)
   2026-10-22 · v2.1 2026-10-24
   ===================================================================== */

/* ---------- deck shell ---------- */
.ls-deck {
  position: relative;
  margin: 1rem 0 2rem;
  border-radius: 18px;
  overflow: hidden;
  overflow: clip; /* clip, unlike hidden, lets the head and nav stick while the page scrolls */
  background: var(--ls-paper);
  color: var(--ls-ink);
  font-family: var(--ls-body);
  box-shadow: 0 0 0 1px var(--ls-line), 0 22px 44px -28px var(--ls-shadow);
  isolation: isolate;
}
.ls-deck *, .ls-deck *::before, .ls-deck *::after { box-sizing: border-box; }
.ls-deck::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--ls-grain) 0.7px, transparent 0.8px);
  background-size: 5px 5px;
  opacity: .55; pointer-events: none; z-index: 0;
}
.ls-deck [hidden] { display: none !important; }
.ls-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- head: progress + where am I ---------- */
.ls-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3; padding: 12px 16px 8px; display: grid; gap: 8px; background: var(--ls-paper); border-bottom: 1.5px solid var(--ls-line); }
.ls-bar { display: flex; gap: 3px; }
.ls-seg { flex: 1; height: 4px; border-radius: 2px; background: var(--ls-line); overflow: hidden; }
.ls-seg.is-chapstart { margin-left: 7px; }
.ls-seg > i { display: block; height: 100%; width: 0; background: var(--ls-ink); }
.ls-seg.is-done > i { width: 100%; }
.ls-seg.is-cur > i { width: 100%; background: var(--ls-pink); }
.ls-deck.is-auto .ls-seg.is-cur > i { width: 0; }
.ls-deck.is-auto .ls-seg.is-cur.is-timing > i { animation: ls-fill var(--ls-secs, 20s) linear forwards; }
@keyframes ls-fill { from { width: 0; } to { width: 100%; } }

.ls-meta { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-family: var(--ls-mono); font-size: .8rem; letter-spacing: .04em; }
.ls-meta .ls-count { margin-left: auto; color: var(--ls-muted); white-space: nowrap; flex-shrink: 0; }
.ls-chap { font-weight: 600; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-chap::before { content: "\25C6  "; content: "\25C6  " / ""; color: var(--ls-pink-text); }
.ls-where { margin-right: auto; display: flex; gap: 10px; font-family: var(--ls-mono); font-size: .78rem; letter-spacing: .03em; color: var(--ls-muted); white-space: nowrap; }
.ls-count { font-variant-numeric: tabular-nums; }
.ls-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ls-btn {
  appearance: none; border: 1.5px solid var(--ls-ink); background: transparent; color: var(--ls-ink);
  font: 600 .78rem/1 var(--ls-mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 999px; cursor: pointer; min-height: 32px;
}
.ls-btn:hover { background: var(--ls-ink); color: var(--ls-paper); }
.ls-btn:focus-visible, .ls-deck :focus-visible { outline: 3px solid var(--ls-focus); outline-offset: 2px; }
.ls-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--ls-ink); }
.ls-deck.is-auto .ls-play { background: var(--ls-pink); border-color: var(--ls-pink); color: #15182a; }

/* ---------- track ---------- */
.ls-track {
  position: relative; z-index: 1;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ls-track::-webkit-scrollbar { display: none; }
.ls-track:focus-visible { outline: 3px solid var(--ls-focus); outline-offset: -3px; }
.ls-slide {
  flex: 0 0 100%; min-width: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
  min-height: min(560px, 82vh);
  display: flex; container-type: inline-size;
}
.ls-slide > .el-div { display: flex; width: 100%; min-width: 0; margin: 0; }

/* ---------- strip Obsidian's callout chrome ---------- */
.ls-slide .callout {
  --callout-color: none;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; min-width: 0;
  margin: 0; padding: 6px 22px 20px;
  border: 0; border-radius: 0; box-shadow: none;
  background: transparent; mix-blend-mode: normal; color: var(--ls-ink);
}
.ls-slide .callout-icon, .ls-slide .callout-fold { display: none; }
.ls-slide .callout-title { padding: 0; gap: 0; color: var(--ls-ink); background: none; }

/* Sentence headlines: mixed case, readable leading. Caps only for short cover/stat titles. */
.ls-slide .callout-title-inner {
  font-family: var(--ls-display); font-weight: 800;
  font-size: clamp(1.55rem, 7cqi, 2.05rem);
  line-height: 1.08; letter-spacing: .01em;
  text-wrap: balance; color: var(--ls-ink);
}
.ls-slide .callout-content {
  padding: 0; background: none; color: var(--ls-ink);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 1.06rem; line-height: 1.5;
}
.ls-slide .callout-content > * { margin: 0; }
.ls-slide .callout-content p { max-width: 38ch; }
.ls-slide .callout-content a { color: var(--ls-link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ls-slide .callout-content strong { background: linear-gradient(transparent 60%, var(--ls-yellow-soft) 60%); }

/* ---------- tiered support lines ---------- */
.ls-slide .ls-line { font-size: .95rem; line-height: 1.45; }
.ls-slide .ls-tag {
  display: inline-block; margin-right: .5em; padding: 2px 7px 1px; border-radius: 4px;
  font: 600 .7rem/1.4 var(--ls-mono); letter-spacing: .05em; text-transform: uppercase; vertical-align: .08em;
  background: var(--ls-ink); color: var(--ls-paper);
}
.ls-slide .ls-term { padding: 10px 12px; border-radius: 10px; background: var(--ls-card); border: 1.5px solid var(--ls-line); }
.ls-slide .ls-term .ls-tag { background: var(--ls-blue-solid); color: #fff; }
.ls-slide .ls-why .ls-tag, .ls-slide .ls-plain .ls-tag { background: var(--ls-yellow); color: #15182a; }
.ls-slide .ls-status { padding-left: 10px; border-left: 4px solid var(--ls-blue-solid); }
.ls-slide .ls-status.is-contested { border-left-color: var(--ls-pink); }
.ls-slide .ls-status.is-contested .ls-tag { background: var(--ls-pink); color: #15182a; }
.ls-slide .ls-our { font-style: italic; }
.ls-slide .ls-our .ls-tag { font-style: normal; background: transparent; color: var(--ls-ink); border: 1.5px solid var(--ls-ink); }
.ls-slide .ls-context { color: var(--ls-muted); }
.ls-slide .ls-context .ls-tag { background: var(--ls-muted); }

.ls-slide .ls-foot { margin-top: auto; padding-top: 10px; border-top: 1.5px solid var(--ls-line); display: grid; gap: 4px; }
.ls-slide .ls-foot p { margin: 0; font-size: .9rem; line-height: 1.4; max-width: none; }
.ls-slide .ls-foot .ls-tag { background: transparent; color: var(--ls-muted); border: 1px solid var(--ls-line); }

/* ---------- Go deeper fold ---------- */
.ls-deeper { border: 1.5px dashed var(--ls-line-strong); border-radius: 10px; padding: 0 12px; }
.ls-deeper > summary {
  cursor: pointer; list-style: none; padding: 9px 0;
  font: 600 .8rem/1.2 var(--ls-mono); letter-spacing: .05em; text-transform: uppercase;
}
.ls-deeper > summary::-webkit-details-marker { display: none; }
.ls-deeper > summary::before { content: "+ "; content: "+ " / ""; color: var(--ls-pink-text); }
.ls-deeper[open] > summary::before { content: "\2212  "; content: "\2212  " / ""; }
.ls-deeper > p:last-child { margin-bottom: 10px; }
.ls-deeper > p { font-size: .95rem; max-width: 40ch; }

/* ---------- figure ---------- */
.ls-figure {
  margin: 0 -22px 2px; aspect-ratio: 4 / 3.1; max-width: none;
  background: var(--ls-figure); overflow: hidden; border-bottom: 1.5px solid var(--ls-line);
}
.ls-figure img, .ls-figure .internal-embed { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.ls-k-stat .ls-figure img, .ls-k-diagram .ls-figure img, .ls-k-guess .ls-figure img { object-fit: contain; }
.ls-slide:not(.is-answered) .ls-k-guess .ls-figure { display: none; }

/* ---------- overprint (cover + stat only); text-shadow, so nothing is read twice ---------- */
.ls-overprint { color: var(--ls-pink) !important; text-shadow: .045em .035em 0 var(--ls-blue); }
@media (forced-colors: active), (prefers-contrast: more) { .ls-overprint { text-shadow: none; color: var(--ls-ink) !important; } }

/* ---------- layouts ---------- */
.ls-k-cover .callout-title-inner, .ls-k-stat .callout-title-inner { text-transform: uppercase; line-height: .94; }
.ls-k-cover .callout-title-inner { font-size: clamp(2.5rem, 11cqi, 4.2rem); }
.ls-k-cover .callout-content ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ls-k-cover .callout-content li { padding-left: 1.3em; position: relative; }
.ls-k-cover .callout-content li::before { content: "\2192"; content: "\2192" / ""; position: absolute; left: 0; color: var(--ls-pink-text); font-weight: 700; }
.ls-covermeta { font: 600 .82rem/1.4 var(--ls-mono) !important; letter-spacing: .04em; text-transform: uppercase; color: var(--ls-muted); }
.ls-start { align-self: flex-start; font-size: .95rem; padding: 12px 20px; background: var(--ls-ink); color: var(--ls-paper); }
.ls-start:hover { background: var(--ls-blue-solid); border-color: var(--ls-blue-solid); color: #fff; }
.ls-resume { align-self: flex-start; border-style: dashed; }

.ls-k-stat .callout-title-inner { font-size: clamp(4.2rem, 24cqi, 8rem); line-height: .82; }

.ls-k-quote { justify-content: center; }
.ls-k-quote .callout-content > p:first-child {
  font-family: var(--ls-display); font-weight: 700; font-size: clamp(1.6rem, 7cqi, 2.15rem); line-height: 1.15; letter-spacing: .01em;
}
.ls-k-quote .callout-content > p:first-child::before {
  content: "\201C"; content: "\201C" / ""; display: block; font-size: 2.6em; line-height: .6; color: var(--ls-pink-text); margin-bottom: .1em;
}
.ls-k-quote .ls-attrib { padding: 0; }
.ls-k-quote .callout-title-inner { font: 600 .82rem/1.45 var(--ls-mono); letter-spacing: .03em; }
.ls-k-quote .ls-attrib .callout-title-inner::before { content: "\2014  "; content: "\2014  " / ""; }

.ls-k-versus .callout-content > p:not(.ls-line):not(.ls-receipt):not(.ls-source) {
  padding: 12px 14px; border-radius: 12px; border: 2px solid var(--ls-ink); background: var(--ls-card);
}
.ls-k-versus .callout-content > p:not(.ls-line) strong { background: none; display: block; font-family: var(--ls-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ls-pink-text); }

.ls-slide .callout.ls-k-recall { background: var(--ls-yellow); }
.ls-k-recall, .ls-k-recall .callout-title-inner, .ls-k-recall .callout-content { color: #15182a; }
.ls-k-recall .callout-content ol, .ls-k-comeback .callout-content ol { padding-left: 0; list-style: none; counter-reset: t; display: grid; gap: 12px; }
.ls-k-recall .callout-content li, .ls-k-comeback .callout-content li { counter-increment: t; position: relative; padding-left: 2.4rem; min-height: 2rem; font-size: 1.08rem; line-height: 1.5; font-weight: 600; }
.ls-k-recall .callout-content li::before, .ls-k-comeback .callout-content li::before { content: counter(t); position: absolute; left: 0; top: .05em; font-family: var(--ls-display); font-weight: 800; font-size: 2.1rem; line-height: .9; }
.ls-k-recall .callout-content strong { background: none; }
.ls-k-recall .ls-btn { border-color: #15182a; color: #15182a; align-self: flex-start; }
.ls-k-recall .ls-btn:hover { background: #15182a; color: #ffe800; }
.ls-echo { font-size: .95rem; padding: 8px 12px; border-radius: 8px; background: rgba(21,24,42,.08); }
.ls-echo.is-right::before { content: "\2713  "; content: "\2713  " / ""; font-weight: 700; }

mark.ls-blur, .ls-slide mark { border-radius: 4px; padding: 0 3px; }
.ls-slide mark { background: rgba(21,24,42,.12); color: inherit; }
.ls-slide mark.ls-blur { cursor: pointer; color: transparent; background: repeating-linear-gradient(-45deg, var(--ls-veil) 0 6px, var(--ls-veil-2) 6px 12px); user-select: none; }
.ls-slide mark.ls-blur:hover { outline: 2px solid currentColor; }
.ls-k-recall mark.ls-blur { --ls-veil: rgba(21,24,42,.55); --ls-veil-2: rgba(21,24,42,.4); }

.ls-k-exit .callout-content ol { padding-left: 1.2em; display: grid; gap: 6px; }
.ls-k-exit .callout-content ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.ls-k-exit .callout-content ul li { margin: 0; padding: 11px 14px; border: 2px solid var(--ls-ink); border-radius: 12px; font-size: .95rem; line-height: 1.3; }
.ls-k-exit .callout-content ul li a { font-family: var(--ls-display); font-weight: 700; font-size: 1.2rem; color: var(--ls-ink); text-decoration: none; }
.ls-summary { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--ls-ink); color: var(--ls-paper); }
.ls-summary p { margin: 0; max-width: none !important; }
.ls-done { font: 700 .82rem/1.4 var(--ls-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ls-pink); }
.ls-stats { font-weight: 600; }
.ls-comeback-note { font-size: .9rem; opacity: .85; }

.ls-k-comeback .callout-content strong { background: none; }

/* ---------- questions ---------- */
.ls-qgroup { display: grid; gap: 10px; }
.ls-qgroup p, .ls-summary p, .ls-deeper p { margin: 0; }
.ls-qcount { font: 600 .78rem/1.4 var(--ls-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ls-muted); }
.ls-question { font-weight: 700; font-size: 1.08rem; }
.ls-choices { display: grid; gap: 8px; }
.ls-choice {
  appearance: none; text-align: left; width: 100%;
  padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--ls-ink); background: var(--ls-card); color: var(--ls-ink);
  font: 600 1rem/1.3 var(--ls-body); cursor: pointer; min-height: 44px;
}
.ls-choice:hover:not([aria-disabled="true"]) { background: var(--ls-ink); color: var(--ls-paper); }
.ls-choice[aria-disabled="true"] { cursor: default; color: var(--ls-muted); border-color: var(--ls-line-strong); }
.ls-choice.is-chosen { color: var(--ls-ink); border-color: var(--ls-ink); border-width: 3px; }
.ls-choice.is-right { background: var(--ls-blue-solid); border-color: var(--ls-blue-solid); color: var(--ls-on-blue); }
.ls-choice.is-right::after { content: "  \2713"; content: "  \2713" / ""; }
.ls-choice.is-wrong { border-color: var(--ls-pink); color: var(--ls-pink-text); text-decoration: line-through; }
.ls-verdict { font-family: var(--ls-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
.ls-verdict.is-wrong { color: var(--ls-pink-text); }
.ls-optfb { font-size: .95rem; padding-left: 10px; border-left: 4px solid var(--ls-pink); }
.ls-score { font-family: var(--ls-display); font-weight: 800; font-size: 1.35rem; }
.ls-nextq { align-self: flex-start; }
.ls-continue { scroll-margin-bottom: 96px; scroll-margin-top: 120px; align-self: flex-start; font-size: .95rem; padding: 12px 20px; background: var(--ls-ink); color: var(--ls-paper); }
.ls-continue:hover { background: var(--ls-blue-solid); border-color: var(--ls-blue-solid); color: var(--ls-on-blue); }
.ls-k-recall .ls-continue { background: #15182a; color: #ffe800; }

/* ---------- bottom nav ---------- */
.ls-nav { position: sticky; bottom: 0; z-index: 3; background: var(--ls-paper); display: flex; align-items: center; gap: 10px; padding: 10px 16px 14px; border-top: 1.5px solid var(--ls-line); }
.ls-nav .ls-btn { width: 44px; height: 44px; padding: 0; font-size: 1.15rem; display: grid; place-items: center; }
.ls-hint { flex: 1; text-align: center; font-family: var(--ls-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ls-muted); }

/* ---------- one-page mode ---------- */
.ls-deck.is-flat .ls-track { display: block; overflow: visible; scroll-snap-type: none; }
.ls-deck.is-flat .ls-slide { min-height: 0; border-bottom: 1.5px solid var(--ls-line); padding-block: 10px; }
.ls-deck.is-flat .ls-bar, .ls-deck.is-flat .ls-nav, .ls-deck.is-flat .ls-continue, .ls-deck.is-flat .ls-play, .ls-deck.is-flat .ls-left, .ls-deck.is-flat .ls-count { display: none; }
.ls-deck.is-flat .ls-slide:not(.is-answered) .ls-k-guess .ls-figure { display: block; }

/* chapter headings that the deck replaces, and the hidden return-visit card */
.markdown-preview-view.ls-on .ls-chapter-src, .markdown-preview-view .ls-hidden-src { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ls-track { scroll-behavior: auto; }
  .ls-deck.is-auto .ls-seg.is-cur.is-timing > i { animation: none; width: 100%; }
}
@media print {
  .ls-track { display: block; overflow: visible; }
  .ls-slide { min-height: 0; break-inside: avoid; }
  .ls-head, .ls-nav { display: none; }
}

/* =====================================================================
   NO-JS FALLBACK — vertical full-height cards
   ===================================================================== */
.markdown-preview-view:not(.ls-on):has(.callout[data-callout="slide"]) { scroll-snap-type: y proximity; }
.markdown-preview-view:not(.ls-on) .el-div:has(> .callout[data-callout="slide"]) { scroll-snap-align: start; margin-bottom: 14px; }
.markdown-preview-view:not(.ls-on) .callout[data-callout="slide"] { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; border-radius: 16px; padding: 24px; }
.markdown-preview-view:not(.ls-on) .callout[data-callout="slide"] .callout-icon { display: none; }
.markdown-preview-view:not(.ls-on) .callout[data-callout="slide"] .callout-title-inner { font-size: 1.6rem; line-height: 1.1; }


/* =====================================================================
   v2.1 (2026-10-24)
   1. The deck is built from copies and mounted in the page header, so
      Publish's scroll redraws can't tear it down. Hide the originals.
   2. Fit the deck inside the window: each card scrolls inside itself
      instead of making the page scroll, and the deck sits a little
      inside the screen edges.
   ===================================================================== */
.markdown-preview-view.ls-on .markdown-preview-sizer > .el-div:has(> .callout[data-callout="slide"]),
.markdown-preview-view.ls-on .markdown-preview-sizer > .el-h1,
.markdown-preview-view.ls-on .markdown-preview-sizer > .el-h2 { display: none; }
.ls-host { max-width: 100%; }
.ls-deck { --ls-chrome: 230px; width: 100%; max-width: 34rem; margin: .75rem auto 1.5rem; }
.ls-slide {
  min-height: 0;
  height: clamp(340px, calc(100dvh - var(--ls-chrome)), 660px);
  overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin;
}
.ls-slide { align-items: flex-start; }
.ls-slide > .el-div { flex-shrink: 0; min-height: 100%; }
.ls-slide .callout > *, .ls-slide .callout-content > * { flex-shrink: 0; }
.ls-figure { aspect-ratio: 16 / 10; height: auto; min-height: 140px; max-height: 260px; }
.ls-deck.is-flat .ls-slide { height: auto; overflow: visible; }
@media (max-width: 600px) {
  .ls-deck { --ls-chrome: 225px; border-radius: 14px; margin-block: .5rem 1rem; } /* 225: includes Publish's 50px mobile site bar */
}
@media print { .ls-slide { height: auto; overflow: visible; } }

/* v2.1.1 (2026-10-24): narrow decks (small phones, zoomed or large-text
   browsers) switch the header buttons to icons and tighten the header, so it
   never wraps. Responds to the deck's own width, not the screen's. */
.ls-deck { container-type: inline-size; container-name: lsdeck; }
.ls-btn .ls-ico { display: none; width: 1.05em; height: 1.05em; }
.ls-tools .ls-btn { display: inline-flex; align-items: center; gap: 6px; }
@container lsdeck (max-width: 420px) {
  .ls-head { padding: 10px 12px 6px; gap: 6px; }
  .ls-tools { flex-wrap: nowrap; gap: 6px; }
  .ls-tools .ls-btn { width: 38px; height: 38px; min-height: 0; padding: 0; justify-content: center; }
  .ls-tools .ls-btn .ls-ico { display: block; }
  .ls-tools .ls-btn .ls-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ls-where { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ls-figure { max-height: 220px; }
}

/* v2.1.2: "Guess" / "Predict" flag above guess and predict questions */
.ls-slide .ls-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-family: var(--ls-mono); font-size: .78rem; letter-spacing: .03em; color: var(--ls-muted); }
.ls-slide .ls-kicker b { background: var(--ls-yellow); color: #15182a; padding: 3px 9px; border-radius: 4px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* v2.1.4 (2026-10-24): answer buttons wrap instead of spilling sideways.
   Publish's own button styles (single line, centered, fixed height) were
   overriding these, so the selectors carry extra weight. */
.ls-deck .ls-choices { grid-template-columns: minmax(0, 1fr); min-width: 0; overflow: visible; }
.ls-deck .ls-choices > .ls-choice {
  display: block; width: 100%; max-width: 100%; min-width: 0; height: auto;
  white-space: normal; overflow-wrap: anywhere; text-align: left; justify-content: flex-start;
}
/* Tighter cards on narrow decks (small phones, zoom, large text) so less scrolling. */
@container lsdeck (max-width: 420px) {
  .ls-slide .callout { padding: 4px 16px 14px; gap: 9px; }
  .ls-slide .callout-content { font-size: .97rem; line-height: 1.42; gap: 8px; }
  .ls-slide .callout-title-inner { font-size: clamp(1.3rem, 6.4cqi, 1.65rem); line-height: 1.06; }
  .ls-k-cover .callout-title-inner { font-size: clamp(1.9rem, 9.5cqi, 2.8rem); }
  .ls-slide .ls-line { font-size: .9rem; line-height: 1.38; }
  .ls-slide .ls-term { padding: 8px 10px; }
  .ls-deck .ls-choices { gap: 6px; }
  .ls-deck .ls-choices > .ls-choice { padding: 9px 12px; font-size: .94rem; min-height: 40px; }
  .ls-question { font-size: 1rem; }
  .ls-figure { max-height: 190px; margin-bottom: 0; }
  .ls-verdict { font-size: 1.25rem; }
}
