@charset "UTF-8";

/* -------------------------------------------------------------
   AFI-aligned AfiDocs Frontend Styles
   ------------------------------------------------------------- */

:root {
  --afi-bg: #f8fafc;
  --afi-surface: #ffffff;
  --afi-border: #e2e8f0;
  --afi-border-strong: #cbd5f5;
  --afi-text: #0f172a;
  --afi-text-muted: #64748b;
  --afi-brand: #6366f1;
  --afi-brand-soft: rgba(99, 102, 241, 0.08);
  --afi-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.09);
  --afi-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ezd-body-docs {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--afi-bg);
  color: var(--afi-text);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

main,
main#main,
section {
  padding: 0;
}

.doc_documentation_area {
  background: var(--afi-bg);
  padding: 4rem 0;
}

.doc_documentation_area .ezd-container {
  width: 100%;
max-width: 1400px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 3rem);
}

/* Left Sidebar ------------------------------------------------ */

.doc_left_sidebarlist {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0) 100%);
  /* border-left: 3px solid var(--afi-border); */
  padding: 1.75rem 0;
  /* box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.2); */
  /* position: sticky; */
  /* top: 120px; */
  font-family: var(--afi-font), 'Inter', sans-serif;
}

.doc_left_sidebarlist .doc-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--afi-text);
  margin-bottom: 1.5rem;
}

.doc_left_sidebarlist .filterform input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--afi-border);
  border-radius: 0;
  padding: 0.65rem 0.15rem;
  font-size: 1.05rem;
  background: transparent;
  color: var(--afi-text);
  margin-bottom: 1.5rem;
}

.doc_left_sidebarlist .filterform input:focus {
  outline: none;
  border-color: var(--afi-brand);
  box-shadow: none;
}

.doc-filter-meta {
  font-size: 0.95rem;
  color: var(--afi-text-muted);
  margin-bottom: 1rem;
}

.nav-sidebar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-sidebar .nav-item {
  border: none;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.nav-sidebar .nav-item .doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-radius: 0;
  border-left: 2px solid transparent;
}

.nav-sidebar .nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--afi-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.12rem;
}

.nav-sidebar .nav-item:hover,
.nav-sidebar .nav-item.current_page_item {
  border-color: transparent;
  /* background: rgba(99, 102, 241, 0.08); */
}

.nav-sidebar .nav-item:hover .doc-link,
.nav-sidebar .nav-item.current_page_item .doc-link {
  border-left-color: var(--afi-brand);
  padding-left: 0.4rem;
}

.nav-sidebar .nav-link img {
  display: none;
}

.nav-sidebar .nav-item .nav-link::before {
  content: "\f07b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--afi-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-sidebar .nav-item.active .nav-link::before,
.nav-sidebar .nav-item.current_page_item .nav-link::before {
  content: "\f07c";
  color: var(--afi-brand);
  transform: scale(1.05);
}

.nav-sidebar .doc-link .icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--afi-border);
  margin-left: auto;
  color: var(--afi-text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-sidebar .doc-link .icon i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-sidebar .nav-item.active .doc-link .icon {
  border-color: var(--afi-brand);
  color: var(--afi-brand);
}

.nav-sidebar .nav-item.active .doc-link .icon i {
  transform: rotate(180deg);
}

.nav-sidebar .doc-link:hover .icon {
  border-color: var(--afi-brand);
}

.nav-sidebar .dropdown_nav {
  margin: 0;
  padding: 0.25rem 0 0.75rem 0.75rem;
  list-style: none;
  border-left: 1px solid var(--afi-border);
  margin-left: 0.75rem;
}

.nav-sidebar .dropdown_nav li a {
  display: block;
  padding: 0.35rem 0;
  font-size: 1.05rem;
  color: var(--afi-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-sidebar .dropdown_nav li a:hover,
.nav-sidebar .dropdown_nav li.current_page_item > a {
  color: var(--afi-brand);
}

.doc_left_sidebarlist .open_icon {
  display: none;
}

.ezd-scroll {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 0.75rem;
}

.ezd-scroll::-webkit-scrollbar {
  width: 6px;
}

.ezd-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ezd-scroll::-webkit-scrollbar-thumb {
  background: var(--afi-border);
}

.ezd-scroll:hover::-webkit-scrollbar-thumb {
  background: var(--afi-text-muted);
}

/* Middle Column ------------------------------------------------ */

.doc-post-content {
  background: transparent;
  border-radius: 0;
  padding: clamp(2rem, 5vw, 3.25rem);
  border: none;
  border-left: 4px solid var(--afi-brand);
  position: relative;
}

.shortcode_title {
  margin-bottom: 1.5rem;
}

.shortcode_title h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--afi-text);
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

/* meta pill retains subtle chip */
.shortcode_title .ezd-meta {
  font-size: 0.95rem;
  color: var(--afi-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.08);
  padding: 0.4rem 0.85rem;
}

.doc-scrollable {
  margin-top: 2.25rem;
}

.doc-scrollable h2,
.doc-scrollable h3,
.doc-scrollable h4,
.doc-scrollable h5,
.doc-scrollable h6 {
  color: var(--afi-text);
  font-weight: 700;
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 120px;
}

.doc-scrollable h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 0.35rem;
}

.doc-scrollable h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
}

