/*
 * TFM Chapter — "Die Grimoire-Seite"
 * /wp-content/themes/blocksy-child/css/tfm-academy-chapter.css
 *
 * Geladen auf: book-chapter Einzelseite (via php/tfm-academy-chapter.php)
 *
 * ALLE Farben kommen aus tfm-academy-core.css, das per Enqueue-
 * Abhängigkeit immer vorher geladen wird. Diese Datei definiert bewusst
 * KEINE eigenen Farbwerte und benutzt auch keine var()-Fallbacks — ein
 * Fallback würde bei einer Farbänderung im Core still den alten Wert
 * weiterverwenden, genau das soll ausgeschlossen sein.
 *
 * Voraussetzung in Elementor: äußerer Container mit Klasse .tfm-ch-page.
 * Ecken-Ranken, Textur, Warmglow und Sterne injiziert
 * tfm-academy-chapter.js automatisch dort hinein.
 *
 * ── STRUKTUR ──────────────────────────────────────────────────
 *  1. Kurznamen + Seiten-Grundkörper
 *  2. Kopfzeile (Crumb, Kapitel-Ziffer, Titel mit illuminierter Initiale)
 *  3. Kapiteltext
 *  4. Dekoration (Ecken-Ranken, Textur, Warmglow, Sterne)
 *  5. Kapitel-Navigation (Vorheriges/Nächstes Kapitel)
 *  6. Eröffnungs-Moment (Tinten-Bloom beim Laden)
 *  7. Responsive + Bewegungsreduktion
 */

/* ============================================================
   1. KURZNAMEN + SEITEN-GRUNDKÖRPER
   ============================================================ */

.tfm-ch-page {
  --ch-accent:      var(--academy-accent);
  --ch-accent-soft: var(--academy-accent-soft);
  --ch-accent-deep: var(--academy-accent-deep);
  --ch-accent-glow: var(--academy-accent-glow);
  --ch-accent-dim:  var(--academy-accent-dim);
  --ch-gold:        var(--academy-gold);
  --ch-ink:         var(--academy-ink);
  --ch-body:        var(--academy-body-text);
  --ch-muted:       var(--academy-muted);

  --ch-text-scale: 1;

  position: relative !important;
  max-width: 760px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 3rem 3.2rem;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--academy-surface-a), var(--academy-surface-b));
  border: 1px solid var(--ch-accent-glow);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .55),
    inset 0 0 60px rgba(var(--academy-accent-rgb), .05);
  transition: background 1.2s ease, box-shadow 1.2s ease;
}

.tfm-ch-page > .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
}

body.tfm-time-night .tfm-ch-page {
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .72),
    inset 0 0 60px rgba(60, 40, 160, .08);
}

/* ============================================================
   2. KOPFZEILE
   ============================================================ */

.tfm-ch-crumb,
.tfm-ch-crumb * {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 1rem !important;
  color: var(--ch-muted) !important;
  text-decoration: none !important;
  fill: var(--ch-muted) !important;
}
.tfm-ch-crumb * {
  padding: 0 !important;
}
.tfm-ch-crumb {
  position: relative;
  z-index: 2;
  display: inline-flex !important;
  gap: .4rem;
  align-items: center;
  margin: .3rem 0 1.4rem 2.4rem;
  transition: color .2s;
}
.tfm-ch-crumb:hover,
.tfm-ch-crumb:hover * {
  color: var(--ch-accent-soft) !important;
}

.tfm-ch-numeral {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ch-accent-soft);
  opacity: .75;
  white-space: nowrap;
}

.tfm-ch-title,
.tfm-ch-title * {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 500 !important;
  font-size: clamp(2rem, 4.6vw, 2.9rem) !important;
  color: var(--academy-parchment) !important;
  line-height: 1.18 !important;
  letter-spacing: .01em !important;
  margin: 0 0 .5rem !important;
}

/* The large initial sits on the first paragraph of the text now
   (tfm-academy-core.css, shared with the module page). */

/* ============================================================
   3. KAPITELTEXT
   ============================================================ */

