
:root {
  --docs-paper: #ffffff;
  --docs-soft: #f7f9fd;
  --docs-blue: #2f55e7;
  --docs-blue-dark: #1838ad;
  --docs-ink: #1f2430;
  --docs-muted: #647084;
  --docs-line: #dce4f3;
  --docs-green: #0f8a6a;
  --docs-amber: #9a6814;
  --docs-radius: 8px;
  --docs-wrap: 1180px;
  --docs-font: "Segoe UI", Aptos, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.fuzwp-docs {
  margin: 0;
  background: var(--docs-paper);
  color: var(--docs-ink);
  font-family: var(--docs-font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

.docs-skip {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--docs-ink);
  color: #fff;
}

.docs-skip:focus {
  transform: translateY(0);
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--docs-line);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--docs-ink);
  font-weight: 750;
  text-decoration: none;
}

.docs-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--docs-blue);
  color: #fff;
}

.docs-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.docs-topnav a,
.docs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--docs-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.docs-topnav a:hover,
.docs-button:hover {
  color: var(--docs-blue-dark);
  background: #edf2ff;
}

.docs-button-primary {
  color: #fff;
  background: var(--docs-blue);
}

.docs-button-primary:hover {
  color: #fff;
  background: var(--docs-blue-dark);
}

.docs-hero,
.docs-section {
  padding: clamp(40px, 6vw, 76px) clamp(18px, 4vw, 42px);
}

.docs-hero-inner,
.docs-section-inner,
.docs-layout {
  width: min(100%, var(--docs-wrap));
  margin: 0 auto;
}

.docs-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: end;
}

.docs-kicker {
  margin: 0 0 10px;
  color: var(--docs-blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.docs-hero h1,
.docs-article-header h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.docs-hero p,
.docs-article-header .docs-lede {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--docs-muted);
  font-size: 18px;
}

.docs-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.docs-stat {
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  padding: 18px;
  background: var(--docs-soft);
}

.docs-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.docs-stat span {
  color: var(--docs-muted);
  font-size: 14px;
}

.docs-search-shell {
  position: relative;
  z-index: 12;
  max-width: 760px;
  margin-top: 24px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  padding: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31, 49, 111, 0.09);
}

.docs-search-shell--article {
  margin: 22px 0 0;
  box-shadow: none;
}

.docs-search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--docs-ink);
  font-size: 13px;
  font-weight: 800;
}

.docs-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.docs-search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bdc9e5;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--docs-ink);
  font: inherit;
}

.docs-search-input:focus {
  border-color: var(--docs-blue);
  outline: 3px solid rgba(47, 85, 231, 0.18);
  outline-offset: 0;
}

.docs-search-clear {
  min-height: 48px;
  border: 1px solid #bdc9e5;
  border-radius: 6px;
  padding: 0 14px;
  background: #f7f9fd;
  color: var(--docs-blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.docs-search-clear:hover {
  border-color: #aebdf3;
  background: #edf2ff;
}

.docs-search-status {
  margin-top: 9px;
  min-height: 20px;
  color: var(--docs-muted);
  font-size: 13px;
}

.docs-search-results {
  position: absolute;
  top: calc(100% - 8px);
  right: 14px;
  left: 14px;
  z-index: 50;
  display: grid;
  max-height: min(430px, calc(100vh - 190px));
  overflow: auto;
  border: 1px solid #bdc9e5;
  border-radius: var(--docs-radius);
  background: #fff;
  box-shadow: 0 22px 60px rgba(31, 49, 111, 0.18);
}

.docs-search-results[hidden] {
  display: none;
}

.docs-search-result,
.docs-search-empty {
  display: grid;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid var(--docs-line);
  padding: 13px 14px;
  color: var(--docs-ink);
  text-align: left;
  text-decoration: none;
}

.docs-search-result:last-child,
.docs-search-empty:last-child {
  border-bottom: 0;
}

.docs-search-result:hover,
.docs-search-result.is-active {
  background: #f2f5ff;
}

.docs-search-result strong {
  font-size: 14px;
  line-height: 1.35;
}

.docs-search-result span {
  color: var(--docs-muted);
  font-size: 12px;
  line-height: 1.45;
}

.docs-search-result em {
  color: var(--docs-blue-dark);
  font-style: normal;
  font-weight: 800;
}

.docs-search-empty {
  color: var(--docs-muted);
  font-size: 13px;
}

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

.docs-card {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  padding: 18px;
  background: #fff;
  text-decoration: none;
}

.docs-card:hover {
  border-color: #aebdf3;
  box-shadow: 0 14px 36px rgba(47, 85, 231, 0.08);
}

.docs-card h2,
.docs-card h3 {
  margin: 0;
  color: var(--docs-ink);
  font-size: 20px;
  line-height: 1.25;
}

.docs-card p {
  margin: 0;
  color: var(--docs-muted);
}

.docs-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  background: #edf2ff;
  color: var(--docs-blue-dark);
  font-size: 12px;
  font-weight: 750;
}

.docs-tag-held {
  background: #fff6df;
  color: var(--docs-amber);
}

.docs-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 42px;
  padding: 34px clamp(18px, 4vw, 42px) 70px;
}

