/**
 * FBS Fusion — Modern Plugin Documentation Stylesheet
 * Conditionally enqueued only on /docs/ routes for 0KB sitewide overhead.
 */

/* ==========================================================================
   1. Docs Hero & Instant Live Search (/docs/ & /docs/{plugin}/)
   ========================================================================== */
.fbs-docs-hero {
	position: relative;
	background: radial-gradient(circle at 80% 10%, rgba(79, 70, 229, 0.22) 0%, rgba(6, 182, 212, 0.08) 45%, rgba(7, 11, 20, 0) 75%),
		linear-gradient(180deg, #070b14 0%, #0f172a 100%);
	color: #f8fafc;
	padding: 64px 0 56px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	overflow: visible;
}

.fbs-docs-hero--compact {
	padding: 40px 0 44px;
}

.fbs-docs-hero__inner {
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
}

.fbs-docs-hero__inner .fbs-breadcrumbs {
	justify-content: center;
	margin-bottom: 16px;
}

.fbs-docs-hero__title {
	color: #ffffff;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	margin: 14px 0 14px;
	letter-spacing: -0.025em;
}

.fbs-docs-hero__subtitle {
	color: #94a3b8;
	font-size: 1.08rem;
	line-height: 1.65;
	margin: 0 auto 28px;
	max-width: 680px;
}

/* Instant Search Box */
.fbs-docs-search {
	position: relative;
	max-width: 640px;
	margin: 0 auto 24px;
	text-align: left;
	z-index: 40;
}

.fbs-docs-search__box {
	display: flex;
	align-items: center;
	background: rgba(15, 23, 42, 0.88);
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 12px;
	padding: 6px 14px;
	box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.45);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fbs-docs-search__box:focus-within {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28), 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.fbs-docs-search__icon {
	color: #94a3b8;
	flex-shrink: 0;
	margin-right: 12px;
}

.fbs-docs-search__input {
	width: 100%;
	background: transparent;
	border: 0;
	color: #ffffff;
	font-family: var(--fbs-font-sans);
	font-size: 0.98rem;
	padding: 10px 4px;
	outline: none;
}

.fbs-docs-search__input::placeholder {
	color: #64748b;
}

.fbs-docs-search__kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 24px;
	padding: 0 7px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #94a3b8;
	font-family: var(--fbs-font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	flex-shrink: 0;
	margin-left: 8px;
}

.fbs-docs-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #ffffff;
	color: #0f172a;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.28);
	max-height: 420px;
	overflow-y: auto;
	padding: 8px;
}

.fbs-docs-search__item {
	display: block;
	padding: 12px 14px;
	border-radius: 8px;
	text-decoration: none;
	color: #0f172a;
	transition: background-color 0.15s ease;
}

.fbs-docs-search__item:hover,
.fbs-docs-search__item:focus {
	background: #f1f5f9;
}

.fbs-docs-search__item-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}

.fbs-docs-search__item-title {
	font-weight: 700;
	font-size: 0.95rem;
	color: #0f172a;
}

.fbs-docs-search__item-meta {
	font-size: 0.75rem;
	font-weight: 600;
	color: #4f46e5;
	background: #eef2ff;
	padding: 2px 8px;
	border-radius: 99px;
	white-space: nowrap;
}

.fbs-docs-search__item-excerpt {
	font-size: 0.83rem;
	color: #475569;
	margin: 0;
	line-height: 1.45;
}

.fbs-docs-search__empty {
	padding: 18px 14px;
	text-align: center;
	color: #64748b;
	font-size: 0.9rem;
}

/* Quick Plugin Switcher Pills */
.fbs-docs-hero__quick-pills {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.fbs-docs-quick-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fbs-docs-quick-pill:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.28);
	color: #ffffff;
	transform: translateY(-1px);
}

