.mtd-ts-focus-page #ld-focus-sidebar,
.mtd-ts-focus-page #ld-focus-sidebar-toggle,
.mtd-ts-focus-page .ld-focus-sidebar-trigger,
.mtd-ts-focus-page .ld-lesson-navigation-toggle,
.mtd-ts-focus-page .ld-virtual-instructor-chatbox,
.mtd-ts-focus-page .ld-virtual-instructor-chatbox-toggle {
  display: none !important;
}

body.mtd-ts-focus-page .ld-focus-main,
body.mtd-ts-focus-page #ld-focus-content,
.mtd-ts-focus-page .learndash-wrapper--lesson.ld-layout--no-sidebar,
.mtd-ts-focus-page main.ld-layout__content,
.mtd-ts-focus-page .ld-tab-bar,
.mtd-ts-focus-page #ld-tab-panel-content,
.mtd-ts-focus-page #ld-tab-panel-content > *,
.mtd-ts-focus-page #traffic-signs-app {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.mtd-ts-focus-page .ld-focus-main {
  margin-left: 0 !important;
}

body.mtd-ts-focus-page #ld-focus-content {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

body.mtd-ts-focus-page #ld-tab-panel-content {
  padding: 0 !important;
}

.mtd-ts-app {
  width: min(100%, 1760px);
  margin: 0 auto;
  color: #11253a;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.mtd-ts-shell {
  --ts-bg: #edf4fb;
  --ts-panel: #ffffff;
  --ts-border: #d5e2ee;
  --ts-ink: #11253a;
  --ts-muted: #536b81;
  --ts-blue: #145fc2;
  --ts-blue-strong: #0d4c99;
  display: grid;
  grid-template-columns: clamp(280px, 24vw, 360px) minmax(0, 1fr);
  height: clamp(720px, calc(100vh - 140px), 1080px);
  border: 1px solid var(--ts-border);
  border-radius: 26px;
  overflow: hidden;
  background: var(--ts-panel);
  box-shadow: 0 24px 60px rgba(13, 46, 88, 0.14);
  color: var(--ts-ink);
  isolation: isolate;
}

.mtd-ts-shell * {
  box-sizing: border-box;
}

