:root {
  --bs-font-sans-serif: Inter, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-border-radius: 6px;
  --s1interop-bg: #101413;
  --s1interop-bg-2: #171c1a;
  --s1interop-surface: #1d2421;
  --s1interop-surface-2: #242c28;
  --s1interop-border: #344039;
  --s1interop-border-strong: #506056;
  --s1interop-text: #f3f0e8;
  --s1interop-muted: #beb7ab;
  --s1interop-soft: #918a7f;
  --s1interop-accent: #58c7a1;
  --s1interop-accent-hover: #8be0c4;
  --s1interop-accent-2: #d7a95f;
  --s1interop-on-accent: #092018;
  --s1interop-code: #151a18;
  --s1interop-link-underline: rgba(88, 199, 161, 0.38);
  --s1interop-navbar-bg: rgba(16, 20, 19, 0.94);
  --s1interop-shadow: 0 18px 56px rgba(0, 0, 0, 0.26);

  --bs-body-bg: var(--s1interop-bg);
  --bs-body-color: var(--s1interop-muted);
  --bs-emphasis-color: var(--s1interop-text);
  --bs-secondary-color: var(--s1interop-soft);
  --bs-border-color: var(--s1interop-border);
  --bs-link-color: var(--s1interop-accent);
  --bs-link-hover-color: var(--s1interop-accent-hover);
}

html {
  color-scheme: dark;
}

[data-bs-theme='light'] {
  color-scheme: light;
  --s1interop-bg: #f6f4ee;
  --s1interop-bg-2: #fffaf2;
  --s1interop-surface: #fffdf8;
  --s1interop-surface-2: #eee9de;
  --s1interop-border: #d6cec1;
  --s1interop-border-strong: #afa396;
  --s1interop-text: #24211b;
  --s1interop-muted: #5f574c;
  --s1interop-soft: #85796d;
  --s1interop-accent: #147f63;
  --s1interop-accent-hover: #0f624c;
  --s1interop-accent-2: #9d6a22;
  --s1interop-on-accent: #f7fff8;
  --s1interop-code: #f0eadf;
  --s1interop-link-underline: rgba(20, 127, 99, 0.32);
  --s1interop-navbar-bg: rgba(246, 244, 238, 0.94);
  --s1interop-shadow: 0 18px 48px rgba(51, 43, 32, 0.12);
}

body {
  background: var(--s1interop-bg);
  color: var(--s1interop-text);
  letter-spacing: 0;
}

a {
  color: var(--s1interop-accent);
  text-decoration-color: var(--s1interop-link-underline);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--s1interop-accent-hover);
}

.navbar {
  min-height: 56px;
  border-bottom: 1px solid var(--s1interop-border);
  background: var(--s1interop-navbar-bg) !important;
  backdrop-filter: blur(16px);
}

.navbar-brand {
  color: var(--s1interop-text);
  font-weight: 760;
  letter-spacing: 0;
}

.navbar-nav .nav-link {
  position: relative;
  border-radius: 4px;
  color: var(--s1interop-muted);
  font-size: 0.94rem;
  padding: 0.38rem 0.7rem;
}

.navbar-nav .nav-link:hover {
  background: var(--s1interop-surface-2);
  color: var(--s1interop-text);
}

.navbar-nav .nav-link.active {
  color: var(--s1interop-text);
}

.navbar-nav .nav-link.active::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.12rem;
  left: 0.7rem;
  height: 2px;
  background: var(--s1interop-accent);
  content: "";
}

.form-control,
input.form-control {
  border-radius: 6px;
  border-color: var(--s1interop-border);
  background-color: var(--s1interop-surface-2);
  color: var(--s1interop-text);
}

.form-control:focus,
input.form-control:focus,
.s1interop-action:focus-visible,
.s1interop-card:focus-visible,
.toc a:focus-visible {
  border-color: var(--s1interop-accent);
  box-shadow: 0 0 0 3px rgba(88, 199, 161, 0.18);
  outline: 0;
}

.s1interop-hero,
.s1interop-section {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

.s1interop-hero {
  padding: 70px 0 40px;
}

.s1interop-eyebrow {
  margin: 0 0 12px;
  color: var(--s1interop-accent);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.s1interop-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--s1interop-text);
  font-size: clamp(2.1rem, 4.1vw, 3.45rem);
  font-weight: 780;
  line-height: 1.08;
}

.s1interop-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--s1interop-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.s1interop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.s1interop-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--s1interop-border-strong);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  background: var(--s1interop-surface);
  color: var(--s1interop-text);
  font-weight: 700;
  text-decoration: none;
}

.s1interop-action:hover {
  border-color: var(--s1interop-accent);
  background: var(--s1interop-surface-2);
  color: var(--s1interop-text);
}

.s1interop-action-primary {
  border-color: var(--s1interop-accent);
  background: var(--s1interop-accent);
  color: var(--s1interop-on-accent);
}

.s1interop-action-primary:hover {
  background: var(--s1interop-accent-hover);
  color: var(--s1interop-on-accent);
}

.s1interop-section {
  padding: 36px 0;
}

.s1interop-section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.s1interop-section-heading h2 {
  margin: 0;
  color: var(--s1interop-text);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.18;
}

