:root {
  --sl-hero-start: #0f4c5c;
  --sl-hero-end: #17302b;
  --sl-accent: #93b941;
  --sl-card-bg: rgba(255, 255, 255, 0.78);
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #0f766e;
  --md-accent-fg-color: #7aa52f;
  --md-typeset-a-color: #0d6b74;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0f5b56;
  --md-accent-fg-color: #9dd36a;
}

.md-main {
  background:
    radial-gradient(circle at top left, rgba(147, 185, 65, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(245, 241, 230, 0.55) 0%, rgba(255, 255, 255, 0) 32%);
}

[data-md-color-scheme="slate"] .md-main {
  background:
    radial-gradient(circle at top left, rgba(157, 211, 106, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(15, 76, 92, 0.28) 0%, rgba(23, 48, 43, 0) 30%);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.md-typeset h1 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.md-typeset h2 {
  border-top: 1px solid rgba(15, 76, 92, 0.12);
  margin-top: 2.6rem;
  padding-top: 1.25rem;
}

[data-md-color-scheme="slate"] .md-typeset h2 {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.md-typeset p,
.md-typeset li {
  line-height: 1.72;
}

.md-typeset table:not([class]) {
  border-radius: 0.9rem;
  box-shadow: 0 16px 30px rgba(15, 76, 92, 0.08);
  overflow: hidden;
}

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

.md-typeset img {
  border-radius: 0.85rem;
  box-shadow: 0 18px 34px rgba(15, 76, 92, 0.16);
}

.hero {
  background: linear-gradient(135deg, var(--sl-hero-start) 0%, var(--sl-hero-end) 100%);
  border-radius: 1.2rem;
  color: #f7f2e8;
  margin: 0 0 2rem;
  overflow: hidden;
  padding: 2rem 2rem 1.75rem;
  position: relative;
}

.hero::after {
  background: radial-gradient(circle at top right, rgba(171, 214, 86, 0.24), transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  color: #d5efb2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.hero__title {
  color: #fffaf1;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1;
  margin: 0 0 0.9rem;
}

.hero__lead {
  font-size: 1.08rem;
  margin: 0 0 1.25rem;
  max-width: 46rem;
}

.hero .md-button {
  border-radius: 999px;
  margin-right: 0.6rem;
  margin-top: 0.3rem;
}

.hero .md-button--primary {
  background: #a8d45e;
  border-color: #a8d45e;
  color: #17302b;
}

.grid.cards > ul > li,
.md-typeset .grid.cards > ul > li {
  backdrop-filter: blur(10px);
  background: var(--sl-card-bg);
  border: 1px solid rgba(15, 76, 92, 0.08);
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 76, 92, 0.08);
}

[data-md-color-scheme="slate"] .grid.cards > ul > li,
[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li {
  background: rgba(30, 42, 56, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

.section-intro {
  color: var(--md-default-fg-color--light);
  font-size: 1.02rem;
  max-width: 50rem;
}

.page-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0 2rem;
}

.page-links a {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 76, 92, 0.08);
  border-radius: 0.9rem;
  color: inherit;
  display: block;
  padding: 1rem 1.1rem;
  text-decoration: none;
}

[data-md-color-scheme="slate"] .page-links a {
  background: rgba(30, 42, 56, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

.page-links a strong {
  color: var(--md-typeset-a-color);
  display: block;
  margin-bottom: 0.35rem;
}

.fact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1.5rem 0 2rem;
}

.fact-grid > div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 76, 92, 0.08);
  border-radius: 0.95rem;
  padding: 1rem;
}

[data-md-color-scheme="slate"] .fact-grid > div {
  background: rgba(30, 42, 56, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

.fact-grid strong {
  color: var(--md-typeset-a-color);
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
