:root {
  --waton-bg: #090f1d;
  --waton-bg-alt: #0f172b;
  --waton-bg-card: #111d34;
  --waton-border: #243554;
  --waton-text: #e5ecff;
  --waton-muted: #9aa8c9;
  --waton-accent: #4ea3ff;
  --waton-accent-2: #72e3ff;
  --pst-header-height: 0rem;
  --pst-header-article-height: 0rem;
}

html[data-theme="light"],
html[data-theme="dark"] {
  --pst-color-background: var(--waton-bg);
  --pst-color-on-background: var(--waton-text);
  --pst-color-surface: var(--waton-bg-alt);
  --pst-color-primary: var(--waton-accent);
  --pst-color-link: var(--waton-accent);
  --pst-color-link-hover: var(--waton-accent-2);
  --pst-color-text-base: var(--waton-text);
  --pst-color-text-muted: var(--waton-muted);
  --pst-color-border: var(--waton-border);
}

html,
body {
  background: #090f1d !important;
}

.bd-container,
.bd-container__inner,
.bd-page-width,
.bd-main,
.bd-content {
  background: transparent !important;
}

.bd-main .bd-content .bd-article-container {
  max-width: 78rem;
  padding: 1rem 1rem 1.25rem;
}

.bd-main .bd-content .bd-article {
  background: linear-gradient(180deg, rgba(14, 24, 44, 0.88), rgba(10, 19, 36, 0.78));
  border: 1px solid rgba(114, 227, 255, 0.16);
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1.25rem !important;
  box-shadow: 0 14px 34px rgba(4, 8, 18, 0.34);
}

.bd-main .bd-content .bd-article section {
  background: transparent !important;
}

.prev-next-area,
.prev-next-area a,
.prev-next-area p,
.bd-content .prev-next-area {
  background: transparent !important;
}

.bd-header,
.bd-header-article {
  display: none !important;
}

.header-article__inner,
.header-article-item,
.header-article-items__start,
.header-article-items__end {
  display: none !important;
}

a {
  transition: color 0.15s ease, opacity 0.15s ease;
}

.waton-hero-links a:hover {
  text-decoration: none;
}

.bd-content h1,
.bd-content h2,
.bd-content h3 {
  letter-spacing: 0.01em;
}

.bd-content h1 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  margin-bottom: 0.6rem;
}

.waton-hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(114, 227, 255, 0.2);
  border-radius: 18px;
  padding: 1.05rem 1.1rem 1.1rem;
  margin: 0.45rem 0 1.2rem;
  background: linear-gradient(155deg, rgba(17, 29, 52, 0.92), rgba(12, 21, 40, 0.76));
  box-shadow: 0 16px 42px rgba(3, 8, 18, 0.42);
}

.waton-hero-shell::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -100px;
  background: radial-gradient(circle, rgba(114, 227, 255, 0.2) 0%, transparent 68%);
  pointer-events: none;
}

.waton-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.56rem;
  border: 1px solid rgba(114, 227, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ad9ff;
}

.waton-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52c6ff;
  box-shadow: 0 0 10px rgba(82, 198, 255, 0.75);
}

.waton-hero-links {
  margin: 1.25rem 0 1.5rem;
}

.waton-hero-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.waton-hero-links li {
  margin: 0;
}

.waton-hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, rgba(78, 163, 255, 0.18), rgba(114, 227, 255, 0.1));
  border: 1px solid rgba(114, 227, 255, 0.32);
  color: var(--waton-text);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(6, 10, 22, 0.34);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.waton-hero-links a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  line-height: 1;
}

.waton-hero-links li:nth-child(1) a::before {
  font-family: "Font Awesome 6 Brands";
  content: "\f09b";
}

.waton-hero-links li:nth-child(2) a::before {
  content: "\f135";
}

.waton-hero-links li:nth-child(3) a::before {
  content: "\f5fd";
}

.waton-hero-links li:nth-child(4) a::before {
  content: "\f7d9";
}

.waton-hero-links a:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(114, 227, 255, 0.55);
}

.waton-hero-links a:focus-visible {
  outline: 2px solid #81d7ff;
  outline-offset: 2px;
}

.waton-feature-grid {
  margin: 0.5rem 0 2rem;
  border-collapse: separate;
  border-spacing: 0.85rem;
  table-layout: fixed;
}

.waton-feature-grid td {
  border: none !important;
  padding: 0 !important;
  vertical-align: top;
  background: transparent !important;
}

.waton-feature-card {
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 29, 52, 0.95), rgba(17, 29, 52, 0.75));
  border: 1px solid var(--waton-border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 30px rgba(5, 9, 19, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.waton-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 227, 255, 0.45);
}

.waton-feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #f0f5ff;
}

.waton-feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--waton-muted);
}

.highlight pre,
pre {
  background: #0d1529;
  border: 1px solid #1f2f4d;
  border-radius: 12px;
}

.bd-sidebar-primary,
.bd-sidebar-secondary {
  background: rgba(11, 18, 34, 0.72);
  border-right: 1px solid rgba(114, 227, 255, 0.14);
}

.bd-sidebar-primary .sidebar-primary-item,
.bd-sidebar-secondary .sidebar-secondary-item {
  background: linear-gradient(180deg, rgba(15, 25, 46, 0.9), rgba(12, 22, 39, 0.82));
  border: 1px solid rgba(114, 227, 255, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
}

.bd-sidebar-primary .toctree-l1 > .reference,
.bd-sidebar-secondary .toc-entry > .nav-link {
  border-radius: 8px;
  background: transparent;
}

.bd-sidebar-primary .toctree-l1.current > .reference,
.bd-sidebar-primary .toctree-l1.current.active > .reference,
.bd-sidebar-secondary .toc-entry > .nav-link.active {
  background: rgba(78, 163, 255, 0.2) !important;
  border: 1px solid rgba(114, 227, 255, 0.32);
  color: #ffffff !important;
}

.bd-sidebar-primary .toctree-l1 > .reference:hover,
.bd-sidebar-secondary .toc-entry > .nav-link:hover {
  background: rgba(78, 163, 255, 0.12);
}

.toc-entry a.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.admonition.note {
  border: 1px solid rgba(114, 227, 255, 0.4);
  border-left: 4px solid #52c6ff;
  background: linear-gradient(180deg, rgba(14, 27, 47, 0.93), rgba(12, 23, 42, 0.76));
  border-radius: 12px;
}

@media (max-width: 860px) {
  .waton-hero-shell {
    padding: 0.95rem 0.9rem 1rem;
    border-radius: 14px;
  }

  .waton-hero-links ul {
    gap: 0.55rem;
  }

  .waton-hero-links a {
    padding: 0.44rem 0.78rem;
    font-size: 0.9rem;
  }

  .waton-feature-grid {
    border-spacing: 0.5rem;
  }

  .bd-sidebar-primary,
  .bd-sidebar-secondary {
    border-right: none;
  }
}