.mtd-ts-sidebar {
  padding: 22px 18px 20px;
  border-right: 1px solid var(--ts-border);
  background:
    radial-gradient(circle at top left, rgba(20, 95, 194, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.mtd-ts-sidebar-head {
  padding: 4px 4px 16px;
  border-bottom: 1px solid rgba(20, 95, 194, 0.1);
}

.mtd-ts-sidebar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mtd-ts-sidebar-stat {
  padding: 12px 12px 10px;
  border: 1px solid rgba(20, 95, 194, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.mtd-ts-sidebar-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: #10253b;
}

.mtd-ts-sidebar-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ts-muted);
}

.mtd-ts-kicker,
.mtd-ts-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 95, 200, 0.1);
  color: #0b4ea6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mtd-ts-sidebar-title {
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.mtd-ts-sidebar-copy,
.mtd-ts-subtitle,
.mtd-ts-copy {
  color: var(--ts-muted);
  line-height: 1.7;
}

.mtd-ts-nav {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.mtd-ts-nav-item {
  width: 100%;
  border: 1px solid rgba(20, 95, 194, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.mtd-ts-nav-item:hover {
  transform: translateX(2px);
  border-color: rgba(20, 95, 194, 0.14);
  box-shadow: 0 12px 24px rgba(13, 46, 88, 0.08);
}

.mtd-ts-nav-item.is-active {
  border-color: rgba(15, 95, 200, 0.18);
  background: linear-gradient(135deg, rgba(15, 95, 200, 0.13), rgba(255, 255, 255, 0.86));
  box-shadow: inset 3px 0 0 var(--ts-blue);
}

.mtd-ts-nav-title {
  display: block;
  font-weight: 700;
}

.mtd-ts-nav-meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ts-blue-strong);
}

.mtd-ts-nav-count {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ts-muted);
}

.mtd-ts-main {
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(circle at top right, rgba(20, 95, 194, 0.08), transparent 22%),
    var(--ts-bg);
}

.mtd-ts-main-scroll {
  height: 100%;
  overflow: auto;
  padding: 34px 38px 42px;
}

.mtd-ts-hero,
.mtd-ts-copy {
  padding: 28px;
  border: 1px solid var(--ts-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 38px rgba(13, 46, 88, 0.07);
}

.mtd-ts-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.mtd-ts-hero-copy {
  display: grid;
  gap: 16px;
}

.mtd-ts-hero-side {
  display: grid;
  gap: 16px;
}

.mtd-ts-title {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
}

.mtd-ts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.mtd-ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(15, 95, 200, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--ts-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.mtd-ts-btn-primary {
  background: linear-gradient(135deg, #0f5fc8, #0b4ea6);
  border-color: transparent;
  color: #fff;
}

.mtd-ts-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mtd-ts-meta {
  padding: 16px 16px 14px;
  border: 1px solid rgba(20, 95, 194, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.mtd-ts-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ts-muted);
}

.mtd-ts-meta-value {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  color: #10253b;
}

.mtd-ts-guide-card {
  padding: 18px 18px 16px;
  border: 1px solid rgba(20, 95, 194, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 255, 0.96) 100%);
}

.mtd-ts-guide-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 95, 194, 0.1);
  color: var(--ts-blue-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtd-ts-guide-title {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.mtd-ts-guide-copy {
  margin: 0;
  color: var(--ts-muted);
  line-height: 1.65;
}

.mtd-ts-guide-copy + .mtd-ts-guide-copy {
  margin-top: 10px;
}

.mtd-ts-copy {
  margin-top: 20px;
}

.mtd-ts-copy a {
  color: #0b4ea6;
}

.mtd-ts-utility {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-top: 22px;
}

.mtd-ts-search-wrap {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
}

.mtd-ts-search-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ts-muted);
}

.mtd-ts-search {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(20, 95, 194, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ts-ink);
  font-size: 14px;
  outline: none;
}

.mtd-ts-search:focus {
  border-color: var(--ts-blue);
  box-shadow: 0 0 0 3px rgba(20, 95, 194, 0.12);
}

.mtd-ts-results {
  margin: 0;
  font-size: 14px;
  color: var(--ts-muted);
}

.mtd-ts-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 22px;
}

.mtd-ts-card {
  border: 1px solid var(--ts-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(13, 46, 88, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mtd-ts-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 95, 194, 0.16);
  box-shadow: 0 22px 42px rgba(13, 46, 88, 0.08);
}

.mtd-ts-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(20, 95, 194, 0.08), transparent 42%),
    #f8fbff;
}

.mtd-ts-card-media img {
  max-width: 100%;
  max-height: 164px;
  display: block;
}

.mtd-ts-card-body {
  padding: 18px;
}

.mtd-ts-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 95, 194, 0.08);
  color: var(--ts-blue-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtd-ts-card-title {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.mtd-ts-card-caption {
  margin: 10px 0 0;
  color: var(--ts-muted);
  font-size: 14px;
  line-height: 1.6;
}

.mtd-ts-card-actions {
  margin-top: 14px;
}

.mtd-ts-card-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ts-blue-strong);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mtd-ts-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(20, 95, 194, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ts-muted);
  text-align: center;
}

.mtd-ts-error {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #f4b7b7;
  background: #fff4f4;
  color: #8b1e1e;
}

@media (max-width: 1023px) {
  body.mtd-ts-focus-page #ld-focus-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .mtd-ts-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .mtd-ts-nav {
    max-height: none;
  }

  .mtd-ts-main-scroll {
    padding: 16px 14px 24px;
  }

  .mtd-ts-hero,
  .mtd-ts-copy {
    padding: 20px;
  }

  .mtd-ts-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.mtd-ts-focus-page #ld-focus-content {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .mtd-ts-title {
    font-size: 30px;
  }

  .mtd-ts-meta-grid {
    grid-template-columns: 1fr;
  }

  .mtd-ts-utility {
    align-items: stretch;
  }

  .mtd-ts-search-wrap {
    min-width: 100%;
  }

  .mtd-ts-main-scroll {
    padding: 14px 10px 20px;
  }

  .mtd-ts-hero,
  .mtd-ts-copy {
    padding: 18px;
    border-radius: 20px;
  }
}
