:root {
  --scalar-container-width: 1120px;
  --scalar-toc-width: 220px;
}

.page-mdx__content,
.t-editor .page-node,
.page-content .page-node {
  max-width: min(100%, var(--scalar-container-width)) !important;
}

.content-container,
.page-content .content-container {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.t-editor .page-node > .guide-node-component {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page-mdx__toc,
.toc {
  width: var(--scalar-toc-width) !important;
}

.page-content h2,
.page-content h2 *,
.reference-layout h2,
.reference-layout h2 *,
.reference h2,
.reference h2 * {
  text-transform: capitalize !important;
}

div[class~="group/button-label"] {
  text-transform: capitalize;
}

.light-mode .sidebar > header,
.light-mode .sidebar > div:first-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #17327e 0%, #0e1f54 100%);
}

.light-mode .header.t-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #17327e 0%, #0e1f54 100%) !important;
}

.light-mode .header.t-header .menu-button,
.light-mode .header.t-header .search-icon,
.light-mode .header.t-header .menu-button svg,
.light-mode .header.t-header .search-icon svg {
  color: #ffffff !important;
}

.light-mode .download-button .badge.extension {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  background: #17327e;
  color: #ffffff;
}

.light-mode .response-description-markdown {
  max-height: none !important;
}

.light-mode .tola-callout {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem 1rem 1.2rem;
  border: 1px solid rgba(23, 50, 126, 0.14);
  border-left: 6px solid #17327e;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(23, 50, 126, 0.08), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow: 0 14px 30px rgba(16, 36, 92, 0.08);
}

.light-mode .tola-callout--important {
  border-color: rgba(23, 50, 126, 0.18);
  border-left-color: #17327e;
  background:
    linear-gradient(135deg, rgba(23, 50, 126, 0.1), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.light-mode .tola-callout--warning {
  border-color: rgba(245, 180, 0, 0.22);
  border-left-color: #f5b400;
  background:
    linear-gradient(135deg, rgba(245, 180, 0, 0.14), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.light-mode .tola-callout__label {
  margin-bottom: 0.45rem;
  color: #17327e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.light-mode .tola-callout--warning .tola-callout__label {
  color: #9a6800;
}

.light-mode .tola-callout p:last-child {
  margin-bottom: 0;
}

.light-mode .tola-splash {
  display: grid;
  gap: 1.5rem;
  margin: 0.5rem 0 2rem;
}

.light-mode .tola-splash__hero,
.light-mode .tola-splash__panel {
  border: 1px solid rgba(17, 28, 55, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(16, 36, 92, 0.05), rgba(245, 180, 0, 0.08));
  box-shadow: 0 20px 60px rgba(16, 36, 92, 0.08);
}

.light-mode .tola-splash__hero {
  padding: 1.2rem 1.35rem 1rem;
}

.light-mode .tola-splash__hero-top {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.light-mode .tola-splash__panel {
  padding: 1.5rem;
}

.light-mode .tola-splash__brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #17327e, #2154c4);
  box-shadow: 0 16px 30px rgba(23, 50, 126, 0.18);
}

.light-mode .tola-splash__logo {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.light-mode .tola-splash__eyebrow {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.light-mode .page-content .tola-splash__body,
.light-mode .page-mdx__content .tola-splash__body,
.light-mode .tola-splash__body {
  max-width: 64rem;
  margin: 0.15rem auto 1rem;
  text-align: center;
}

.light-mode .tola-splash__hero h4 {
  display: block;
  max-width: 42rem;
  margin: 0 auto 0.75rem;
  color: #17327e;
  text-align: center;
  width: 100%;
}

.light-mode .tola-splash__inline-title {
  display: block;
  width: 100%;
  margin: 0.4rem 0 0.2rem;
  color: #10245c;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.light-mode .tola-splash__diagram-crop {
  width: min(100%, 820px);
  margin: 0.15rem auto 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(17, 28, 55, 0.05);
  box-shadow: 0 10px 20px rgba(16, 36, 92, 0.06);
}

.light-mode .tola-splash__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.light-mode .tola-splash__card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(17, 28, 55, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.light-mode .tola-splash__card h3,
.light-mode .tola-splash__panel h2 {
  color: #10245c;
}

.light-mode .tola-splash__links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.light-mode .tola-splash__links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(23, 50, 126, 0.08);
  color: #17327e;
  font-weight: 700;
  text-decoration: none;
}

.light-mode .tola-splash__diagram {
  display: block;
  width: 100%;
  margin-top: -54px;
  margin-bottom: -54px;
}

@media (max-width: 800px) {
  .light-mode .tola-splash__hero,
  .light-mode .tola-splash__panel {
    padding: 1rem;
    border-radius: 18px;
  }

  .light-mode .tola-splash__brand-pill {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 20px;
  }

  .light-mode .tola-splash__hero-top {
    gap: 0.85rem;
  }

  .light-mode .tola-splash__hero h4 {
    max-width: none;
  }

  .light-mode .tola-splash__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  :root {
    --scalar-container-width: 1240px;
    --scalar-toc-width: 200px;
  }
}