.tfm-ch-body {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: calc(1.02rem * var(--ch-text-scale)) !important;
  line-height: 1.85 !important;
  color: var(--ch-body) !important;
}
.tfm-ch-body p {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: calc(1.02rem * var(--ch-text-scale)) !important;
  line-height: 1.85 !important;
  color: var(--ch-body) !important;
  margin: 0 0 1.3rem !important;
}
.tfm-ch-body h2,
.tfm-ch-body h3,
.tfm-ch-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: calc(1.2rem * var(--ch-text-scale));
  color: var(--ch-accent-soft);
  margin: 2rem 0 .7rem;
}
.tfm-ch-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8rem auto;
  border-radius: 6px;
  border: 1px solid var(--ch-accent-dim);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.tfm-ch-body a {
  color: var(--ch-accent-soft);
  text-decoration-color: rgba(var(--academy-accent-soft-rgb), .4);
}
.tfm-ch-body a:hover {
  color: var(--ch-ink);
}

.tfm-ch-body .is-style-tfm-instruct,
.tfm-ch-body .tfm-instruct {
  position: relative;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0 !important;
  border-radius: 4px;
  background: rgba(var(--academy-accent-rgb), .06);
  border-left: 2px solid var(--ch-accent);
}
.tfm-ch-body .is-style-tfm-instruct::before,
.tfm-ch-body .tfm-instruct::before {
  content: 'Exercise';
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ch-accent-soft);
  opacity: .8;
  margin-bottom: .5rem;
}

.tfm-ch-body .is-style-tfm-margin,
.tfm-ch-body .tfm-margin {
  margin: 0 0 1rem 0 !important;
  padding-left: .9rem;
  border-left: 1px solid rgba(var(--academy-accent-soft-rgb), .25);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(var(--academy-accent-soft-rgb), .55);
}
.tfm-ch-body .is-style-tfm-margin::before,
.tfm-ch-body .tfm-margin::before {
  content: '— ';
  color: rgba(var(--academy-accent-soft-rgb), .4);
}

.tfm-ch-body .tfm-highlight {
  color: var(--ch-accent-soft);
  font-style: italic;
}

.tfm-ch-page ::selection {
  background: rgba(var(--academy-accent-rgb), .32);
  color: #f3fff5;
}
.tfm-ch-page ::-moz-selection {
  background: rgba(var(--academy-accent-rgb), .32);
  color: #f3fff5;
}

/* ============================================================
   4. DEKORATION — per JS injiziert, in Elementor nichts zu bauen
   ============================================================ */

.tfm-ch-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(88deg,
      rgba(255, 255, 255, .012) 0px, transparent 1px,
      transparent 2px, rgba(255, 255, 255, .012) 3px),
    repeating-linear-gradient(2deg,
      rgba(255, 255, 255, .01) 0px, transparent 1px,
      transparent 3px, rgba(0, 0, 0, .015) 4px),
    radial-gradient(ellipse at 20% 15%, rgba(255, 240, 200, .03), transparent 55%),
    radial-gradient(ellipse at 78% 82%, rgba(200, 180, 255, .028), transparent 55%);
}

.tfm-ch-warmglow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 65% at 8% 40%,
    rgba(255, 180, 90, .09), transparent 62%);
  opacity: .5;
  transition: opacity 1.4s ease;
}
body.tfm-time-sunrise .tfm-ch-warmglow { opacity: .7; }
body.tfm-time-sunset  .tfm-ch-warmglow { opacity: .85; }
body.tfm-time-night   .tfm-ch-warmglow { opacity: 1; }

.tfm-ch-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
body.tfm-time-night .tfm-ch-stars { opacity: 1; }
.tfm-ch-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffffff;
  animation: tfmChTwinkle ease-in-out infinite;
}
@keyframes tfmChTwinkle {
  0%, 100% { opacity: .1; }
  50%      { opacity: .75; }
}

.tfm-ch-corner {
  position: absolute;
  width: 58px;
  height: 58px;
  z-index: 1;
  opacity: .45;
  pointer-events: none;
  color: rgba(var(--academy-accent-soft-rgb), .55);
}
.tfm-ch-corner svg { width: 100%; height: 100%; }
.tfm-ch-corner--tl { top: 10px; left: 10px; }
.tfm-ch-corner--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.tfm-ch-corner--bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.tfm-ch-corner--br { bottom: 10px; right: 10px; transform: scale(-1, -1); }
.tfm-ch-corner circle {
  stroke: rgba(var(--academy-gold-rgb), .5);
}

