:root {
  color-scheme: dark;
  --orange: #ff8a00;
  --amber: #ffc24b;
  --paper: #f7f3ea;
  --muted: #aaa39a;
  --line: rgba(255, 255, 255, 0.14);
  --panel: #11110f;
  --black: #070706;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 138, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 0, 0.025) 1px, transparent 1px),
    var(--black);
  background-size: 48px 48px;
  color: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.docs-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 48px;
}

.docs-topbar {
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, #171715, #0e0e0d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.docs-brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--orange);
  text-decoration: none;
  line-height: 0.9;
}

.docs-brand strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.docs-brand span {
  margin-top: 5px;
  font-size: 0.64rem;
  font-weight: 800;
}

.docs-top-actions,
.version-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.docs-tool-link,
.version-actions a {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.docs-tool-link:hover,
.docs-tool-link:focus-visible,
.version-actions a:hover,
.version-actions a:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 138, 0, 0.08);
  outline: none;
}

.docs-language {
  position: relative;
}

.docs-language summary {
  min-width: 126px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
}

.docs-language summary::-webkit-details-marker {
  display: none;
}

.docs-language summary span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.docs-language > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  min-width: 162px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.docs-language:not([open]) > div {
  display: none;
}

.docs-language a {
  display: block;
  padding: 10px;
  color: var(--orange);
  text-decoration: none;
}

.docs-language a:hover,
.docs-language a:focus-visible {
  background: rgba(255, 138, 0, 0.1);
  outline: none;
}

.docs-hero {
  padding: clamp(48px, 8vw, 88px) 0 38px;
  border-bottom: 1px solid var(--line);
}

.docs-kicker {
  margin: 0 0 13px;
  color: var(--orange) !important;
  font-size: 0.78rem;
  font-weight: 900;
}

.docs-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.96;
}

.docs-hero > p:not(.docs-kicker) {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.docs-notice {
  max-width: 780px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 138, 0, 0.52);
  border-radius: 6px;
  background: rgba(255, 138, 0, 0.08);
  color: #d8d0c4;
}

.docs-notice strong {
  color: var(--amber);
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  padding-top: 34px;
}

.docs-toc {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.docs-toc strong {
  display: block;
  padding: 8px 10px 10px;
  color: var(--amber);
}

.docs-toc a {
  display: block;
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  color: var(--orange);
  outline: none;
}

.docs-article section {
  margin-bottom: 34px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.docs-article h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.docs-article h3 {
  margin: 24px 0 8px;
  color: var(--amber);
  font-size: 1.08rem;
}

.docs-article p,
.docs-article li {
  color: #c9c2b7;
  line-height: 1.75;
}

.docs-article ol,
.docs-article ul {
  padding-left: 1.35rem;
}

.docs-article code {
  color: var(--amber);
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.docs-article a {
  color: var(--amber);
  text-underline-offset: 3px;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-item {
  min-height: 68px;
  padding: 11px 12px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.version-item > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.version-item strong {
  color: var(--amber);
  font-size: 1.08rem;
}

.version-item span {
  color: var(--muted);
}

.version-item em {
  padding: 4px 7px;
  border: 1px solid rgba(255, 138, 0, 0.42);
  border-radius: 999px;
  color: var(--orange);
  font-size: 0.72rem;
  font-style: normal;
}

.docs-wp-footer {
  color: #111;
  background: #f7f5ef;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.docs-wp-footer > .wp-block-group {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 4rem !important;
  padding-bottom: 3rem !important;
}

.docs-wp-footer .is-layout-flex,
.docs-wp-footer .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.docs-wp-footer .wp-block-navigation__container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
}

@media (max-width: 760px) {
  .docs-shell {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .docs-topbar {
    padding: 8px 9px;
  }

  .docs-tool-link {
    padding: 0 10px;
  }

  .docs-language summary {
    min-width: 108px;
    padding: 0 10px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-toc {
    position: static;
  }

  .version-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .docs-brand span {
    display: none;
  }

  .docs-tool-link {
    font-size: 0.86rem;
  }

  .docs-language summary {
    min-width: 96px;
    font-size: 0.86rem;
  }

  .docs-hero h1 {
    font-size: 2.45rem;
  }
}
