/**
 * Docs encyclopedia page — LicensesWP Core Demo
 */

.docs-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 7vw, 5.25rem) 0 3.25rem;
  color: #eef6ff;
  overflow: hidden;
  background: linear-gradient(152deg, #031528 0%, #041833 40%, #063a8f 100%);
}

.docs-hero__bleed {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.docs-hero__mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 55% 45% at 82% 22%, rgba(63, 212, 232, 0.3), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 78%, rgba(11, 91, 211, 0.38), transparent 55%);
}

.docs-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(63, 212, 232, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 212, 232, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 35%, black 18%, transparent 72%);
}

.docs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.docs-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.docs-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}

.docs-hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(238, 246, 255, 0.78);
}

.docs-hero__jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.docs-hero__jumps a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 232, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #e8f2ff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.docs-hero__jumps a:hover {
  background: rgba(63, 212, 232, 0.16);
  border-color: rgba(63, 212, 232, 0.45);
  color: #fff;
}

.docs-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  padding: clamp(2rem, 4vw, 3.25rem) 0 2.5rem;
}

@media (min-width: 980px) {
  .docs-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2.25rem;
  }
}

.docs-toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.1rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.docs-toc__title {
  margin: 0 0 0.75rem;
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.docs-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.docs-toc a {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.45rem;
  align-items: start;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.docs-toc__num {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.docs-toc a:hover {
  color: var(--navy);
  background: rgba(11, 91, 211, 0.06);
}

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

.docs-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.docs-block {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.2rem, 3vw, 1.85rem);
  border-bottom: 1px solid var(--line);
}

.docs-block:last-child {
  border-bottom: 0;
}

.docs-block__head {
  margin-bottom: 1.1rem;
}

.docs-block .section__title {
  max-width: none;
  margin-bottom: 0.45rem;
}

.docs-block .section__lead {
  margin: 0;
  max-width: 42rem;
}

.docs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .docs-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.docs-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, #f5f9fd, #fff);
  border: 1px solid var(--line);
}

.docs-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(11, 91, 211, 0.1);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
}

.docs-step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
}

.docs-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.docs-prose {
  max-width: 44rem;
}

.docs-prose p {
  margin: 0 0 0.95rem;
  color: var(--ink, #1a2b40);
  line-height: 1.7;
  font-size: 0.98rem;
}

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

.docs-inline-code {
  margin: 0.35rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #041833;
  color: #d7e8ff;
  border: 1px solid rgba(63, 212, 232, 0.22);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.docs-checklist {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 91, 211, 0.04);
  border: 1px solid rgba(11, 91, 211, 0.12);
}

.docs-checklist li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.docs-checklist .icon {
  color: var(--blue);
  margin-top: 0.15rem;
}

.docs-code-wrap {
  margin-top: 1.25rem;
}

.docs-code-wrap__label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.docs-code {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  background: #041833;
  color: #d7e8ff;
  border: 1px solid rgba(63, 212, 232, 0.25);
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.docs-code code {
  font-family: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

.docs-ops {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .docs-ops {
    grid-template-columns: repeat(2, 1fr);
  }
}

.docs-ops__card {
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--paper, #f7fafc);
  border: 1px solid var(--line);
}

.docs-ops__card h3 {
  margin: 0.65rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.docs-ops__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.docs-faq {
  display: grid;
  gap: 0.65rem;
}

.docs-faq details {
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  background: var(--paper, #f7fafc);
  border: 1px solid var(--line);
}

.docs-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}

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

.docs-faq summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 800;
}

.docs-faq details[open] summary::after {
  content: "–";
}

.docs-faq p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.docs-cta {
  margin-top: 0.5rem;
}

.docs-cta .section__eyebrow {
  color: var(--blue);
}

@media (max-width: 979px) {
  .docs-toc {
    position: relative;
    top: 0;
  }

  .docs-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.5rem;
  }
}

@media (max-width: 560px) {
  .docs-toc ol {
    grid-template-columns: 1fr;
  }

  .docs-step {
    grid-template-columns: 1fr;
  }
}
