/**
 * css/teaching-slides.css — High-Contrast 16:9 Pedagogical Slide Viewer & Catalog
 * Part of Bonjou French Learning Platform (M576)
 */

/* ── Hero & Filter Bar ──────────────────────────────────────────────────────── */
.teaching-slides-page {
  background-color: #0b0f19;
  color: #f8fafc;
  min-height: 100vh;
}

.ts-hero {
  padding: 2.2rem 1.5rem 1.8rem;
}

.ts-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.ts-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.ts-hero-copy {
  flex: 1;
  min-width: min(300px, 100%); /* M639: never wider than a 320px phone */
}

.ts-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}



.ts-hero-title {
  font-family: var(--font-display, 'Fredoka', sans-serif);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.ts-hero-sub {
  font-size: 1.04rem;
  color: #e2e8f0;
  max-width: 760px;
  line-height: 1.55;
  margin: 0;
}

/* Companion Mascots Showcase in Hero */
.ts-hero-mascots {
  display: flex;
  flex-wrap: wrap; /* M639: the two mascot cards stack on phones */
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  max-width: 100%;
}

.ts-hero-mascot-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #162032;
  border: 1.5px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.ts-hero-mascot-avatar {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ts-hero-mascot-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ts-hero-mascot-info strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.ts-hero-mascot-info span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #fde68a;
}

/* ── Toolbar: Filter Strip + Search ─────────────────────────────────────────── */
.ts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ts-level-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.ts-level-strip::-webkit-scrollbar { display: none; }

.ts-level-pill { cursor: pointer; }
.ts-level-pill small {
  opacity: 0.9;
  font-size: 0.76rem;
  color: #bfdbfe;
}

.ts-search-wrap {
  position: relative;
  min-width: 270px;
  flex: 1;
  max-width: 380px;
}

.ts-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
}

.ts-search-input {
  width: 100%;
  padding: 0.5rem 0.95rem 0.5rem 2.35rem;
  background: #162032;
  border: 1.5px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ts-search-input::placeholder {
  color: #94a3b8;
}
.ts-search-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}

/* ── Container & Grid ───────────────────────────────────────────────────────── */
.ts-container {
  max-width: 1160px;
  margin: 1.8rem auto 3.5rem;
  padding: 0 1.5rem;
}

.ts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.4rem;
}

.ts-loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: #e2e8f0;
}

/* ── Presentation Card (High Contrast) ──────────────────────────────────────── */
.ts-card {
  background: #151e30;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.ts-card:hover {
  transform: translateY(-3px);
  border-color: #60a5fa;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.ts-card-banner {
  height: 7px;
  width: 100%;
}

.ts-card-body {
  padding: 1.3rem 1.3rem 1.05rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ts-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}


.ts-card-num {
  font-size: 0.82rem;
  color: #93c5fd;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ts-card-title {
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.32;
  margin: 0 0 0.45rem;
  color: #ffffff;
}

.ts-card-sub {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.48;
  margin: 0 0 0.95rem;
  flex: 1;
}

.ts-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}



.ts-tag-mascot svg {
  vertical-align: middle;
}

.ts-card-footer {
  padding: 0.9rem 1.3rem 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  background: #0f172a;
}

.ts-btn-launch {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #2563eb;
  border: 1.5px solid #60a5fa;
  color: #ffffff;
  padding: 0.58rem 0.95rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ts-btn-launch:hover {
  background: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.ts-card-actions {
  display: flex;
  gap: 0.4rem;
}

.ts-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.72rem;
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ts-btn-icon:hover {
  background: #334155;
  color: #ffffff;
  border-color: #93c5fd;
}

/* ── Presentation Viewer Modal ─────────────────────────────────────────────── */
.ts-modal[hidden],
.ts-modal-scrim[hidden] {
  display: none !important;
}

.ts-modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  animation: ts-fade-in 0.2s ease;
}

.ts-modal {
  position: fixed;
  inset: 1.25rem;
  background: #0b0f19;
  border: 1.5px solid rgba(148, 163, 184, 0.32);
  border-radius: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85);
  animation: ts-modal-pop 0.22s ease-out;
}

@keyframes ts-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ts-modal-pop {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ts-modal.is-fullscreen {
  inset: 0;
  border-radius: 0;
  border: none;
}

/* Modal Header */
.ts-modal-header {
  padding: 0.85rem 1.4rem;
  background: #151e30;
  border-bottom: 1.5px solid rgba(148, 163, 184, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ts-header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}


.ts-header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ts-header-pres-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-header-slide-phase {
  font-size: 0.8rem;
  color: #7dd3fc;
  font-weight: 700;
}

.ts-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ts-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.82rem;
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ts-btn-action:hover {
  background: #334155;
  color: #ffffff;
  border-color: #93c5fd;
}

.ts-btn-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 0.35rem;
}
.ts-btn-close:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #f87171;
}

