/* ==========================================================================
   SEONuxt Documentation UI — Search Appearance (/laksana)
   Aligned with Theme Radii (--bs-border-radius-sm: 0.2rem, --bs-border-radius: 0.325rem, --bs-border-radius-lg: 0.5rem)
   Optimized for 100/100 Performance, Accessibility (WCAG AA), Best Practices & SEO
   ========================================================================== */

:root,
html[data-bs-theme="light"] {
  --docs-surface: #ffffff;
  --docs-surface-subtle: #f8fafc;
  --docs-border: rgba(3, 42, 54, 0.08);
  --docs-text-primary: #032a36;
  --docs-text-muted: #364f57;
  --docs-accent-text: var(--color-one);
  --docs-accent-badge-bg: rgba(var(--color-rgb-code-one), 0.14);
  --docs-highlight-text: var(--color-one);

  /* Light Mode Hero, CTA & Command Search */
  --docs-hero-bg:
    radial-gradient(circle at 90% 15%, rgba(0, 220, 130, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(0, 157, 235, 0.08) 0%, transparent 40%),
    radial-gradient(rgba(3, 42, 54, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f4fbf7 58%, #eaf7f0 100%);
  --docs-hero-border: rgba(var(--color-rgb-code-one), 0.3);
  --docs-hero-shadow: 0 14px 36px rgba(3, 42, 54, 0.08);
  --docs-hero-text: #032a36;
  --docs-hero-sub: #364f57;
  --docs-hero-card-bg: rgba(255, 255, 255, 0.92);
  --docs-hero-card-border: rgba(var(--color-rgb-code-one), 0.25);
  --docs-hero-stat-bg: #f8fafc;
  --docs-hero-stat-border: rgba(3, 42, 54, 0.12);
  --docs-hero-step-bg: #f7fbf9;
  --docs-hero-step-border: rgba(3, 42, 54, 0.1);
  --docs-hero-step-hover-bg: rgba(var(--color-rgb-code-one), 0.12);
  --docs-hero-search-bg: #ffffff;
  --docs-hero-search-border: rgba(var(--color-rgb-code-one), 0.35);
  --docs-hero-placeholder: #5c757d;
  --docs-hero-pill-bg: rgba(var(--color-rgb-code-one), 0.1);
  --docs-hero-pill-border: rgba(var(--color-rgb-code-one), 0.35);
  --docs-hero-track: rgba(3, 42, 54, 0.12);
  --docs-hero-chip-bg: #ffffff;
  --docs-hero-chip-border: rgba(3, 42, 54, 0.18);
  --docs-hero-chip-text: #032a36;
  --docs-cta-outline-border: var(--color-one);
  --docs-cta-outline-text: var(--color-one);

  /* Light Mode Code Window & Syntax Tokens (WCAG AA on #ffffff) */
  --docs-code-bg: #ffffff;
  --docs-code-header: #fcfcfc;
  --docs-code-text: #032a36;
  --docs-code-border: rgba(3, 42, 54, 0.16);
  --docs-code-lang-bg: var(--color-one);
  --docs-code-lang-text: #ffffff;
  --docs-copy-bg: #ffffff;
  --docs-copy-border: rgba(3, 42, 54, 0.18);
  --docs-copy-text: #032a36;
  --tok-key: #006b3f;
  --tok-attr: #6f42c1;
  --tok-str: #0369a1;
  --tok-kw: #64748b;
  --tok-num: #9a5b00;
  --tok-comment: #5d7880;
  --tok-punct: #64748b;
}

html[data-bs-theme="dark"] {
  --docs-surface: #041d25;
  --docs-surface-subtle: #032a36;
  --docs-border: rgba(128, 238, 192, 0.2);
  --docs-text-primary: #eefaf4;
  --docs-text-muted: #b7d7cc;
  --docs-accent-text: #00dc82;
  --docs-accent-badge-bg: rgba(0, 220, 130, 0.12);
  --docs-highlight-text: #00dc82;

  /* Dark Mode Hero, CTA & Command Search */
  --docs-hero-bg:
    radial-gradient(circle at 88% 15%, rgba(0, 220, 130, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(0, 157, 235, 0.14) 0%, transparent 40%),
    radial-gradient(rgba(128, 238, 192, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, #021f28 0%, var(--color-thee) 55%, #043747 100%);
  --docs-hero-border: rgba(var(--color-rgb-code-one), 0.35);
  --docs-hero-shadow: 0 20px 44px rgba(2, 24, 31, 0.24);
  --docs-hero-text: #ffffff;
  --docs-hero-sub: rgba(255, 255, 255, 0.86);
  --docs-hero-card-bg: rgba(2, 22, 29, 0.78);
  --docs-hero-card-border: rgba(128, 238, 192, 0.26);
  --docs-hero-stat-bg: rgba(255, 255, 255, 0.05);
  --docs-hero-stat-border: rgba(255, 255, 255, 0.12);
  --docs-hero-step-bg: rgba(255, 255, 255, 0.04);
  --docs-hero-step-border: rgba(255, 255, 255, 0.08);
  --docs-hero-step-hover-bg: rgba(0, 220, 130, 0.14);
  --docs-hero-search-bg: rgba(2, 22, 29, 0.72);
  --docs-hero-search-border: rgba(128, 238, 192, 0.35);
  --docs-hero-placeholder: rgba(255, 255, 255, 0.72);
  --docs-hero-pill-bg: rgba(255, 255, 255, 0.08);
  --docs-hero-pill-border: rgba(var(--color-rgb-code-two), 0.28);
  --docs-hero-track: rgba(255, 255, 255, 0.18);
  --docs-hero-chip-bg: rgba(255, 255, 255, 0.08);
  --docs-hero-chip-border: rgba(128, 238, 192, 0.24);
  --docs-hero-chip-text: #e6f7f0;
  --docs-cta-outline-border: var(--color-two);
  --docs-cta-outline-text: var(--color-two);

  /* Dark Mode Code Window & Syntax Tokens */
  --docs-code-bg: #03171e;
  --docs-code-header: #011015;
  --docs-code-text: #edf9f3;
  --docs-code-border: rgba(var(--color-rgb-code-one), 0.28);
  --docs-code-lang-bg: var(--color-one);
  --docs-code-lang-text: #ffffff;
  --docs-copy-bg: rgba(255, 255, 255, 0.06);
  --docs-copy-border: rgba(128, 238, 192, 0.2);
  --docs-copy-text: #cde8de;
  --tok-key: #80eec0;
  --tok-attr: #ffd942;
  --tok-str: #a5f3fc;
  --tok-kw: #00dc82;
  --tok-num: #ffd942;
  --tok-comment: #7ea399;
  --tok-punct: #6f948c;
}

/* ---------- Focus & Motion Accessibility ---------- */
.docs-shell a:focus-visible,
.docs-shell button:focus-visible,
.docs-shell summary:focus-visible,
.docs-shell input:not(.docs-sidebar-search-input):not(.docs-cmd-input):focus-visible,
.docs-code-pre:focus-visible {
  outline: 2px solid var(--color-one);
  outline-offset: 2px;
}

.docs-skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1080;
  padding: 0.6rem 1rem;
  border-radius: var(--bs-border-radius-lg);
  background: var(--color-one);
  color: var(--color-thee);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Documentation Layout Shell & Responsive Wide-Screen Grids ---------- */
section.docs-shell {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  color: var(--docs-text-primary);
}

@media (max-width: 767.98px) {
  section.docs-shell {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
}

.docs-frame {
  width: 100%;
  margin-inline: auto;
}

@media (min-width: 1900px) {
  .docs-frame {
    max-width: 1820px;
  }
}

.docs-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

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

@media (min-width: 1500px) {
  .docs-page-grid {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 2.75rem;
  }
}

@media (min-width: 1900px) {
  .docs-page-grid {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 3.25rem;
  }
}

.docs-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

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

@media (min-width: 1500px) {
  .docs-article-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 2.75rem;
  }
}

@media (min-width: 1900px) {
  .docs-article-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 3.25rem;
  }
}

.docs-hub-standalone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .docs-hub-standalone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .docs-hub-standalone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1500px) {
  .docs-hub-standalone-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Bootstrap 5 doesn't include .min-w-0; required for flex ellipsis truncation */
.docs-shell .min-w-0 {
  min-width: 0 !important;
}

.docs-shell h1,
.docs-shell h2,
.docs-shell h3 {
  line-height: 1.38;
}

.docs-shell p,
.docs-shell li {
  line-height: 1.72;
}

.docs-sidebar-sticky {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.docs-sidebar-sticky::-webkit-scrollbar {
  width: 5px;
}

.docs-sidebar-sticky::-webkit-scrollbar-thumb {
  background: var(--color-primary-o);
  border-radius: 999px;
}

.docs-toc-sticky {
  position: sticky;
  top: 5.5rem;
  border-left: 1px solid var(--docs-border);
  padding-left: 1.25rem;
}

/* ---------- Sidebar Navigation (Pro Tree-Rail Docs Style) ---------- */
.docs-sidebar-nav {
  padding-right: 0.25rem;
}

.docs-accent-label {
  color: var(--docs-accent-text);
}

.docs-muted-text {
  color: var(--docs-text-muted);
}

.docs-count-badge {
  background: var(--docs-accent-badge-bg);
  color: var(--docs-accent-text);
  border: 1px solid var(--color-primary-o);
  font-weight: 700;
}

.docs-sidebar-hub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--bs-border-radius-lg);
  color: var(--docs-text-primary);
  text-decoration: none;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.docs-sidebar-hub:hover {
  border-color: var(--color-one);
  background: var(--docs-surface-subtle);
  color: var(--docs-text-primary);
}

.docs-sidebar-hub.active {
  border-color: var(--color-thee);
  background: var(--color-thee);
  color: #ffffff;
}

html[data-bs-theme="dark"] .docs-sidebar-hub.active {
  border-color: var(--color-one);
}

.docs-sidebar-hub-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--bs-border-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: var(--docs-accent-badge-bg);
  color: var(--color-one);
  flex-shrink: 0;
}

.docs-sidebar-hub.active .docs-sidebar-hub-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-one);
}

.docs-sidebar-hub-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.docs-sidebar-hub-title {
  font-size: 0.84rem;
  font-weight: 700;
}

.docs-sidebar-hub-sub {
  font-size: 0.7rem;
  color: var(--docs-text-muted);
}

.docs-sidebar-hub.active .docs-sidebar-hub-sub {
  color: rgba(255, 255, 255, 0.78);
}

.docs-sidebar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 26px;
  padding: 0 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--bs-border-radius);
  background: var(--color-one);
  color: #ffffff;
  flex-shrink: 0;
}