/* ============================================================
   5. KAPITEL-NAVIGATION — Vorheriges/Nächstes Kapitel
   Bewusst OHNE umschließenden Rahmen (Border/Hintergrundfläche) — nur
   die einzelnen Buttons tragen noch einen Rand. Der Button-Text IST
   jetzt der echte Kapiteltitel (Dynamic Tag), keine separate große
   Überschrift und kein fester Aktions-Text mehr. Previous links,
   Next rechts, symmetrisch zueinander ausgerichtet.
   ============================================================ */

.tfm-ch-nav {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.tfm-ch-nav > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: wrap;
  gap: 1.4rem;
  width: 100% !important;
}

.tfm-ch-prev,
.tfm-ch-next {
  display: flex !important;
  flex-direction: column !important;
  gap: .5rem;
  max-width: 280px;
}
.tfm-ch-prev > .e-con-inner,
.tfm-ch-next > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: .5rem;
  width: auto !important;
}
/* Keine erzwungene Ausrichtung mehr — das steuerst du komplett selbst
   über die Container-Ausrichtung in Elementor. Vorher stand hier
   align-items mit !important, das jede eigene Einstellung überstimmt
   hat, egal was gewählt wurde. */
.tfm-ch-next {
  /* margin-left:auto bleibt: das schiebt die ganze Next-Box innerhalb
     der Reihe nach rechts (Zusammenspiel mit justify-content am
     .tfm-ch-nav), hat mit der INHALTS-Ausrichtung innerhalb der Box
     selbst nichts zu tun. */
  margin-left: auto;
}

.tfm-ch-prev__hint,
.tfm-ch-next__hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(var(--academy-muted-rgb), .65);
  /* display:flex statt nur Text: steckt Elementor den Text in ein
     verschachteltes Block-Element (z.B. <p>), erzwingt das einen
     Zeilenumbruch VOR dem ::before-Stern, unabhängig davon, dass der
     Stern selbst inline ist. Flex bindet beides in eine Zeile ein —
     derselbe Fix wie beim Modul-Pendant. */
  display: flex !important;
  align-items: baseline;
  gap: .3em;
  white-space: nowrap;
}
.tfm-ch-next__hint {
  justify-content: flex-end;
}
.tfm-ch-prev__hint::before,
.tfm-ch-next__hint::before {
  content: '\2726';
  color: var(--ch-accent-soft);
}

/* WICHTIG: Die Klasse .tfm-ch-prev__btn / .tfm-ch-next__btn sitzt auf
   Elementors äußerem Widget-Wrapper, NICHT auf dem tatsächlichen
   klickbaren Link (<a class="elementor-button">, drei Ebenen tiefer) —
   per Konsolen-Check am Modul-Pendant bestätigt. Deshalb hier ebenso
   die komplette Optik auf den echten Link gezogen, sonst ist die
   sichtbare Fläche größer als die tatsächliche Klickfläche. */