/* ── Modal Body: 16:9 Viewport ─────────────────────────────────────────────── */
.ts-modal-stage-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.1rem 3.8rem;
  background: #060911;
}

.ts-stage-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
  user-select: none;
}
.ts-stage-nav-arrow:hover:not(:disabled) {
  background: #2563eb;
  border-color: #93c5fd;
  transform: translateY(-50%) scale(1.08);
}
.ts-stage-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.ts-stage-nav-arrow.prev { left: 0.85rem; }
.ts-stage-nav-arrow.next { right: 0.85rem; }

/* ── 16:9 Slide Canvas (High Contrast) ─────────────────────────────────────── */
.ts-slide-stage {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 180px);
  background: #0f172a;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top: 6px solid #3b82f6;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 1.65rem 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow-y: auto;
  outline: none;
  scrollbar-width: thin;
}

/* Slide Header inside Stage */
.ts-slide-inner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 1.5px solid rgba(148, 163, 184, 0.24);
  padding-bottom: 0.75rem;
}

.ts-slide-title-group {
  flex: 1;
}

.ts-slide-tag-pill { margin-bottom: 0.4rem; }

.ts-slide-main-title {
  font-family: var(--font-display, 'Fredoka', sans-serif);
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.28rem;
  color: #ffffff;
}

.ts-slide-main-sub {
  font-size: 0.96rem;
  color: #cbd5e1;
  font-weight: 500;
  margin: 0;
}

.ts-slide-top-mascot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #1e293b;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  flex-shrink: 0;
}
.ts-top-mascot-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fde68a;
}

/* Slide Content Formats */
.ts-slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