.docs-sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  background: #fcfcfc;
  border: 1px solid var(--docs-border);
  border-radius: var(--bs-border-radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html[data-bs-theme="dark"] .docs-sidebar-search {
  background: var(--docs-surface-subtle);
}

.docs-sidebar-search:focus-within {
  border-color: var(--color-one);
  box-shadow: 0 0 0 0.18rem var(--kt-primary-light);
}

.docs-sidebar-search i {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.docs-sidebar-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--docs-text-primary);
  font-size: 0.82rem;
  padding: 0.15rem 0;
  outline: none;
  box-shadow: none;
}

.docs-sidebar-search-input:focus,
.docs-sidebar-search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.docs-sidebar-search-input::placeholder {
  color: var(--docs-text-muted);
  opacity: 0.85;
}

.docs-nav-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--docs-text-muted);
  margin: 0.6rem 0 0.4rem;
  padding-left: 0.25rem;
}

.docs-nav-details summary {
  list-style: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: var(--bs-border-radius-lg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--docs-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.docs-nav-details summary:hover {
  background: var(--kt-primary-light);
  color: var(--docs-accent-text);
}

.docs-nav-details[open] > summary {
  color: var(--docs-accent-text);
}

.docs-nav-details[open] > summary .docs-chevron {
  transform: rotate(90deg);
}

.docs-chevron {
  transition: transform 0.2s ease;
  font-size: 0.72rem;
  opacity: 0.75;
}

.docs-tree-list {
  display: flex;
  flex-direction: column;
  margin-left: 0.85rem;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--docs-border);
}

.docs-tree-link {
  display: block;
  padding: 0.34rem 0.5rem 0.34rem 0.65rem;
  margin-left: calc(-0.65rem - 1px);
  border-left: 2px solid transparent;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--docs-text-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-tree-link:hover {
  color: var(--docs-text-primary);
  border-left-color: var(--color-primary-o);
}

.docs-tree-link.active {
  color: var(--docs-accent-text);
  border-left-color: var(--color-one);
  font-weight: 600;
}

/* ---------- Right On-Page TOC ---------- */
.docs-toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--docs-text-muted);
  margin-bottom: 0.75rem;
}

