@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Gwendolyn:wght@400;700&family=Lobster+Two:wght@400;700&display=swap");

:root {
  --doc-ink: #102330;
  --doc-muted: #5f7180;
  --doc-faint: #8a9aa7;
  --doc-bg: #f3f8fb;
  --doc-surface: rgba(255, 255, 255, .9);
  --doc-white: #fff;
  --doc-line: #d9e6ed;
  --doc-blue: #136d98;
  --doc-blue-deep: #0a425d;
  --doc-cyan: #42b6cf;
  --doc-gold: #c8872d;
  --doc-green: #187b65;
  --doc-red: #b34e5a;
  --doc-shadow: 0 24px 65px rgba(31, 76, 100, .12);
  --doc-radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.docs-body {
  min-width: 320px;
  margin: 0;
  color: var(--doc-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(66, 182, 207, .13), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(200, 135, 45, .1), transparent 25rem),
    var(--doc-bg);
  font-family: var(--doc-body-font, "DM Sans"), system-ui, sans-serif;
  line-height: 1.7;
}

body.docs-body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(16, 35, 48, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 35, 48, .025) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  pointer-events: none;
}

a { color: inherit; }

.docs-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.docs-nav {
  position: sticky;
  z-index: 10;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 14px auto 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(217, 230, 237, .92);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(20, 70, 92, .08);
  backdrop-filter: blur(18px);
}

.docs-brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; text-decoration: none; }
.docs-brand img { width: 38px; height: 38px; object-fit: cover; border: 1px solid var(--doc-line); border-radius: 12px; }
.docs-brand-copy { display: grid; min-width: 0; line-height: 1.1; }
.docs-brand-name { color: var(--doc-blue-deep); font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: 27px; font-weight: 700; white-space: nowrap; }
.docs-brand-caption { color: var(--doc-faint); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }

.docs-breadcrumbs { margin: 24px 0 -44px; color: var(--doc-faint); font-size: 11px; }
.docs-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.docs-breadcrumbs li:not(:last-child)::after { margin-left: 8px; color: var(--doc-line); content: "/"; }
.docs-breadcrumbs a { color: var(--doc-blue); text-decoration: none; }
.docs-breadcrumbs a:hover { text-decoration: underline; }