.docs-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding-right: 4px;
}

.docs-sidebar h2 {
  margin: 0 0 12px;
  color: var(--docs-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: grid;
  gap: 4px;
}

.docs-sidebar a {
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--docs-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.docs-sidebar a:hover,
.docs-sidebar a[aria-current="page"] {
  color: var(--docs-blue-dark);
  background: #edf2ff;
}

.docs-article {
  min-width: 0;
}

.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--docs-muted);
  font-size: 14px;
}

.docs-breadcrumbs a {
  color: var(--docs-blue-dark);
  text-decoration: none;
}

.docs-article-header {
  border-bottom: 1px solid var(--docs-line);
  padding-bottom: 28px;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.docs-meta span {
  border: 1px solid var(--docs-line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--docs-muted);
  font-size: 13px;
}

.docs-content {
  padding-top: 26px;
}

.docs-content h2 {
  margin: 38px 0 14px;
  font-size: 26px;
  line-height: 1.25;
}

.docs-content h3 {
  margin: 30px 0 12px;
  border-top: 1px solid var(--docs-line);
  padding-top: 22px;
  font-size: 21px;
  line-height: 1.3;
}

.docs-content h4 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.docs-content p,
.docs-content li {
  color: #354052;
}

.docs-content a {
  color: var(--docs-blue-dark);
  font-weight: 650;
}

.docs-content code {
  border: 1px solid #d7e0f4;
  border-radius: 5px;
  padding: 1px 5px;
  background: #f5f7fc;
  color: #263047;
  font-size: 0.93em;
}

.docs-content pre {
  overflow: auto;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  padding: 16px;
  background: #101827;
  color: #f8fafc;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 14px;
}

.docs-content th,
.docs-content td {
  border: 1px solid var(--docs-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.docs-content th {
  background: var(--docs-soft);
  color: var(--docs-ink);
}

.docs-content blockquote {
  margin: 22px 0;
  border-left: 4px solid var(--docs-blue);
  padding: 8px 0 8px 16px;
  color: var(--docs-muted);
  background: #f7f9ff;
}

.docs-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  border-top: 1px solid var(--docs-line);
  padding-top: 24px;
}

.docs-pager a {
  flex: 1;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  padding: 14px;
  color: var(--docs-ink);
  text-decoration: none;
}

.docs-pager a:hover {
  border-color: #aebdf3;
  background: #f7f9ff;
}

.docs-pager span {
  display: block;
  color: var(--docs-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.docs-footer {
  border-top: 1px solid var(--docs-line);
  padding: 28px clamp(18px, 4vw, 42px);
  color: var(--docs-muted);
}

.docs-footer-inner {
  display: flex;
  width: min(100%, var(--docs-wrap));
  margin: 0 auto;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 900px) {
  .docs-hero-inner,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--docs-line);
    padding-bottom: 18px;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .docs-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-topnav {
    justify-content: flex-start;
  }

  .docs-hero h1,
  .docs-article-header h1 {
    font-size: 34px;
  }

  .docs-pager,
  .docs-footer-inner {
    flex-direction: column;
  }

  .docs-search-control {
    grid-template-columns: 1fr;
  }

  .docs-search-results {
    max-height: min(380px, calc(100vh - 170px));
  }
}