.docs-toc-link {
  display: block;
  padding: 0.42rem 0 0.42rem 1rem;
  margin-left: -1.25rem;
  border-left: 2px solid transparent;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--docs-text-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-toc-link:hover,
.docs-toc-link.active {
  color: var(--docs-accent-text);
  border-left-color: var(--color-one);
  font-weight: 600;
}

/* ---------- Article Hero & Meta (Dual-Theme Adaptive Surface) ---------- */
.docs-hero-box {
  background: var(--docs-hero-bg);
  background-size: auto, auto, 22px 22px, auto;
  border: 1px solid var(--docs-hero-border);
  border-radius: var(--bs-border-radius-xl);
  padding: 1.25rem;
  color: var(--docs-hero-text);
  position: relative;
  overflow: hidden;
}


.docs-hero-box {
    z-index: 970;
}


@media (min-width: 768px) {
  .docs-hero-box {
    padding: 1.6rem 1.85rem;
  }
}

.docs-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.9rem;
}

.docs-hero-score {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-hero-score-label {
  font-size: 0.78rem;
  color: var(--docs-hero-sub);
}

.docs-hero-title {
  color: var(--docs-hero-text);
}

.docs-article-title {
  font-size: clamp(1.32rem, 1.15rem + 0.65vw, 1.72rem);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}

.docs-article-tagline {
  font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1.04rem);
  line-height: 1.5;
  margin: 0 0 0.6rem;
}

