:root {
  --steer-bg: linear-gradient(180deg, #f4f6fb 0%, #edf1f8 34%, #f8fafd 100%);
  --steer-surface: rgba(255, 255, 255, 0.82);
  --steer-surface-strong: #ffffff;
  --steer-border: rgba(43, 76, 153, 0.14);
  --steer-text: #1b2740;
  --steer-muted: #64708a;
  --steer-accent: #3558b8;
  --steer-accent-2: #6d88dc;
  --steer-warm: #c58b2a;
  --steer-shadow: 0 18px 50px rgba(35, 62, 128, 0.10);
  --steer-radius: 22px;
}

[data-md-color-scheme="slate"] {
  --steer-bg: radial-gradient(circle at top, #1b2847 0%, #0d1424 55%, #090f1a 100%);
  --steer-surface: rgba(16, 22, 37, 0.82);
  --steer-surface-strong: #10172a;
  --steer-border: rgba(133, 163, 255, 0.14);
  --steer-text: #edf2ff;
  --steer-muted: #a5b2d2;
  --steer-accent: #86a3ff;
  --steer-accent-2: #b1c3ff;
  --steer-warm: #f1c36a;
  --steer-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

body,
[data-md-color-scheme="default"] {
  background: var(--steer-bg);
}

body {
  color: var(--steer-text);
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, sans-serif;
}

.md-main {
  background: transparent;
}

.md-header {
  background: linear-gradient(135deg, rgba(28, 47, 95, 0.92), rgba(54, 86, 170, 0.90));
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 10px 30px rgba(22, 35, 76, 0.18);
}

.md-tabs {
  background: linear-gradient(90deg, rgba(33, 54, 110, 0.94), rgba(71, 96, 183, 0.94));
}

.md-tabs__link,
.md-header__title,
.md-header__button,
.md-search__icon {
  color: rgba(255, 255, 255, 0.92);
}

.md-content__inner,
.md-sidebar__inner,
.md-nav--primary .md-nav__title,
.md-search__form {
  border-radius: var(--steer-radius);
}

.md-content__inner {
  margin-top: 1rem;
  padding: 1.4rem 1.6rem 2rem;
  background: var(--steer-surface);
  border: 1px solid var(--steer-border);
  box-shadow: var(--steer-shadow);
}

.md-sidebar__inner {
  background: color-mix(in srgb, var(--steer-surface) 94%, transparent);
  border: 1px solid var(--steer-border);
  padding: 0.6rem;
}

.md-nav__link,
.md-typeset,
.md-typeset p,
.md-typeset li {
  color: var(--steer-text);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--steer-text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
}

.md-typeset h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.md-typeset h2 {
  margin-top: 2rem;
  font-size: 1.65rem;
  font-weight: 700;
}

.md-typeset h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.md-typeset a {
  color: var(--steer-accent);
}

.md-typeset a:hover {
  color: var(--steer-warm);
}

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

.md-typeset pre > code {
  border-radius: 1rem;
}

.md-typeset .grid.cards > ul > li,
.md-typeset .admonition,
.md-typeset details {
  border-radius: 1.1rem;
  border: 1px solid var(--steer-border);
  box-shadow: 0 10px 28px rgba(30, 47, 92, 0.06);
}

.md-typeset .grid.cards > ul > li {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 253, 0.94));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(30, 47, 92, 0.12);
  border-color: rgba(109, 136, 220, 0.30);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li {
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.96), rgba(14, 20, 34, 0.96));
}

.hero {
  position: relative;
  overflow: hidden;
  margin: -0.2rem 0 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: calc(var(--steer-radius) + 6px);
  background:
    radial-gradient(circle at top right, rgba(241, 195, 106, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(24, 40, 84, 0.98), rgba(43, 71, 147, 0.93) 48%, rgba(103, 127, 208, 0.88));
  color: #f8fffd;
  box-shadow: 0 24px 60px rgba(18, 31, 69, 0.24);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 1;
  color: inherit;
}

.hero .hero-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero .hero-subtitle {
  max-width: 52rem;
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  line-height: 1.7;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-actions a:first-child {
  background: rgba(255, 255, 255, 0.96);
  color: #243c83;
}

.hero-actions a:last-child {
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
}

.figure-frame {
  padding: 1rem;
  border-radius: calc(var(--steer-radius) - 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(242, 246, 252, 0.98));
  border: 1px solid var(--steer-border);
  box-shadow: 0 16px 40px rgba(29, 44, 86, 0.08);
}

[data-md-color-scheme="slate"] .figure-frame {
  background: linear-gradient(180deg, rgba(17, 24, 40, 0.94), rgba(13, 18, 31, 0.98));
}

.figure-frame img {
  border-radius: 1rem;
}

.md-footer {
  background: linear-gradient(180deg, rgba(18, 31, 69, 0.98), rgba(10, 16, 30, 0.99));
}

@media screen and (max-width: 76.1875em) {
  .md-content__inner {
    padding: 1.2rem 1rem 1.6rem;
  }

  .md-sidebar__inner {
    background: transparent;
    border: 0;
    padding: 0;
  }
}

@media screen and (max-width: 44.9375em) {
  .hero {
    padding: 1.3rem;
  }

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

  .hero-actions a {
    width: 100%;
  }
}