.s1interop-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.s1interop-card-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.s1interop-card {
  min-height: 150px;
  border: 1px solid var(--s1interop-border);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, var(--s1interop-surface), var(--s1interop-bg-2));
  box-shadow: var(--s1interop-shadow);
  color: var(--s1interop-muted);
  text-decoration: none;
}

.s1interop-card:hover {
  border-color: var(--s1interop-accent);
  color: var(--s1interop-muted);
  transform: translateY(-1px);
}

.s1interop-card h3 {
  margin: 0 0 10px;
  color: var(--s1interop-text);
  font-size: 1rem;
}

.s1interop-card p {
  margin: 0;
  line-height: 1.55;
}

.s1interop-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 70px;
}

main h1,
main h2,
main h3,
article h1,
article h2,
article h3 {
  color: var(--s1interop-text);
  letter-spacing: 0;
}

main,
.main-panel,
.content {
  background: transparent;
}

article {
  color: var(--s1interop-muted);
  font-size: 1rem;
  line-height: 1.75;
}

article h1 {
  max-width: 880px;
  margin-bottom: 16px;
  color: var(--s1interop-text);
  font-size: 2.35rem;
  font-weight: 780;
  line-height: 1.14;
}

article h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  color: var(--s1interop-text);
  font-size: 1.35rem;
  font-weight: 720;
  line-height: 1.35;
}

article h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--s1interop-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

article h4 {
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--s1interop-border);
  color: var(--s1interop-text);
}

main p,
main li,
article p,
article li {
  color: var(--s1interop-muted);
  line-height: 1.7;
}

article > p:first-of-type {
  color: var(--s1interop-muted);
  font-size: 1.06rem;
}

code {
  border: 1px solid rgba(88, 199, 161, 0.18);
  border-radius: 4px;
  background: rgba(88, 199, 161, 0.09);
  color: var(--s1interop-accent-hover);
  padding: 0.12rem 0.25rem;
}

pre {
  border: 1px solid var(--s1interop-border);
  border-radius: 8px;
  background: var(--s1interop-code) !important;
}

pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.toc,
.sidefilter,
.sidetoc,
.affix {
  background: transparent !important;
  border-color: var(--s1interop-border);
}

.sidetoc {
  border-right: 1px solid var(--s1interop-border);
}

.sidefilter {
  padding: 10px;
}

.toc .level1 > li > a,
.toc .level1 > li > span {
  color: var(--s1interop-text);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.toc .nav-link,
.toc a {
  box-sizing: border-box;
  display: block;
  margin: 1px 0;
  padding: 0.34rem 0.55rem;
  border-radius: 6px;
  color: var(--s1interop-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.toc a:hover {
  background: rgba(88, 199, 161, 0.1);
  color: var(--s1interop-text);
}

.toc .nav-link.active,
.toc a.active {
  background: var(--s1interop-surface-2);
  box-shadow: inset 0 0 0 1px var(--s1interop-border);
  color: var(--s1interop-text);
  font-weight: 700;
}

.toc .level1 > li.active > a {
  background: transparent;
  box-shadow: none;
}

.toc li.expanded > a {
  color: var(--s1interop-text);
}

.breadcrumb {
  color: var(--s1interop-soft);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--s1interop-accent);
  text-decoration: none;
}

.affix,
.sideaffix {
  box-sizing: border-box;
  margin-left: 12px;
  padding-left: 22px;
  border-left: 1px solid var(--s1interop-border);
}

.affix h5,
.sideaffix h5 {
  margin: 0 0 0.9rem;
  color: var(--s1interop-text);
  font-size: 0.82rem;
  font-weight: 760;
}

.affix a,
.sideaffix a {
  display: block;
  padding: 0.12rem 0;
  color: var(--s1interop-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  text-decoration: none;
}

.affix a:hover,
.sideaffix a:hover {
  color: var(--s1interop-accent);
}

.affix a.active,
.sideaffix a.active {
  display: block;
  width: 100%;
  background: var(--s1interop-surface-2) !important;
  box-shadow: inset 0 0 0 1px var(--s1interop-border) !important;
  color: var(--s1interop-text) !important;
  font-weight: 700;
}

.alert {
  padding: 0;
  border-radius: 8px;
  border-color: var(--s1interop-border);
  background: var(--s1interop-surface);
}

.alert > h5 {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--s1interop-border);
  border-radius: 8px 8px 0 0;
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.alert > p,
.alert > ul {
  padding: 0.85rem 1rem;
}

table {
  width: 100%;
  border: 1px solid var(--s1interop-border);
  border-radius: 8px;
  border-color: var(--s1interop-border);
  overflow: hidden;
}

thead {
  background: var(--s1interop-surface-2);
}

th {
  color: var(--s1interop-text);
}

td,
th {
  border-color: var(--s1interop-border) !important;
}

@media (max-width: 920px) {
  .s1interop-card-grid,
  .s1interop-card-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .s1interop-hero,
  .s1interop-section {
    width: min(100% - 28px, 1120px);
  }

  .s1interop-card-grid,
  .s1interop-card-grid-wide {
    grid-template-columns: 1fr;
  }

  .s1interop-actions {
    flex-direction: column;
  }
}
