:root {
  --yb-ink: #16211f;
  --yb-paper: #fbfdfc;
  --yb-teal: #0f766e;
  --yb-teal-soft: #d7f2ec;
  --yb-amber: #f59e0b;
  --yb-line: #d7e2df;
}

[data-md-color-scheme="slate"] {
  --yb-ink: #edf4f2;
  --yb-paper: #121a19;
  --yb-teal-soft: #17332e;
  --yb-line: #2c3d39;
}

.md-header,
.md-tabs {
  background-color: var(--yb-teal);
}

.md-header__title,
.md-header__topic {
  color: #ffffff;
}

.md-typeset h1,
.md-typeset h2 {
  color: var(--yb-ink);
  font-weight: 750;
  letter-spacing: 0;
}

.md-typeset h1 {
  margin-top: 0;
}

.md-typeset h2 {
  border-bottom: 1px solid var(--yb-line);
  padding-bottom: .35rem;
}

.md-typeset code {
  border-radius: .35rem;
}

.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--yb-teal-soft);
  color: var(--yb-ink);
}

.md-typeset .admonition {
  border-radius: 8px;
  border-left-width: 4px;
}

.md-main__inner {
  height: auto;
  min-height: calc(100vh - 8rem);
}

.md-sidebar__scrollwrap {
  max-height: calc(100vh - 7rem);
  overscroll-behavior: contain;
}

.md-sidebar__inner {
  padding-bottom: 2.4rem;
  padding-right: .5rem;
}

.md-footer {
  isolation: isolate;
  position: relative;
  z-index: 0;
}

.md-nav {
  line-height: 1.25;
}

.md-nav__title {
  color: var(--yb-teal);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}

.md-nav__item .md-nav__link {
  border-radius: 6px;
  color: var(--yb-ink);
  font-size: .82rem;
  line-height: 1.25;
  padding: .18rem .45rem;
}

.md-nav__item .md-nav__link:hover {
  color: var(--yb-amber);
}

.md-nav__link--active {
  background: var(--yb-teal-soft);
  color: var(--yb-teal);
  font-weight: 700;
}

.md-nav__link--active:hover {
  color: var(--yb-teal);
}

.md-nav__item--nested > .md-nav__link {
  border-bottom: none;
  color: var(--yb-teal);
  font-size: .78rem;
  font-weight: 800;
  margin: .12rem .45rem;
  padding-bottom: .18rem;
}

.md-sidebar--primary .md-nav__item--section > .md-nav__link {
  margin: .12rem 0;
  padding: .18rem .3rem;
}

.md-sidebar--primary .md-nav__item--nested > .md-nav > .md-nav__list {
  border-left: 1px solid var(--yb-line);
  margin-left: .75rem;
  padding-left: .3rem;
}

.md-sidebar--secondary .md-nav__item .md-nav__link {
  font-size: .78rem;
  line-height: 1.25;
  padding: .14rem .4rem;
}

.home-hero {
  background: var(--yb-teal);
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  min-height: 220px;
  overflow: hidden;
  padding: 2.6rem 2.2rem 2rem;
  position: relative;
}

.home-hero__content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.home-hero__logo {
  color: #ffffff;
  height: 280px;
  opacity: .08;
  pointer-events: none;
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
}

.home-hero h1,
.home-hero h2,
.home-hero-title {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: .6rem;
}

.home-hero p {
  color: #e4f5f1;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  opacity: .92;
}

.home-hero__desc {
  margin-top: .4rem;
}

.home-hero__desc .version-badge {
  margin-left: .45rem;
}

.pillar-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.2rem 0 1.6rem;
}

.pillar-card {
  background: var(--yb-paper);
  border: 1px solid var(--yb-line);
  border-left: 4px solid var(--yb-teal);
  border-radius: 8px;
  padding: .9rem 1rem;
}

.pillar-card strong {
  color: var(--yb-ink);
  font-size: .92rem;
}

.pillar-card p {
  font-size: .88rem;
  margin: .35rem 0 0;
}

.steps-list {
  counter-reset: step;
  list-style: none;
  margin: 1rem 0 1.4rem;
  padding: 0;
}

.steps-list li {
  border: 1px solid var(--yb-line);
  border-radius: 8px;
  counter-increment: step;
  margin-bottom: .55rem;
  padding: .75rem 1rem;
}

.steps-list li::before {
  background: var(--yb-teal);
  border-radius: 50%;
  color: #fff;
  content: counter(step);
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  height: 1.2rem;
  line-height: 1.2rem;
  margin-right: .55rem;
  text-align: center;
  width: 1.2rem;
}

.feature-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1rem 0 1.4rem;
}

.feature-card {
  background: var(--yb-paper);
  border: 1px solid var(--yb-line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 118, 110, .06);
  padding: 1rem 1.05rem;
}

.feature-card strong {
  color: var(--yb-teal);
  display: block;
  margin-bottom: .35rem;
}

.feature-card p {
  color: var(--yb-ink);
  margin: 0;
}

.quick-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1rem 0 1.4rem;
}

.quick-card {
  background: var(--yb-paper);
  border: 1px solid var(--yb-line);
  border-radius: 8px;
  display: block;
  padding: .9rem 1rem;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.quick-card:hover {
  border-color: var(--yb-amber);
  transform: translateY(-1px);
}

.quick-card strong {
  color: var(--yb-teal);
  display: block;
  margin-bottom: .25rem;
}

.quick-card span {
  color: var(--yb-ink);
  font-size: .88rem;
}

.version-badge {
  background: var(--yb-amber);
  border-radius: 999px;
  color: #1d2a27;
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  padding: .3rem .55rem;
  vertical-align: middle;
}

.config-preview {
  background: var(--yb-paper);
  border: 1px solid var(--yb-line);
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
}

.config-preview-tabs {
  background: var(--yb-surface, transparent);
  border-bottom: 1px solid var(--yb-line);
  display: flex;
  gap: .25rem;
  padding: .35rem .5rem 0;
}

.config-preview-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--yb-ink);
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  padding: .45rem .75rem;
}

.config-preview-tab.active {
  border-bottom-color: var(--yb-teal);
  color: var(--yb-teal);
}

.config-preview-panel {
  padding: .75rem;
}

.config-preview-panel[hidden] {
  display: none;
}

.config-preview .highlight {
  margin: 0;
}

.config-preview .highlight pre {
  background: transparent;
  margin: 0;
  padding: 0;
}

.config-preview .k-form {
  margin-top: 0;
}

.config-preview .k-schema-header {
  display: none;
}

.config-preview .k-schema-item:first-child {
  border-top: 0;
}

.config-preview .k-schema-left h3 {
  font-size: .82rem;
}

.config-preview .k-schema-left p {
  font-size: .75rem;
}

.config-preview .k-schema-left .markdown {
  color: var(--yb-ink);
  font-size: .75rem;
  line-height: 1.5;
  margin: 0;
}

.config-preview .k-schema-left .markdown p {
  margin: .15rem 0 0;
}

.config-preview .k-schema-main {
  min-height: 2.2rem;
}

.config-preview-error,
.config-preview-empty {
  color: var(--yb-ink);
  font-size: .85rem;
  margin: 0;
}

@media screen and (max-width: 760px) {
  .home-hero {
    padding: 1.5rem 1.2rem;
  }

  .home-hero__logo {
    height: 180px;
    opacity: .06;
    right: -30px;
    width: 180px;
  }

  .home-hero h1,
  .home-hero-title {
    font-size: 1.55rem;
  }

}
