.tr-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 20px;
  border-radius: var(--radius, 14px);
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--t-motion-base, 0.18s), box-shadow var(--t-motion-base, 0.18s), transform 0.05s;
}

.tr-hero:hover {
  border-color: var(--primary);
}

.tr-hero:active {
  transform: scale(0.997);
}

.tr-hero__chip {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

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

.tr-hero__title {
  margin-bottom: 3px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.tr-hero__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.tr-hero__meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  opacity: 0.85;
}

.tr-hero__cta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.tr-hero--primary {
  flex-wrap: wrap;
  row-gap: 8px;
  padding: 20px;
  border-color: var(--t-hero-border);
  background: var(--t-hero-bg);
  color: var(--t-hero-text);
  box-shadow: var(--t-hero-glow);
}

.tr-hero--primary:hover {
  border-color: var(--t-hero-border-hover);
  box-shadow: var(--t-hero-glow-hover);
}

.tr-hero--primary .tr-hero__title {
  color: var(--t-hero-text);
}

.tr-hero--primary .tr-hero__sub,
.tr-hero--primary .tr-hero__meta {
  color: var(--t-hero-text-muted);
}

.tr-hero--primary .tr-hero__chip--primary {
  background: var(--t-hero-icon-bg);
  color: var(--t-hero-icon-fg);
}

.tr-hero--primary .tr-hero__cta {
  flex-basis: 100%;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--t-cta-radius, 18px);
  background: var(--t-cta-surface, var(--t-cta-bg));
  color: var(--t-cta-fg);
  font-size: 0.88rem;
  box-shadow: var(--t-cta-glow), var(--t-cta-inset);
  transition: box-shadow var(--t-motion-base, 0.18s);
}

.tr-hero--primary:hover .tr-hero__cta {
  background: var(--t-cta-surface-hover, var(--t-cta-surface, var(--t-cta-bg)));
  box-shadow: var(--t-cta-glow-hover), var(--t-cta-inset);
}

.tr-hero--warn {
  flex-wrap: wrap;
  row-gap: 8px;
  padding: 20px;
  border-color: rgba(245, 200, 0, 0.35);
  background: var(--t-hero-bg);
  color: var(--t-hero-text);
  box-shadow: 0 0 48px rgba(245, 166, 35, 0.12);
}

.tr-hero--warn:hover {
  border-color: rgba(245, 200, 0, 0.55);
  box-shadow: 0 0 64px rgba(245, 166, 35, 0.22);
}

.tr-hero--warn .tr-hero__title {
  color: var(--t-hero-text);
}

.tr-hero--warn .tr-hero__sub,
.tr-hero--warn .tr-hero__meta {
  color: var(--t-hero-text-muted);
}

.tr-hero--warn .tr-hero__chip--warn {
  background: rgba(245, 200, 0, 0.16);
  color: var(--t-cta-bg);
}

.tr-hero--warn .tr-hero__cta {
  flex-basis: 100%;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--t-cta-radius, 18px);
  background: var(--t-cta-surface, var(--t-cta-bg));
  color: var(--t-cta-fg);
  font-size: 0.88rem;
  box-shadow: var(--t-cta-glow), var(--t-cta-inset);
}

.tr-hero--warn:hover .tr-hero__cta {
  background: var(--t-cta-surface-hover, var(--t-cta-surface, var(--t-cta-bg)));
  box-shadow: var(--t-cta-glow-hover), var(--t-cta-inset);
}

