.docs-page {
  --docs-surface: #fff;
  --docs-soft-accent: #dffbca;
  --docs-strong-accent: #0d4d00;
  --docs-quiet: #f1f3f4;
  --docs-shadow: 0 8px 28px rgb(30 34 38 / 4%);
  background: var(--paper, #f5f6f7);
  color: var(--ink, #1e2226);
}

.docs-hero {
  padding-block: clamp(42px, 6.8vw, 92px) clamp(25px, 4.2vw, 47px);
  border-bottom: 1px solid var(--line, #e2e5e8);
}

.docs-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 690;
  line-height: 1.13;
  letter-spacing: -.05em;
}

.docs-hero p {
  max-width: 40em;
  margin-top: 10px;
  color: var(--muted, #595f65);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.67;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(156px, 215px) minmax(0, 1fr);
  gap: clamp(21px, 4vw, 50px);
  align-items: start;
  margin-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 96px);
}

.docs-nav {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line, #e2e5e8);
  border-radius: 22px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
}

.docs-nav h2 {
  padding: 3px 9px 6px;
  color: var(--muted, #595f65);
  font-size: .85rem;
  font-weight: 650;
}

.docs-nav a {
  display: flex;
  min-height: 43px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 12px;
  font-weight: 590;
  line-height: 1.4;
}

.docs-nav a:hover,
.docs-nav a:focus-visible {
  background: var(--docs-soft-accent);
  color: var(--docs-strong-accent);
}

.docs-content {
  min-width: 0;
  max-width: 52rem;
}

.docs-section {
  padding: clamp(17px, 3.15vw, 34px);
  margin-bottom: 16px;
  border: 1px solid var(--line, #e2e5e8);
  border-radius: 28px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
  scroll-margin-block-start: .6rem;
}

.docs-section:target {
  border-color: #a6d497;
}

.docs-section:last-child {
  margin-bottom: 0;
}

.docs-section h2 {
  margin-bottom: 15px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.docs-section > p,
.docs-section li p,
.faq-list p {
  color: var(--muted, #595f65);
  line-height: 1.72;
}

.docs-section > p + .faq-list,
.docs-section > .faq-list + p {
  margin-top: 14px;
}

.docs-content a:not(.button) {
  color: var(--docs-strong-accent);
  text-decoration: underline;
  text-decoration-color: #808d7f;
  text-underline-offset: .24em;
}

.docs-content a:not(.button):hover {
  text-decoration-thickness: .12em;
}

.docs-steps {
  display: grid;
  gap: 9px;
  margin-bottom: 19px;
  padding: 2px 0 0 1.45em;
  line-height: 1.7;
}

.docs-steps li {
  padding-inline-start: 4px;
}

.docs-steps li::marker {
  color: var(--docs-strong-accent);
  font-weight: 650;
}

.docs-page .faq-list {
  display: block;
  padding: 1px 12px;
  border-radius: 16px;
  background: var(--docs-quiet);
}

.docs-page .faq-list details {
  border-bottom: 1px solid var(--line, #e2e5e8);
}

.docs-page .faq-list details:last-child {
  border-bottom: 0;
}

.docs-page .faq-list summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  cursor: pointer;
  font-weight: 620;
  line-height: 1.45;
  list-style: none;
}

.docs-page .faq-list summary::-webkit-details-marker {
  display: none;
}

.docs-page .faq-list summary::after {
  display: grid;
  width: 26px;
  min-width: 26px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line, #e2e5e8);
  border-radius: 50%;
  color: var(--ink, #1e2226);
  background: #fff;
  content: "+";
  font: 400 1.12rem / 1 system-ui, sans-serif;
}

.docs-page .faq-list details[open] summary::after {
  border-color: transparent;
  background: var(--docs-soft-accent);
  color: var(--docs-strong-accent);
  content: "−";
}

.docs-page .faq-list details p {
  max-width: 46rem;
  margin: 0 0 13px;
  padding-inline: 2px 29px;
}

.docs-page .faq-list details p + p {
  margin-top: -5px;
}

.docs-contact {
  background: #f5faf3;
}

.docs-contact > p + p {
  margin-top: 13px;
}

.docs-contact a.button {
  border-color: transparent;
  color: var(--docs-strong-accent);
  background: var(--accent, #88e95d);
}

.docs-contact a.button:hover {
  background: #a4ef82;
}

.docs-timeline {
  --timeline-indent: clamp(15px, 3vw, 34px);
  padding-inline-start: var(--timeline-indent);
  border-inline-start: 1px solid var(--line, #e2e5e8);
}

.docs-release {
  position: relative;
}

.docs-release::before {
  position: absolute;
  inset: clamp(22px, 3.2vw, 38px) auto auto calc(-1 * var(--timeline-indent) - 7px);
  width: 11px;
  aspect-ratio: 1;
  border: 1px solid #99a495;
  border-radius: 50%;
  background: var(--paper, #f5f6f7);
  content: "";
}

.docs-release:first-child::before,
.docs-release:target::before {
  border-color: #659d53;
  background: var(--accent, #88e95d);
}

.docs-release .changelog-list {
  display: grid;
  gap: 13px;
  padding: 0;
  list-style: none;
}

.docs-release .changelog-list li + li {
  padding-top: 12px;
  border-top: 1px solid var(--line, #e2e5e8);
}

.changelog-list h3 {
  margin-bottom: 4px;
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -.012em;
}

@media (max-width: 740px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-hero {
    padding-block: 33px 22px;
  }

  .docs-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 6px;
    padding: 11px;
  }

  .docs-nav h2 {
    grid-column: 1 / -1;
  }

  .docs-nav a {
    min-height: 44px;
  }

  .docs-page .faq-list details p {
    padding-inline-end: 5px;
  }

  .docs-section {
    border-radius: 22px;
  }
}
