:root {
  --docs-shell: 1240px;
  --docs-content: 820px;
  --docs-surface: #ffffff;
  --docs-soft: #eef1e8;
  --docs-border: rgba(18, 20, 15, 0.14);
  --docs-muted: #596159;
}

.documentation-page {
  min-width: 320px;
  color: var(--text);
  background: var(--docs-soft);
}

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

.docs-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--ink);
  background: rgba(245, 246, 238, 0.96);
  border-bottom: 1px solid var(--docs-border);
  backdrop-filter: blur(18px);
}

.docs-header__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.docs-brand,
.docs-footer__brand {
  display: inline-flex;
  width: max-content;
}

.docs-brand img,
.docs-footer__brand img {
  width: 92px;
  height: 48px;
  object-fit: contain;
}

.docs-header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.docs-header__nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #3d443d;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.docs-header__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--green-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.docs-header__nav a:hover::after,
.docs-header__nav a.active::after {
  transform: scaleX(1);
}

.docs-header__action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.docs-header__action:hover {
  color: var(--ink);
  background: var(--cyan);
}

.docs-mobile-menu { display: none; }

.docs-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(201, 245, 74, 0.13), transparent 34%),
    linear-gradient(145deg, #10110f, #18231e 70%, #102b22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.docs-hero__inner {
  max-width: 1040px;
  padding-block: clamp(72px, 8vw, 124px);
}

.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: #bfc6bb;
  font-size: 13px;
}

.docs-breadcrumb a { color: inherit; }
.docs-breadcrumb a:hover { color: var(--cyan); }
.docs-breadcrumb span[aria-current="page"] { color: var(--white); }

.docs-eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-hero h1 {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.docs-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #d5dbd1;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.docs-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #e7eadf;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, var(--docs-content));
  justify-content: center;
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 96px);
}

.docs-toc {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow: auto;
  scrollbar-width: thin;
}

.docs-toc nav {
  padding: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--docs-border);
  border-radius: 12px;
}

.docs-toc h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  color: var(--docs-muted);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  color: var(--ink);
  background: #e4e9dc;
}

.docs-article {
  min-width: 0;
  padding: clamp(28px, 5vw, 64px);
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 17, 15, 0.07);
}

.docs-article > section {
  scroll-margin-top: 104px;
}

.docs-article > section + section {
  margin-top: 52px;
  padding-top: 52px;
  border-top: 1px solid var(--docs-border);
}

.docs-article h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.docs-article h3 {
  margin: 34px 0 14px;
  color: #1b211c;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.3;
}

.docs-article h4 {
  margin: 26px 0 10px;
  font-size: 17px;
  line-height: 1.4;
}

.docs-article p,
.docs-article li,
.docs-article dd {
  color: #343b35;
  font-size: 16px;
  line-height: 1.75;
}

.docs-article p { margin: 0 0 18px; }
.docs-article ul,
.docs-article ol { margin: 18px 0 22px; padding-left: 24px; }
.docs-article li + li { margin-top: 8px; }
.docs-article strong { color: var(--ink); }

.docs-article a {
  color: #075f4b;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-article code {
  padding: 0.12em 0.35em;
  color: #172119;
  background: #edf1e7;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.docs-code,
.docs-article pre {
  margin: 20px 0 24px;
  padding: 20px 22px;
  overflow-x: auto;
  color: #edf4e8;
  background: #111813;
  border: 1px solid #304237;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.docs-code code,
.docs-article pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font: inherit;
}

.docs-table-wrap {
  width: 100%;
  margin: 22px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.docs-table-wrap:focus-visible { outline-offset: 4px; }

.docs-article table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.docs-article th,
.docs-article td {
  padding: 13px 15px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--docs-border);
}

.docs-article th {
  color: var(--ink);
  background: #edf1e7;
  font-size: 13px;
  font-weight: 750;
}

.docs-article tr:last-child td { border-bottom: 0; }
.docs-article tbody tr:nth-child(even) { background: #fafbf7; }

.docs-note,
.docs-warning {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--green-dark);
  border-radius: 0 8px 8px 0;
  background: #eef6ea;
}

.docs-warning {
  border-left-color: #9c5f15;
  background: #fff6e7;
}

.docs-note > :last-child,
.docs-warning > :last-child { margin-bottom: 0; }

.docs-formula {
  margin: 24px 0 !important;
  padding: 18px 20px;
  color: var(--ink);
  background: #f4f6ef;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px !important;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.docs-checklist {
  padding-left: 0 !important;
  list-style: none;
}

.docs-checklist li {
  position: relative;
  padding-left: 30px;
}

.docs-checklist li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid #657064;
  border-radius: 3px;
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  padding-bottom: clamp(64px, 8vw, 112px);
}