.doc-scrollable p {
  color: var(--afi-text-muted);
  margin-bottom: 1.4rem;
  font-size: 1.15rem;
}

.doc-scrollable a {
  color: var(--afi-brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.35);
  text-decoration-thickness: 2px;
}

.doc-scrollable a:hover {
  text-decoration-color: currentColor;
}


.doc-scrollable ul,
.doc-scrollable ol {
  margin-bottom: 1.5rem;
  padding-left: 0;
  color: var(--afi-text-muted);
  font-size: 1.15rem;
}

.doc-scrollable ul li,
.doc-scrollable ol li {
  margin-bottom: 0.8rem;
  position: relative;
  line-height: 1.65;
  font-size: 1.15rem;
}

.doc-scrollable ul li {
  list-style: none;
  padding-left: 2.25rem;
}

.doc-scrollable ul li::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.8rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12);
}

.doc-scrollable ol {
  counter-reset: ezd-counter;
  list-style: none;
  padding-left: 0;
}

.doc-scrollable ol li {
  padding-left: 2.5rem;
  counter-increment: ezd-counter;
}

.doc-scrollable ol li::before {
  content: counter(ezd-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.25);
  border-radius: 50%;
}

.doc-scrollable table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1.75rem 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.doc-scrollable table thead {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.12));
}

.doc-scrollable table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--afi-text);
  font-weight: 700;
  font-size: 1.15rem;
}

.doc-scrollable table th,
.doc-scrollable table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  font-size: 1.15rem;
}

.doc-scrollable table td {
  color: var(--afi-text-muted);
}

.doc-scrollable table tbody tr:nth-child(even) {
  background: rgba(99, 102, 241, 0.03);
}

.doc-scrollable table tr:last-child td {
  border-bottom: none;
}

.doc-scrollable blockquote {
  margin: 1.75rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--afi-brand);
  background: rgba(99, 102, 241, 0.08);
  border-radius: 0;
  color: var(--afi-text);
  font-size: 1.15rem;
  font-weight: 500;
}

.doc-scrollable code,
.doc-scrollable pre {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  border-radius: 0;
  color: var(--afi-text);
}

.doc-scrollable code {
  padding: 0.15rem 0.45rem;
  font-size: 0.92rem;
  border: none;
  background: transparent;
  font-weight: 500;
}

.doc-scrollable pre {
  padding: 1.25rem;
  font-size: 0.95rem;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.04);
}

.doc-scrollable img,
.doc-scrollable figure img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 1.5rem auto;
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.18);
}

.doc-scrollable figure {
  margin: 1.5rem 0;
  text-align: center;
}

.doc-scrollable figcaption {
  font-size: 0.9rem;
  color: var(--afi-text-muted);
  margin-top: 0.5rem;
}

.doc-scrollable .anchorjs-link {
  display: none !important;
}

.documentation_item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.documentation_item:not(:last-child) {
  margin-bottom: 1rem;
}

.documentation_item:hover {
  transform: none;
  box-shadow: none;
  background: rgba(99, 102, 241, 0.05);
}

.documentation_item .icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.documentation_item .media-body .title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--afi-text);
  text-decoration: none;
}

.documentation_item .media-body p {
  margin: 0.4rem 0 0;
  color: var(--afi-text-muted);
  font-size: 0.95rem;
}

/* Right Sidebar ------------------------------------------------ */