.tfm-ch-prev__btn,
.tfm-ch-next__btn {
  display: block;
  /* align-self:stretch NUR am Button — die Spalte selbst hat
     align-items:flex-start/flex-end (für den Hinweistext gedacht), das
     schrumpft normalerweise jedes Kind auf Inhaltsbreite, unabhängig
     von width:100% weiter innen. */
  align-self: stretch;
}
.tfm-ch-prev__btn .elementor-widget-container,
.tfm-ch-next__btn .elementor-widget-container,
.tfm-ch-prev__btn .elementor-button-wrapper,
.tfm-ch-next__btn .elementor-button-wrapper {
  width: 100%;
}
.tfm-ch-prev__btn .elementor-button,
.tfm-ch-prev__btn .elementor-button *,
.tfm-ch-next__btn .elementor-button,
.tfm-ch-next__btn .elementor-button * {
  background: transparent !important;
  border-color: var(--ch-accent-glow) !important;
  color: var(--ch-accent-soft) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 1rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: none !important;
  fill: var(--ch-accent-soft) !important;
}
.tfm-ch-prev__btn .elementor-button::before {
  content: '\2190  ';
  font-style: normal;
}
.tfm-ch-next__btn .elementor-button::after {
  content: '  \2192';
  font-style: normal;
}
.tfm-ch-prev__btn .elementor-button,
.tfm-ch-next__btn .elementor-button {
  /* flex + width:100% statt inline-flex: inline-flex schrumpft immer auf
     den Inhalt, egal wie viel Platz angeboten wird. */
  display: flex !important;
  width: 100%;
  justify-content: center !important;
  align-items: center !important;
  gap: .3rem !important;
  border: 1px solid var(--ch-accent-glow) !important;
  /* KEIN !important mehr bei padding — die zwei Klassen in diesem
     Selektor reichen bereits, um Elementors einfache Basis-Regel
     (.elementor-button, nur eine Klasse) zu schlagen. !important hätte
     hier zusätzlich JEDE eigene Padding-Einstellung von dir blockiert. */
  padding: .7rem 1.5rem;
  /* line-height ebenfalls ohne !important: Elementors Basis-Regel setzt
     1 (sehr eng), das machte den Button zusätzlich niedriger als nötig. */
  line-height: 1.4;
  border-radius: 6px !important;
  box-shadow: 0 0 16px -3px rgba(var(--academy-accent-rgb), .35) !important;
  transition: .3s;
}
.tfm-ch-prev__btn .elementor-button:hover,
.tfm-ch-next__btn .elementor-button:hover {
  background: rgba(var(--academy-accent-rgb), .16) !important;
  border-color: var(--ch-gold) !important;
  color: var(--ch-ink) !important;
  box-shadow:
    0 0 22px rgba(var(--academy-gold-rgb), .3),
    0 0 20px var(--ch-accent-glow) !important;
}
.tfm-ch-prev__btn .elementor-button:hover *,
.tfm-ch-next__btn .elementor-button:hover * {
  color: var(--ch-ink) !important;
}

.tfm-ch-title {
  text-shadow: 0 0 30px rgba(var(--academy-accent-rgb), .28);
}

/* ============================================================
   6. ERÖFFNUNGS-MOMENT — Tinten-Bloom beim Laden
   ============================================================ */

.tfm-ch-page.is-opening .tfm-ch-crumb,
.tfm-ch-page.is-opening .tfm-ch-numeral,
.tfm-ch-page.is-opening .tfm-ch-title,
.tfm-ch-page.is-opening .tfm-ch-body {
  animation: tfmChInkBloom .9s ease-out backwards;
}
.tfm-ch-page.is-opening .tfm-ch-numeral { animation-delay: .08s; }
.tfm-ch-page.is-opening .tfm-ch-title   { animation-delay: .16s; }
.tfm-ch-page.is-opening .tfm-ch-body    { animation-delay: .3s; }

@keyframes tfmChInkBloom {
  0%   { opacity: 0; filter: blur(4px); letter-spacing: .1em; }
  60%  { opacity: .85; filter: blur(1px); }
  100% { opacity: 1; filter: blur(0); letter-spacing: normal; }
}

/* ============================================================
   7. RESPONSIVE + BEWEGUNGSREDUKTION
   ============================================================ */

@media (max-width: 620px) {
  .tfm-ch-page { padding: 2rem 1.6rem; }
  .tfm-ch-title { font-size: 1.7rem; }
  .tfm-ch-corner { width: 42px; height: 42px; }
  .tfm-ch-prev,
  .tfm-ch-next {
    max-width: 100%;
  }
}