.fbs-docs-quick-pill__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.fbs-docs-quick-pill__dot--indigo { background: #818cf8; }
.fbs-docs-quick-pill__dot--cyan { background: #22d3ee; }
.fbs-docs-quick-pill__dot--emerald { background: #34d399; }

.fbs-docs-quick-pill__ver {
	font-family: var(--fbs-font-mono);
	font-size: 0.74rem;
	color: #94a3b8;
}

/* ==========================================================================
   2. Flagship Plugin Documentation Cards (/docs/)
   ========================================================================== */
.fbs-docs-catalog-section {
	background: #f8fafc;
	padding: 56px 0 72px;
}

.fbs-docs-plugin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 26px;
}

.fbs-docs-plugin-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 18px -6px rgba(15, 23, 42, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fbs-docs-plugin-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 36px -12px rgba(15, 23, 42, 0.12);
	border-color: #cbd5e1;
}

.fbs-docs-plugin-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.fbs-docs-plugin-card__icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eef2ff;
	color: #4f46e5;
}

.fbs-docs-plugin-card--cyan .fbs-docs-plugin-card__icon {
	background: #ecfeff;
	color: #0891b2;
}

.fbs-docs-plugin-card--emerald .fbs-docs-plugin-card__icon {
	background: #ecfdf5;
	color: #059669;
}

.fbs-docs-plugin-card__badges {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.fbs-doc-ver-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-family: var(--fbs-font-mono);
	font-size: 0.73rem;
	font-weight: 600;
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
}

.fbs-docs-hero .fbs-doc-ver-pill {
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0;
	border-color: rgba(255, 255, 255, 0.15);
}

.fbs-doc-ver-pill--pro {
	background: #eef2ff;
	color: #4338ca;
	border-color: #c7d2fe;
}

.fbs-docs-hero .fbs-doc-ver-pill--pro {
	background: rgba(99, 102, 241, 0.22);
	color: #c7d2fe;
	border-color: rgba(129, 140, 248, 0.4);
}

.fbs-docs-plugin-card__title {
	font-size: 1.35rem;
	margin: 0 0 10px;
}

.fbs-docs-plugin-card__title a {
	color: #0f172a;
	text-decoration: none;
}

.fbs-docs-plugin-card__title a:hover {
	color: #4f46e5;
}

.fbs-docs-plugin-card__desc {
	font-size: 0.92rem;
	color: #475569;
	line-height: 1.55;
	margin: 0 0 20px;
}

.fbs-docs-plugin-card__guides {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 22px;
	flex: 1;
}

.fbs-docs-plugin-card__guides-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 10px;
}

.fbs-docs-plugin-card__guides-head a {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	text-decoration: none;
}

.fbs-docs-plugin-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fbs-docs-plugin-card__list li + li {
	border-top: 1px solid #e2e8f0;
}

.fbs-docs-plugin-card__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	font-size: 0.875rem;
	color: #1e293b;
	text-decoration: none;
	font-weight: 500;
}

.fbs-docs-plugin-card__list a:hover {
	color: #4f46e5;
}

.fbs-docs-plugin-card__list-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fbs-doc-part-tag {
	color: #4f46e5;
	font-weight: 700;
	margin-right: 3px;
}

.fbs-docs-plugin-card__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.fbs-docs-topic-chip {
	display: inline-block;
	padding: 4px 10px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 99px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #334155;
}

.fbs-docs-plugin-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.fbs-docs-plugin-card__ext {
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
}

.fbs-docs-plugin-card__ext:hover {
	color: #0f172a;
}

/* Support Bar */
.fbs-docs-support-bar {
	margin-top: 36px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.fbs-docs-support-bar__text h3 {
	font-size: 1.15rem;
	margin: 0 0 4px;
}

.fbs-docs-support-bar__text p {
	margin: 0;
	font-size: 0.92rem;
	color: #475569;
}

.fbs-docs-support-bar__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* ==========================================================================
   3. Edition & Part Badges (FREE / PRO / FREE + PRO)
   ========================================================================== */
.fbs-doc-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-family: var(--fbs-font-mono);
	font-weight: 700;
	letter-spacing: 0.02em;
	flex-shrink: 0;
	line-height: 1;
}

.fbs-doc-badge--sm {
	font-size: 0.67rem;
	padding: 3px 7px;
}

.fbs-doc-badge--md {
	font-size: 0.74rem;
	padding: 4px 10px;
}

.fbs-doc-badge--free {
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #cbd5e1;
}

.fbs-doc-badge--pro {
	background: #eef2ff;
	color: #4338ca;
	border: 1px solid #c7d2fe;
}

.fbs-doc-badge--both {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.fbs-doc-part-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 6px;
	background: #0f172a;
	color: #ffffff;
	font-family: var(--fbs-font-mono);
	font-size: 0.72rem;
	font-weight: 700;
}

.fbs-doc-section-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 6px;
	background: #f1f5f9;
	color: #334155;
	font-size: 0.76rem;
	font-weight: 600;
}