.tr-route-hero--active {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 12px;
  min-height: 238px;
  padding: 20px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(var(--t-accent-rgb, 245, 200, 0), 0.30);
  border-radius: var(--home-banner-radius, 18px);
  color: var(--t-hero-text);
  background:
    linear-gradient(rgba(24, 15, 48, 0.52), rgba(24, 15, 48, 0.52)),
    linear-gradient(180deg, rgba(var(--t-accent-rgb, 245, 200, 0), 0.16), transparent 28%),
    radial-gradient(620px 280px at 76% 4%, rgba(var(--t-primary-rgb, 180,163,230), 0.34), transparent 64%),
    rgb(16 13 28);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.42),
    0 0 52px -18px rgba(var(--t-primary-rgb, 180,163,230), 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tr-route-hero--active::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: calc(var(--home-banner-radius, 18px) - 1px);
  border-top: 1px solid rgba(255, 230, 128, 0.58);
  background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 245, 200, 0), 0.10), transparent 38%);
  pointer-events: none;
}

.tr-route-hero--active .tr-hero__chip,
.tr-route-hero--active .tr-hero__body,
.tr-route-hero--active .tr-route-hero__active-metrics,
.tr-route-hero--active .tr-hero__cta {
  position: relative;
  z-index: 1;
}

.tr-route-hero--active .tr-hero__chip {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.20), transparent 38%),
    rgba(255, 255, 255, 0.11);
  color: var(--t-hero-text);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -18px 28px rgba(24, 14, 52, 0.24),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.tr-route-hero--active .tr-hero__body {
  align-self: center;
}

.tr-route-hero--active .tr-hero__title {
  margin-bottom: 3px;
  color: var(--t-hero-text);
  font-family: var(--t-font-display);
  font-size: clamp(1.12rem, 4.8vw, 1.52rem);
  font-weight: 850;
  line-height: 1.08;
}

.tr-route-hero--active .tr-route-hero__active-meta {
  margin-top: 0;
  color: var(--t-hero-text-muted);
  font-size: clamp(0.78rem, 2.8vw, 0.92rem);
  font-weight: 750;
  line-height: 1.18;
  opacity: 1;
}

.tr-route-hero__active-metrics {
  grid-column: 1 / -1;
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tr-route-hero__active-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 9px 8px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

.tr-route-hero__active-metric b,
.tr-route-hero__active-metric em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-route-hero__active-metric b {
  color: var(--t-hero-stripe, rgb(245 200 0));
  font-size: clamp(0.92rem, 3.8vw, 1.12rem);
  font-weight: 850;
  line-height: 1.05;
}

.tr-route-hero__active-metric em {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
}

.tr-route-hero--active .tr-hero__cta {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 46px;
  margin-top: -4px;
  padding: 10px 24px;
  border-radius: var(--t-radius-pill);
  background: var(--t-cta-bg);
  color: var(--t-cta-fg);
  font-size: clamp(0.92rem, 3.7vw, 1.06rem);
  box-shadow: var(--t-cta-glow), var(--t-cta-inset);
}

.tr-route-hero--active:hover .tr-hero__cta {
  box-shadow: var(--t-cta-glow-hover), var(--t-cta-inset);
}

.tr-route-hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--t-cta-bg, var(--primary)) 18%, transparent);
  color: var(--t-cta-fg);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.tr-route-hero--feature {
  margin-bottom: 0;
  border-radius: var(--home-banner-radius, 18px);
}

.tr-route-hero--home {
  margin-bottom: 0;
}

.tr-route-hero--training {
  margin-bottom: 20px;
}