.docs-article-desc {
  font-size: 0.9rem;
  line-height: 1.68;
  margin: 0;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.docs-md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  height: 32px;
  padding: 0 0.78rem;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid var(--docs-hero-chip-border);
  background: var(--docs-hero-chip-bg);
  color: var(--docs-hero-chip-text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.docs-md-btn i {
  font-size: 0.85rem;
  color: var(--docs-text-muted);
  transition: color 0.16s ease;
}

html[data-bs-theme="dark"] .docs-md-btn i {
  color: var(--docs-hero-sub);
}

.docs-md-btn:hover,
.docs-md-btn.is-copied {
  background: var(--color-one);
  border-color: var(--color-one);
  color: #ffffff;
}

.docs-md-btn:hover i,
.docs-md-btn.is-copied i {
  color: #ffffff;
}

.docs-hero-series {
  margin-top: 1.05rem;
  padding-top: 0.85rem;
}

.docs-hero-series-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--docs-hero-sub);
  margin-bottom: 0.5rem;
}

.docs-hero-series-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

@media (min-width: 768px) {
  .docs-hero-series-list {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.docs-series-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.28rem 0.62rem;
  border-radius: var(--bs-border-radius-lg);
  font-size: 0.77rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--docs-hero-chip-bg);
  color: var(--docs-hero-chip-text);
  border: 1px solid var(--docs-hero-chip-border);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.docs-series-chip:hover {
  border-color: var(--color-one);
  color: var(--docs-accent-text);
}

.docs-series-chip.is-current {
  background: var(--color-thee);
  border-color: var(--color-thee);
  color: #ffffff;
  font-weight: 700;
}

html[data-bs-theme="dark"] .docs-series-chip.is-current {
  border-color: var(--color-one);
}

.docs-series-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: var(--bs-border-radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--docs-accent-badge-bg);
  color: var(--docs-accent-text);
}

.docs-series-chip.is-current .docs-series-chip-num {
  background: var(--color-one);
  color: #ffffff;
}

.docs-series-chip-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.docs-series-chip-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.docs-hero-subtitle {
  color: var(--docs-hero-sub);
}

.docs-hero-clear {
  color: var(--docs-hero-sub);
}

.docs-hero-clear:hover {
  color: var(--docs-accent-text);
}

.docs-hero-search {
  background: var(--docs-hero-search-bg);
  color: var(--docs-hero-text);
}

.docs-hero-search::placeholder {
  color: var(--docs-hero-placeholder);
  opacity: 1;
}

.docs-badge-primary {
  background: var(--docs-accent-badge-bg);
  color: var(--docs-accent-text);
  border: 1px solid var(--docs-hero-pill-border);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.24rem 0.65rem;
  border-radius: var(--bs-border-radius-lg);
}

.docs-highlight-title {
  color: var(--docs-highlight-text);
  font-weight: 600;
}

.docs-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--docs-accent-text);
  background: var(--docs-hero-pill-bg);
  border: 1px solid var(--docs-hero-pill-border);
  padding: 0.24rem 0.62rem;
  border-radius: var(--bs-border-radius-lg);
}

.docs-score-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--docs-hero-track);
  overflow: hidden;
  width: 88px;
}

.docs-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-one), var(--color-two));
  border-radius: 999px;
}

/* ---------- Section Heading & Performance Optimization ---------- */
.docs-section {
  scroll-margin-top: 5.5rem;
  margin-top: 2rem;
}

.docs-section:first-child {
  margin-top: 0;
}

.docs-section-lazy {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.docs-section-title {
  font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.45rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--docs-text-primary);
}

.docs-section-title i {
  color: var(--docs-accent-text);
}

.docs-callout {
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-left: 3px solid var(--color-one);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.docs-callout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-callout-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--bs-border-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--docs-accent-badge-bg);
  color: var(--docs-accent-text);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.docs-callout-title {
  font-size: 0.96rem;
  color: var(--docs-text-primary);
}

.docs-callout-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--docs-text-muted);
}

.docs-takeaway-list li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid var(--docs-border);
}

.docs-takeaway-list li:last-child {
  padding-bottom: 0.1rem;
  border-bottom: 0;
}

.docs-takeaway-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--docs-accent-text);
  background: var(--docs-accent-badge-bg);
  padding: 0.14rem 0.44rem;
  border-radius: var(--bs-border-radius);
  flex-shrink: 0;
  line-height: 1.3;
}

.docs-takeaway-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--docs-text-primary);
}

/* ---------- Feature Blocks & Icons ---------- */
.docs-feature-col {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-feature-col:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--docs-text-primary);
}

.docs-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--bs-border-radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--docs-accent-badge-bg);
  border: 1px solid var(--color-primary-o);
  color: var(--docs-accent-text);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Impact Badges (WCAG AA compliant in both Light & Dark themes) */
.docs-impact-critical {
  background: rgba(214, 15, 1, 0.14);
  color: #a10b00;
  border: 1px solid rgba(214, 15, 1, 0.45);
}

