/* ===== Agileon Training (Roy, 2026-10-11). Plan: backlog/training-plan.md ===== */
/* All rules are scoped under .tr so nothing here reaches the rest of the site. */

.tr {
  --tr-max: var(--container, 1240px);
  --tr-gutter: var(--gutter, 24px);
  color: var(--ink);
}

.tr .eyebrow {
  margin: 0 0 14px;
  color: var(--emerald);
}

.tr-lead {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: var(--fs-lead, 18px);
  line-height: 1.6;
  text-wrap: pretty;
}

.tr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tr-actions .button {
  min-height: 48px;
  padding: 0 20px;
}

/* ---------- Hero ---------- */

.tr-hero {
  max-width: var(--tr-max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--tr-gutter) clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tr-hero h1 {
  max-width: 14ch;
}

.tr-hero h1,
.tr-course-copy h1,
.tr-complete h1 {
  max-width: 16ch;
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tr-hero-visual {
  position: relative;
  padding: 0 0 96px 56px;
}

.tr-hero-visual > img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 60% 30%;
  border-radius: 16px;
}

.tr-hero-visual .tr-hero-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(62%, 400px);
}

.tr-reassure {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 14px;
}

.tr-hero-badge svg,
.tr-feature-badge svg,
.tr-course-badge svg,
.tr-complete-badge svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(28, 31, 46, 0.14), 0 4px 14px rgba(28, 31, 46, 0.06);
}

/* ---------- Principles ---------- */

.tr-principles {
  max-width: var(--tr-max);
  margin: 0 auto;
  padding: 0 var(--tr-gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.tr-principles > div {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.tr-principles h2 {
  margin: 0 0 10px;
  font-size: var(--fs-h3, 20px);
  line-height: 1.25;
}

.tr-principles p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Sections ---------- */

.tr-section {
  max-width: var(--tr-max);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 120px) var(--tr-gutter) 0;
}

.tr-section-head {
  max-width: 680px;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.tr-section-head h2,
.tr-feature-copy h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.tr-section-head p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Free course cards ---------- */

.tr-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.tr-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tr-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ink) 22%, var(--rule));
  box-shadow: 0 18px 40px rgba(28, 31, 46, 0.1);
}

.tr-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tr-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
}

.tr-card-kicker {
  margin: 0 0 8px;
  color: var(--emerald);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tr-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.tr-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.tr-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tr-card {
  position: relative;
}

.tr-card-body > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 15.5px;
  line-height: 1.55;
}

.tr-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 14px;
}

.tr-card-foot span + span {
  color: var(--ink);
  font-weight: 700;
}

.tr-card-cta {
  margin-left: auto;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.tr-card-cta::after {
  content: " \2192";
}

/* ---------- Free courses (list, unused) ---------- */

.tr-free {
  border-top: 1px solid var(--rule);
}

.tr-free-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.tr-free-main h3 {
  margin: 6px 0 6px;
  font-size: var(--fs-h3, 20px);
}

.tr-free-main h3 a {
  color: var(--ink);
  text-decoration: none;
}

.tr-free-main h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tr-free-main p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 15.5px;
  line-height: 1.55;
}

.tr-step {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tr-free-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 14px;
  white-space: nowrap;
}

.tr-free-price {
  color: var(--ink);
  font-weight: 700;
}

.tr-free-status {
  min-width: 104px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12.5px;
  text-align: center;
}

.tr-free-status.open {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--white);
  font-weight: 700;
}

.tr-dots {
  display: inline-flex;
  gap: 4px;
}

.tr-dots i {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--rule);
}

.tr-dots i.on {
  background: var(--c);
}

/* ---------- Paths ---------- */

.tr-steps {
  list-style: none;
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}

.tr-steps li {
  position: relative;
  padding: 24px 24px 22px;
}

.tr-steps li + li {
  border-left: 1px solid var(--rule);
}

.tr-steps li::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ink);
  opacity: calc(0.25 + var(--i, 0) * 0.3);
}

.tr-steps li:nth-child(2) { --i: 1; }
.tr-steps li:nth-child(3) { --i: 2; }

.tr-step-num {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 750;
}

.tr-steps h3 {
  margin: 6px 0 8px;
  font-size: var(--fs-h3, 20px);
}