.doc_rightsidebar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0;
  box-shadow: none;
  position: sticky;
  top: 140px;
}

.doc_rightsidebar .open_icon {
  display: none;
}

.doc_rightsidebar .pageSideSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc_rightsidebar .ezd-share-btn,
.doc_rightsidebar .print {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--afi-brand);
}

.doc_rightsidebar .table-of-content {
  margin-top: 1.75rem;
  border-top: 1px solid var(--afi-border);
  padding-top: 1.25rem;
}

.doc_rightsidebar h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--afi-text-muted);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.doc_rightsidebar nav li a {
  font-size: 0.92rem;
  color: var(--afi-text-muted);
  text-decoration: none;
}

.doc_rightsidebar nav li.active > a {
  color: var(--afi-brand);
}

.doc_rightsidebar .ezd-modal .ezd-modal-content {
  border-radius: 20px;
}

/* Topic Tabs / Related Lists ---------------------------------- */

.topic_item_tabs .nav-tabs {
  border-bottom: 1px solid var(--afi-border);
}

.topic_item_tabs .nav-tabs .nav-link {
  border: none;
  padding: 0.75rem 1rem;
  color: var(--afi-text-muted);
  font-weight: 600;
  border-radius: 12px;
}

.topic_item_tabs .nav-tabs .nav-link.active {
  color: var(--afi-brand);
  background: var(--afi-brand-soft);
}

.topic_item_tabs ul.related-doc-list,
.topic_item_tabs ul.recent-doc-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.topic_item_tabs ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--afi-border);
  border-radius: 14px;
  color: var(--afi-text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.topic_item_tabs ul li a:hover {
  border-color: var(--afi-brand);
  color: var(--afi-brand);
}

.topic_item_tabs .load-more,
.topic_item_tabs #more-related,
.topic_item_tabs #more-recent {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--afi-brand);
  text-decoration: none;
}

/* Misc / Utility ---------------------------------------------- */

.open_icon i {
  color: var(--afi-brand);
}

.ezd-link-copied-wrap,
.overlay_bg {
  display: none !important;
}

.doc-btm {
  border-top: 1px solid var(--afi-border);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

.doc-btm .afidocs-next-prev-wrap {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.doc-btm .afidocs-next-prev-wrap a {
  flex: 1 1 280px;
  text-decoration: none;
  padding: 1.35rem 1.6rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid transparent;
  color: var(--afi-text);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doc-btm .afidocs-next-prev-wrap a span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--afi-text-muted);
}

.doc-btm .afidocs-next-prev-wrap .next-prev-pager {
  isolation: isolate;
}

.doc-btm .afidocs-next-prev-wrap .next-prev-pager::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.doc-btm .afidocs-next-prev-wrap .next-prev-pager.first::before,
.doc-btm .afidocs-next-prev-wrap .next-prev-pager.second::before {
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  font-size: 1.5rem;
  color: var(--afi-brand);
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.doc-btm .afidocs-next-prev-wrap .next-prev-pager.first::before {
  content: "←";
}

.doc-btm .afidocs-next-prev-wrap .next-prev-pager.second::before {
  content: "→";
}

.doc-btm .afidocs-next-prev-wrap a:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.18);
}

.doc-btm .afidocs-next-prev-wrap a:hover::after {
  opacity: 1;
}

.doc-btm .afidocs-next-prev-wrap .next-prev-pager.first:hover::before {
  transform: translateX(-4px);
}

.doc-btm .afidocs-next-prev-wrap .next-prev-pager.second:hover::before {
  transform: translateX(4px);
}

.doc_documentation_area .topic_item_tabs {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--afi-border);
}

/* Responsive --------------------------------------------------- */

@media (max-width: 1199px) {
  .doc_left_sidebarlist,
  .doc_rightsidebar {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 991px) {
  .doc_left_sidebarlist,
  .doc_rightsidebar {
    border-radius: 20px;
  }

  .doc_left_sidebarlist .open_icon,
  .doc_rightsidebar .open_icon {
    display: inline-flex;
    margin-bottom: 0.75rem;
  }

  .doc_left_sidebarlist,
  .doc_rightsidebar,
  .doc-post-content {
    padding: 1.75rem;
  }
}

@media (max-width: 767px) {
  .doc-post-content {
    padding: 1.5rem;
  }

  .shortcode_title h1 {
    font-size: 2rem;
  }

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