html[data-bs-theme="dark"] .docs-impact-critical {
  color: #ff9c94;
}

.docs-impact-essential {
  background: var(--docs-accent-badge-bg);
  color: var(--docs-accent-text);
  border: 1px solid var(--color-primary-o);
}

.docs-impact-high {
  background: rgba(255, 217, 66, 0.2);
  color: #705300;
  border: 1px solid rgba(181, 137, 0, 0.45);
}

html[data-bs-theme="dark"] .docs-impact-high {
  color: var(--color-warning);
}

.docs-impact-medium {
  background: rgba(0, 157, 235, 0.14);
  color: #005b8a;
  border: 1px solid rgba(0, 157, 235, 0.45);
}

html[data-bs-theme="dark"] .docs-impact-medium {
  color: #6fd0ff;
}

.docs-recommendation-box {
  background: var(--docs-accent-badge-bg);
  border: 1px dashed var(--color-primary-o);
  border-radius: var(--bs-border-radius-lg);
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
}

.docs-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--bs-border-radius);
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  color: var(--docs-text-muted);
}

/* ---------- Best Practices (Minimal Editorial Do vs Don't) ---------- */
.docs-bp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.docs-bp-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-bp-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-bp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
}

@media (min-width: 768px) {
  .docs-bp-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.docs-bp-col {
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid transparent;
}

.docs-bp-do {
  border-left-color: var(--color-one);
}

.docs-bp-dont {
  border-left-color: #d60f01;
}

html[data-bs-theme="dark"] .docs-bp-dont {
  border-left-color: #ff6b63;
}

.docs-bp-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
}

.docs-bp-label-do {
  color: var(--docs-accent-text);
}

.docs-bp-label-dont {
  color: #b4180c;
}

html[data-bs-theme="dark"] .docs-bp-label-dont {
  color: #ff8f87;
}

.docs-bp-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.42rem;
  border-radius: var(--bs-border-radius);
  background: var(--docs-accent-badge-bg);
  color: var(--docs-accent-text);
}

.docs-bp-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--docs-text-primary);
}

.docs-bp-reason {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--bs-border-radius-lg);
  background: var(--docs-surface-subtle);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--docs-text-muted);
}

html[data-bs-theme="dark"] .docs-bp-reason {
  background: rgba(128, 238, 192, 0.05);
}

/* ---------- Terminal Code Blocks (Dual-Theme Pro Docs Window + Syntax Colors) ---------- */
.docs-code-wrap {
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-code-border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.docs-code-header {
  background: var(--docs-code-header);
  border-bottom: 1px solid var(--docs-code-border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.docs-code-title {
  color: var(--docs-code-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-window-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.docs-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--docs-hero-track);
}

.docs-window-dots span:nth-child(1) {
  background: rgba(255, 95, 86, 0.82);
}

.docs-window-dots span:nth-child(2) {
  background: rgba(255, 189, 46, 0.85);
}

.docs-window-dots span:nth-child(3) {
  background: rgba(0, 220, 130, 0.85);
}

.docs-code-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 0.6rem;
  border: 1px solid var(--docs-hero-pill-border);
  border-radius: var(--bs-border-radius);
  background: var(--docs-code-lang-bg);
  color: var(--docs-code-lang-text);
}

.docs-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  color: var(--docs-copy-text);
  background: var(--docs-copy-bg);
  border: 1px solid var(--docs-copy-border);
  border-radius: var(--bs-border-radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.docs-copy-btn:hover {
  background: var(--docs-accent-badge-bg);
  border-color: var(--color-one);
  color: var(--docs-accent-text);
}

.docs-copy-btn.is-copied {
  background: var(--color-one);
  border-color: var(--color-one);
  color: var(--color-thee);
}

.docs-code-pre {
  margin: 0;
  padding: 1.25rem 1.4rem;
  color: var(--docs-code-text);
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
}

.docs-code-caption {
  padding-left: 0.25rem;
  line-height: 1.65;
}

.tok-key {
  color: var(--tok-key);
  font-weight: 600;
}

.tok-attr {
  color: var(--tok-attr);
}

.tok-str {
  color: var(--tok-str);
}

.tok-kw {
  color: var(--tok-kw);
  font-weight: 600;
}

.tok-num {
  color: var(--tok-num);
}

.tok-comment {
  color: var(--tok-comment);
  font-style: italic;
}

.tok-punct {
  color: var(--tok-punct);
}

/* ---------- Inline Rich Text (**bold**, `code`) ---------- */
.docs-strong {
  font-weight: 700;
  color: var(--docs-text-primary);
}

.docs-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.1rem 0.38rem;
  border-radius: var(--bs-border-radius);
  background: var(--docs-accent-badge-bg);
  color: var(--docs-accent-text);
}

/* ---------- Minimal Editorial FAQ List (Card-Free) ---------- */
.docs-faq-list {
  display: flex;
  flex-direction: column;
}

.docs-faq-item {
  border-bottom: 1px solid var(--docs-border);
}

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

.docs-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--docs-text-primary);
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.16s ease;
}

