.sg-github-star {
  position: fixed;
  top: 0.64rem;
  right: 5.25rem;
  z-index: 5;
  height: 1.5rem;
  line-height: 1;
}

@media screen and (max-width: 76.1875em) {
  .sg-github-star {
    display: none;
  }
}

.sg-page {
  --sg-primary: #2347a5;
  --sg-primary-dark: #182f70;
  --sg-teal: #087f83;
  --sg-green: #19734b;
  --sg-amber: #a35b00;
  --sg-ink: var(--md-default-fg-color, #172033);
  --sg-muted: var(--md-default-fg-color--light, #526071);
  --sg-border: rgba(37, 55, 80, 0.16);
  --sg-surface: var(--md-default-bg-color, #ffffff);
  --sg-soft: #f6f8fb;
  --sg-code-bg: #101827;
  color: var(--sg-ink);
}

[data-md-color-scheme="slate"] .sg-page {
  --sg-primary: #8fb3ff;
  --sg-primary-dark: #b7ccff;
  --sg-teal: #58d3cc;
  --sg-green: #75d8a4;
  --sg-amber: #f3bd6a;
  --sg-border: rgba(209, 219, 235, 0.18);
  --sg-soft: rgba(255, 255, 255, 0.04);
  --sg-code-bg: #0b1220;
}

.sg-product-nav {
  align-items: center;
  border-bottom: 1px solid var(--sg-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.8rem;
  padding: 0.25rem 0 1rem;
}

.sg-brand {
  align-items: center;
  color: var(--sg-ink) !important;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.55rem;
  text-decoration: none !important;
}

.sg-brand-logo {
  display: block;
  height: 1.9rem;
  width: 1.9rem;
}

.sg-nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.sg-nav-links a:not(.github-button) {
  color: var(--sg-muted) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
}

.sg-nav-links a:hover {
  color: var(--sg-primary) !important;
}

.sg-hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  margin: 0 0 2rem;
  min-height: 430px;
}

.sg-hero-copy h1 {
  color: var(--sg-ink);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 1rem;
}

.sg-lede {
  color: var(--sg-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
  max-width: 45rem;
}

.sg-eyebrow {
  color: var(--sg-teal) !important;
  font-size: 0.75rem !important;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.sg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.sg-button {
  align-items: center;
  border-radius: 0.35rem;
  display: inline-flex;
  font-size: 0.83rem;
  font-weight: 800;
  min-height: 2.45rem;
  padding: 0.68rem 0.9rem;
  text-decoration: none !important;
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.sg-button:hover {
  transform: translateY(-1px);
}

.sg-button-primary {
  background: var(--sg-primary);
  border: 1px solid var(--sg-primary);
  color: #ffffff !important;
}

.sg-button-secondary {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  color: var(--sg-ink) !important;
}

.sg-button-secondary:hover {
  border-color: var(--sg-primary);
  color: var(--sg-primary) !important;
}

.sg-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.sg-proof-row span {
  background: var(--sg-soft);
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  color: var(--sg-muted);
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.3rem 0.58rem;
}

.sg-provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.sg-provider-row span {
  border-left: 3px solid var(--sg-teal);
  color: var(--sg-muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
  padding: 0.12rem 0 0.12rem 0.45rem;
}

.sg-terminal {
  background: var(--sg-code-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.2);
  color: #d8e2f3;
  overflow: hidden;
  padding: 1rem;
}

.sg-terminal-bar {
  display: flex;
  gap: 0.38rem;
  margin-bottom: 0.9rem;
}

.sg-terminal-bar span {
  border-radius: 50%;
  display: block;
  height: 0.62rem;
  width: 0.62rem;
}

.sg-terminal-bar span:nth-child(1) {
  background: #ef5f57;
}

.sg-terminal-bar span:nth-child(2) {
  background: #f6bd4f;
}

.sg-terminal-bar span:nth-child(3) {
  background: #5fcf7d;
}

.sg-panel-title {
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 850;
  letter-spacing: 0.04em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.sg-terminal pre,
.sg-split pre {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0;
  padding: 0 !important;
}

.sg-terminal code,
.sg-split pre code {
  background: transparent !important;
  color: inherit !important;
  display: block;
  font-size: 0.74rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.sg-muted {
  color: var(--sg-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.sg-terminal .sg-muted {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b9c7dc;
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.sg-terminal .sg-muted code {
  color: #ffffff !important;
  display: inline;
}

.sg-metrics {
  border-bottom: 1px solid var(--sg-border);
  border-top: 1px solid var(--sg-border);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0 2.7rem;
}

.sg-metrics div {
  border-right: 1px solid var(--sg-border);
  padding: 1rem;
}

.sg-metrics div:last-child {
  border-right: 0;
}

.sg-metrics strong {
  color: var(--sg-primary);
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.sg-metrics span {
  color: var(--sg-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.sg-section {
  margin: 2.7rem 0;
}

.sg-section-heading {
  max-width: 48rem;
}

.sg-section-heading h2 {
  color: var(--sg-ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 1.15rem;
}

.sg-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.2rem 0 0;
}

.sg-card,
.sg-split article,
.sg-doc-list a {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: 0.5rem;
}

.sg-card {
  padding: 1rem;
}

.sg-card h3,
.sg-split h3 {
  color: var(--sg-ink);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 0.55rem;
}

.sg-card p,
.sg-split p {
  color: var(--sg-muted);
  font-size: 0.84rem;
  line-height: 1.65;
  margin: 0;
}

.sg-split {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sg-split article {
  padding: 1rem;
}

.sg-split pre {
  background: var(--sg-code-bg) !important;
  border-radius: 0.45rem;
  color: #d8e2f3;
  margin-top: 0.9rem;
  padding: 0.85rem !important;
}

.sg-doc-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sg-doc-list a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  text-decoration: none !important;
  transition: border-color 140ms ease, transform 140ms ease;
}

.sg-doc-list a:hover {
  border-color: var(--sg-primary);
  transform: translateY(-1px);
}

.sg-doc-list span {
  color: var(--sg-muted);
  font-size: 0.76rem;
}

.sg-doc-list strong {
  color: var(--sg-primary);
  font-size: 0.95rem;
}

@media screen and (max-width: 920px) {
  .sg-hero,
  .sg-card-grid,
  .sg-split,
  .sg-doc-list {
    grid-template-columns: 1fr;
  }

  .sg-hero {
    min-height: 0;
  }

  .sg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-metrics div:nth-child(2) {
    border-right: 0;
  }
}

@media screen and (max-width: 640px) {
  .sg-product-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .sg-nav-links {
    justify-content: flex-start;
  }

  .sg-hero-copy h1 {
    font-size: 2rem;
  }

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

  .sg-button {
    justify-content: center;
    width: 100%;
  }

  .sg-metrics {
    grid-template-columns: 1fr;
  }

  .sg-metrics div,
  .sg-metrics div:nth-child(2) {
    border-bottom: 1px solid var(--sg-border);
    border-right: 0;
  }

  .sg-metrics div:last-child {
    border-bottom: 0;
  }
}
