:root {
  --tda-ink: #182230;
  --tda-muted: #667085;
  --tda-line: #d5dce8;
  --tda-panel: #f7f9fc;
  --tda-soft: #eef3f8;
  --tda-blue: #1f4e79;
  --tda-teal: #1b7b7a;
  --tda-amber: #a66321;
  --tda-green: #28695b;
}

.md-header,
.md-tabs {
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.08);
}

.md-header {
  background: #172033;
}

.md-main {
  background: linear-gradient(180deg, #f6f8fb 0, #ffffff 220px);
}

.md-content {
  background: #fff;
}

.md-typeset {
  color: var(--tda-ink);
  font-size: .76rem;
  line-height: 1.62;
}

.md-typeset h1 {
  font-weight: 800;
  letter-spacing: 0;
  color: #142033;
  margin: .3rem 0 .95rem;
  font-size: clamp(1.45rem, 2.15vw, 1.95rem);
  line-height: 1.22;
}

.md-typeset h2 {
  margin-top: 1.9em;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--tda-line);
  font-weight: 750;
  color: #1b2b41;
}

.md-typeset h3 {
  font-weight: 700;
  color: #26364c;
}

.md-typeset p {
  margin-top: .7em;
  margin-bottom: .7em;
}

.tda-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: 36px 38px 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, .98), rgba(31, 78, 121, .95) 58%, rgba(27, 123, 122, .92)),
    #172033;
  color: #fff;
  box-shadow: 0 16px 44px rgba(23, 32, 51, .16);
}

.tda-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 220px;
  transform: rotate(-18deg);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
}

.tda-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

.tda-hero p {
  max-width: 820px;
  margin: .35rem 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.02rem;
}

.tda-hero .tda-hero-label {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tda-hero .tda-hero-subtitle {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
}

.tda-hero .tda-hero-note {
  max-width: 720px;
  color: rgba(255, 255, 255, .76);
  font-size: .9rem;
}

.tda-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.tda-summary-card {
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .08);
}

.tda-summary-card strong,
.tda-summary-card span {
  display: block;
}

.tda-summary-card strong {
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.3;
}

.tda-summary-card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  line-height: 1.35;
}

.tda-section-lead {
  max-width: 880px;
  color: #4a5568;
  font-size: .92rem;
}

.tda-new-joiner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 28px;
  padding: 18px 20px;
  border: 1px solid #bfd2e4;
  border-left: 5px solid var(--tda-teal);
  border-radius: 8px;
  background: #f7fbfc;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .055);
}

.tda-new-joiner h2 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #172033;
  font-size: 1.05rem;
}

.tda-new-joiner p {
  margin: .2rem 0;
  color: #3b4a5f;
  font-size: .86rem;
}

.tda-start-link {
  flex: 0 0 auto;
  border: 1px solid #aac3d8;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  color: var(--tda-blue);
  font-size: .78rem;
  font-weight: 800;
}

.tda-lesson-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--tda-line);
}

.tda-lesson-nav__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  border: 1px solid #d5e0ea;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fbfd;
  color: var(--tda-ink);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tda-lesson-nav__item:hover {
  border-color: #85b9c0;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .08);
  transform: translateY(-1px);
}

.tda-lesson-nav__item span {
  color: var(--tda-muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tda-lesson-nav__item strong {
  margin-top: 4px;
  color: var(--tda-blue);
  font-size: .78rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .tda-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tda-new-joiner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tda-start-link {
    width: 100%;
    text-align: center;
  }

  .tda-lesson-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .tda-hero-metrics {
    grid-template-columns: 1fr;
  }
}

.tda-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.tda-card {
  min-height: 154px;
  border: 1px solid var(--tda-line);
  border-radius: 8px;
  padding: 18px 18px 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .055);
}

.tda-card h3 {
  margin: 0 0 8px;
  color: #1d3550;
  font-size: .94rem;
  line-height: 1.35;
}

.tda-card p {
  margin: .35rem 0;
}

.tda-meta {
  color: var(--tda-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.tda-module-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: #e7f0f7;
  color: var(--tda-blue);
  font-size: .78rem;
  font-weight: 800;
}

.tda-course-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.tda-course-item {
  border: 1px solid var(--tda-line);
  border-left: 4px solid var(--tda-blue);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
}

.tda-course-item strong {
  display: block;
  margin-bottom: 4px;
  color: #172033;
}

.tda-course-item span {
  display: block;
  color: var(--tda-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.tda-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.tda-principles span {
  border: 1px solid #cbd7e6;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fbfd;
  color: #26364c;
  font-size: .82rem;
  font-weight: 700;
}

.tda-kpi {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 5px 14px 0;
  padding: 3px 8px;
  border: 1px solid #d6e1ee;
  border-radius: 6px;
  background: #f5f8fc;
  color: #315d85;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.25;
}

.tda-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

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

.tda-track {
  border-left: 4px solid var(--tda-teal);
  border-radius: 8px;
  padding: 16px 16px 14px;
  background: var(--tda-panel);
}

.tda-track strong {
  color: var(--tda-ink);
}

.tda-track span {
  display: block;
  margin-top: 6px;
  color: var(--tda-muted);
  font-size: .9rem;
}

.tda-authority-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
  gap: 12px;
  align-items: start;
  margin: 26px 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--tda-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  box-shadow: 0 10px 28px rgba(23, 32, 51, .06);
}

.tda-authority-panel h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--tda-ink);
  font-size: 1.12rem;
  line-height: 1.35;
}

.tda-authority-panel p {
  margin: .35rem 0;
  color: var(--tda-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.tda-eyebrow {
  color: var(--tda-teal) !important;
  font-size: .68rem !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tda-authority-rule {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  border-left: 4px solid var(--tda-teal);
  border-radius: 8px;
  padding: 14px 16px;
  background: #eef7f7;
}

.tda-authority-rule strong {
  flex: 0 0 auto;
  color: var(--tda-ink);
  font-size: .82rem;
}

.tda-authority-rule span {
  color: #435266;
  font-size: .82rem;
  line-height: 1.5;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--tda-line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(23, 32, 51, .045);
}

.md-typeset table:not([class]) th {
  background: #edf3f8;
  color: var(--tda-ink);
  font-weight: 800;
}

.md-typeset table:not([class]) td {
  vertical-align: top;
}

.md-typeset blockquote {
  border-left-color: var(--tda-teal);
  color: #334155;
  background: #f8fbfd;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px;
}

.md-typeset a.headerlink {
  opacity: .25;
}