/* Bullet list */
.ts-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ts-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.45;
  color: #f8fafc;
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-left: 5px solid #38bdf8;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
}
.ts-bullet-icon {
  color: #38bdf8;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Dialogue for Noticing */
.ts-dialogue-box {
  background: #162032;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ts-dialogue-turn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.04rem;
  line-height: 1.45;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
}
.ts-dialogue-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-dialogue-speaker {
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
}
.speaker-renard { background: rgba(232, 116, 44, 0.25); color: #fdba74; border: 1.5px solid #f97316; }
.speaker-hermeline { background: rgba(251, 113, 133, 0.25); color: #fda4af; border: 1.5px solid #fb7185; }
.speaker-other { background: rgba(56, 189, 248, 0.25); color: #7dd3fc; border: 1.5px solid #38bdf8; }

.ts-dialogue-text {
  color: #ffffff;
  font-weight: 500;
}
.ts-dialogue-text b {
  color: #fde047;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.16);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reflective Question Box (Slide 2) */
.ts-question-box {
  background: rgba(245, 158, 11, 0.16);
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  color: #fef08a;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Grammar Table */
.ts-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.32);
}
.ts-grammar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.ts-grammar-table th {
  background: #1e3a8a;
  color: #ffffff;
  text-align: left;
  padding: 0.65rem 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #60a5fa;
}
.ts-grammar-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  background: #162032;
}
.ts-grammar-table tr:nth-child(even) td {
  background: #111827;
}
.ts-grammar-table td:first-child {
  font-weight: 800;
  color: #93c5fd;
}
.ts-grammar-table td b {
  color: #4ade80;
  font-weight: 800;
  background: rgba(74, 222, 128, 0.15);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

/* Formula Banner */
.ts-formula-banner {
  background: #172554;
  border: 2px solid #60a5fa;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-family: 'Fira Code', monospace;
  font-size: 1.06rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4);
}

/* Examples 2-Column Grid (Slide 4) */
.ts-examples-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ts-example-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.ts-example-col {
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.ts-example-col.col-left {
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.32);
}
.ts-example-col.col-right {
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid #10b981;
}
.ts-example-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.ts-example-col.col-right .ts-example-label {
  color: #6ee7b7;
}
.ts-example-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
}
.ts-example-val b {
  color: #fde047;
  font-weight: 800;
  text-decoration: underline;
}

/* Contrast Cards (Wrong vs Right / Standard vs Noble) */
.ts-contrast-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ts-contrast-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.ts-contrast-wrong {
  background: rgba(220, 38, 38, 0.18);
  border: 1.5px solid #ef4444;
  border-radius: 10px;
  padding: 0.68rem 0.95rem;
  color: #fecaca;
  font-size: 0.96rem;
  font-weight: 600;
}
.ts-contrast-neutral {
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 0.68rem 0.95rem;
  color: #e2e8f0;
  font-size: 0.96rem;
  font-weight: 600;
}
.ts-contrast-right {
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid #10b981;
  border-radius: 10px;
  padding: 0.68rem 0.95rem;
  color: #d1fae5;
  font-size: 0.96rem;
  font-weight: 700;
}
.ts-contrast-right b {
  color: #fde047;
  text-decoration: underline;
}
.ts-contrast-col-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  opacity: 0.9;
}

/* Guided Practice & Interactive Reveals */
.ts-challenges-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ts-challenge-row {
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ts-challenge-prompt {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  flex: 1;
  min-width: 240px;
}
.ts-challenge-answer-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ts-btn-reveal {
  padding: 0.4rem 0.85rem;
  background: #2563eb;
  border: 1.5px solid #60a5fa;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.ts-btn-reveal:hover {
  background: #1d4ed8;
  border-color: #93c5fd;
}
.ts-challenge-answer {
  background: rgba(16, 185, 129, 0.22);
  border: 1.5px solid #10b981;
  color: #6ee7b7;
  padding: 0.38rem 0.8rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  display: none;
}
.ts-challenge-answer.is-visible {
  display: inline-block;
  animation: ts-fade-in 0.2s ease;
}

/* Takeaway Banner (Slide 6) */
.ts-takeaway-banner {
  background: #172554;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  color: #fde68a;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
}

/* Mascot Speech Bubble inside Slide */
.ts-slide-mascot-dock {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(245, 158, 11, 0.14);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 0.65rem 1.05rem;
  margin-top: 0.45rem;
}
.ts-dock-mascot-svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-dock-quote {
  font-size: 0.94rem;
  font-weight: 500;
  color: #fef3c7;
  line-height: 1.45;
  margin: 0;
}
.ts-dock-quote strong {
  color: #fbbf24;
  font-weight: 800;
}

/* ── Modal Footer Controls ─────────────────────────────────────────────────── */
.ts-modal-footer {
  padding: 0.75rem 1.4rem;
  background: #151e30;
  border-top: 1.5px solid rgba(148, 163, 184, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ts-footer-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ts-slide-counter {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
}

.ts-shortcuts-hint {
  font-size: 0.8rem;
  color: #cbd5e1;
}
.ts-shortcuts-hint kbd {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.ts-thumbnails-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ts-dot-pill { width: 30px; height: 30px; cursor: pointer; }

.ts-footer-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ts-btn-nav {
  padding: 0.48rem 1rem;
  background: #1e293b;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ts-btn-nav:hover:not(:disabled) {
  background: #334155;
  color: #ffffff;
}
.ts-btn-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ts-btn-primary {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}
.ts-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

/* ── Responsive Rules ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ts-hero { padding: 1.5rem 1rem 1.2rem; }
  .ts-hero-title { font-size: 1.75rem; }
  .ts-container { padding: 0 1rem; margin: 1.2rem auto 2rem; }
  .ts-grid { grid-template-columns: 1fr; }
  .ts-modal { inset: 0; border-radius: 0; border: none; }
  .hide-mobile { display: none !important; }
  .ts-modal-stage-wrapper { padding: 0.75rem; }
  .ts-stage-nav-arrow { display: none; }
  .ts-slide-stage {
    aspect-ratio: auto;
    min-height: 480px;
    padding: 1.2rem;
  }
  .ts-example-pair,
  .ts-contrast-card {
    grid-template-columns: 1fr;
  }
}

/* ── Print Media (Landscape A4 / 16:9) ─────────────────────────────────────── */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .ts-hero, .ts-toolbar, .ts-grid, .ts-modal-header, .ts-modal-footer, .ts-stage-nav-arrow {
    display: none !important;
  }
  .ts-modal-scrim { display: none !important; }
  .ts-modal {
    position: static !important;
    inset: auto !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
  }
  .ts-slide-stage {
    max-width: 100% !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    page-break-after: always;
  }
  .ts-slide-main-title { color: #1e3a8a !important; }
  .ts-challenge-answer { display: inline-block !important; color: #047857 !important; }
}

/* M639: on phones the two mascot cards share the row and wrap. */
@media (max-width: 639px) {
  .ts-hero-mascot-card { flex: 1 1 150px; }
}
