:root {
  --docs-bg: #f4f1ea;
  --docs-surface: rgba(255, 255, 255, 0.84);
  --docs-surface-strong: #ffffff;
  --docs-ink: #171614;
  --docs-ink-soft: #4b4943;
  --docs-ink-faint: #6b665d;
  --docs-border: rgba(23, 22, 20, 0.12);
  --docs-border-strong: rgba(23, 22, 20, 0.22);
  --docs-accent: #8e5a2a;
  --docs-accent-soft: rgba(142, 90, 42, 0.12);
  --docs-success: #266348;
  --docs-warning: #926100;
  --docs-danger: #8b3b32;
  --docs-radius: 18px;
  --docs-radius-sm: 12px;
  --docs-shell: 1240px;
  --docs-copy: 760px;
  --docs-shadow: 0 24px 60px rgba(26, 22, 16, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(142, 90, 42, 0.1),
      transparent 35%
    ),
    linear-gradient(180deg, #fbf8f2 0%, var(--docs-bg) 100%);
  color: var(--docs-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.docs-site-shell {
  width: min(calc(100% - 32px), var(--docs-shell));
  margin: 0 auto;
}

.docs-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(250, 247, 240, 0.84);
  border-bottom: 1px solid var(--docs-border);
}

.docs-site-header .docs-site-shell,
.docs-site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.docs-wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.docs-wordmark sup {
  font-size: 9px;
  top: -0.4em;
  position: relative;
}

.docs-primary-nav,
.docs-header-actions,
.docs-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.docs-primary-nav a,
.docs-header-link,
.docs-footer-links a {
  color: var(--docs-ink-soft);
  text-decoration: none;
  font-size: 13px;
}

.docs-primary-nav a[aria-current="page"],
.docs-primary-nav a:hover,
.docs-header-link:hover,
.docs-footer-links a:hover {
  color: var(--docs-ink);
}

.docs-header-link {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.46);
}

.docs-home-main,
.docs-page-main {
  padding: 40px 0 72px;
}

.docs-home-hero {
  padding: 42px 0 32px;
}

.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  color: var(--docs-ink-soft);
}

.docs-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: end;
}

.docs-home-copy h1,
.doc-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.docs-home-copy p,
.doc-hero p {
  max-width: 64ch;
  font-size: 17px;
  color: var(--docs-ink-soft);
}

.docs-hero-note {
  padding: 18px 20px;
  border-radius: var(--docs-radius);
  border: 1px solid var(--docs-border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.56)
  );
  box-shadow: var(--docs-shadow);
}

.docs-hero-note h2,
.docs-section-header h2,
.doc-section h2,
.docs-rail-block h2,
.docs-reference-table-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.docs-hero-note p,
.docs-hero-note li,
.docs-section-header p,
.doc-meta-card p,
.doc-callout p,
.doc-support-panel p {
  margin: 0;
  color: var(--docs-ink-soft);
  font-size: 14px;
}

.docs-hero-note ul,
.doc-callout ul,
.doc-support-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--docs-ink-soft);
}

.docs-role-grid,
.docs-strip-grid,
.doc-meta-grid,
.doc-figure-grid,
.docs-reference-grid {
  display: grid;
  gap: 18px;
}

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

.docs-role-entry,
.docs-strip,
.doc-meta-card,
.doc-callout,
.doc-support-panel,
.docs-reference-panel,
.docs-results-panel,
.docs-rail-block,
.doc-figure,
.docs-home-callout {
  border-radius: var(--docs-radius);
  border: 1px solid var(--docs-border);
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
}

.docs-role-entry,
.docs-strip,
.doc-meta-card,
.doc-callout,
.doc-support-panel,
.docs-reference-panel,
.docs-results-panel,
.docs-home-callout {
  padding: 20px;
}

.docs-role-entry {
  text-decoration: none;
  display: block;
}

.docs-role-entry:hover,
.docs-result-row:hover,
.docs-strip:hover {
  border-color: var(--docs-border-strong);
  background: rgba(255, 255, 255, 0.94);
}

.docs-role-entry h2,
.docs-strip h3,
.docs-result-row h3,
.doc-meta-card h2,
.doc-callout h3,
.doc-support-panel h2,
.docs-reference-panel h2,
.doc-figure figcaption strong {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.docs-role-entry p,
.docs-strip p,
.docs-result-row p,
.docs-reference-panel p,
.doc-meta-card ul,
.doc-figure figcaption {
  margin: 10px 0 0;
  color: var(--docs-ink-soft);
  font-size: 14px;
}

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

.docs-strip {
  text-decoration: none;
}

.docs-strip-label,
.docs-result-eyebrow,
.doc-chip-row,
.doc-breadcrumbs,
.doc-meta-card .doc-meta-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-strip-label span,
.docs-result-eyebrow span,
.doc-chip,
.doc-breadcrumbs a,
.doc-meta-label span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
  font-size: 12px;
  text-decoration: none;
}

.docs-home-callout {
  margin-top: 18px;
}

.docs-section {
  margin-top: 34px;
}