.tfm-ch-page:not(.tfm-ch-fade-off) .tfm-ch-body > * {
  opacity: 0;
  transform: translateY(14px);
}
.tfm-ch-page:not(.tfm-ch-fade-off) .tfm-ch-body > *.is-in {
  animation: tfmChRise .9s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes tfmChRise {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   TEXT-EINSTELLUNGEN-PANEL — 1:1 vom Modul-Pendant übernommen
   (tfm-academy-module.css, Sektion 8), nur ohne die "Show Reading
   Candle"-Zeile, da Kapitel-Seiten keine Lese-Kerze haben.
   ============================================================ */

.tfm-ch-settings {
  margin: 0 0 2rem;
}

.tfm-ch-settings__trigger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(20, 12, 35, .5);
  border: 1px solid var(--ch-accent-dim);
  color: var(--ch-accent-soft);
  font-family: 'Jost', sans-serif;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 0 22px -4px rgba(var(--academy-accent-rgb), .4);
}
.tfm-ch-settings__trigger:hover {
  background: rgba(var(--academy-accent-rgb), .12);
}

.tfm-ch-settings__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4, 0, .2, 1);
}
.tfm-ch-settings.is-open .tfm-ch-settings__panel {
  max-height: 480px;
}
.tfm-ch-settings__inner {
  margin-top: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: 8px;
  background: rgba(16, 10, 30, .6);
  border: 1px solid rgba(var(--academy-accent-rgb), .14);
}
.tfm-ch-settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  flex-wrap: wrap;
}
.tfm-ch-settings__row + .tfm-ch-settings__row {
  border-top: 1px solid rgba(var(--academy-accent-rgb), .08);
}
.tfm-ch-settings__label {
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  color: var(--ch-body);
}
.tfm-ch-settings__label small {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .74rem;
  color: var(--ch-muted);
  margin-top: .15rem;
}

.tfm-ch-switch {
  position: relative;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}
.tfm-ch-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.tfm-ch-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(var(--academy-muted-rgb), .25);
  transition: background .25s;
}
.tfm-ch-switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ece6f5;
  transition: transform .25s;
}
.tfm-ch-switch input:checked + .tfm-ch-switch__track {
  background: var(--ch-accent);
}
.tfm-ch-switch input:checked + .tfm-ch-switch__track::after {
  transform: translateX(18px);
}

.tfm-ch-settings__slider-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  max-width: 220px;
}
.tfm-ch-settings__slider-row span {
  font-family: 'Cormorant Garamond', serif;
  color: var(--ch-muted);
  flex-shrink: 0;
}
.tfm-ch-settings__slider-row span:first-child { font-size: .8rem; }
.tfm-ch-settings__slider-row span:last-child  { font-size: 1.1rem; }

.tfm-ch-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: rgba(var(--academy-muted-rgb), .25);
  outline: none;
}
.tfm-ch-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ch-accent-soft);
  box-shadow: 0 0 8px var(--ch-accent-glow);
  cursor: pointer;
}
.tfm-ch-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 50%;
  background: var(--ch-accent-soft);
  box-shadow: 0 0 8px var(--ch-accent-glow);
  cursor: pointer;
}

.tfm-ch-settings__pills {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.tfm-ch-settings__pill {
  font-family: 'Jost', sans-serif;
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(var(--academy-accent-rgb), .06);
  color: var(--ch-muted);
  border: 1px solid var(--ch-accent-dim);
  border-radius: 6px;
  padding: .4rem .7rem;
  cursor: pointer;
  transition: .2s;
}
.tfm-ch-settings__pill.on {
  background: var(--ch-accent);
  color: #0d0819;
  border-color: var(--ch-accent);
}
.tfm-ch-settings__pill:hover:not(.on) {
  border-color: var(--ch-accent-soft);
  color: var(--ch-accent-soft);
}

.tfm-ch-settings__save {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .3rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .78rem;
  color: var(--ch-muted);
}
.tfm-ch-settings__save input {
  accent-color: var(--ch-accent);
}

@media (max-width: 620px) {
  .tfm-ch-settings__row { flex-direction: column; align-items: flex-start; }
}


@media (prefers-reduced-motion: reduce) {
  .tfm-ch-star { animation: none; opacity: .5; }
  .tfm-ch-page .tfm-ch-body > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .tfm-ch-page.is-opening .tfm-ch-crumb,
  .tfm-ch-page.is-opening .tfm-ch-numeral,
  .tfm-ch-page.is-opening .tfm-ch-title,
  .tfm-ch-page.is-opening .tfm-ch-body {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}