.docs-faq-trigger:hover,
.docs-faq-trigger:not(.collapsed) {
  color: var(--docs-accent-text);
}

.docs-faq-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  min-width: 2rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bs-border-radius);
  background: var(--docs-accent-badge-bg);
  color: var(--docs-accent-text);
  flex-shrink: 0;
}

.docs-faq-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bs-border-radius);
  color: var(--docs-text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.16s ease, background-color 0.16s ease;
}

.docs-faq-trigger:not(.collapsed) .docs-faq-icon {
  transform: rotate(45deg);
  color: var(--docs-accent-text);
  background: var(--docs-accent-badge-bg);
}

.docs-faq-answer {
  padding: 0 0.25rem 1.15rem 2.85rem;
  font-size: 0.92rem;
  line-height: 1.72;
}

@media (max-width: 575.98px) {
  .docs-faq-answer {
    padding-left: 0.25rem;
  }
}

/* ---------- Series Navigation (Minimal Card-Free Pager) & CTA ---------- */
.docs-series-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--docs-text-primary);
  transition: color 0.16s ease, transform 0.16s ease;
}

.docs-series-link:hover {
  color: var(--docs-accent-text);
}

.docs-series-link-prev:hover {
  transform: translateX(-3px);
}

.docs-series-link-next:hover {
  transform: translateX(3px);
}

.docs-cta-box {
  background: var(--docs-hero-bg);
  background-size: auto, auto, 22px 22px, auto;
  border: 1px solid var(--docs-hero-border);
  border-radius: var(--bs-border-radius-xl);
  padding: 1.35rem 1.4rem;
  color: var(--docs-hero-text);
}

@media (min-width: 768px) {
  .docs-cta-box {
    padding: 1.65rem 1.9rem;
  }
}

.docs-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

@media (min-width: 992px) {
  .docs-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.docs-cta-copy {
  min-width: 0;
  max-width: 640px;
}

.docs-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--docs-accent-text);
  margin-bottom: 0.4rem;
}

.docs-cta-title {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  font-weight: 700;
  line-height: 1.38;
  color: var(--docs-hero-text);
  margin: 0 0 0.35rem;
}

.docs-cta-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--docs-hero-sub);
  margin: 0;
}

.docs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.docs-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--bs-border-radius-lg);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.15s ease;
}

.docs-cta-btn-primary {
  background: var(--color-one);
  border-color: var(--color-one);
  color: #ffffff;
  font-weight: 700;
}

.docs-cta-btn-primary:hover {
  background: var(--color-two);
  border-color: var(--color-two);
  color: var(--color-thee);
  transform: translateY(-1px);
}

.docs-cta-btn-outline {
  background: var(--docs-hero-chip-bg);
  border-color: var(--docs-hero-chip-border);
  color: var(--docs-hero-chip-text);
}

.docs-cta-btn-outline:hover {
  background: var(--docs-accent-badge-bg);
  border-color: var(--color-one);
  color: var(--docs-accent-text);
}

/* ---------- Pro Documentation Hub (/laksana) ---------- */
.docs-hub-hero {
  background: var(--docs-hero-bg);
  background-size: auto, auto, 22px 22px, auto;
  border: 1px solid var(--docs-hero-border);
  border-radius: var(--bs-border-radius-xl);
  padding: 1.4rem 1.35rem;
  color: var(--docs-hero-text);
}

@media (min-width: 768px) {
  .docs-hub-hero {
    padding: 1.85rem 2rem;
  }
}

@media (min-width: 992px) {
  .docs-hub-hero {
    padding: 2.15rem 2.35rem;
  }
}

.docs-hub-title {
  font-size: clamp(1.42rem, 1.18rem + 0.9vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 0.45rem;
}

.docs-hub-tagline {
  font-size: clamp(0.95rem, 0.9rem + 0.22vw, 1.08rem);
  line-height: 1.5;
  margin: 0 0 0.65rem;
}

.docs-hub-desc {
  font-size: 0.92rem;
  line-height: 1.68;
  margin: 0 0 1.15rem;
}

.docs-hub-pillars {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.docs-pillar-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--docs-text-primary);
}

.docs-hub-empty {
  background: var(--docs-surface);
  border: 1px dashed var(--docs-border);
  border-radius: 0.75rem;
}

.docs-series-count-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: var(--bs-border-radius);
  background: var(--docs-surface-subtle);
  border: 1px solid var(--docs-border);
  color: var(--docs-text-muted);
}

.docs-cmd-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--docs-hero-search-bg);
  border: 1px solid var(--docs-hero-search-border);
  border-radius: var(--bs-border-radius-lg);
  padding: 0.3rem 0.6rem 0.3rem 0.85rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.docs-cmd-search:focus-within {
  border-color: var(--color-one);
  box-shadow: 0 0 0 0.18rem rgba(var(--color-rgb-code-one), 0.18);
}