/* ==========================================================================
   4. Plugin Documentation Index (/docs/{plugin-slug}/)
   ========================================================================== */
.fbs-docs-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.fbs-docs-switcher {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 4px;
	border-radius: 10px;
	flex-wrap: wrap;
}

.fbs-docs-switcher__pill {
	padding: 6px 12px;
	border-radius: 7px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #cbd5e1;
	text-decoration: none;
}

.fbs-docs-switcher__pill:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.fbs-docs-switcher__pill.is-active {
	background: #4f46e5;
	color: #ffffff;
}

.fbs-docs-plugin-header__badges {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.fbs-docs-plugin-header__content .fbs-docs-hero__subtitle {
	margin: 0 0 22px;
	max-width: 760px;
}

.fbs-docs-plugin-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.fbs-docs-index-section {
	background: #f8fafc;
	padding: 44px 0 72px;
}

.fbs-docs-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 18px;
	margin-bottom: 32px;
}

.fbs-docs-filter-bar__search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 240px;
	color: #64748b;
}

.fbs-docs-filter-bar__search input {
	width: 100%;
	border: 0;
	outline: none;
	font-size: 0.94rem;
	color: #0f172a;
	font-family: var(--fbs-font-sans);
}

.fbs-docs-section-group + .fbs-docs-section-group {
	margin-top: 36px;
}

.fbs-docs-section-group__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 10px;
	margin-bottom: 18px;
}

.fbs-docs-section-group__title {
	font-size: 1.25rem;
	margin: 0;
	color: #0f172a;
}

.fbs-docs-section-group__count {
	font-size: 0.82rem;
	font-weight: 600;
	color: #64748b;
}

.fbs-docs-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}

.fbs-doc-index-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	text-decoration: none;
	color: #0f172a;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fbs-doc-index-card:hover {
	transform: translateY(-2px);
	border-color: #6366f1;
	box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.14);
}

.fbs-doc-index-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.fbs-doc-read-time {
	margin-left: auto;
	font-size: 0.76rem;
	color: #64748b;
	font-weight: 500;
}

.fbs-doc-index-card__title {
	font-size: 1.08rem;
	margin: 0 0 8px;
	color: #0f172a;
	line-height: 1.35;
}

.fbs-doc-index-card__desc {
	font-size: 0.88rem;
	color: #475569;
	line-height: 1.55;
	margin: 0 0 16px;
	flex: 1;
}

.fbs-doc-index-card__cta {
	font-size: 0.84rem;
	font-weight: 700;
	color: #4f46e5;
}

.fbs-docs-empty-state {
	background: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
	padding: 48px 28px;
	text-align: center;
	max-width: 680px;
	margin: 0 auto;
}

.fbs-docs-empty-state__icon {
	font-size: 2.5rem;
	margin-bottom: 12px;
}

.fbs-docs-empty-state h2 {
	font-size: 1.4rem;
	margin-bottom: 8px;
}

.fbs-docs-empty-state p {
	color: #475569;
	margin-bottom: 18px;
}

.fbs-docs-empty-state__topics {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* ==========================================================================
   5. Single Documentation Article 3-Column Layout (/docs/{plugin}/{slug}/)
   ========================================================================== */
.fbs-doc-single {
	background: #ffffff;
}

.fbs-doc-subbar {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 10px 0;
}

.fbs-doc-subbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.fbs-breadcrumbs--doc {
	font-size: 0.84rem;
	color: #475569;
	margin: 0;
}

.fbs-breadcrumbs--doc a {
	color: #475569;
	text-decoration: none;
	font-weight: 500;
}

.fbs-breadcrumbs--doc a:hover {
	color: #4f46e5;
}

.fbs-breadcrumbs__section {
	color: #0f172a;
	font-weight: 600;
}

.fbs-doc-mobile-menu-btn {
	display: none;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #0f172a;
	cursor: pointer;
}

.fbs-doc-layout {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr) 230px;
	gap: 40px;
	align-items: start;
	padding-top: 36px;
	padding-bottom: 72px;
}

/* Left Sticky Sidebar */
.fbs-doc-sidebar {
	position: sticky;
	top: 92px;
	max-height: calc(100vh - 112px);
	overflow-y: auto;
	padding-right: 12px;
	border-right: 1px solid #e2e8f0;
}

.fbs-doc-sidebar__plugin-box {
	margin-bottom: 14px;
}

.fbs-doc-sidebar__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-bottom: 5px;
}