.docs-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.docs-search-panel {
  padding: 22px;
  border-radius: calc(var(--docs-radius) + 6px);
  border: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--docs-shadow);
}

.docs-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.88);
}

.docs-search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--docs-ink);
  font: inherit;
  font-size: 15px;
}

.docs-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.docs-filter-row button {
  border: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--docs-ink-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.docs-filter-row button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--docs-ink);
  border-color: var(--docs-ink);
}

.docs-results-panel {
  margin-top: 16px;
}

.docs-results-list {
  display: grid;
  gap: 12px;
}

.docs-result-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--docs-radius-sm);
  border: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.docs-result-main {
  min-width: 0;
}

.docs-result-main h3 {
  margin-top: 10px;
  font-size: 19px;
}

.docs-result-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 240px;
}

.docs-result-tags span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.06);
  color: var(--docs-ink-faint);
  font-size: 12px;
}

.docs-empty-state {
  padding: 18px 0 6px;
}

.docs-empty-state h3 {
  margin: 0 0 6px;
}

.doc-breadcrumbs {
  margin-bottom: 18px;
  color: var(--docs-ink-faint);
  font-size: 12px;
}

.doc-breadcrumbs span {
  color: var(--docs-ink-faint);
}

.docs-article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--docs-copy)) minmax(250px, 1fr);
  gap: 28px;
  align-items: start;
}

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

.doc-hero {
  padding: 20px 0 16px;
}

.doc-hero p {
  margin-bottom: 0;
}

.doc-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 28px;
}

.doc-meta-card h2 {
  font-size: 15px;
}

.doc-meta-card ul {
  padding-left: 18px;
}

.doc-callout {
  margin: 18px 0;
}

.doc-callout.note {
  border-color: rgba(142, 90, 42, 0.22);
}

.doc-callout.warning {
  border-color: rgba(146, 97, 0, 0.22);
}

.doc-callout.danger {
  border-color: rgba(139, 59, 50, 0.24);
}

.doc-callout h3 {
  font-size: 16px;
}

.doc-section {
  padding: 18px 0 8px;
  border-top: 1px solid var(--docs-border);
}

.doc-section h2 {
  margin-bottom: 12px;
}

.doc-section h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.doc-section p,
.doc-section li,
.doc-section td,
.doc-section th,
.doc-support-panel li {
  font-size: 15px;
}

.doc-section ol,
.doc-section ul,
.doc-support-panel ul {
  padding-left: 20px;
}

.doc-section li + li,
.doc-support-panel li + li {
  margin-top: 8px;
}

.doc-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--docs-border);
}

.doc-section th,
.doc-section td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--docs-border);
}

.doc-section tr:last-child td {
  border-bottom: 0;
}

.doc-section th {
  background: rgba(23, 22, 20, 0.04);
}

.doc-figure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.doc-figure {
  overflow: hidden;
}

.doc-figure img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.doc-figure figcaption {
  padding: 14px 16px 16px;
}

.docs-rail {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 82px;
}

.docs-rail-block {
  padding: 16px;
}

.docs-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.docs-rail-list li.depth-3 {
  padding-left: 12px;
}

.docs-rail-list a {
  text-decoration: none;
  color: var(--docs-ink-soft);
  font-size: 14px;
}

.docs-rail-list a:hover {
  color: var(--docs-ink);
}

.doc-support-panel {
  margin-top: 24px;
}

.doc-support-panel h2 {
  font-size: 18px;
}

.doc-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.doc-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
}

.doc-action.primary {
  background: var(--docs-ink);
  color: #fff;
  border-color: var(--docs-ink);
}

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

.docs-reference-panel table {
  margin-top: 12px;
}

.docs-site-footer {
  border-top: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.5);
}

.docs-site-footer-inner {
  align-items: start;
  padding-top: 24px;
  padding-bottom: 34px;
}

.docs-footer-heading {
  font-size: 14px;
  font-weight: 700;
}

.docs-footer-copy {
  max-width: 44ch;
  font-size: 13px;
  color: var(--docs-ink-soft);
}

@media (max-width: 1080px) {
  .docs-home-grid,
  .docs-article-layout {
    grid-template-columns: 1fr;
  }

  .docs-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .docs-site-header .docs-site-shell,
  .docs-site-footer-inner,
  .docs-section-header,
  .docs-result-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-role-grid,
  .docs-strip-grid,
  .doc-meta-grid,
  .doc-figure-grid,
  .docs-reference-grid,
  .docs-rail {
    grid-template-columns: 1fr;
  }

  .docs-home-main,
  .docs-page-main {
    padding-top: 28px;
  }

  .docs-home-copy h1,
  .doc-hero h1 {
    font-size: clamp(32px, 10vw, 52px);
  }
}

@media (max-width: 640px) {
  .docs-site-shell {
    width: min(calc(100% - 20px), var(--docs-shell));
  }

  .docs-primary-nav,
  .docs-header-actions,
  .docs-result-tags {
    gap: 8px;
  }

  .docs-primary-nav a,
  .docs-header-link,
  .docs-footer-links a {
    font-size: 12px;
  }

  .docs-search-bar {
    padding: 12px 14px;
  }
}