.docs-cmd-input {
  background: transparent !important;
  border: 0 !important;
  color: var(--docs-hero-text) !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.45rem 0.25rem;
  font-size: 0.9rem;
}

.docs-cmd-input::placeholder {
  color: var(--docs-hero-placeholder);
  opacity: 1;
}

.docs-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  padding: 0.15rem 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--docs-accent-text);
  background: var(--docs-hero-pill-bg);
  border: 1px solid var(--docs-hero-pill-border);
  border-radius: var(--bs-border-radius-sm);
}

.docs-quick-chip {
  background: var(--docs-hero-chip-bg);
  color: var(--docs-hero-chip-text);
  border: 1px solid var(--docs-hero-chip-border);
  border-radius: var(--bs-border-radius-lg);
  padding: 0.24rem 0.62rem;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.docs-quick-chip:hover {
  background: var(--color-one);
  color: #ffffff;
  border-color: var(--color-one);
}

.docs-hero-path-card {
  background: var(--docs-hero-card-bg);
  border: 1px solid var(--docs-hero-card-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.docs-kpi-spotlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--bs-border-radius-lg);
  background:
    radial-gradient(circle at 0% 50%, rgba(var(--color-rgb-code-one), 0.14) 0%, transparent 60%),
    var(--docs-hero-stat-bg);
  border: 1px solid var(--docs-hero-pill-border);
}

.docs-kpi-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.docs-kpi-big {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-one);
  background: linear-gradient(135deg, var(--color-one) 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-bs-theme="dark"] .docs-kpi-big {
  background: linear-gradient(135deg, var(--color-one) 0%, var(--color-two) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-kpi-label {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--docs-hero-text);
}

.docs-kpi-sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: var(--docs-hero-sub);
  margin-top: 0.15rem;
}

.docs-kpi-substats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (min-width: 576px) {
  .docs-kpi-substats {
    flex-direction: column;
    align-items: flex-end;
  }
}

.docs-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.24rem 0.55rem;
  border-radius: var(--bs-border-radius);
  background: var(--docs-hero-chip-bg);
  border: 1px solid var(--docs-hero-chip-border);
  color: var(--docs-hero-sub);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.docs-kpi-pill:hover {
  border-color: var(--color-one);
  color: var(--docs-hero-text);
}

.docs-kpi-pill i {
  color: var(--color-one);
  font-size: 0.76rem;
}

.docs-kpi-pill-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  color: var(--docs-hero-text);
}

.docs-path-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.docs-path-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--docs-hero-text);
}

.docs-path-eyebrow i {
  color: var(--color-one);
}

.docs-path-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--docs-hero-sub);
}

.docs-path-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.docs-path-list::before {
  content: "";
  position: absolute;
  left: 1.18rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 1px;
  background: var(--docs-border);
  pointer-events: none;
}

.docs-path-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--bs-border-radius-lg);
  color: var(--docs-hero-text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.docs-path-step:hover {
  background: var(--docs-hero-step-hover-bg);
  color: var(--docs-hero-text);
}

.docs-path-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.docs-path-sub {
  font-size: 0.75rem;
  color: var(--docs-hero-sub);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-path-arrow {
  font-size: 1.2rem;
  color: var(--docs-hero-sub);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.docs-path-step:hover .docs-path-arrow {
  color: var(--color-one);
  transform: translateX(3px);
}

.docs-step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--bs-border-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--color-one);
  color: #ffffff;
  flex-shrink: 0;
}

/* Clean Pill Filter Bar & Editorial Section Heads */
.docs-hub-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .docs-hub-filterbar {
    margin-top: 2rem;
    margin-bottom: 2.25rem;
  }
}

.docs-segmented-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding-bottom: 0.1rem;
}

.docs-segmented-tabs::-webkit-scrollbar {
  display: none;
}

.docs-seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--docs-border);
  border-radius: var(--bs-border-radius-lg);
  background: #fcfcfc;
  color: var(--docs-text-muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

html[data-bs-theme="dark"] .docs-seg-tab {
  background: var(--docs-surface);
}

.docs-seg-tab:hover {
  border-color: var(--color-one);
  color: var(--docs-text-primary);
}

.docs-seg-tab.active {
  background: var(--color-thee);
  border-color: var(--color-thee);
  color: #ffffff;
  font-weight: 700;
}

html[data-bs-theme="dark"] .docs-seg-tab.active {
  border-color: var(--color-one);
}

.docs-seg-tab.active i {
  color: var(--color-one);
}

.docs-seg-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: var(--bs-border-radius-sm);
  background: var(--docs-surface-subtle);
  border: 1px solid var(--docs-border);
  color: var(--docs-text-muted);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.docs-seg-tab.active .docs-seg-count {
  background: var(--color-one);
  border-color: var(--color-one);
  color: #ffffff;
}

.docs-hub-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-hub-status-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--docs-text-muted);
  padding: 0.34rem 0.68rem;
  border-radius: var(--bs-border-radius-lg);
  background: var(--docs-surface-subtle);
  border: 1px solid var(--docs-border);
}