.docs-pagination a {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.docs-pagination a:last-child { text-align: right; }
.docs-pagination a:hover { border-color: var(--green-dark); transform: translateY(-2px); }
.docs-pagination span { color: var(--docs-muted); font-size: 12px; }
.docs-pagination strong { margin-top: 4px; font-size: 15px; }

.docs-index-hero .docs-hero__inner { max-width: 1120px; }

.docs-index-section {
  padding-block: clamp(64px, 8vw, 116px);
}

.docs-index-intro {
  max-width: 780px;
  margin-bottom: 42px;
}

.docs-index-intro h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.docs-index-intro p {
  margin: 18px 0 0;
  color: var(--docs-muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.docs-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.docs-card:hover {
  border-color: var(--green-dark);
  box-shadow: 0 18px 48px rgba(16, 17, 15, 0.09);
  transform: translateY(-3px);
}

.docs-card__number {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.docs-card h2 {
  max-width: 560px;
  margin: 22px 0 12px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

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

.docs-card__link {
  margin-top: auto;
  padding-top: 28px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
}

.docs-owner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: clamp(30px, 5vw, 56px);
  color: var(--white);
  background: var(--ink);
  border-radius: 14px;
}

.docs-owner h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.docs-owner p { color: #ccd1c6; line-height: 1.7; }
.docs-owner dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.docs-owner dt { color: #9ea89a; }
.docs-owner dd { margin: 0; color: var(--white); }
.docs-owner a { color: var(--cyan); }

.docs-footer {
  color: #bcc5ba;
  background: #050c08;
}

.docs-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 46px;
  padding-block: 64px;
}

.docs-footer__grid > div,
.docs-footer__grid > nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.docs-footer__grid strong { color: var(--white); font-size: 13px; }
.docs-footer__grid p { margin: 0; font-size: 13px; line-height: 1.65; }
.docs-footer__grid span,
.docs-footer__grid address { color: #b7c0b5; font-size: 13px; font-style: normal; line-height: 1.65; }
.docs-footer__grid a { min-height: 44px; display: inline-flex; align-items: center; color: #b7c0b5; font-size: 13px; text-decoration: none; }
.docs-footer__grid a:hover { color: var(--cyan); }

.docs-footer__bottom {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.docs-footer__bottom a,
.docs-footer__bottom button { min-height: 44px; display: inline-flex; align-items: center; color: #aeb7ac; background: none; border: 0; font: inherit; text-decoration: none; cursor: pointer; }
.docs-footer__bottom a:hover,
.docs-footer__bottom button:hover { color: var(--cyan); }

@media (max-width: 980px) {
  .docs-header__nav { display: none; }
  .docs-header__inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .docs-header__action { justify-self: end; }
  .docs-mobile-menu { position: relative; display: block; }
  .docs-mobile-menu summary {
    min-width: 64px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--docs-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .docs-mobile-menu summary::-webkit-details-marker { display: none; }
  .docs-mobile-menu nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 32px));
    display: grid;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--docs-border);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
  .docs-mobile-menu nav a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; text-decoration: none; }
  .docs-mobile-menu nav a:hover { background: var(--docs-soft); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; max-height: none; }
  .docs-toc nav { columns: 2; column-gap: 28px; }
  .docs-toc h2 { column-span: all; }
  .docs-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .docs-owner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .docs-shell { width: min(calc(100% - 32px), var(--docs-shell)); }
  .docs-header__inner { min-height: 64px; grid-template-columns: auto 1fr; }
  .docs-header__action { display: none; }
  .docs-mobile-menu { justify-self: end; }
  .docs-brand img { width: 82px; height: 44px; }
  .docs-hero__inner { padding-block: 52px 64px; }
  .docs-breadcrumb { margin-bottom: 24px; }
  .docs-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .docs-layout { gap: 24px; padding-block: 32px 56px; }
  .docs-toc nav { columns: 1; }
  .docs-article { padding: 26px 20px; border-radius: 10px; }
  .docs-article > section + section { margin-top: 38px; padding-top: 38px; }
  .docs-article h2 { font-size: 27px; }
  .docs-article p,
  .docs-article li,
  .docs-article dd { font-size: 16px; }
  .docs-code,
  .docs-article pre { margin-inline: -20px; padding-inline: 20px; border-right: 0; border-left: 0; border-radius: 0; font-size: 13px; }
  .docs-table-wrap { width: calc(100% + 40px); margin-left: -20px; border-right: 0; border-left: 0; border-radius: 0; }
  .docs-card-grid { grid-template-columns: 1fr; }
  .docs-card { min-height: 220px; }
  .docs-pagination { grid-template-columns: 1fr; }
  .docs-pagination a:last-child { text-align: left; }
  .docs-owner { padding: 28px 22px; }
  .docs-owner dl { grid-template-columns: 1fr; gap: 3px; }
  .docs-owner dd + dt { margin-top: 12px; }
  .docs-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
  .docs-footer__bottom { align-items: flex-start; gap: 12px 20px; padding-block: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .docs-card,
  .docs-pagination a,
  .docs-header__nav a::after { transition: none; }
  .docs-card:hover,
  .docs-pagination a:hover { transform: none; }
}

@media print {
  .docs-header,
  .docs-toc,
  .docs-pagination,
  .docs-footer { display: none !important; }
  .documentation-page,
  .docs-hero,
  .docs-article { color: #000; background: #fff; }
  .docs-hero__inner { padding-block: 24px; }
  .docs-lead,
  .docs-eyebrow,
  .docs-breadcrumb,
  .docs-meta span { color: #000; }
  .docs-layout { display: block; width: 100%; padding: 0; }
  .docs-article { padding: 0; border: 0; box-shadow: none; }
  .docs-table-wrap { overflow: visible; }
  .docs-article table { min-width: 0; }
  .docs-code,
  .docs-article pre { color: #000; background: #f2f2f2; border-color: #bbb; white-space: pre-wrap; }
}