.fbs-doc-sidebar__select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	color: #0f172a;
	font-family: var(--fbs-font-sans);
	font-size: 0.85rem;
	font-weight: 600;
}

.fbs-doc-sidebar__filter {
	margin-bottom: 18px;
}

.fbs-doc-sidebar__filter input {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.83rem;
	background: #ffffff;
	color: #0f172a;
}

.fbs-doc-sidebar__filter input:focus {
	outline: none;
	border-color: #6366f1;
}

.fbs-doc-nav-group + .fbs-doc-nav-group {
	margin-top: 20px;
}

.fbs-doc-nav-group__title {
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin: 0 0 8px;
	padding: 0 8px;
}

.fbs-doc-nav-group__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fbs-doc-nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 8px;
	font-size: 0.86rem;
	line-height: 1.35;
	color: #334155;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fbs-doc-nav-link:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.fbs-doc-nav-link.is-current {
	background: #eef2ff;
	color: #4338ca;
	font-weight: 700;
}

.fbs-doc-nav-link__part {
	font-weight: 700;
	margin-right: 2px;
}

/* Center Reading Article */
.fbs-doc-article {
	min-width: 0;
	max-width: 780px;
}

.fbs-doc-article__header {
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 24px;
	margin-bottom: 28px;
}

.fbs-doc-article__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.fbs-doc-meta-item {
	font-size: 0.8rem;
	color: #64748b;
	font-weight: 500;
}

.fbs-doc-meta-item::before {
	content: "•";
	margin-right: 6px;
	color: #cbd5e1;
}

.fbs-doc-article__title {
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 12px;
	line-height: 1.22;
}

.fbs-doc-article__lead {
	font-size: 1.06rem;
	color: #475569;
	line-height: 1.65;
	margin: 0;
}

/* Rich Prose Formatting inside Docs */
.fbs-doc-prose {
	font-size: 1rem;
	line-height: 1.75;
	color: #1e293b;
}

.fbs-doc-prose h2 {
	font-size: 1.48rem;
	margin: 40px 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
	scroll-margin-top: 96px;
	position: relative;
}

.fbs-doc-prose h3 {
	font-size: 1.18rem;
	margin: 28px 0 10px;
	scroll-margin-top: 96px;
	position: relative;
}

.fbs-doc-heading-anchor {
	opacity: 0;
	font-size: 0.9em;
	font-weight: 600;
	color: #94a3b8;
	text-decoration: none;
	margin-left: 6px;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.fbs-doc-prose h2:hover .fbs-doc-heading-anchor,
.fbs-doc-prose h3:hover .fbs-doc-heading-anchor,
.fbs-doc-heading-anchor:focus {
	opacity: 1;
}

.fbs-doc-heading-anchor:hover {
	color: #4f46e5;
}

.fbs-doc-prose ul,
.fbs-doc-prose ol {
	padding-left: 22px;
	margin: 0 0 20px;
}

.fbs-doc-prose li + li {
	margin-top: 8px;
}

.fbs-doc-prose code {
	font-family: var(--fbs-font-mono);
	font-size: 0.86em;
	background: #f1f5f9;
	color: #0f172a;
	padding: 2px 6px;
	border-radius: 5px;
	border: 1px solid #e2e8f0;
}

.fbs-doc-prose pre {
	position: relative;
	background: #0f172a;
	color: #f8fafc;
	padding: 18px 20px;
	border-radius: 12px;
	overflow-x: auto;
	margin: 18px 0 24px;
	border: 1px solid #1e293b;
}

.fbs-doc-prose pre code {
	background: transparent;
	color: inherit;
	padding: 0;
	border: 0;
	font-size: 0.88rem;
	line-height: 1.65;
}

.fbs-doc-copy-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #cbd5e1;
	font-family: var(--fbs-font-sans);
	font-size: 0.74rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fbs-doc-copy-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.fbs-doc-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.08);
	margin: 16px 0;
}

.fbs-doc-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0 28px;
	font-size: 0.92rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.fbs-doc-prose th,
.fbs-doc-prose td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: top;
}

.fbs-doc-prose th {
	background: #f8fafc;
	font-weight: 700;
	color: #0f172a;
}

/* Built-In Callout Boxes */
.fbs-doc-callout {
	padding: 16px 18px;
	border-radius: 10px;
	margin: 20px 0;
	font-size: 0.94rem;
	line-height: 1.6;
	border-left: 4px solid #4f46e5;
	background: #f8fafc;
}