.docs-hub-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--docs-border);
  border-radius: var(--bs-border-radius-lg);
  background: var(--docs-surface);
  color: var(--docs-text-primary);
  padding: 0.34rem 0.68rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.docs-hub-reset-btn:hover {
  border-color: var(--color-one);
  color: var(--docs-accent-text);
}

.docs-hub-section-head {
  border-left: 3px solid var(--color-one);
  padding-left: 0.9rem;
  margin-bottom: 1.5rem;
}

.docs-hub-sec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.docs-hub-sec-title {
  font-size: clamp(1.18rem, 1.08rem + 0.4vw, 1.38rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--docs-text-primary);
  margin: 0;
}

.docs-hub-sec-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--docs-text-muted);
  margin: 0.25rem 0 0;
}

/* Masonry Packing for Variable-Height Series Groups (No Dead Vertical Gaps) */
.docs-series-masonry {
  column-count: 1;
}

@media (min-width: 768px) {
  .docs-series-masonry {
    column-count: 2;
    column-gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .docs-series-masonry {
    column-count: 3;
    column-gap: 2.5rem;
  }
}

.docs-series-masonry-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 2.15rem;
}

/* Series Episode Mini-Cards */
.docs-episode-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.56rem 0.8rem;
  border-radius: var(--bs-border-radius-lg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--docs-text-primary);
  text-decoration: none;
  background: #fcfcfc;
  border: 1px solid var(--docs-border);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

html[data-bs-theme="dark"] .docs-episode-link {
  background: var(--docs-surface);
}

.docs-episode-link:hover {
  transform: translateY(-1px);
  border-color: var(--color-one);
  background: var(--docs-surface);
  color: var(--docs-text-primary);
}

.docs-episode-link i {
  transition: transform 0.16s ease;
}

.docs-episode-link:hover i {
  transform: translateX(3px);
}

.docs-episode-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--docs-text-muted);
  background: var(--docs-surface-subtle);
  border: 1px solid var(--docs-border);
  border-radius: var(--bs-border-radius-sm);
  padding: 0.1rem 0.38rem;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.docs-episode-link:hover .docs-episode-num {
  background: var(--color-one);
  border-color: var(--color-one);
  color: #ffffff;
}

/* Standalone Cards (Clean Compact Reference Tiles) */
.docs-hub-card {
  background: #fcfcfc;
  border: 1px solid var(--docs-border);
  border-radius: 0.75rem;
  padding: 1.15rem 1.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--docs-text-primary);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

html[data-bs-theme="dark"] .docs-hub-card {
  background: var(--docs-surface);
}

.docs-hub-card:hover {
  transform: translateY(-2px);
  background: var(--docs-surface);
  border-color: var(--color-one);
  color: var(--docs-text-primary);
}

html[data-bs-theme="dark"] .docs-hub-card:hover {
  background: #05232c;
}

.docs-hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.docs-hub-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--bs-border-radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--docs-accent-badge-bg);
  color: var(--color-one);
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.docs-hub-card:hover .docs-hub-card-icon {
  background: var(--color-one);
  color: #ffffff;
}

.docs-impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--bs-border-radius);
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--docs-text-muted);
}

html[data-bs-theme="dark"] .docs-impact-chip {
  background: var(--docs-surface-subtle);
}

.docs-impact-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-one);
}

.docs-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.42;
  color: var(--docs-text-primary);
  margin: 0 0 0.4rem;
}

.docs-card-desc {
  font-size: 0.82rem;
  line-height: 1.58;
  color: var(--docs-text-muted);
  margin: 0 0 0.85rem;
  flex-grow: 1;
}

.docs-hub-card-foot {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.8rem;
}

.docs-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--docs-text-primary);
  transition: color 0.18s ease;
}

.docs-hub-card:hover .docs-card-cta {
  color: var(--color-one);
}

.docs-hub-card .docs-arrow-shift {
  transition: transform 0.18s ease;
}

.docs-hub-card:hover .docs-arrow-shift {
  transform: translateX(4px);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .docs-hub-card,
  .docs-path-step,
  .docs-episode-link,
  .docs-episode-link i,
  .docs-chevron,
  .docs-tree-link,
  .docs-sidebar-hub,
  .docs-seg-tab,
  .docs-arrow-shift {
    transition: none;
  }

  .docs-hub-card:hover,
  .docs-path-step:hover,
  .docs-episode-link:hover,
  .docs-episode-link:hover i,
  .docs-hub-card:hover .docs-arrow-shift {
    transform: none;
  }
}