.docs-nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.docs-nav-links a { padding: 8px 11px; color: var(--doc-muted); border-radius: 10px; font-size: 12px; font-weight: 600; text-decoration: none; transition: color .2s ease, background .2s ease; }
.docs-nav-links a:hover, .docs-nav-links a:focus-visible { color: var(--doc-blue-deep); background: #eaf5f8; outline: none; }
.docs-nav-links a.docs-nav-cta { color: var(--doc-white); background: var(--doc-blue-deep); }
.docs-nav-links a.docs-nav-cta:hover, .docs-nav-links a.docs-nav-cta:focus-visible { color: var(--doc-white); background: var(--doc-blue); }
.docs-theme-toggle { display: inline-grid; width: 50px; height: 30px; place-items: center; padding: 0; color: var(--doc-blue-deep); background: rgba(255, 255, 255, .72); border: 1px solid var(--doc-line); border-radius: 999px; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.docs-theme-toggle:hover, .docs-theme-toggle:focus-visible { color: var(--doc-white); background: var(--doc-blue-deep); border-color: var(--doc-blue-deep); outline: none; }
.docs-theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.docs-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: 50px; padding: 82px 0 48px; }
.docs-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--doc-blue); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.docs-kicker::before { width: 28px; height: 2px; background: var(--doc-cyan); content: ""; }
.docs-hero h1 { max-width: 760px; margin: 14px 0 16px; color: var(--doc-blue-deep); font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: clamp(52px, 8vw, 94px); font-weight: 700; line-height: .86; letter-spacing: -.02em; }
.docs-hero-lead { max-width: 700px; margin: 0; color: var(--doc-muted); font-size: 16px; }
.docs-hero-card { position: relative; overflow: hidden; padding: 25px; background: linear-gradient(145deg, #0b435d, #137897); border-radius: var(--doc-radius); color: #f8fdff; box-shadow: var(--doc-shadow); }
.docs-hero-card::after { position: absolute; right: -44px; bottom: -62px; width: 190px; height: 190px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255, 255, 255, .045), 0 0 0 48px rgba(255, 255, 255, .035); content: ""; }
.docs-hero-card-label { color: #a9e7f1; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.docs-hero-card strong { display: block; margin-top: 10px; font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: 39px; line-height: 1; }
.docs-hero-card p { position: relative; z-index: 1; margin: 14px 0 0; color: #d8f2f6; font-size: 13px; }

.docs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 45px; }
.docs-metric { padding: 17px 18px; background: var(--doc-surface); border: 1px solid var(--doc-line); border-radius: 15px; box-shadow: 0 10px 30px rgba(29, 82, 105, .05); }
.docs-metric strong { display: block; color: var(--doc-blue-deep); font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: 33px; line-height: 1; }
.docs-metric span { display: block; margin-top: 5px; color: var(--doc-muted); font-size: 11px; }

.docs-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 38px; }
.docs-toc { position: sticky; top: 96px; padding: 18px 14px; background: rgba(255, 255, 255, .56); border: 1px solid var(--doc-line); border-radius: 16px; }
.docs-toc-title { margin: 0 0 10px 8px; color: var(--doc-faint); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.docs-toc a { display: block; padding: 7px 8px; color: var(--doc-muted); border-radius: 8px; font-size: 11px; text-decoration: none; }
.docs-toc a:hover, .docs-toc a:focus-visible { color: var(--doc-blue-deep); background: #e9f5f8; outline: none; }
.docs-toc-divider { height: 1px; margin: 11px 8px; background: var(--doc-line); }

.docs-content { min-width: 0; padding-bottom: 64px; }
.doc-section { scroll-margin-top: 105px; margin-bottom: 25px; padding: 32px 34px; background: var(--doc-surface); border: 1px solid var(--doc-line); border-radius: var(--doc-radius); box-shadow: 0 12px 40px rgba(37, 88, 110, .045); }
.doc-section h2 { margin: 0 0 9px; color: var(--doc-blue-deep); font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: 44px; font-weight: 700; line-height: 1; }
.doc-section h3 { margin: 25px 0 8px; color: var(--doc-blue-deep); font-size: 17px; }
.doc-section h4 { margin: 19px 0 6px; color: var(--doc-ink); font-size: 13px; }
.doc-section p { margin: 9px 0; color: var(--doc-muted); font-size: 13px; }
.doc-section ul, .doc-section ol { margin: 9px 0; padding-left: 21px; color: var(--doc-muted); font-size: 13px; }
.doc-section li { margin: 6px 0; }
.doc-section strong { color: var(--doc-ink); }
.doc-intro { margin-top: -2px !important; color: var(--doc-faint) !important; font-size: 12px !important; }
.doc-anchor { position: relative; top: -95px; display: block; visibility: hidden; }

.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.doc-card { padding: 16px; background: #f8fbfc; border: 1px solid #e2edf1; border-radius: 14px; }
.doc-card h4 { margin: 0 0 6px; color: var(--doc-blue-deep); }
.doc-card p { margin: 0; font-size: 12px; }
.doc-card .doc-card-tag { display: inline-block; margin-bottom: 8px; padding: 3px 7px; color: var(--doc-blue); background: #e3f3f7; border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.doc-callout { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--doc-cyan); background: #edf9fb; border-radius: 0 12px 12px 0; }
.doc-callout p { margin: 0; color: #2c6375; font-size: 12px; }
.doc-callout.warning { border-left-color: var(--doc-gold); background: #fff8e9; }
.doc-callout.warning p { color: #785721; }
.doc-callout.danger { border-left-color: var(--doc-red); background: #fff1f3; }
.doc-callout.danger p { color: #7e3c45; }

.doc-steps { display: grid; gap: 10px; margin: 17px 0; padding: 0; list-style: none; counter-reset: docs-step; }
.doc-steps li { position: relative; min-height: 46px; margin: 0; padding: 2px 0 2px 48px; color: var(--doc-muted); font-size: 13px; counter-increment: docs-step; }
.doc-steps li::before { position: absolute; top: 0; left: 0; display: grid; width: 32px; height: 32px; place-items: center; color: var(--doc-white); background: var(--doc-blue); border-radius: 50%; content: counter(docs-step, decimal-leading-zero); font-size: 10px; font-weight: 700; }
.doc-steps li strong { display: block; margin-bottom: 2px; }

.doc-table-wrap { overflow-x: auto; margin: 17px 0; border: 1px solid var(--doc-line); border-radius: 13px; }
.doc-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 12px; }
.doc-table th { color: var(--doc-blue-deep); background: #eff7f9; font-size: 10px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.doc-table th, .doc-table td { padding: 11px 13px; border-bottom: 1px solid var(--doc-line); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td { color: var(--doc-muted); }
.doc-table td strong { color: var(--doc-ink); }

.doc-code { display: inline-block; padding: 2px 6px; color: var(--doc-blue-deep); background: #e8f3f5; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.doc-pill { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 8px; border: 1px solid var(--doc-line); border-radius: 999px; color: var(--doc-muted); font-size: 10px; }
.doc-pill.blue { color: var(--doc-blue); background: #e9f7fa; border-color: #b9e4ed; }
.doc-pill.green { color: var(--doc-green); background: #eaf8f2; border-color: #bee6d6; }
.doc-pill.gold { color: #8b5a1b; background: #fff5dd; border-color: #efd9a7; }

.docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 0 38px; color: var(--doc-faint); border-top: 1px solid var(--doc-line); font-size: 11px; }
.docs-footer-links { display: flex; flex-wrap: wrap; gap: 13px; }
.docs-footer a { color: var(--doc-blue); text-decoration: none; }
.docs-footer a:hover { text-decoration: underline; }

.policy-hero { padding: 72px 0 34px; }
.policy-hero h1 { max-width: 780px; margin: 12px 0; color: var(--doc-blue-deep); font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: clamp(54px, 8vw, 90px); line-height: .86; }
.policy-hero p { max-width: 760px; margin: 0; color: var(--doc-muted); font-size: 15px; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.policy-meta span { padding: 5px 9px; color: var(--doc-muted); background: rgba(255, 255, 255, .72); border: 1px solid var(--doc-line); border-radius: 999px; font-size: 10px; }
.policy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 22px; padding-bottom: 45px; }
.policy-aside { position: sticky; top: 96px; padding: 22px; background: linear-gradient(150deg, #0a425d, #147b97); border-radius: 18px; color: #e8fbff; box-shadow: var(--doc-shadow); }
.policy-aside h2 { margin: 0 0 12px; color: #fff; font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: 31px; line-height: 1; }
.policy-aside p { margin: 0; color: #cbeaf0; font-size: 12px; }
.policy-aside a { display: block; margin-top: 17px; color: #a9e7f1; font-size: 11px; font-weight: 700; text-decoration: none; }
.policy-aside a:hover { color: #fff; }
.policy-block { margin-bottom: 16px; padding: 28px 31px; background: var(--doc-surface); border: 1px solid var(--doc-line); border-radius: var(--doc-radius); }
.policy-block h2 { margin: 0 0 11px; color: var(--doc-blue-deep); font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: 40px; line-height: 1; }
.policy-block h3 { margin: 22px 0 6px; color: var(--doc-blue-deep); font-size: 16px; }
.policy-block p, .policy-block li { color: var(--doc-muted); font-size: 13px; }
.policy-block ul { margin: 8px 0; padding-left: 21px; }
.policy-block li { margin: 6px 0; }
.policy-signature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.policy-signature div { padding: 13px; background: #f7fbfc; border: 1px solid var(--doc-line); border-radius: 12px; }
.policy-signature small { display: block; color: var(--doc-faint); font-size: 10px; }
.policy-signature strong { display: block; margin-top: 5px; color: var(--doc-ink); font-family: var(--doc-display-font, "Gwendolyn"), cursive; font-size: 25px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --doc-ink: #edf8fc;
  --doc-muted: #b2c8d2;
  --doc-faint: #849ca8;
  --doc-bg: #09141b;
  --doc-surface: rgba(17, 30, 39, .94);
  --doc-white: #fff;
  --doc-line: #2b4653;
  --doc-blue: #76d6e8;
  --doc-blue-deep: #b7edf5;
  --doc-cyan: #67e1f3;
  --doc-gold: #f0c36e;
  --doc-green: #6ddbbd;
  --doc-red: #ff9daa;
  --doc-shadow: 0 24px 65px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] body.docs-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(66, 182, 207, .12), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(200, 135, 45, .08), transparent 25rem),
    var(--doc-bg);
}

html[data-theme="dark"] body.docs-body::before {
  background-image: linear-gradient(rgba(210, 242, 250, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(210, 242, 250, .035) 1px, transparent 1px);
}

html[data-theme="dark"] .docs-nav {
  background: rgba(14, 27, 36, .88);
  border-color: rgba(55, 86, 99, .92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .docs-nav-links a:hover,
html[data-theme="dark"] .docs-nav-links a:focus-visible {
  background: #173844;
}

html[data-theme="dark"] .docs-theme-toggle {
  background: rgba(27, 52, 63, .9);
}

html[data-theme="dark"] .docs-toc {
  background: rgba(17, 30, 39, .72);
}

html[data-theme="dark"] .docs-toc a:hover,
html[data-theme="dark"] .docs-toc a:focus-visible {
  background: #173844;
}

html[data-theme="dark"] .doc-card {
  background: #122630;
  border-color: #2b4653;
}

html[data-theme="dark"] .doc-callout {
  background: #12313a;
}

html[data-theme="dark"] .doc-callout p {
  color: #b8e4eb;
}

html[data-theme="dark"] .doc-callout.warning {
  background: #3a2e1d;
}

html[data-theme="dark"] .doc-callout.warning p {
  color: #f2d795;
}

html[data-theme="dark"] .doc-callout.danger {
  background: #3c2028;
}

html[data-theme="dark"] .doc-callout.danger p {
  color: #ffc0c7;
}

html[data-theme="dark"] .doc-table th {
  background: #17313b;
}

html[data-theme="dark"] .doc-code {
  background: #173844;
}

html[data-theme="dark"] .doc-pill.blue {
  background: #173844;
  border-color: #2f6978;
}

html[data-theme="dark"] .doc-pill.green {
  background: #14372f;
  border-color: #2d7564;
}

html[data-theme="dark"] .doc-pill.gold {
  background: #3a2e1d;
  border-color: #80632e;
}

html[data-theme="dark"] .policy-meta span,
html[data-theme="dark"] .policy-signature div {
  background: rgba(24, 43, 53, .86);
}

.docs-body.docs-lobster {
  --doc-display-font: "Lobster Two";
  --doc-body-font: "Lobster Two";
}

@media (max-width: 900px) {
  .docs-hero { grid-template-columns: 1fr; gap: 25px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 10px; }
  .docs-toc-title { width: 100%; margin-bottom: 2px; }
  .docs-toc-divider { display: none; }
  .docs-toc a { padding: 6px 8px; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-aside { position: static; }
}

@media (max-width: 640px) {
  .docs-wrap { width: min(100% - 24px, 560px); }
  .docs-nav { top: 8px; align-items: flex-start; margin-top: 8px; padding: 10px; }
  .docs-nav-links { max-width: 170px; }
  .docs-nav-links a { padding: 6px 7px; font-size: 10px; }
  .docs-brand-name { font-size: 24px; }
  .docs-brand-caption { font-size: 8px; }
  .docs-hero, .policy-hero { padding-top: 54px; }
  .docs-breadcrumbs { margin-top: 18px; margin-bottom: -30px; }
  .docs-hero h1, .policy-hero h1 { font-size: 62px; }
  .docs-hero-lead, .policy-hero p { font-size: 14px; }
  .docs-metrics { grid-template-columns: repeat(2, 1fr); padding-bottom: 28px; }
  .docs-metric { padding: 13px; }
  .docs-metric strong { font-size: 29px; }
  .doc-section, .policy-block { padding: 23px 19px; border-radius: 17px; }
  .doc-section h2, .policy-block h2 { font-size: 38px; }
  .doc-grid, .policy-signature { grid-template-columns: 1fr; }
  .docs-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