.fbs-doc-callout--info {
	background: #eff6ff;
	border-left-color: #3b82f6;
	color: #1e3a8a;
}

.fbs-doc-callout--tip {
	background: #ecfdf5;
	border-left-color: #10b981;
	color: #065f46;
}

.fbs-doc-callout--warning {
	background: #fffbeb;
	border-left-color: #f59e0b;
	color: #92400e;
}

.fbs-doc-callout--pro {
	background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
	border-left-color: #6366f1;
	color: #312e81;
}

/* Sequential Pagination (Prev / Next) */
.fbs-doc-pagination {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid #e2e8f0;
}

.fbs-doc-pagination__card {
	display: flex;
	flex-direction: column;
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	background: #f8fafc;
	transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.fbs-doc-pagination__card:hover {
	border-color: #6366f1;
	background: #ffffff;
	transform: translateY(-2px);
}

.fbs-doc-pagination__card--next {
	text-align: right;
}

.fbs-doc-pagination__dir {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 4px;
}

.fbs-doc-pagination__title {
	font-size: 0.96rem;
	color: #0f172a;
	line-height: 1.35;
}

/* Article Footer Support Card */
.fbs-doc-article__footer-card {
	margin-top: 32px;
	background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
	color: #f8fafc;
	border-radius: 14px;
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.fbs-doc-article__footer-info h3 {
	color: #ffffff;
	font-size: 1.1rem;
	margin: 0 0 4px;
}

.fbs-doc-article__footer-info p {
	color: #cbd5e1;
	font-size: 0.88rem;
	margin: 0;
	max-width: 480px;
}

.fbs-doc-article__footer-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Right Sticky TOC Sidebar */
.fbs-doc-toc-sidebar {
	position: sticky;
	top: 92px;
	max-height: calc(100vh - 112px);
	overflow-y: auto;
}

.fbs-doc-toc-box {
	margin-bottom: 24px;
}

.fbs-doc-toc-box__title {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin: 0 0 10px;
}

.fbs-doc-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid #e2e8f0;
}

.fbs-doc-toc__item--h3 .fbs-doc-toc__link {
	padding-left: 22px;
	font-size: 0.79rem;
}

.fbs-doc-toc__link {
	display: block;
	padding: 5px 12px;
	font-size: 0.83rem;
	line-height: 1.4;
	color: #475569;
	text-decoration: none;
	border-left: 2px solid transparent;
	margin-left: -2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.fbs-doc-toc__link:hover {
	color: #0f172a;
}

.fbs-doc-toc__link.is-active {
	color: #4f46e5;
	border-left-color: #4f46e5;
	font-weight: 600;
}

.fbs-doc-resource-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
}

.fbs-doc-resource-card__title {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #0f172a;
	margin: 0 0 10px;
}

.fbs-doc-resource-card__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fbs-doc-resource-card__links li + li {
	margin-top: 8px;
}

.fbs-doc-resource-card__links a {
	font-size: 0.83rem;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
}

.fbs-doc-resource-card__links a:hover {
	color: #4f46e5;
}

.fbs-doc-mobile-toc {
	display: none;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 24px;
}

.fbs-doc-mobile-toc summary {
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	color: #0f172a;
}

.fbs-doc-mobile-toc ul {
	margin: 10px 0 0;
	padding-left: 18px;
}

.fbs-doc-mobile-toc a {
	font-size: 0.86rem;
	color: #334155;
	text-decoration: none;
}

/* ==========================================================================
   6. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
	.fbs-doc-layout {
		grid-template-columns: 250px minmax(0, 1fr);
	}
	.fbs-doc-toc-sidebar {
		display: none;
	}
	.fbs-doc-mobile-toc {
		display: block;
	}
}

@media (max-width: 820px) {
	.fbs-doc-mobile-menu-btn {
		display: inline-flex;
	}
	.fbs-doc-layout {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 24px;
	}
	.fbs-doc-sidebar {
		display: none;
		position: static;
		max-height: none;
		border-right: 0;
		border: 1px solid #e2e8f0;
		border-radius: 12px;
		padding: 16px;
		background: #f8fafc;
		margin-bottom: 16px;
	}
	.fbs-doc-sidebar.is-open {
		display: block;
	}
	.fbs-doc-pagination {
		grid-template-columns: 1fr;
	}
	.fbs-doc-pagination__card--next {
		text-align: left;
	}
}
