:root {
  --vase-teal: #157f79;
  --vase-teal-dark: #0f615d;
  --vase-ink: #182230;
  --vase-soft: #edf7f6;
}

.wy-side-nav-search {
  background: var(--vase-teal-dark);
}

.wy-nav-top {
  background: var(--vase-teal-dark);
}

.wy-side-nav-search > a img.logo,
.wy-side-nav-search .wy-dropdown > a img.logo {
  max-height: 84px;
  width: auto;
}

.wy-menu-vertical header,
.wy-menu-vertical p.caption {
  color: #62d1c8;
}

.rst-content a:not(.headerlink) {
  color: var(--vase-teal-dark);
}

.rst-content code.literal,
.rst-content tt.literal {
  color: #9d2f59;
  overflow-wrap: anywhere;
}

.rst-content .admonition.tip,
.rst-content .admonition.note {
  border-left: 4px solid var(--vase-teal);
}

.rst-content table.docutils td,
.rst-content table.docutils th {
  white-space: normal;
  vertical-align: top;
}

.vase-version-card {
  background: var(--vase-soft);
  border: 1px solid #b9dfdc;
  border-radius: 6px;
  color: var(--vase-ink);
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1rem;
}

.vase-demo {
  margin: 1.4rem 0 1.8rem;
}

/* Keep each material's target and token result together; stack on small screens. */
.eval-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.3rem 0;
}

.eval-case {
  min-width: 0;
  border: 1px solid #d4dfdf;
  border-radius: 8px;
  padding: 1rem .65rem .5rem;
  background: #fff;
}

.eval-case .rubric { margin-bottom: .8rem; font-size: 1.05rem; }
.rst-content .eval-case figure { margin: 0 0 1.1rem; max-width: 100%; }
.eval-case img { max-width: 100%; }
.eval-case .eval-target img {
  width: 100%;
  height: 235px;
  object-fit: contain;
}
.eval-case .eval-token-chart img { width: 100%; height: auto; }
.rst-content .eval-case figcaption p {
  margin: .55rem 0 0;
  font-size: .88rem;
  line-height: 1.55;
}
.rst-content .eval-case figcaption .caption-text { font-style: normal; }

@media screen and (max-width: 1100px) {
  .eval-comparison-grid { grid-template-columns: 1fr; }
  .eval-case { padding: 1.1rem; }
  .eval-case .eval-target img { height: auto; max-height: 360px; }
  .eval-case .eval-token-chart { max-width: 100%; margin-left: auto; margin-right: auto; }
}

.vase-demo-frame {
  width: 100%;
  height: min(var(--vase-demo-height, 520px), 68vh);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #b8c8c6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 42, 45, 0.10);
}

.vase-demo-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.vase-demo figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.55rem;
  color: #536363;
  font-size: 0.88rem;
}

.vase-demo figcaption a {
  flex: 0 0 auto;
  font-weight: 600;
}

@media screen and (max-width: 700px) {
  .vase-demo-frame {
    height: min(var(--vase-demo-height, 520px), 58vh);
    min-height: 280px;
  }
}

@media screen and (min-width: 1100px) {
  .wy-nav-content {
    max-width: 1040px;
  }
}

/* Independent feature guides: strong page/step hierarchy, readable figures. */
.wy-nav-content { background: #fff; }
.wy-menu-vertical p.caption { margin-top: 1.1rem; color: #9de1d9; letter-spacing: .06em; }
.rst-content h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.025em; }
.rst-content h2 { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #dce7e7; }
.rst-content h3 { margin-top: 1.8rem; color: #0f615d; }
.rst-content p, .rst-content li { line-height: 1.65; }
.rst-content li + li { margin-top: .45rem; }
.rst-content figure, .rst-content .figure { margin: 1.4rem 0 2rem; }
.rst-content figure img, .rst-content .figure img { border: 1px solid #dce7e7; border-radius: 8px; }
.rst-content figcaption, .rst-content .caption { color: #52616b; font-size: .9rem; line-height: 1.5; padding: .7rem .1rem 0; }
.rst-content table.docutils th { background: #edf7f6; }
.rst-content table.docutils td { vertical-align: top; }
.rst-content div.highlight { position: relative; border-radius: 6px; }
.rst-content div.highlight pre { padding-top: 2.6rem; line-height: 1.6; }
.copy-code { position: absolute; top: .4rem; right: .5rem; border: 1px solid #b5ceca; border-radius: 4px; background: #fff; color: #145f59; padding: .2rem .65rem; font: 600 12px/1.5 sans-serif; cursor: pointer; }
.copy-code:hover { background: #edf7f6; }
.copy-code:focus-visible { outline: 3px solid #157f79; outline-offset: 2px; }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 1100px) {
  .wy-nav-content { max-width: 1100px; padding: 2.8rem 4rem; }
}
@media (max-width: 767px) {
  .wy-nav-content { padding: 1.5rem 1.1rem; }
  .rst-content h1 { font-size: 1.65rem; }
  .rst-content h2 { font-size: 1.35rem; }
  .wy-table-responsive table td, .wy-table-responsive table th { white-space: normal; min-width: 110px; }
}