.tr-steps p {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.tr-step-earned {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 13px;
}

.tr-path-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.tr-path {
  grid-column: span 2;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.tr-path:nth-child(4) {
  grid-column: 2 / span 2;
}

.tr-path:hover,
.tr-path[open] {
  border-color: color-mix(in srgb, var(--ink) 22%, var(--rule));
  box-shadow: 0 18px 40px rgba(28, 31, 46, 0.08);
}

.tr-path summary,
.tr-faq-item summary,
.tr-module summary,
.tr-example summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.tr-path summary::-webkit-details-marker,
.tr-faq-item summary::-webkit-details-marker,
.tr-module summary::-webkit-details-marker,
.tr-example summary::-webkit-details-marker {
  display: none;
}

.tr-path summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.tr-path-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tr-path-title {
  padding: 20px 22px 0;
  min-height: 140px;
}

.tr-path-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 22px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 700;
}

.tr-path .tr-path-steps {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 4px 22px 22px;
}

.tr-path-title {
  display: grid;
  gap: 6px;
}

.tr-path-title strong {
  font-size: var(--fs-h3, 20px);
  line-height: 1.25;
}

.tr-path-title span {
  max-width: 72ch;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.tr-chevron {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 160ms ease;
}

details[open] > summary .tr-chevron {
  transform: rotate(180deg);
}

.tr-path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 4px 0 18px;
}

.tr-path-step h4 {
  margin: 0 0 10px;
  font-family: var(--font-secondary);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tr-path-step ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.tr-path-step li {
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.tr-path-step a {
  color: var(--navy);
  font-weight: 650;
}

.tr-path-badge {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 14px;
}

/* ---------- Featured course ---------- */

.tr-feature {
  max-width: var(--tr-max);
  margin: clamp(72px, 8vw, 120px) auto 0;
  padding: 0 var(--tr-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tr-feature-copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.tr-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 26px 0 0;
}

.tr-facts div {
  display: grid;
  gap: 4px;
}

.tr-facts dt {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-facts dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

/* ---------- How it works ---------- */

.tr-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  counter-reset: flow;
}

.tr-flow li {
  position: relative;
  padding-top: 40px;
  counter-increment: flow;
}

.tr-flow li::before {
  content: counter(flow);
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 750;
}

.tr-flow li::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 38px;
  right: -10px;
  height: 1px;
  background: var(--rule);
}

.tr-flow li:last-child::after {
  display: none;
}

.tr-flow strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.tr-flow span {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Formats table ---------- */

.tr-table-wrap {
  overflow-x: auto;
}

.tr-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-secondary);
  font-size: 15px;
}

.tr-table th,
.tr-table td {
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.tr-table thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-table tbody th {
  font-family: var(--font-primary);
  font-size: 16px;
  white-space: nowrap;
}

.tr-table td:last-child {
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.tr-faq-inner {
  max-width: 880px;
}

.tr-faq-item {
  border-bottom: 1px solid var(--rule);
}

.tr-faq-item:first-of-type {
  border-top: 1px solid var(--rule);
}

.tr-faq-item summary {
  padding: 20px 0;
  font-size: 17px;
  font-weight: 700;
}

.tr-faq-item p {
  max-width: 68ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Course page ---------- */

.tr-course-hero {
  max-width: var(--tr-max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--tr-gutter) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
}

.tr-course-hero::after {
  content: "";
  position: absolute;
  left: var(--tr-gutter);
  right: var(--tr-gutter);
  bottom: 0;
  height: 1px;
  background: var(--rule);
}

.tr-course-copy h1 {
  max-width: 18ch;
}

.tr-course-badge p {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 14px;
  text-align: center;
}

.tr-course-progress {
  max-width: 360px;
  height: 6px;
  margin-top: 22px;
  border-radius: 3px;
  background: var(--rule);
  overflow: hidden;
}

.tr-course-progress span,
.tr-rail-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--teal), var(--navy), var(--slate), var(--periwinkle), var(--violet), var(--plum));
  background-size: 360px 100%;
}

.tr-course-progress-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 13.5px;
}

.tr-course-layout {
  max-width: var(--tr-max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--tr-gutter) clamp(72px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.tr-course-body {
  min-width: 0;
  display: grid;
  gap: clamp(40px, 5vw, 56px);
}

.tr-course-aside {
  position: sticky;
  top: 100px;
}

.tr-aside-card {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(28, 31, 46, 0.06);
}

.tr-aside-img {
  display: block;
  width: calc(100% + 48px);
  margin: -24px -24px 20px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.tr-aside-price {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.tr-aside-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.tr-aside-card li {
  padding-left: 22px;
  position: relative;
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.45;
}

.tr-aside-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

.tr-aside-card .button {
  width: 100%;
  min-height: 48px;
}

/* Featured course outline */

.tr-feature-outline {
  padding: 8px 24px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(28, 31, 46, 0.08);
}

.tr-feature-outline-head {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 16px 0 12px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-feature-outline ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-feature-outline li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.tr-feature-num {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 700;
}

.tr-feature-mod strong {
  display: block;
  font-size: 16px;
}

.tr-feature-mod em {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 13.5px;
  font-style: normal;
}

.tr-feature-min {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 13.5px;
  white-space: nowrap;
}

/* Closing band for teams */

.tr-teams {
  max-width: calc(var(--tr-max) - 2 * var(--tr-gutter));
  margin: clamp(64px, 7vw, 104px) auto clamp(72px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.tr-teams-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.tr-teams-copy {
  padding: clamp(32px, 4vw, 56px);
  align-self: center;
}

.tr-teams-copy .button {
  margin-top: 26px;
}

.tr-teams .eyebrow {
  color: #9fd6b8;
}

.tr-teams h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.12;
}

.tr-teams p:not(.eyebrow) {
  max-width: 60ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-secondary);
  font-size: 16.5px;
  line-height: 1.6;
}

.tr-teams .button {
  flex: none;
  min-height: 48px;
  background: var(--white);
  color: var(--ink);
}

.tr-course-body h2,
.tr-keypoints h2,
.tr-apply h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 1vw + 16px, 28px);
  letter-spacing: -0.01em;
}

.tr-prose p,
.tr-prose li {
  max-width: 68ch;
  color: var(--ink);
  font-family: var(--font-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.tr-prose p {
  margin: 0 0 14px;
}

.tr-prose table {
  width: 100%;
  margin: 8px 0 18px;
  border-collapse: collapse;
  font-family: var(--font-secondary);
  font-size: 15px;
}

.tr-prose th,
.tr-prose td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.tr-prose th {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tr-outcomes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.tr-outcomes li {
  display: flex;
  gap: 12px;
  font-family: var(--font-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.tr-check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald);
}

.tr-check svg {
  width: 13px;
  height: 13px;
}

.tr-outline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.tr-outline-head span {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 14px;
}

.tr-module {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}

.tr-module + .tr-module {
  margin-top: 10px;
}

.tr-module summary {
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 700;
}

.tr-module summary em {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-module-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.tr-module ol {
  margin: 0;
  padding: 0 20px 10px;
  list-style: none;
}

.tr-module li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-secondary);
  font-size: 15px;
}

.tr-module li.done .tr-lesson-title {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--rule);
}

.tr-type-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.tr-lesson-title {
  flex: 1;
  min-width: 0;
}

.tr-lesson-min {
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

.tr-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--emerald-tint);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tr-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-pill-list a {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-secondary);
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
}

.tr-pill-list a:hover {
  border-color: var(--ink);
}

/* ---------- Lesson player ---------- */

.tr-player {
  max-width: var(--tr-max);
  margin: 0 auto;
  padding-inline: var(--tr-gutter);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.tr-rail {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  padding: 28px 24px 40px 0;
  border-right: 1px solid var(--rule);
}

.tr-rail-outline > summary {
  display: none;
}

.tr-rail-back {
  display: inline-flex;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.tr-rail-progress {
  height: 5px;
  margin: 16px 0 8px;
  border-radius: 3px;
  background: var(--rule);
  overflow: hidden;
}

.tr-rail-head p {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 13px;
}

.tr-rail-module h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tr-rail-module + .tr-rail-module {
  margin-top: 20px;
}

.tr-rail-module ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-rail-module a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: var(--radius-small);
  color: var(--ink);
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.tr-rail-module a:hover {
  background: var(--surface);
}

.tr-rail-module li.current a {
  background: var(--surface);
  font-weight: 700;
}

.tr-rail-mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
}

.tr-rail-module li.current .tr-rail-mark {
  border-color: var(--ink);
}

.tr-rail-module li.done .tr-rail-mark {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--white);
}

.tr-rail-mark svg {
  width: 11px;
  height: 11px;
}

.tr-lesson {
  width: 100%;
  max-width: 820px;
  padding: clamp(28px, 4vw, 48px) 0 72px clamp(24px, 4vw, 64px);
}

.tr-lesson .tr-prose h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.tr-lesson-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 750;
}

.tr-lesson-kicker .tr-type-icon {
  width: 16px;
  height: 16px;
  color: var(--emerald);
}

.tr-lesson-kicker span {
  color: var(--muted);
  font-weight: 500;
}

.tr-lesson-kicker span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 3px 0;
  border-radius: 50%;
  background: var(--muted);
}

.tr-lesson h1 {
  margin: 0 0 28px;
  font-size: clamp(28px, 1.6vw + 18px, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.tr-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #1c1f2e;
}

.tr-video-play {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.tr-video-play .tr-type-icon {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  color: var(--ink);
  fill: var(--ink);
}

.tr-video-note {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-secondary);
  font-size: 13px;
}

.tr-keypoints {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.tr-keypoints ul {
  margin: 0;
  padding-left: 20px;
}

.tr-keypoints li {
  margin: 6px 0;
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.tr-reading h4 {
  margin: 26px 0 8px;
  font-size: 19px;
}

/* Knowledge check */

.tr-quiz {
  display: grid;
  gap: 32px;
  margin-top: 8px;
}

.tr-question {
  margin: 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
  min-width: 0;
}

.tr-question legend {
  float: left;
  width: 100%;
  display: flex;
  gap: 12px;
  padding: 0;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.tr-question legend span {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-secondary);
  font-size: 13px;
}

.tr-question label {
  clear: both;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-family: var(--font-secondary);
  font-size: 15.5px;
  line-height: 1.45;
  cursor: pointer;
}

.tr-question label:hover {
  border-color: var(--ink);
}

.tr-question label:has(input:checked) {
  border-color: var(--ink);
  background: var(--surface);
}

.tr-question input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.tr-question.is-right legend span {
  background: var(--emerald);
  color: var(--white);
}

.tr-question.is-wrong legend span {
  background: #c0392b;
  color: var(--white);
}

.tr-explain {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.is-right .tr-explain {
  background: var(--emerald-tint);
}

.is-wrong .tr-explain {
  background: #fef0ef;
}

.tr-quiz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.tr-quiz-result {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 650;
}

.tr-quiz-result.passed {
  color: var(--emerald);
}

/* Apply it */

.tr-apply {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), var(--white));
}

.tr-apply p {
  max-width: 64ch;
  font-family: var(--font-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.tr-apply-field textarea {
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 16px/1.6 var(--font-secondary);
  resize: vertical;
}

.tr-apply-field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.tr-private {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 13.5px;
}

.tr-private svg {
  width: 14px;
  height: 14px;
  color: var(--emerald);
}

.tr-apply + .tr-prose {
  margin-top: 28px;
}

.tr-example {
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.tr-example summary {
  padding: 16px 0;
  font-weight: 700;
}

.tr-example p {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.tr-lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.tr-next-hint {
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 14px;
}

/* ---------- Completion ---------- */

.tr-complete {
  max-width: var(--tr-max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--tr-gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tr-name-field {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin-top: 28px;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.tr-name-field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font: 600 17px var(--font-primary);
  letter-spacing: 0;
  text-transform: none;
}

.tr-name-field input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .tr-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .tr-flow li::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .tr-hero,
  .tr-feature,
  .tr-course-hero,
  .tr-complete {
    grid-template-columns: 1fr;
  }

  .tr-hero-badge,
  .tr-course-badge {
    max-width: 560px;
  }

  .tr-principles,
  .tr-steps,
  .tr-course-layout {
    grid-template-columns: 1fr;
  }

  .tr-course-aside {
    display: none;
  }

  .tr-teams {
    grid-template-columns: 1fr;
    margin-left: var(--tr-gutter);
    margin-right: var(--tr-gutter);
  }

  .tr-teams-img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .tr-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .tr-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-path,
  .tr-path:nth-child(4) {
    grid-column: auto;
  }

  .tr-hero-visual {
    max-width: 640px;
    padding: 0 0 48px 32px;
  }

  .tr-steps li + li {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .tr-player {
    grid-template-columns: 1fr;
  }

  .tr-rail {
    position: static;
    max-height: none;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .tr-rail-outline > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 4px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 750;
  }

  .tr-rail-outline > summary::-webkit-details-marker {
    display: none;
  }

  .tr-rail-outline > summary span {
    margin-left: auto;
    color: var(--muted);
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 500;
  }

  .tr-rail-outline[open] > summary {
    margin-bottom: 14px;
  }

  .tr-rail-head p {
    margin-bottom: 0;
  }

  .tr-lesson {
    padding-left: 0;
  }

  .tr-hero-badge,
  .tr-course-badge,
  .tr-complete-badge {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .tr-complete-badge {
    order: -1;
  }
}

@media (max-width: 640px) {
  .tr-free-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tr-free-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .tr-table thead {
    display: none;
  }

  .tr-table,
  .tr-table tbody,
  .tr-table tr,
  .tr-table th,
  .tr-table td {
    display: block;
  }

  .tr-table tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
  }

  .tr-table th,
  .tr-table td {
    padding: 0;
    border: 0;
  }

  .tr-table tbody th {
    margin-bottom: 6px;
    white-space: normal;
  }

  .tr-table td + td {
    margin-top: 4px;
  }

  .tr-table td:last-child::before {
    content: "Best for: ";
    font-weight: 650;
  }

  .tr-lesson-kicker span {
    flex-basis: 100%;
  }

  .tr-lesson-kicker span::before {
    display: none;
  }

  .tr-flow {
    grid-template-columns: 1fr;
  }

  .tr-path-title {
    min-height: 0;
    padding-bottom: 12px;
  }

  .tr-actions .button {
    width: 100%;
  }

  .tr-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .tr-module li {
    flex-wrap: wrap;
  }

  .tr-lesson-min {
    width: 100%;
    padding-left: 30px;
  }

  .tr-module summary {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .tr-module-meta {
    width: 100%;
    justify-content: space-between;
  }

  .tr-lesson-nav .button {
    padding: 0 14px;
  }
}

@media (max-width: 640px) {
  .tr-path-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1081px) {
  .tr-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== Paths v3 (Roy, 2026-10-12): function-named paths, four levels, A to Z catalog ===== */

.tr-paths .tr-section-head strong {
  color: var(--ink);
}

.tr-ai-note {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(28px, 3vw, 40px);
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--font-secondary);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
}

.tr-ai-note strong {
  color: var(--ink);
}

.tr-ai-note svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--periwinkle);
}

.tr-pcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.tr-pcard {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tr-pcard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ink) 22%, var(--rule));
  box-shadow: 0 18px 40px rgba(28, 31, 46, 0.1);
}

.tr-pcard-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.tr-pcard-body {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
}

.tr-pcard h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.tr-pcard-body > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.tr-ladder {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  position: relative;
}

.tr-ladder li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0 7px 22px;
  font-family: var(--font-secondary);
  font-size: 14.5px;
}

.tr-ladder li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rule);
}

.tr-ladder li:first-child::before {
  top: 50%;
}

.tr-ladder li:last-child::before {
  bottom: 50%;
}

.tr-ladder-mark {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
}

.tr-ladder li:first-child .tr-ladder-mark {
  background: var(--emerald);
  border-color: var(--emerald);
}

.tr-ladder strong {
  min-width: 104px;
  color: var(--ink);
}

.tr-ladder span:last-child {
  color: var(--muted);
}

.tr-pcard-focus {
  margin: 0 0 14px !important;
  font-size: 13.5px !important;
}

.tr-pcard-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: 750 14px var(--font-secondary);
  cursor: pointer;
}

.tr-pcard-cta:hover span {
  transform: translateX(3px);
}

.tr-pcard-cta span {
  transition: transform 160ms ease;
}

/* Levels explained */

.tr-levels {
  margin-top: clamp(40px, 5vw, 64px);
}

.tr-levels h3 {
  margin: 0 0 16px;
  font-size: var(--fs-h3, 20px);
}

.tr-levels ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}

.tr-levels li {
  padding: 22px 22px 20px;
}

.tr-levels li + li {
  border-left: 1px solid var(--rule);
}

.tr-levels h4 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.tr-levels p {
  margin: 0 0 12px;
  font-family: var(--font-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}

/* A to Z catalog */

.tr-catalog {
  scroll-margin-top: 90px;
}

.tr-cat-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.tr-cat-search {
  position: relative;
  display: grid;
  gap: 6px;
}

.tr-cat-label {
  color: var(--muted);
  font: 700 12px var(--font-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-cat-search svg {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.tr-cat-search input,
.tr-cat-select select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 15px var(--font-secondary);
}

.tr-cat-search input {
  padding: 0 14px 0 42px;
}

.tr-cat-select {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font: 700 12px var(--font-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-cat-select select {
  padding: 0 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.tr-cat-search input:focus,
.tr-cat-select select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.tr-cat-count {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 8px;
  color: var(--muted);
  font: 14px var(--font-secondary);
}

.tr-cat-count strong {
  color: var(--ink);
  font-weight: 750;
}

.tr-cat-count button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: 650 14px var(--font-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.tr-az-group {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.tr-az-letter {
  margin: 0;
  padding: 18px 0;
  font-size: 22px;
  color: var(--muted);
}

.tr-az-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-az-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 170px 110px 140px;
  gap: 20px;
  padding: 0 0 10px;
  color: var(--muted);
  font: 700 12px var(--font-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-az-head span:first-child {
  grid-column: 2;
}

.tr-az-head span:last-child {
  text-align: right;
}

.tr-az-more {
  display: flex;
  width: 100%;
  margin-top: 8px;
}

.tr-az-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 110px 140px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-secondary);
  font-size: 14.5px;
}

.tr-az-row:last-child {
  border-bottom: 0;
}

.tr-az-main {
  display: grid;
  gap: 6px;
}

.tr-az-title {
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
}

a.tr-az-title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tr-az-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tr-az-skills span {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.tr-az-levels,
.tr-az-length {
  color: var(--muted);
}

.tr-az-status {
  color: var(--muted);
  text-align: right;
}

.tr-az-open {
  color: var(--emerald);
  font-weight: 700;
}

.tr-cat-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-secondary);
}

@media (max-width: 1080px) {
  .tr-pcards {
    grid-template-columns: 1fr;
  }

  .tr-levels ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-levels li:nth-child(3) {
    border-left: 0;
  }

  .tr-levels li:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .tr-cat-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tr-cat-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .tr-pcard {
    grid-template-columns: 1fr;
  }

  .tr-pcard-img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .tr-levels ol {
    grid-template-columns: 1fr;
  }

  .tr-levels li + li {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .tr-cat-tools {
    grid-template-columns: 1fr;
  }

  .tr-az-group {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .tr-az-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
  }

  .tr-az-main {
    grid-column: 1 / -1;
  }

  .tr-az-levels {
    grid-column: 1;
  }

  .tr-az-length {
    display: none;
  }
}

@media (min-width: 1081px) {
  .tr-pcard h3 {
    min-height: 2.4em;
  }
}

@media (max-width: 720px) {
  .tr-cat-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .tr-cat-search {
    grid-column: 1 / -1;
  }

  .tr-cat-select select {
    padding: 0 8px;
    font-size: 14px;
  }

  .tr-az-head {
    display: none;
  }
}

.tr [hidden] {
  display: none !important;
}

/* Video players and live sessions */

.tr-video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tr-video-start:hover .tr-video-play,
.tr-video-start:focus-visible .tr-video-play {
  transform: scale(1.05);
}

.tr-video-play {
  transition: transform 160ms ease;
}

.tr-video > .button {
  background: var(--white);
  color: var(--ink);
}

.tr-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tr-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

.tr-live .tr-actions {
  margin-top: 0;
}

.tr-live-status {
  margin: 0 0 6px;
  font: 750 12.5px var(--font-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tr-live-status.live {
  color: var(--emerald);
}

.tr-live-date {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 750;
}

.tr-live-meta {
  margin: 0;
  color: var(--muted);
  font: 14.5px var(--font-secondary);
}