.tr-route-hero--feature {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: clamp(216px, 50vw, 258px);
  padding: 17px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(var(--t-accent-rgb, 245, 200, 0), 0.30);
  background:
    linear-gradient(rgba(24, 15, 48, 0.52), rgba(24, 15, 48, 0.52)),
    linear-gradient(180deg, rgba(var(--t-accent-rgb, 245, 200, 0), 0.16), transparent 28%),
    radial-gradient(620px 280px at 76% 4%, rgba(var(--t-primary-rgb, 180,163,230), 0.34), transparent 64%),
    rgb(16 13 28);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.42),
    0 0 52px -18px rgba(var(--t-primary-rgb, 180,163,230), 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tr-route-hero--feature::before,
.tr-route-hero--feature::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tr-route-hero--feature::before {
  inset: 1px;
  z-index: 0;
  border-radius: calc(var(--home-banner-radius, 18px) - 1px);
  border-top: 1px solid rgba(255, 230, 128, 0.58);
  background: linear-gradient(180deg, rgba(var(--t-accent-rgb, 245, 200, 0), 0.10), transparent 38%);
  opacity: 1;
  mix-blend-mode: normal;
}

.tr-route-hero--feature::after {
  display: none;
  opacity: 0;
}

.tr-route-hero--feature .tr-hero__chip,
.tr-route-hero--feature .tr-route-hero__stat,
.tr-route-hero--feature .tr-route-hero__top-meta,
.tr-route-hero--feature .tr-hero__body,
.tr-route-hero--feature .tr-hero__cta,
.tr-route-hero--feature .tr-route-hero__actions {
  position: relative;
  z-index: 1;
}

.tr-route-hero--feature .tr-hero__chip {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.20), transparent 38%),
    rgba(255, 255, 255, 0.11);
  color: var(--t-hero-text);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -18px 28px rgba(24, 14, 52, 0.24),
    0 14px 30px rgba(0, 0, 0, 0.22);
  }

.tr-route-hero--feature .tr-route-hero__stat {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.20), transparent 38%),
    rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  backdrop-filter: blur(18px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -18px 28px rgba(24, 14, 52, 0.24),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.tr-route-hero--feature .home-card__stat-ring-track {
  background: conic-gradient(
    var(--t-cta-bg) calc(var(--stat-progress, 0) * 360deg),
    rgba(255, 255, 255, 0.16) 0
  );
  filter: drop-shadow(0 0 12px rgba(var(--t-accent-rgb, 245, 200, 0), 0.22));
}

.tr-route-hero--feature .tr-route-hero__top-meta {
  grid-column: 2 / -1;
  align-self: center;
  display: flex;
  min-width: 0;
  padding-right: 92px;
  flex-direction: column;
  gap: 3px;
}

.tr-route-hero--feature:not(:has(.tr-route-hero__stat)) .tr-route-hero__top-meta {
  padding-right: 0;
}

.tr-route-hero--feature .tr-route-hero__top-meta-line {
  display: block;
  max-width: 100%;
  overflow: visible;
  color: var(--t-hero-text-muted);
  font-size: clamp(0.78rem, 2.8vw, 0.92rem);
  font-weight: 750;
  line-height: 1.18;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  white-space: normal;
}

.tr-route-hero--feature .tr-route-hero__top-meta-line--accent {
  color: rgb(245 200 0);
}

.tr-route-hero--feature .tr-hero__body {
  grid-column: 1 / -1;
  align-self: center;
  min-height: 0;
}

.tr-route-hero--feature .tr-route-hero__badge {
  min-height: 30px;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--t-accent-rgb, 245, 200, 0), 0.30);
  background:
    linear-gradient(180deg, rgba(255, 234, 150, 0.22), rgba(var(--t-accent-rgb, 245, 200, 0), 0.10));
  color: rgb(245 200 0);
  font-size: 0.68rem;
  box-shadow: 0 8px 22px rgba(var(--t-accent-rgb, 245, 200, 0), 0.12);
}

