html[data-theme="light"] {
  --pst-color-primary: #155e75;
  --pst-color-secondary: #b4484f;
  --pst-color-accent: #1b7f70;
  --adt-ink: #10212b;
  --adt-muted: #52646f;
  --adt-panel: #ffffff;
  --adt-panel-soft: #f5f8fa;
  --adt-border: #d8e2e7;
  --adt-hero-scrim: rgba(7, 20, 30, 0.88);
  --adt-hero-scrim-soft: rgba(7, 20, 30, 0.72);
}

html[data-theme="dark"] {
  --pst-color-primary: #4ecdc0;
  --pst-color-secondary: #f2b84b;
  --pst-color-accent: #67d7ca;
  --adt-ink: #edf6f8;
  --adt-muted: #a9bac2;
  --adt-panel: #111d25;
  --adt-panel-soft: #0c1820;
  --adt-border: #263944;
  --adt-hero-scrim: rgba(4, 13, 20, 0.9);
  --adt-hero-scrim-soft: rgba(4, 13, 20, 0.76);
}

.bd-main .bd-content .bd-article-container {
  max-width: 1120px;
}

.language-banner {
  align-items: center;
  background: var(--adt-panel-soft);
  border: 1px solid var(--adt-border);
  border-radius: 8px;
  color: var(--adt-muted);
  display: flex;
  font-size: 0.86rem;
  gap: 0.45rem;
  justify-content: flex-end;
  margin: 0 0 1rem;
  padding: 0.45rem 0.7rem;
}

.language-banner a {
  color: var(--pst-color-primary);
  font-weight: 600;
  text-decoration: none;
}

.language-banner a:hover {
  text-decoration: underline;
}

.busuanzi-stats {
  align-items: center;
  border-top: 1px solid var(--adt-border);
  color: var(--adt-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.5rem 1rem;
  justify-content: flex-end;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.busuanzi-stats strong {
  color: var(--adt-ink);
  font-weight: 800;
}

.adt-home-page > h1 {
  height: 1px;
  margin: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.adt-hero {
  background:
    linear-gradient(90deg, var(--adt-hero-scrim) 0%, var(--adt-hero-scrim-soft) 70%, rgba(7, 20, 30, 0.34) 100%),
    url("../_images/quickstart_spectrum.png");
  background-position: center;
  background-size: cover;
  border: 1px solid var(--adt-border);
  border-radius: 8px;
  color: #ffffff;
  min-height: 320px;
  overflow: hidden;
  padding: 3.25rem 3rem;
  position: relative;
}

.adt-hero-content {
  max-width: 570px;
  position: relative;
  z-index: 1;
}

.adt-kicker {
  color: #79ddd3;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.adt-hero h1 {
  color: #ffffff;
  font-size: 3.6rem;
  line-height: 1.02;
  margin: 0;
}

.adt-lede {
  color: #dbe9ef;
  font-size: 1.2rem;
  line-height: 1.65;
  margin: 1.25rem 0 0;
  max-width: 620px;
}

.adt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.adt-button {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.68rem 1rem;
  text-decoration: none;
}

.adt-button-primary {
  background: #34b6a4;
  color: #07141e;
}

.adt-button-primary:hover {
  background: #51c9b9;
  color: #07141e;
  text-decoration: none;
}

.adt-button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.adt-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
}

.adt-install {
  background: rgba(4, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #f6fbfd;
  display: inline-flex;
  font-family: var(--pst-font-family-monospace);
  font-size: 0.98rem;
  margin-top: 1.2rem;
  padding: 0.72rem 0.9rem;
}

.adt-home-page h2 {
  color: var(--adt-ink);
  font-size: 1.55rem;
  margin-top: 2rem;
}

.adt-home-page .toctree-wrapper {
  background: var(--adt-panel-soft);
  border: 1px solid var(--adt-border);
  border-radius: 8px;
  margin-top: 0.8rem;
  padding: 1.15rem 1.25rem;
}

.adt-home-page .toctree-wrapper .caption {
  color: var(--adt-ink);
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.adt-home-page .toctree-wrapper ul {
  margin-bottom: 0;
}

.adt-home-page .toctree-wrapper li {
  margin: 0.24rem 0;
}

.adt-quick-grid,
.adt-feature-grid,
.adt-output-grid {
  margin-top: 0.8rem;
}

.adt-home-page .sd-card {
  border: 1px solid var(--adt-border);
  border-radius: 8px;
  box-shadow: none;
  height: 100%;
}

.adt-home-page .sd-card:hover {
  border-color: var(--pst-color-primary);
  box-shadow: 0 10px 24px rgba(16, 33, 43, 0.1);
}

.adt-home-page .sd-card-title {
  color: var(--adt-ink);
  font-size: 1rem;
  font-weight: 700;
}

.adt-home-page .sd-card-text {
  color: var(--adt-muted);
  line-height: 1.58;
}

.adt-output-grid .sd-col {
  color: var(--adt-muted);
  font-weight: 700;
}

.adt-output-image {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--adt-border);
  border-radius: 8px;
  display: block;
  margin-bottom: 0.6rem;
  object-fit: cover;
  width: 100%;
}

.bd-header .navbar-brand img {
  height: 2.25rem;
}

.bd-header .navbar-brand p.title {
  font-weight: 800;
}

pre {
  border-radius: 8px;
}

@media (max-width: 760px) {
  .language-banner {
    justify-content: flex-start;
  }

  .adt-hero {
    background:
      linear-gradient(90deg, rgba(7, 20, 30, 0.92) 0%, rgba(7, 20, 30, 0.84) 100%),
      url("../_images/quickstart_spectrum.png");
    background-position: center;
    background-size: cover;
    min-height: 310px;
    padding: 2rem 1.25rem;
  }

  .adt-hero h1 {
    font-size: 2.45rem;
  }

  .adt-lede {
    font-size: 1.05rem;
  }
}
