/* Misión 04 · El mapa del ingreso */
:root {
  --tm-black: #020604;
  --tm-night: #061109;
  --tm-deep: #0a2111;
  --tm-panel: #0d2e18;
  --tm-panel-2: #123b20;
  --tm-green: #45f078;
  --tm-toxic: #a9ff67;
  --tm-emerald: #168348;
  --tm-silver: #dce7df;
  --tm-muted: #a9b8ae;
  --tm-gold: #e0b454;
  --tm-red: #e24b43;
  --tm-blue: #3287dc;
  --tm-violet: #9d72f2;
  --tm-cyan: #4be1d2;
  --tm-pink: #ef6ca8;
  --tm-ink: #102016;
  --tm-heading: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif;
  --tm-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.syllabus-page {
  margin: 0;
  min-height: 100vh;
  color: var(--tm-ink);
  background: var(--tm-black);
  font-family: var(--tm-body);
  font-size: 16px;
}

.syllabus-page * { box-sizing: border-box; }
.tm-shell { width: min(1260px, calc(100% - 40px)); margin-inline: auto; }
.tm-skip { position: fixed; left: -9999px; top: 16px; z-index: 999; }
.tm-skip:focus { left: 16px; padding: 12px 16px; color: #07100a; background: var(--tm-toxic); border: 3px solid #fff; border-radius: 8px; font-weight: 900; }
.tm-kicker { margin: 0; color: var(--tm-toxic); font-size: .86rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.tm-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 18px; color: #f2f7f3; font-size: .94rem; font-weight: 900; text-decoration: none; }
.tm-back:hover { color: var(--tm-toxic); text-decoration: underline; }

body[data-rti-theme="syllabus"] .rti-header--syllabus {
  --rti-deep: #041008;
  --rti-mid: #12351d;
  --rti-accent: #dcae4e;
  --rti-glow: #52ed7d;
  --rti-panel: #0b2c17;
  background:
    linear-gradient(90deg, transparent 49.7%, #ffffff0d 50%, transparent 50.3%),
    radial-gradient(circle at 72% -80%, #58ff8866, transparent 47%),
    linear-gradient(115deg, #020805, #092014 56%, #07100b);
  border-bottom-color: var(--tm-gold);
  box-shadow: 0 5px 0 #010302, 0 16px 35px #0009;
}

body[data-rti-theme="syllabus"] .rti-header--syllabus .rti-nav-grid {
  opacity: .26;
  background-image:
    linear-gradient(30deg, transparent 48%, #54ef7a29 49% 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, #54ef7a1c 49% 51%, transparent 52%);
  background-size: 42px 72px;
}

body[data-rti-theme="syllabus"] .rti-header--syllabus .rti-level-chip,
body[data-rti-theme="syllabus"] .rti-header--syllabus .rti-order {
  color: #08110a;
  background: linear-gradient(#f4d984, #c89436);
  border-color: #fff0b0;
  box-shadow: 3px 4px 0 #184b2a;
}

body[data-rti-theme="syllabus"] .rti-header--syllabus .rti-logo-orbit {
  border-color: var(--tm-green);
  box-shadow: 0 0 0 3px #d9ad4a, 0 0 22px #45f07877;
}

body[data-rti-theme="syllabus"] .rti-footer--syllabus,
body[data-rti-theme="syllabus"] .rti-mission-route {
  --rti-deep: #06120a;
  --rti-mid: #12351d;
  --rti-accent: #dfb455;
  --rti-glow: #45f078;
}

.tm-primary-button,
.tm-secondary-button,
.tm-portal-card > a,
.tm-library-console > a,
.tm-detail-heading > a,
.tm-distribution-intro > a,
.tm-next-grid > a,
.tm-strategy-note > a,
.tm-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid #effff3;
  border-radius: 5px;
  font-size: .94rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tm-primary-button,
.tm-portal-card > a,
.tm-library-console > a,
.tm-detail-heading > a,
.tm-distribution-intro > a,
.tm-next-grid > a,
.tm-strategy-note > a,
.tm-button {
  color: #061008;
  background: linear-gradient(135deg, #b8ff75, #40dd73 60%, #1dad5a);
  box-shadow: 0 6px 0 #0a662f, 0 0 22px #45f07833;
}

.tm-secondary-button {
  color: #fff4c9;
  background: #07140ce8;
  border-color: var(--tm-gold);
  box-shadow: 0 6px 0 #020503;
}

.tm-primary-button:hover,
.tm-secondary-button:hover,
.tm-portal-card > a:hover,
.tm-library-console > a:hover,
.tm-detail-heading > a:hover,
.tm-distribution-intro > a:hover,
.tm-next-grid > a:hover,
.tm-strategy-note > a:hover,
.tm-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.tm-command-hero,
.tm-cepunt-hero,
.tm-distribution-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, #43ed7838, transparent 22%),
    radial-gradient(circle at 22% 110%, #d9ae4b26, transparent 35%),
    linear-gradient(126deg, #010302 0 25%, #07160c 54%, #0c2b17 100%);
  border-bottom: 5px solid var(--tm-gold);
  isolation: isolate;
}

.tm-command-hero::before,
.tm-cepunt-hero::before,
.tm-distribution-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .45;
  background:
    linear-gradient(115deg, transparent 0 67%, #5cff8517 67% 68%, transparent 68%),
    linear-gradient(65deg, transparent 0 78%, #e0b4541c 78% 79%, transparent 79%),
    repeating-linear-gradient(90deg, transparent 0 95px, #fff08 96px, transparent 97px);
}

.tm-energy-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  background-image:
    linear-gradient(#63ff8c17 1px, transparent 1px),
    linear-gradient(90deg, #63ff8c17 1px, transparent 1px),
    radial-gradient(circle, #f4d774 0 2px, transparent 3px);
  background-size: 34px 34px, 34px 34px, 210px 170px;
  mask-image: linear-gradient(90deg, #000, #0003 72%, transparent);
}

.tm-command-grid,
.tm-cepunt-hero-grid,
.tm-distribution-hero-grid {
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  padding: 38px 0 48px;
}

.tm-command-copy h1,
.tm-cepunt-copy h1,
.tm-distribution-copy h1 {
  max-width: 760px;
  margin: 11px 0 17px;
  color: var(--tm-silver);
  font-family: var(--tm-heading);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 950;
  line-height: .82;
  letter-spacing: .012em;
  text-transform: uppercase;
  text-shadow: 5px 6px 0 #000;
}

.tm-command-copy h1 em,
.tm-cepunt-copy h1 em,
.tm-distribution-copy h1 em {
  display: block;
  color: var(--tm-toxic);
  font-style: normal;
  -webkit-text-stroke: 1px #d7ffdf;
  text-shadow: 4px 5px 0 #116230, 0 0 25px #45f07855;
}

.tm-command-copy > p:not(.tm-kicker),
.tm-cepunt-copy > p:not(.tm-kicker),
.tm-distribution-copy > p:not(.tm-kicker) {
  max-width: 670px;
  margin: 0 0 24px;
  color: #d2ded6;
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.65;
}

.tm-mission-lockup { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.tm-mission-lockup > span {
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  color: #071109;
  background: linear-gradient(145deg, #f2d982, #bd8b31);
  border: 2px solid #fff0ad;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #174a29;
  font-family: var(--tm-heading);
  font-size: 1.7rem;
  transform: skew(-4deg);
}
.tm-mission-lockup p,
.tm-mission-lockup strong { display: block; margin: 0; }
.tm-mission-lockup p { color: var(--tm-green); font-size: .76rem; font-weight: 950; letter-spacing: .14em; }
.tm-mission-lockup strong { margin-top: 3px; color: #fff; font-size: 1rem; letter-spacing: .045em; }
.tm-command-actions,
.tm-cepunt-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tm-command-actions > span { display: flex; align-items: center; gap: 9px; color: #e4eee7; font-weight: 850; }
.tm-command-actions > span b {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #08110a;
  background: var(--tm-gold);
  border: 2px solid #ffe5a0;
  border-radius: 50%;
  box-shadow: 0 0 18px #e0b45466;
}

/* Portada principal y guardianes */
.tm-hero-dossiers {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: center;
  padding: 28px 20px 40px;
  background:
    linear-gradient(#56ff8214 1px, transparent 1px),
    linear-gradient(90deg, #56ff8214 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, #52fa7f42, transparent 39%),
    #020704d9;
  background-size: 24px 24px, 24px 24px, auto, auto;
  border: 2px solid #7ff99d;
  clip-path: polygon(7% 0, 93% 0, 100% 9%, 100% 91%, 93% 100%, 7% 100%, 0 91%, 0 9%);
  box-shadow: inset 0 0 0 7px #ffffff0a;
}

.tm-hero-dossiers::before,
.tm-hero-dossiers::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--tm-gold), transparent);
}
.tm-hero-dossiers::before { top: 12px; }
.tm-hero-dossiers::after { bottom: 14px; }
.tm-hero-file {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: #0e2616;
  border: 2px solid #94aaa0;
  box-shadow: 8px 10px 0 #000, 0 0 22px #4cff7b22;
  transform: rotate(-2deg);
  animation: tm-float 4s ease-in-out infinite;
}
.tm-file-spider { transform: rotate(2deg); animation-delay: -1.8s; }
.tm-hero-file img { width: 100%; height: 255px; display: block; object-fit: cover; object-position: center; }
.tm-file-spider img { object-fit: contain; object-position: center; background: #06120a; }
.tm-hero-file figcaption { display: grid; gap: 2px; padding: 10px 12px; color: #fff; background: linear-gradient(90deg, #0d2d18, #061009); border-top: 2px solid var(--tm-gold); }
.tm-hero-file figcaption small { color: var(--tm-green); font-size: .66rem; font-weight: 950; letter-spacing: .13em; }
.tm-hero-file figcaption strong { font-size: .82rem; letter-spacing: .06em; }
.tm-reactor-mark {
  z-index: 4;
  width: 90px;
  height: 90px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #eaffed;
  background: radial-gradient(circle, #1d713c 0 35%, #07130b 36% 54%, #d8ae4b 55% 60%, #07130b 61%);
  border: 2px solid #a7ffbd;
  border-radius: 50%;
  box-shadow: 0 0 35px #45f07888;
}
.tm-reactor-mark span,
.tm-reactor-mark small { font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.tm-reactor-mark b { font-family: var(--tm-heading); font-size: 1.8rem; line-height: 1; }
.tm-hero-order { position: absolute; left: 50%; bottom: 17px; transform: translateX(-50%); color: var(--tm-gold); font-size: .68rem; font-weight: 950; letter-spacing: .16em; white-space: nowrap; }

/* Mapa de portales */
.tm-portal-zone {
  padding: 66px 0 82px;
  background:
    radial-gradient(circle at 10% 10%, #23683b3b, transparent 25%),
    linear-gradient(#06100a, #0a1d10);
}
.tm-section-heading { max-width: 850px; margin: 0 auto 32px; text-align: center; }
.tm-section-heading h2,
.tm-matrix-heading h2,
.tm-distribution-intro h2 {
  margin: 8px 0 11px;
  color: #eef6f0;
  font-family: var(--tm-heading);
  font-size: clamp(2.55rem, 5.2vw, 4.8rem);
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tm-section-heading > p:last-child,
.tm-matrix-heading p:last-child,
.tm-distribution-intro p:last-child { margin: 0; color: #bccbc1; font-size: 1rem; line-height: 1.65; }
.tm-portal-board {
  position: relative;
  overflow: hidden;
  padding: 82px 26px 116px;
  background:
    radial-gradient(circle at 50% 50%, #17482966, transparent 42%),
    linear-gradient(30deg, transparent 49.5%, #7aff9b12 50%, transparent 50.5%),
    linear-gradient(150deg, transparent 49.5%, #7aff9b12 50%, transparent 50.5%),
    #030805;
  background-size: auto, 48px 84px, 48px 84px, auto;
  border: 2px solid #8ea298;
  clip-path: polygon(3% 0, 97% 0, 100% 5%, 100% 95%, 97% 100%, 3% 100%, 0 95%, 0 5%);
  box-shadow: inset 0 0 0 7px #143d23, 0 28px 70px #0008;
  isolation: isolate;
}
.tm-portal-board::after {
  content: "";
  position: absolute;
  inset: 17px;
  z-index: -1;
  border: 1px solid #63f58b55;
  clip-path: inherit;
}
.tm-board-head { position: absolute; left: 34px; right: 34px; top: 24px; display: flex; justify-content: space-between; gap: 20px; color: #bed0c4; font-size: .71rem; font-weight: 950; letter-spacing: .14em; }
.tm-board-head b { color: var(--tm-toxic); }
.tm-portal-path { position: absolute; left: 5%; top: 33%; z-index: -1; width: 90%; height: 35%; overflow: visible; }
.tm-portal-path path { fill: none; stroke: #d7b157; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 5 17; filter: drop-shadow(0 0 7px #d7b157aa); }
.tm-portal-path circle { fill: var(--tm-toxic); stroke: #071009; stroke-width: 6; filter: drop-shadow(0 0 8px #45f078); }
.tm-portal-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.tm-portal-grid > li { min-width: 0; }
.tm-portal-card {
  --portal: var(--tm-gold);
  position: relative;
  min-height: 390px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 23px;
  overflow: hidden;
  color: #f4faf6;
  background:
    linear-gradient(135deg, transparent 0 52%, color-mix(in srgb, var(--portal) 13%, transparent) 53% 66%, transparent 67%),
    linear-gradient(155deg, #17341f, #061009 72%);
  border: 2px solid var(--portal);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  box-shadow: inset 0 0 0 5px #ffffff0a, 8px 10px 0 #000;
  transition: transform .2s ease, filter .2s ease;
}
.tm-portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, #ffffff1d 45%, transparent 55%);
  transform: translateX(-120%);
  transition: transform .45s ease;
}
.tm-portal-card:hover { transform: translateY(-7px); filter: brightness(1.08); }
.tm-portal-card:hover::before { transform: translateX(120%); }
.tm-portal-ordinary { --portal: #e2b958; }
.tm-portal-cepunt { --portal: #55ef7f; }
.tm-portal-distribution { --portal: #58a5ef; }
.tm-portal-top { display: flex; justify-content: space-between; gap: 12px; color: #cbd7cf; font-size: .69rem; font-weight: 950; letter-spacing: .11em; }
.tm-portal-top b { color: var(--tm-toxic); }
.tm-portal-emblem {
  width: 92px;
  height: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 25px 0 19px;
  color: #fff;
  background: radial-gradient(circle, color-mix(in srgb, var(--portal) 65%, #071009), #061009 65%);
  border: 2px solid var(--portal);
  border-radius: 50%;
  box-shadow: 0 0 0 6px #ffffff0a, 0 0 26px color-mix(in srgb, var(--portal) 38%, transparent);
}
.tm-portal-emblem small { font-size: .6rem; font-weight: 950; letter-spacing: .12em; }
.tm-portal-emblem strong { font-family: var(--tm-heading); font-size: 2.25rem; line-height: 1; }
.tm-portal-card > p { margin: 0 0 6px; color: var(--portal); font-size: .7rem; font-weight: 950; letter-spacing: .14em; }
.tm-portal-card h3 { margin: 0; font-family: var(--tm-heading); font-size: clamp(1.85rem, 2.7vw, 2.65rem); font-weight: 950; line-height: .92; letter-spacing: .025em; text-transform: uppercase; }
.tm-portal-card h3 em { display: block; margin-top: 7px; color: var(--portal); font-size: .7em; font-style: normal; letter-spacing: .04em; }
.tm-portal-data { display: flex; gap: 8px; flex-wrap: wrap; margin: 17px 0 20px; }
.tm-portal-data span { padding: 6px 8px; color: #d7e2da; background: #ffffff0a; border: 1px solid #ffffff25; font-size: .71rem; font-weight: 850; }
.tm-portal-card > a { width: 100%; margin-top: auto; color: #071009; background: var(--portal); border-color: #fff9d8; box-shadow: 0 6px 0 color-mix(in srgb, var(--portal) 55%, #000); }
.tm-board-guides { position: absolute; left: 22px; right: 22px; bottom: 13px; display: grid; grid-template-columns: 92px 1fr 1fr 92px; align-items: center; gap: 14px; color: #dde9e1; }
.tm-board-guides img { width: 92px; height: 78px; object-fit: cover; border: 1px solid var(--tm-green); }
.tm-board-guides img:last-child { object-fit: contain; object-position: center; background: #06120a; }
.tm-board-guides p { display: grid; gap: 2px; margin: 0; padding: 9px 12px; background: #0d2c18d9; border-left: 3px solid var(--tm-gold); font-size: .78rem; }
.tm-board-guides strong { color: var(--tm-toxic); font-size: .68rem; letter-spacing: .1em; }

.tm-next-mission { padding: 47px 0; color: #fff; background: linear-gradient(90deg, #092516, #041008); border-top: 1px solid #4bf17755; }
.tm-next-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.tm-next-grid h2 { margin: 6px 0; font-family: var(--tm-heading); font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: .95; text-transform: uppercase; }
.tm-next-grid p:last-child { margin: 0; color: #c7d4cb; }

/* Fortaleza CEPUNT */
.tm-cepunt-stage {
  position: relative;
  min-height: 415px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #50f27b44, transparent 38%),
    linear-gradient(#4eff7a12 1px, transparent 1px),
    linear-gradient(90deg, #4eff7a12 1px, transparent 1px),
    #030805;
  background-size: auto, 28px 28px, 28px 28px, auto;
  border: 2px solid #7ff39c;
  clip-path: polygon(7% 0, 93% 0, 100% 9%, 100% 91%, 93% 100%, 7% 100%, 0 91%, 0 9%);
}
.tm-cepunt-cover { position: relative; z-index: 3; width: 220px; margin: 0; padding: 8px; background: #0d2515; border: 2px solid var(--tm-gold); box-shadow: 0 14px 0 #000, 0 0 35px #45f07855; transform: translateY(-4px); }
.tm-cepunt-cover > span { position: absolute; z-index: 2; left: -12px; top: 15px; padding: 5px 8px; color: #0b130c; background: var(--tm-gold); font-size: .6rem; font-weight: 950; letter-spacing: .1em; }
.tm-cepunt-cover img { width: 100%; height: 254px; display: block; object-fit: cover; object-position: top; }
.tm-cepunt-cover figcaption { display: grid; gap: 2px; padding: 9px 5px 3px; text-align: center; }
.tm-cepunt-cover figcaption b { color: #effff2; font-size: .75rem; letter-spacing: .08em; }
.tm-cepunt-cover figcaption small { color: var(--tm-green); font-size: .68rem; }
.tm-stage-guardian { position: absolute; z-index: 4; bottom: 22px; width: 41%; margin: 0; }
.tm-stage-guardian img { width: 100%; height: 185px; display: block; object-fit: cover; border: 2px solid #a9b8ae; box-shadow: 6px 8px 0 #000; }
.tm-stage-cat img { object-fit: contain; object-position: center; background: #06120a; }
.tm-stage-guardian figcaption { width: max-content; max-width: 100%; margin: -12px auto 0; padding: 6px 9px; color: #071009; background: var(--tm-toxic); border: 2px solid #eaffee; font-size: .59rem; font-weight: 950; letter-spacing: .09em; }
.tm-stage-rabbit { left: 4px; transform: rotate(-3deg); }
.tm-stage-cat { right: 4px; transform: rotate(3deg); }
.tm-hero-facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 22px; }
.tm-hero-facts span { min-width: 112px; display: flex; align-items: baseline; gap: 7px; padding: 9px 11px; color: #dbe7df; background: #ffffff0a; border: 1px solid #74f49566; font-size: .76rem; font-weight: 800; }
.tm-hero-facts b { color: var(--tm-toxic); font-family: var(--tm-heading); font-size: 1.5rem; }
.tm-course-terminal {
  padding: 58px 0 82px;
  color: #f2f7f3;
  background:
    radial-gradient(circle at 10% 15%, #12472a66, transparent 24%),
    radial-gradient(circle at 88% 40%, #d9ad4a1a, transparent 28%),
    #06100a;
}
.tm-terminal-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 11px 15px; background: #0d2d18; border: 1px solid #53ec7a; border-left-width: 5px; }
.tm-terminal-heading span { color: var(--tm-toxic); font-size: .76rem; font-weight: 950; letter-spacing: .14em; }
.tm-terminal-heading b { color: #d9e5dc; font-size: .74rem; letter-spacing: .08em; }
.tm-library-console { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 18px 20px; background: linear-gradient(110deg, #10391e, #08170d); border: 1px solid #7afd9b; box-shadow: 7px 8px 0 #020503; }
.tm-library-console > div { display: grid; gap: 2px; }
.tm-library-console > div span { color: var(--tm-toxic); font-size: .65rem; font-weight: 950; letter-spacing: .13em; }
.tm-library-console > div strong { font-family: var(--tm-heading); font-size: 2.1rem; line-height: 1; text-transform: uppercase; }
.tm-library-console > div small { color: #b7c8bc; font-size: .74rem; }
.tm-library-console > p { max-width: 570px; margin: 0; color: #c6d4ca; font-size: .9rem; line-height: 1.5; }
.tm-library-console > a { font-size: .78rem; }
.tm-course-groups { display: grid; gap: 34px; margin-top: 36px; }
.tm-course-group { --group: var(--tm-cyan); }
.tm-group-gold { --group: var(--tm-gold); }
.tm-group-violet { --group: var(--tm-violet); }
.tm-group-green { --group: var(--tm-green); }
.tm-group-pink { --group: var(--tm-pink); }
.tm-course-group > header { display: grid; grid-template-columns: auto 52px 1fr auto; align-items: center; gap: 13px; margin-bottom: 14px; padding: 11px 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--group) 20%, #0b2112), #07110a); border: 1px solid var(--group); }
.tm-course-group > header > span { color: var(--group); font-size: .68rem; font-weight: 950; letter-spacing: .12em; }
.tm-course-group > header > i { width: 44px; height: 34px; display: grid; place-items: center; color: #071009; background: var(--group); font-size: .68rem; font-style: normal; font-weight: 950; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.tm-course-group > header h2 { margin: 0; font-family: var(--tm-heading); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.tm-course-group > header > b { color: #d5dfd8; font-size: .72rem; }
.tm-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tm-course {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #0b1e11;
  border: 1px solid var(--group);
  border-radius: 0;
  box-shadow: 5px 6px 0 #010302;
  font: inherit;
  text-align: left;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.tm-course::after { content: ""; position: absolute; right: 0; top: 0; width: 44px; height: 3px; background: var(--group); box-shadow: 0 0 15px var(--group); }
.tm-course:hover,
.tm-course:focus-visible { z-index: 2; transform: translateY(-5px); box-shadow: 6px 11px 0 #010302, 0 0 22px color-mix(in srgb, var(--group) 28%, transparent); filter: brightness(1.08); outline: 2px solid #fff; outline-offset: 2px; }
.tm-course-preview { position: relative; min-height: 218px; margin: 0; overflow: hidden; background: #020503; border-right: 1px solid var(--group); }
.tm-course-preview img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; filter: saturate(.9) contrast(1.03); transition: transform .25s ease; }
.tm-course:hover .tm-course-preview img { transform: scale(1.035); }
.tm-course-preview > span { position: absolute; left: 7px; top: 7px; width: 36px; height: 36px; display: grid; place-items: center; color: #071009; background: var(--group); border: 1px solid #fff; font-family: var(--tm-heading); font-size: 1rem; box-shadow: 3px 3px 0 #000; }
.tm-course-copy { min-width: 0; display: flex; flex-direction: column; padding: 15px 13px 13px; }
.tm-course-code { display: flex; align-items: center; gap: 7px; }
.tm-course-code b { padding: 4px 6px; color: #071009; background: var(--group); font-size: .65rem; }
.tm-course-code span { overflow: hidden; color: #9eb0a4; font-size: .63rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.tm-course-title { display: block; margin: 14px 0 6px; color: #f5faf6; font-family: var(--tm-heading); font-size: 1.45rem; line-height: .95; letter-spacing: .03em; text-transform: uppercase; }
.tm-course-areas { color: #b7c6bc; font-size: .75rem; line-height: 1.4; }
.tm-course-action { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid #ffffff15; }
.tm-course-action span { color: #acbcb1; font-size: .65rem; }
.tm-course-action b { color: var(--group); font-size: .68rem; text-align: right; }
.tm-empty { min-height: 240px; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 28px; color: #eaf3ed; background: #0a2111; border: 1px dashed var(--tm-green); text-align: center; }
.tm-empty img { width: 140px; height: 125px; object-fit: cover; border: 1px solid var(--tm-green); }
.tm-loading-state img:last-child { object-fit: contain; object-position: center; background: #06120a; }
.tm-empty h2 { margin: 6px 0; font-family: var(--tm-heading); font-size: 2.3rem; text-transform: uppercase; }
.tm-empty p { margin: 0; color: #bbcabf; }
.tm-state-label { color: var(--tm-toxic); font-size: .72rem; font-weight: 950; letter-spacing: .14em; }
.tm-noscript { padding: 17px; color: #fff; background: #4a1714; border: 2px solid var(--tm-red); }

/* Visor en la misma página */
.tm-course-dialog {
  width: min(1450px, calc(100% - 24px));
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  overflow: visible;
  color: #eef7f0;
  background: transparent;
  border: 0;
}
.tm-course-dialog::backdrop { background: #000d; backdrop-filter: blur(7px); }
.tm-dialog-shell { position: relative; max-height: 94dvh; overflow: auto; background: #06100a; border: 2px solid #7cf79a; box-shadow: 0 0 0 6px #143c22, 0 0 70px #45f07844; }
.tm-dialog-close { position: sticky; z-index: 20; top: 10px; left: calc(100% - 170px); min-height: 44px; margin: 10px 12px -54px auto; display: block; padding: 9px 13px; color: #fff; background: #531c18; border: 2px solid #ff8b80; font: 900 .76rem var(--tm-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 4px 4px 0 #000; }
.tm-dialog-close:hover,
.tm-dialog-close:focus-visible { background: #7b2720; outline: 2px solid #fff; }
.tm-course-detail { padding: 18px; }
.tm-detail-heading { display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 18px; padding: 18px 190px 18px 18px; background: linear-gradient(115deg, #164526, #08140c); border: 1px solid var(--tm-gold); }
.tm-detail-heading h2 { margin: 4px 0; font-family: var(--tm-heading); font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: .9; text-transform: uppercase; }
.tm-detail-heading p:last-child { margin: 0; color: #bfcdc3; font-size: .84rem; }
.tm-detail-code { height: 85px; display: grid; align-content: center; justify-items: center; color: #071009; background: linear-gradient(145deg, #f1d57a, #b9872c); border: 2px solid #ffefb2; box-shadow: 5px 5px 0 #000; }
.tm-detail-code span { font-size: .59rem; font-weight: 950; letter-spacing: .1em; }
.tm-detail-code b { font-family: var(--tm-heading); font-size: 2.35rem; line-height: 1; }
.tm-detail-heading > a { font-size: .72rem; }
.tm-viewer { margin-top: 16px; background: #020503; border: 1px solid #607168; }
.tm-viewer:fullscreen { padding: 16px; overflow: auto; background: #020503; }
.tm-toolbar { position: sticky; z-index: 10; top: 0; display: grid; grid-template-columns: minmax(170px, 1fr) auto auto auto auto auto; align-items: center; gap: 8px; padding: 11px; background: #0b2816f5; border-bottom: 1px solid var(--tm-green); backdrop-filter: blur(9px); }
.tm-toolbar > div span { color: var(--tm-toxic); font-size: .59rem; font-weight: 950; letter-spacing: .13em; }
.tm-toolbar h3 { margin: 2px 0 0; font-family: var(--tm-heading); font-size: 1.55rem; line-height: 1; text-transform: uppercase; }
.tm-toolbar button,
.tm-toolbar output { min-height: 40px; display: grid; place-items: center; padding: 8px 10px; color: #edf6ef; background: #08130c; border: 1px solid #84958b; font: 850 .72rem var(--tm-body); }
.tm-toolbar button { cursor: pointer; }
.tm-toolbar button:hover:not(:disabled) { color: #071009; background: var(--tm-toxic); }
.tm-toolbar button:disabled { opacity: .4; cursor: not-allowed; }
.tm-toolbar output { min-width: 68px; color: var(--tm-toxic); }
.tm-viewport { overflow: auto; padding: 18px; background: radial-gradient(circle at 50% 10%, #173d2366, transparent 45%), #030705; }
.tm-pages { --tm-width: 100%; width: var(--tm-width); min-width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 17px; margin-inline: auto; }
.tm-pages--single { grid-template-columns: minmax(0, 1fr); }
.tm-pages--single .tm-page-card { width: min(880px, 100%); margin-inline: auto; }
.tm-page-card { margin: 0; overflow: hidden; background: #f8faf8; border: 2px solid var(--tm-gold); box-shadow: 7px 8px 0 #000; }
.tm-page-card figcaption,
.tm-page-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; color: #fff; background: #0c2d18; }
.tm-page-card figcaption span { color: var(--tm-toxic); font-size: .66rem; font-weight: 950; letter-spacing: .1em; }
.tm-page-card figcaption strong { font-size: .78rem; }
.tm-page-card > a { display: block; }
.tm-page-card img { width: 100%; height: auto; display: block; }
.tm-page-card footer { border-top: 2px solid var(--tm-gold); font-size: .72rem; }
.tm-page-card footer a { color: var(--tm-toxic); font-weight: 900; text-decoration: none; }
.tm-page-card footer a:hover { text-decoration: underline; }
.tm-status { margin: 0; padding: 10px 14px; color: #b9c9bf; background: #07130b; border-top: 1px solid #53635a; font-size: .75rem; text-align: center; }

/* Cuadros de distribución */
.tm-cepunt-distribution,
.tm-general-matrix { padding: 62px 0 78px; color: #eef6f0; background: linear-gradient(#07130b, #0b2112); border-top: 2px solid var(--tm-gold); }
.tm-distribution-intro,
.tm-matrix-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; margin-bottom: 25px; }
.tm-distribution-intro > a { max-width: 300px; font-size: .75rem; }
.tm-matrix-heading > span { width: 120px; height: 120px; display: grid; align-content: center; justify-items: center; color: #071009; background: radial-gradient(circle, #ddbd63, #a26b21); border: 2px solid #fff0b0; border-radius: 50%; box-shadow: 0 0 0 7px #ffffff0a, 0 0 28px #e0b45455; }
.tm-matrix-heading > span b { font-family: var(--tm-heading); font-size: 2.7rem; line-height: .9; }
.tm-matrix-heading > span small { max-width: 70px; font-size: .59rem; font-weight: 900; text-align: center; text-transform: uppercase; }
.tm-table-frame { position: relative; overflow-x: auto; padding: 42px 13px 13px; background: #020604; border: 1px solid #85968c; box-shadow: 9px 11px 0 #010201; }
.tm-table-coordinate { position: absolute; left: 14px; top: 12px; color: var(--tm-toxic); font-size: .64rem; font-weight: 950; letter-spacing: .14em; }
.tm-data-table { width: 100%; min-width: 780px; border-collapse: collapse; color: #eaf3ed; background: #0b1c11; font-size: .86rem; }
.tm-general-table { min-width: 990px; }
.tm-data-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tm-data-table th,
.tm-data-table td { padding: 11px 10px; border: 1px solid #607268; text-align: center; }
.tm-data-table thead th { color: #071009; background: linear-gradient(#d8e2dc, #98aaa0); font-size: .73rem; text-transform: uppercase; }
.tm-data-table thead th:first-child,
.tm-general-table thead th:nth-child(2) { text-align: left; }
.tm-data-table thead th b,
.tm-data-table thead th span { display: block; }
.tm-data-table thead th b { font-family: var(--tm-heading); font-size: 1.4rem; }
.tm-data-table thead th span { margin-top: 3px; font-size: .58rem; }
.tm-data-table tbody th[scope="row"],
.tm-data-table tbody th[scope="rowgroup"] { text-align: left; }
.tm-data-table tbody th[scope="rowgroup"] { width: 175px; color: #071009; background: #74dc8e; font-size: .76rem; text-transform: uppercase; }
.tm-data-table tbody th[scope="row"] { color: #f4f8f5; background: #12311b; font-size: .78rem; }
.tm-data-table tbody td { font-weight: 900; }
.tm-data-table tbody + tbody { border-top: 4px solid var(--tm-gold); }
.tm-data-table .tm-subtotal th,
.tm-data-table .tm-subtotal td { color: #fff3c1; background: #313119; font-weight: 950; }
.tm-data-table tfoot th,
.tm-data-table tfoot td { color: #071009; background: linear-gradient(90deg, #91ff72, #dfbd5e); border-color: #071009; font-weight: 950; }
.tm-data-table tfoot th { text-align: right; text-transform: uppercase; }
.tm-block-dpcc th[scope="rowgroup"] { background: #e78db4; }
.tm-block-social th[scope="rowgroup"] { background: #e0bd61; }
.tm-block-communication th[scope="rowgroup"] { background: #68d9d0; }
.tm-block-math th[scope="rowgroup"] { background: #a78ae8; }
.tm-block-science th[scope="rowgroup"] { background: #74dc8e; }
.tm-table-note { margin: 18px 0 0; padding: 13px 15px; color: #c9d7ce; background: #0b2a16; border-left: 4px solid var(--tm-gold); font-size: .86rem; line-height: 1.55; }
.tm-table-note strong { color: #fff0b4; }

/* Centro de estrategia */
.tm-strategy-chamber {
  position: relative;
  min-height: 385px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, #45f0784a, transparent 36%),
    linear-gradient(#61f88715 1px, transparent 1px),
    linear-gradient(90deg, #61f88715 1px, transparent 1px),
    #020604;
  background-size: auto, 25px 25px, 25px 25px, auto;
  border: 2px solid #7cf398;
  clip-path: polygon(7% 0, 93% 0, 100% 10%, 100% 90%, 93% 100%, 7% 100%, 0 90%, 0 10%);
}
.tm-strategy-screen { position: absolute; z-index: 1; left: 50%; top: 44px; width: 205px; height: 145px; display: grid; align-content: center; justify-items: center; color: #eaffee; background: #0c3019e8; border: 2px solid var(--tm-gold); transform: translateX(-50%); box-shadow: 0 0 35px #45f07855; }
.tm-strategy-screen span { color: var(--tm-toxic); font-size: .63rem; font-weight: 950; letter-spacing: .13em; }
.tm-strategy-screen b { margin: 8px 0; font-family: var(--tm-heading); font-size: 2.15rem; }
.tm-strategy-screen small { font-size: .65rem; font-weight: 850; }
.tm-strategy-rabbit,
.tm-strategy-cat { position: absolute; z-index: 2; bottom: 23px; width: 42%; margin: 0; }
.tm-strategy-rabbit { left: 5px; transform: rotate(-3deg); }
.tm-strategy-cat { right: 5px; transform: rotate(3deg); }
.tm-strategy-rabbit img,
.tm-strategy-cat img { width: 100%; height: 185px; display: block; object-fit: cover; border: 2px solid #8ea097; box-shadow: 5px 7px 0 #000; }
.tm-strategy-cat img { object-fit: contain; object-position: center; background: #06120a; }
.tm-strategy-rabbit figcaption,
.tm-strategy-cat figcaption { width: max-content; max-width: 100%; margin: -10px auto 0; padding: 5px 8px; color: #071009; background: var(--tm-toxic); border: 1px solid #fff; font-size: .58rem; font-weight: 950; letter-spacing: .1em; }
.tm-strategy-chamber > p { position: absolute; z-index: 4; left: 50%; bottom: 9px; width: max-content; max-width: 78%; margin: 0; padding: 7px 10px; color: #f7fff8; background: #030805e8; border: 1px solid var(--tm-gold); font-size: .69rem; font-weight: 850; transform: translateX(-50%); }
.tm-area-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-top: 34px; }
.tm-area-card { --area: var(--tm-green); position: relative; padding: 20px; overflow: hidden; color: #eef6f0; background: linear-gradient(150deg, color-mix(in srgb, var(--area) 20%, #0a2112), #061009 68%); border: 1px solid var(--area); box-shadow: 5px 6px 0 #010302; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.tm-area-card.tm-area-a { --area: #51e57b; }
.tm-area-card.tm-area-b { --area: #4c9fe9; }
.tm-area-card.tm-area-c { --area: #d0b157; }
.tm-area-card.tm-area-d { --area: #dd6b99; }
.tm-area-card > span { color: var(--area); font-size: .68rem; font-weight: 950; letter-spacing: .13em; }
.tm-area-card h3 { min-height: 50px; margin: 8px 0 15px; color: #fff; font-family: var(--tm-heading); font-size: 1.55rem; line-height: .95; text-transform: uppercase; }
.tm-area-card p { display: flex; align-items: center; gap: 8px; margin: 6px 0; color: #c3d0c7; font-size: .77rem; }
.tm-area-card p b { min-width: 32px; color: #071009; background: var(--area); padding: 4px 5px; text-align: center; }
.tm-strategy-note { display: grid; grid-template-columns: 100px 1fr auto 92px; align-items: center; gap: 18px; margin-top: 34px; padding: 15px 18px; color: #edf6ef; background: linear-gradient(90deg, #123a20, #07130b); border: 1px solid var(--tm-gold); box-shadow: 7px 8px 0 #010302; }
.tm-strategy-note > img { width: 100%; height: 82px; object-fit: cover; border: 1px solid var(--tm-green); }
.tm-strategy-note > img:last-child { object-fit: contain; object-position: center; background: #06120a; }
.tm-strategy-note strong { display: block; margin-bottom: 4px; color: #fff2b8; font-family: var(--tm-heading); font-size: 1.45rem; text-transform: uppercase; }
.tm-strategy-note p { margin: 0; color: #c2d0c7; font-size: .86rem; line-height: 1.5; }
.tm-strategy-note > a { font-size: .72rem; }

@keyframes tm-pulse {
  0%, 100% { box-shadow: 0 0 16px #45f0782a; }
  50% { box-shadow: 0 0 32px #45f0786a; }
}
@keyframes tm-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
.tm-reactor-mark,
.tm-portal-emblem { animation: tm-pulse 3s ease-in-out infinite; }
.tm-stage-guardian,
.tm-strategy-rabbit,
.tm-strategy-cat { animation: tm-float 4s ease-in-out infinite; }
.tm-stage-cat,
.tm-strategy-cat { animation-delay: -1.8s; }

@media (max-width: 1080px) {
  .tm-command-grid,
  .tm-cepunt-hero-grid,
  .tm-distribution-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr); gap: 30px; }
  .tm-portal-grid { gap: 15px; }
  .tm-portal-card { padding: 19px; }
  .tm-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-strategy-note { grid-template-columns: 80px 1fr auto; }
  .tm-strategy-note > img:last-child { display: none; }
}

@media (max-width: 860px) {
  .tm-shell { width: min(100% - 28px, 760px); }
  .tm-command-grid,
  .tm-cepunt-hero-grid,
  .tm-distribution-hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 34px 0 45px; }
  .tm-command-copy h1,
  .tm-cepunt-copy h1,
  .tm-distribution-copy h1 { font-size: clamp(3.2rem, 13vw, 5.5rem); }
  .tm-hero-dossiers,
  .tm-cepunt-stage,
  .tm-strategy-chamber { width: min(100%, 590px); min-height: 390px; margin-inline: auto; }
  .tm-portal-zone { padding: 50px 0 65px; }
  .tm-portal-board { padding: 78px 21px 30px; }
  .tm-portal-path { left: 50%; top: 100px; width: 2px; height: calc(100% - 170px); background: repeating-linear-gradient(var(--tm-gold) 0 7px, transparent 7px 18px); }
  .tm-portal-path path,
  .tm-portal-path circle { display: none; }
  .tm-portal-grid { grid-template-columns: 1fr; max-width: 590px; margin-inline: auto; gap: 25px; }
  .tm-portal-card { min-height: 350px; }
  .tm-board-guides { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 72px 1fr 72px; max-width: 590px; margin: 27px auto 0; }
  .tm-board-guides p:nth-of-type(2) { display: none; }
  .tm-board-guides img { width: 72px; height: 66px; }
  .tm-next-grid { grid-template-columns: 1fr; }
  .tm-library-console { grid-template-columns: 1fr auto; }
  .tm-library-console > p { grid-column: 1 / -1; grid-row: 2; }
  .tm-detail-heading { grid-template-columns: 86px 1fr; padding: 64px 15px 15px; }
  .tm-detail-heading > a { grid-column: 1 / -1; }
  .tm-toolbar { grid-template-columns: 1fr auto auto auto; }
  .tm-toolbar #tm-reset,
  .tm-toolbar #tm-fullscreen { grid-column: span 2; }
  .tm-pages { grid-template-columns: 1fr; }
  .tm-strategy-note { grid-template-columns: 82px 1fr; }
  .tm-strategy-note > a { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .tm-shell { width: calc(100% - 20px); }
  .tm-kicker { font-size: .74rem; }
  .tm-command-grid,
  .tm-cepunt-hero-grid,
  .tm-distribution-hero-grid { padding-top: 24px; }
  .tm-command-copy h1,
  .tm-cepunt-copy h1,
  .tm-distribution-copy h1 { font-size: clamp(2.9rem, 16.8vw, 4.5rem); }
  .tm-command-copy > p:not(.tm-kicker),
  .tm-cepunt-copy > p:not(.tm-kicker),
  .tm-distribution-copy > p:not(.tm-kicker) { font-size: .96rem; }
  .tm-command-actions,
  .tm-cepunt-actions { align-items: stretch; flex-direction: column; }
  .tm-command-actions > a,
  .tm-cepunt-actions > a { width: 100%; }
  .tm-hero-dossiers { min-height: 342px; grid-template-columns: 1fr 48px 1fr; padding: 25px 12px 37px; }
  .tm-hero-file img { height: 210px; }
  .tm-reactor-mark { width: 61px; height: 61px; }
  .tm-reactor-mark b { font-size: 1.35rem; }
  .tm-portal-board { padding-inline: 14px; clip-path: none; border-radius: 7px; }
  .tm-board-head { left: 19px; right: 19px; font-size: .61rem; }
  .tm-board-head b { display: none; }
  .tm-portal-card { min-height: 365px; }
  .tm-board-guides { grid-template-columns: 62px 1fr 62px; gap: 8px; }
  .tm-board-guides img { width: 62px; height: 59px; }
  .tm-board-guides p { font-size: .7rem; }
  .tm-cepunt-cover { width: 188px; }
  .tm-cepunt-cover img { height: 220px; }
  .tm-stage-guardian { width: 40%; }
  .tm-stage-guardian img { height: 145px; }
  .tm-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-hero-facts span { min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 8px 4px; text-align: center; }
  .tm-course-terminal { padding: 42px 0 58px; }
  .tm-terminal-heading { align-items: flex-start; flex-direction: column; }
  .tm-library-console { grid-template-columns: 1fr; padding: 15px; }
  .tm-library-console > p { grid-column: auto; grid-row: auto; }
  .tm-library-console > a { width: 100%; }
  .tm-course-group > header { grid-template-columns: auto 42px 1fr; }
  .tm-course-group > header > b { grid-column: 1 / -1; }
  .tm-course-grid { grid-template-columns: 1fr; }
  .tm-course { grid-template-columns: 116px minmax(0, 1fr); }
  .tm-course-preview { min-height: 205px; }
  .tm-course-dialog { width: calc(100% - 10px); max-height: 98dvh; }
  .tm-dialog-shell { max-height: 98dvh; }
  .tm-dialog-close { top: 6px; margin: 6px 7px -50px auto; }
  .tm-course-detail { padding: 8px; }
  .tm-detail-heading { grid-template-columns: 68px 1fr; gap: 11px; padding: 61px 10px 12px; }
  .tm-detail-code { height: 70px; }
  .tm-detail-code b { font-size: 1.75rem; }
  .tm-detail-heading h2 { font-size: 2.4rem; }
  .tm-toolbar { position: relative; grid-template-columns: 1fr auto auto auto; padding: 8px; }
  .tm-toolbar > div { grid-column: 1 / -1; }
  .tm-toolbar #tm-reset,
  .tm-toolbar #tm-fullscreen { grid-column: span 2; }
  .tm-viewport { padding: 8px; }
  .tm-page-card figcaption,
  .tm-page-card footer { padding: 9px 8px; }
  .tm-distribution-intro,
  .tm-matrix-heading { grid-template-columns: 1fr; }
  .tm-matrix-heading > span { width: 92px; height: 92px; }
  .tm-table-frame { margin-inline: -2px; padding-inline: 7px; }
  .tm-area-cards { grid-template-columns: 1fr; }
  .tm-area-card h3 { min-height: 0; }
  .tm-strategy-chamber { min-height: 350px; }
  .tm-strategy-rabbit img,
  .tm-strategy-cat img { height: 150px; }
  .tm-strategy-note { grid-template-columns: 66px 1fr; padding: 11px; }
  .tm-strategy-note > img { height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .syllabus-page *,
  .syllabus-page *::before,
  .syllabus-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