.tr-route-hero--feature .tr-hero__title {
  max-width: 100%;
  margin-bottom: 0;
  color: var(--t-hero-text);
  font-family: var(--t-font-display);
  font-size: clamp(1.18rem, 4.65vw, 1.78rem);
  font-weight: 850;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.tr-route-hero--feature .tr-route-hero__title--split {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: normal;
}

.tr-route-hero__title-prefix,
.tr-route-hero__title-suffix {
  display: block;
}

.tr-route-hero--feature .tr-route-hero__title-prefix {
  font-size: clamp(0.88rem, 3.2vw, 1.08rem);
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

.tr-route-hero--feature.tr-route-hero--long-title .tr-hero__title {
  font-size: clamp(1.03rem, 4.1vw, 1.28rem);
  font-weight: 800;
  line-height: 1.14;
}

.tr-route-hero__title-accent {
  color: rgb(245 200 0);
}

.tr-route-hero--feature .tr-route-hero__title--split .tr-route-hero__title-accent {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}

.tr-route-hero--feature.tr-route-hero--long-title .tr-route-hero__title--split .tr-route-hero__title-accent {
  font-size: clamp(1.05rem, 4.2vw, 1.34rem);
  line-height: 1.12;
}

.tr-route-hero--feature .tr-hero__sub,
.tr-route-hero--feature .tr-hero__meta {
  max-width: 560px;
  color: var(--t-hero-text);
  font-size: clamp(1rem, 4.1vw, 1.28rem);
  font-weight: 650;
  line-height: 1.32;
}

.tr-route-hero--feature .tr-hero__cta {
  grid-column: 1 / -1;
  justify-self: stretch;
  justify-content: center;
  min-height: 42px;
  padding: 8px 22px;
  border-radius: var(--t-cta-radius, 18px);
  background: var(--t-cta-surface, var(--t-cta-bg));
  color: var(--t-cta-fg);
  font-size: clamp(0.92rem, 3.7vw, 1.06rem);
  box-shadow: var(--t-cta-glow), var(--t-cta-inset);
}

.tr-route-hero--feature:hover .tr-hero__cta {
  background: var(--t-cta-surface-hover, var(--t-cta-surface, var(--t-cta-bg)));
  box-shadow: var(--t-cta-glow-hover), var(--t-cta-inset);
}

.tr-route-hero__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.tr-route-hero__actions--paired {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.tr-route-hero--feature .tr-route-hero__actions--paired .tr-hero__cta {
  grid-column: auto;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: clamp(0.76rem, 3vw, 0.92rem);
  line-height: 1.1;
  text-align: center;
}

.tr-route-hero__actions--paired .tr-route-hero__action {
  min-width: 0;
  min-height: 44px;
  font-size: clamp(0.72rem, 2.8vw, 0.88rem);
}

.tr-route-hero__action-label--short {
  display: none;
}

.tr-route-hero__action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--t-hero-text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.tr-route-hero__action svg {
  flex: 0 0 auto;
}

.tr-route-hero__action:hover {
  border-color: rgba(var(--t-accent-rgb, 245, 200, 0), 0.42);
  background: rgba(255, 255, 255, 0.12);
}

@media (min-height: 720px) {
  .tr-route-hero--feature .tr-route-hero__stat {
    top: 17px;
    right: 17px;
    width: 60px;
    height: 60px;
  }

  .tr-route-hero--feature:has(.tr-route-hero__stat) .tr-route-hero__top-meta {
    padding-right: 78px;
  }
}

@media (max-width: 380px) {
  .tr-route-hero--feature {
    min-height: 238px;
    padding: 18px;
  }

  .tr-route-hero--feature .tr-hero__chip {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .tr-route-hero--feature .tr-route-hero__top-meta {
    padding-right: 78px;
  }

  .tr-route-hero--feature .tr-route-hero__stat {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .tr-route-hero--feature .tr-route-hero__top-meta-line {
    font-size: 0.74rem;
  }

  .tr-route-hero--feature .tr-hero__title {
    font-size: 1.12rem;
  }

  .tr-route-hero--feature .tr-hero__sub,
  .tr-route-hero--feature .tr-hero__meta {
    font-size: 0.95rem;
  }

  .tr-route-hero--feature .tr-hero__cta {
    min-height: 46px;
    font-size: clamp(0.92rem, 3.7vw, 1.06rem);
  }

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

  .tr-route-hero__actions--paired {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 340px) {
  .tr-route-hero__actions--paired .tr-route-hero__action-label--full {
    display: none;
  }

  .tr-route-hero__actions--paired .tr-route-hero__action-label--short {
    display: inline;
  }
}
