/* Custom CSS to enforce a purple-themed color scheme */
html[data-theme="light"] {
  --pst-color-primary: #673ab7;
  --pst-color-secondary: #ab47bc;
}

html[data-theme="dark"] {
  --pst-color-primary: #BB86FC;
  --pst-color-secondary: #CF9BFF;
}

a.reference,
a.reference.external,
a.reference.internal {
  font-weight: bold !important;
  text-decoration: none !important;
}

img.logo-img {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Home: main document title size */
.home-doc-title h1 {
  font-size: 1.8rem;
}

/* Home: breathing room between hero logo and welcome line */
h1.welcome-below-logo {
  margin-top: 1.05rem;
  margin-bottom: 0.35rem;
}

.red { color: red; font-weight: bold; }
.green { color: green; }

/* Section Navigation：确保教程子页（如添加自定义 Engine/模型）侧栏列表始终展开显示 */
.bd-docs-nav[aria-label="Section Navigation"] .bd-toc-item .bd-sidenav > ul {
  display: block !important;
}

/* 顶部右上角 GitHub 图标：明暗主题均保持可见 */
html[data-theme="light"] .fa-github,
html[data-theme="light"] .fab.fa-github,
html[data-theme="light"] .fa-brands.fa-github {
  color: #24292f;
}

html[data-theme="dark"] .fa-github,
html[data-theme="dark"] .fab.fa-github,
html[data-theme="dark"] .fa-brands.fa-github {
  color: #f0f6fc;
}

/* if you want also to remove underline on hover
a.reference:hover,
a.reference.external:hover,
a.reference.internal:hover {
  text-decoration: none !important;
} */

/* ── Section heading text (shared) ── */
.demo-section-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--pst-color-primary, #673ab7);
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Demo stage layout ── */
.demo-stage {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
  position: relative;
}

.demo-arrow {
  flex: 0 0 auto;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  opacity: .5;
  transition: opacity .2s, color .2s;
  padding: 0;
}
.demo-arrow:hover {
  opacity: 1;
  color: var(--pst-color-primary, #673ab7);
}

html[data-theme="dark"] .demo-arrow {
  color: #666;
}
html[data-theme="dark"] .demo-arrow:hover {
  color: var(--pst-color-primary, #BB86FC);
}

.demo-stage-inner {
  flex: 1;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
  min-height: 0;
}

.demo-video-area {
  flex: 1;
  min-width: 0;
  background: #000;
  display: flex;
}
.demo-video-area video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.demo-desc-panel {
  flex: 0 0 18%;
  max-width: 168px;
  min-width: 120px;
  background: #fdf6e3;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.demo-desc-title {
  font-size: .76rem;
  font-weight: 700;
  color: #333;
  margin-bottom: .45rem;
  line-height: 1.3;
}
.demo-desc-text {
  font-size: .65rem;
  color: #555;
  line-height: 1.5;
}

html[data-theme="dark"] .demo-desc-panel {
  background: #2a2520;
}
html[data-theme="dark"] .demo-desc-title {
  color: #e8dcc8;
}
html[data-theme="dark"] .demo-desc-text {
  color: #b0a48e;
}
html[data-theme="dark"] .demo-stage-inner {
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

/* Thumbnail strip */
.demo-thumb-strip {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  align-items: stretch;
}

.demo-thumb {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  padding: 0;
  background: #16161f;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s, filter .25s, transform .25s;
}
.demo-thumb:not(.active) img {
  opacity: 0.72;
  filter: saturate(0.78) brightness(0.9);
}
.demo-thumb.active img {
  opacity: 1;
  filter: none;
}
.demo-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.demo-thumb:hover img {
  opacity: 1;
  filter: none;
}
.demo-thumb.active {
  border-color: var(--pst-color-primary, #673ab7);
  box-shadow: 0 4px 16px rgba(103,58,183,.25);
}

html[data-theme="dark"] .demo-thumb {
  background: #0d0d14;
}
html[data-theme="dark"] .demo-thumb.active {
  border-color: var(--pst-color-primary, #BB86FC);
  box-shadow: 0 4px 16px rgba(187,134,252,.2);
}

@media (max-width: 600px) {
  .demo-stage-inner {
    flex-direction: column;
  }
  .demo-desc-panel {
    max-width: none;
    min-width: 0;
    padding: .8rem;
  }
  .demo-thumb-strip {
    flex-wrap: wrap;
  }
  .demo-thumb {
    flex: 0 0 calc(33% - 6px);
  }
}

/* ── Core Modules ── */
.core-modules-section {
  width: 100%;
  margin: 2.5rem 0 2rem;
}

.core-modules-cluster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Four cards in one row: All-in-One | Modular | Flash Fused | Guided */
.core-modules-subrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.core-modules-subrow .core-module-card {
  height: 100%;
  min-height: 0;
}

.core-module-card--featured {
  width: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0;
  align-self: stretch;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 960px) {
  .core-modules-subrow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .core-modules-subrow {
    grid-template-columns: 1fr;
  }
  .core-module-card--featured .core-module-visual {
    min-height: 0;
  }
  .core-module-card--featured .core-module-visual > .core-module-label {
    min-height: auto;
  }
}

.core-module-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  transition: box-shadow .3s, transform .3s;
  box-shadow: 0 1px 4px rgba(103,58,183,.06);
}
.core-module-card:hover {
  box-shadow: 0 8px 24px rgba(103,58,183,.14);
  transform: translateY(-2px);
}

.core-module-visual {
  flex: 1 1 auto;
  width: 100%;
  min-height: 5.75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.85rem 0.95rem;
  text-align: center;
}

/* Titles dominate; descriptions are secondary (smaller, lighter). */
.core-module-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: 0.05em;
}

.core-module-label-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  line-height: 1.18;
}
/* Match single-line card titles — previously l1/l2 were smaller and looked weak. */
.core-module-label-stacked .core-module-l1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.core-module-label-stacked .core-module-l2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.core-module-desc {
  display: block;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Four-up grid: title on top, description below; align title bands */
.core-modules-subrow .core-module-visual {
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.52rem;
  padding: 0.75rem 0.5rem 0.8rem;
  text-align: center;
}

.core-modules-subrow .core-module-visual > .core-module-label {
  flex: 0 0 auto;
  width: 100%;
  min-height: 3.75rem;
  max-height: none;
  margin: 0;
  padding: 0 0.12rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.core-modules-subrow .core-module-visual > .core-module-label.core-module-label-stacked {
  flex-direction: column;
  align-items: center;
  gap: 0.14rem;
  line-height: 1.18;
}
.core-modules-subrow .core-module-label-stacked .core-module-l1,
.core-modules-subrow .core-module-label-stacked .core-module-l2 {
  text-align: center;
  width: 100%;
}

.core-modules-subrow .core-module-visual > .core-module-desc {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  align-self: stretch;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.38;
  text-align: center;
  text-overflow: ellipsis;
}

/* Core modules: featured hub + three branches (harmonious purple family) */
.core-module-card--featured .core-module-visual {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 0.75rem 0.5rem 0.8rem;
  gap: 0.52rem;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(135deg, #5d4edc 0%, #4532c4 38%, #3627a8 72%, #2d218f 100%);
}
.core-module-card--featured .core-module-visual > .core-module-label {
  flex: 0 0 auto;
  width: 100%;
  min-height: 3.75rem;
  margin: 0;
  padding: 0 0.12rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.core-module-card--featured .core-module-visual > .core-module-desc {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.38;
  text-align: center;
  text-overflow: ellipsis;
}
/* Featured hub: bright title gradient on deep fill */
.core-module-card--featured .core-module-label {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  white-space: normal;
  line-height: 1.22;
  max-width: 100%;
  background: linear-gradient(
    98deg,
    #ffffff 0%,
    #ffffff 8%,
    #faf5ff 18%,
    #f0e7ff 30%,
    #e9d5ff 42%,
    #ddd6fe 52%,
    #c4b5fd 60%,
    #ede9fe 74%,
    #faf5ff 88%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 480px) {
  .core-module-card--featured .core-module-label {
    font-size: 1.08rem;
    white-space: normal;
    text-align: center;
    padding: 0 0.5rem;
    line-height: 1.25;
  }
  .core-module-card--featured .core-module-visual > .core-module-label {
    min-height: auto;
    max-height: none;
  }
}
html[data-theme="dark"] .core-module-card--featured .core-module-label {
  background: linear-gradient(
    98deg,
    #ffffff 0%,
    #fffbeb 8%,
    #fef9c3 16%,
    #fbcfe8 28%,
    #f5d0fe 40%,
    #e9d5ff 52%,
    #ddd6fe 62%,
    #ede9fe 78%,
    #faf5ff 90%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards 2–4: bright lavender title gradient */
.core-modules-subrow .core-module-card:nth-child(2) .core-module-visual > .core-module-label:not(.core-module-label-stacked),
.core-modules-subrow .core-module-card:nth-child(4) .core-module-visual > .core-module-label:not(.core-module-label-stacked) {
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    #faf5ff 12%,
    #f5f3ff 24%,
    #ede9fe 38%,
    #e9d5ff 50%,
    #ddd6fe 58%,
    #e9d5ff 70%,
    #f5f3ff 84%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.core-modules-subrow .core-module-card:nth-child(3) .core-module-label-stacked .core-module-l1,
.core-modules-subrow .core-module-card:nth-child(3) .core-module-label-stacked .core-module-l2 {
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    #faf5ff 12%,
    #f5f3ff 24%,
    #ede9fe 38%,
    #e9d5ff 50%,
    #ddd6fe 58%,
    #e9d5ff 70%,
    #f5f3ff 84%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .core-modules-subrow .core-module-card:nth-child(2) .core-module-visual > .core-module-label:not(.core-module-label-stacked),
html[data-theme="dark"] .core-modules-subrow .core-module-card:nth-child(4) .core-module-visual > .core-module-label:not(.core-module-label-stacked),
html[data-theme="dark"] .core-modules-subrow .core-module-card:nth-child(3) .core-module-label-stacked .core-module-l1,
html[data-theme="dark"] .core-modules-subrow .core-module-card:nth-child(3) .core-module-label-stacked .core-module-l2 {
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    #fffbeb 8%,
    #fef9c3 16%,
    #fbcfe8 28%,
    #f5d0fe 40%,
    #e9d5ff 52%,
    #ddd6fe 62%,
    #ede9fe 76%,
    #faf5ff 90%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.core-modules-subrow .core-module-card:nth-child(2) .core-module-visual {
  background: linear-gradient(135deg, #3f56c4 0%, #2d429e 52%, #243680 100%);
}
.core-modules-subrow .core-module-card:nth-child(3) .core-module-visual {
  background: linear-gradient(135deg, #5248d0 0%, #3d32b0 50%, #302699 100%);
}
.core-modules-subrow .core-module-card:nth-child(4) .core-module-visual {
  background: linear-gradient(135deg, #6b52d8 0%, #4f36b8 48%, #3f2a9a 100%);
}

html[data-theme="dark"] .core-module-card {
  background: #1a1a2e;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
html[data-theme="dark"] .core-module-card--featured .core-module-visual {
  background: linear-gradient(135deg, #4a42a8 0%, #3a3288 42%, #2c266e 100%);
}
html[data-theme="dark"] .core-modules-subrow .core-module-card:nth-child(2) .core-module-visual {
  background: linear-gradient(135deg, #354898 0%, #283a7c 55%, #1f2f68 100%);
}
html[data-theme="dark"] .core-modules-subrow .core-module-card:nth-child(3) .core-module-visual {
  background: linear-gradient(135deg, #403892 0%, #322a78 52%, #282062 100%);
}
html[data-theme="dark"] .core-modules-subrow .core-module-card:nth-child(4) .core-module-visual {
  background: linear-gradient(135deg, #5240a0 0%, #3f2e86 50%, #322270 100%);
}
html[data-theme="dark"] .core-module-desc {
  color: rgba(255, 255, 255, 0.74);
}
html[data-theme="dark"] .core-module-card:hover {
  box-shadow: 0 8px 24px rgba(187,134,252,.15);
}

/* ── Classroom: 2×2 grid, proportions aligned with former 3×2 (six-card) layout ── */
.classroom-section {
  width: 100%;
  margin: 3.5rem 0 1.75rem;
}

.classroom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .classroom-grid {
    gap: 1.15rem;
  }
}
@media (max-width: 480px) {
  .classroom-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.classroom-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.classroom-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
.classroom-card:hover .classroom-card-title {
  color: var(--pst-color-primary, #673ab7);
}

.classroom-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #eef1f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.classroom-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.classroom-card-img.classroom-card-img--framework {
  background: #fff;
}
.classroom-card-img.classroom-card-img--framework img {
  object-fit: contain;
  padding: 0.35rem;
  box-sizing: border-box;
}
.classroom-card-img.classroom-card-img--deploy img {
  object-fit: contain;
}

/* Mini “document page” + per-card accent pattern */
.classroom-doc-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  box-sizing: border-box;
  background: linear-gradient(155deg, #e8ecf1 0%, #dfe5ed 100%);
}
.classroom-doc-paper {
  position: relative;
  width: clamp(3rem, 14vw, 3.85rem);
  height: clamp(3.65rem, 17vw, 4.65rem);
  background: #fff;
  border-radius: 4px;
  border: 1px solid #cfd6df;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
  padding: 0.34rem 0.38rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-sizing: border-box;
}
.classroom-doc-bar {
  height: 0.26rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.classroom-doc-thumb--layers .classroom-doc-bar {
  background: linear-gradient(90deg, #6d5acd, #a78bfa);
}
.classroom-doc-thumb--config .classroom-doc-bar {
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
}
.classroom-doc-thumb--model .classroom-doc-bar {
  background: linear-gradient(90deg, #c2410c, #fb923c);
}
.classroom-doc-thumb--deploy .classroom-doc-bar {
  background: linear-gradient(90deg, #be123c, #f472b6);
}
.classroom-doc-line {
  height: 0.13rem;
  border-radius: 1px;
  background: #e2e5e9;
  width: 100%;
  flex-shrink: 0;
}
.classroom-doc-line--short {
  width: 58%;
}

.classroom-doc-pattern {
  position: absolute;
  display: block;
  pointer-events: none;
}
/* Architecture: stacked layers */
.classroom-doc-pattern--layers {
  right: 0.28rem;
  bottom: 0.32rem;
  width: 0.78rem;
  height: 3px;
  background: #6d5acd;
  border-radius: 1px;
  opacity: 0.82;
  box-shadow:
    0 -6px 0 #6d5acd,
    0 -12px 0 rgba(109, 90, 205, 0.42);
}
/* Config: dial */
.classroom-doc-pattern--config {
  right: 0.26rem;
  bottom: 0.3rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid #0f766e;
  border-radius: 50%;
  opacity: 0.88;
  box-sizing: border-box;
}
.classroom-doc-pattern--config::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 38%;
  margin: -36% 0 0 -1px;
  background: #0f766e;
  border-radius: 1px;
}
/* Custom model: plus in dashed box */
.classroom-doc-pattern--model {
  right: 0.26rem;
  bottom: 0.32rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 2px dashed #c2410c;
  border-radius: 2px;
  opacity: 0.88;
  box-sizing: border-box;
}
.classroom-doc-pattern--model::before,
.classroom-doc-pattern--model::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #c2410c;
  border-radius: 1px;
}
.classroom-doc-pattern--model::before {
  width: 55%;
  height: 2px;
  margin: -1px 0 0 -27.5%;
}
.classroom-doc-pattern--model::after {
  width: 2px;
  height: 55%;
  margin: -27.5% 0 0 -1px;
}
/* Deploy: base + node */
.classroom-doc-pattern--deploy {
  right: 0.22rem;
  bottom: 0.22rem;
  width: 0.85rem;
  height: 0.42rem;
  border: 2px solid #be123c;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  opacity: 0.85;
  box-sizing: border-box;
}
.classroom-doc-pattern--deploy::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #be123c;
  opacity: 0.75;
}

.classroom-card-body {
  padding: 0.55rem 0.75rem 0.5rem;
}

.classroom-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.2rem;
  line-height: 1.3;
  transition: color 0.2s;
}

.classroom-card-desc {
  font-size: 0.68rem;
  color: #656d76;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme="dark"] .classroom-card {
  background: #1c1c2e;
  border-color: #3a3a5c;
}
html[data-theme="dark"] .classroom-card:hover {
  box-shadow: 0 8px 28px rgba(187, 134, 252, 0.12);
}
html[data-theme="dark"] .classroom-card-img {
  background: #1e1e32;
}
html[data-theme="dark"] .classroom-card-img.classroom-card-img--framework {
  background: #fff;
}
html[data-theme="dark"] .classroom-doc-thumb {
  background: linear-gradient(155deg, #252538 0%, #1a1a2e 100%);
}
html[data-theme="dark"] .classroom-doc-paper {
  background: #2a2a42;
  border-color: #454560;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .classroom-doc-line {
  background: #4b4b65;
}
html[data-theme="dark"] .classroom-doc-pattern--layers {
  background: #a78bfa;
  box-shadow:
    0 -5px 0 #a78bfa,
    0 -10px 0 rgba(167, 139, 250, 0.4);
}
html[data-theme="dark"] .classroom-doc-pattern--config {
  border-color: #5eead4;
}
html[data-theme="dark"] .classroom-doc-pattern--config::after {
  background: #5eead4;
}
html[data-theme="dark"] .classroom-doc-pattern--model {
  border-color: #fb923c;
}
html[data-theme="dark"] .classroom-doc-pattern--model::before,
html[data-theme="dark"] .classroom-doc-pattern--model::after {
  background: #fb923c;
}
html[data-theme="dark"] .classroom-doc-pattern--deploy {
  border-color: #f472b6;
}
html[data-theme="dark"] .classroom-doc-pattern--deploy::before {
  background: #f472b6;
}
html[data-theme="dark"] .classroom-card-title {
  color: #e0e0e0;
}
html[data-theme="dark"] .classroom-card-desc {
  color: #9ca3af;
}

/* ── Pipeline Table (architecture overview) ── */
.pipeline-table {
  width: 100%;
  display: flex;
  gap: 3px;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0d0d1a;
}
.pipeline-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pipeline-header {
  padding: .55rem .4rem;
  text-align: center;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  white-space: nowrap;
}
.pipeline-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px;
  background: rgba(255,255,255,.04);
}
.pipeline-item {
  padding: .35rem .45rem;
  font-size: .64rem;
  font-weight: 600;
  color: #c8ccd4;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  text-align: center;
  line-height: 1.35;
}
.pipeline-col:nth-child(1) .pipeline-header { background: linear-gradient(135deg, #4a6741, #3d5636); }
.pipeline-col:nth-child(3) .pipeline-header { background: linear-gradient(135deg, #3b4a8a, #2e3d78); }
.pipeline-col:nth-child(5) .pipeline-header { background: linear-gradient(135deg, #5b4a9e, #4a3b8a); }
.pipeline-col:nth-child(7) .pipeline-header { background: linear-gradient(135deg, #7c4a9e, #6a3b8a); }
.pipeline-col:nth-child(9) .pipeline-header { background: linear-gradient(135deg, #9e4a8a, #8a3b78); }

.pipeline-arrow {
  flex: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: .7rem;
  background: transparent;
  align-self: center;
}

@media (max-width: 600px) {
  .pipeline-table {
    flex-direction: column;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    flex: 0 0 12px;
  }
}

html[data-theme="light"] .pipeline-table {
  background: #e8eaf0;
}
html[data-theme="light"] .pipeline-body {
  background: rgba(0,0,0,.06);
}
html[data-theme="light"] .pipeline-item {
  background: rgba(255,255,255,.7);
  color: #2c3040;
}
