/**
 * Fillvox Docs — page styles
 *
 * Loaded only on pages using the "Fillvox Docs (sidebar layout)" template.
 *
 * Mirrors the look of docs.html in the static design pack: sticky sidebar
 * with active-section highlight, content typography, blue tip callouts,
 * dark code blocks, and a slate help-card at the bottom.
 */

/* Anchor offset — keeps headings clear of the sticky header on jump */
.fillvox-docs__h {
	scroll-margin-top: 96px;
}

/* ---- Sidebar -------------------------------------------------------- */
.fillvox-docs__menu {
	font-size: .9375rem;
}
.fillvox-docs__menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.fillvox-docs__menu a {
	display: block;
	padding: .375rem .625rem;
	border-radius: 6px;
	color: #475569;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	border-left: 2px solid transparent;
}
.fillvox-docs__menu a:hover {
	background: #f1f5f9;
	color: #0f172a;
}
/* Active highlight — used by both WP's current-menu-item AND scrollspy. */
.fillvox-docs__menu .current_page_item > a,
.fillvox-docs__menu .current-menu-item > a,
.fillvox-docs__menu a.is-active {
	background: #eff6ff;
	color: #2563eb;
	font-weight: 600;
	border-left-color: #2563eb;
}

/* Grouped sidebar (auto from H2/H3 headings — matches docs.html) ------ */
.fillvox-docs__menu--grouped {
	display: block;
}
.fillvox-docs__menu--grouped a {
	border-left: 0;     /* groups use indentation, not the brand-colored bar */
}
.fillvox-docs__menu-label {
	display: block;
	letter-spacing: .12em;
	color: #0f172a !important;
	background: transparent !important;
	transition: color .15s ease;
}
.fillvox-docs__menu-label:hover {
	color: #2563eb !important;
	background: transparent !important;
}
.fillvox-docs__menu-label.is-active {
	color: #2563eb !important;
	background: transparent !important;
	border-left: 0 !important;
}
.fillvox-docs__menu-children a.is-active {
	background: #eff6ff;
	color: #2563eb !important;
	font-weight: 600;
}
.fillvox-docs__menu-group + .fillvox-docs__menu-group {
	margin-top: 1.5rem;
}
/* Sub-menu nesting */
.fillvox-docs__menu .children,
.fillvox-docs__menu .sub-menu {
	list-style: none;
	margin: .25rem 0 .25rem .75rem;
	padding: 0 0 0 .75rem;
	border-left: 1px solid #e2e8f0;
}
/* Anchor-mode menu — section group label */
.fillvox-docs__menu--anchors > div:first-child {
	margin-bottom: .5rem;
}

/* ---- Content typography -------------------------------------------- */
.fillvox-docs__content > * + * {
	margin-top: 1.25rem;
}
.fillvox-docs__content h2 {
	font-size: 1.875rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -.02em;
	margin: 3rem 0 1rem;
	line-height: 1.2;
}
.fillvox-docs__content h3 {
	font-size: 1.375rem;
	font-weight: 700;
	color: #0f172a;
	margin: 2rem 0 .75rem;
	line-height: 1.3;
}
.fillvox-docs__content h4 {
	font-size: 1.125rem;
	font-weight: 700;
	color: #0f172a;
	margin: 1.5rem 0 .5rem;
}
.fillvox-docs__content p,
.fillvox-docs__content li {
	color: #334155;
	line-height: 1.7;
}
.fillvox-docs__content > p:first-of-type {
	font-size: 1.125rem;
	color: #475569;
}
.fillvox-docs__content ul,
.fillvox-docs__content ol {
	padding-left: 1.5rem;
}
.fillvox-docs__content ul li,
.fillvox-docs__content ol li {
	margin-top: .5rem;
}
.fillvox-docs__content a {
	color: #2563eb;
	text-decoration: none;
	border-bottom: 1px solid rgba( 37, 99, 235, .3 );
	transition: border-color .15s ease;
}
.fillvox-docs__content a:hover {
	border-bottom-color: #2563eb;
}
.fillvox-docs__content strong {
	color: #0f172a;
}
.fillvox-docs__content blockquote {
	border-left: 4px solid #e2e8f0;
	padding: .25rem 0 .25rem 1rem;
	margin: 1.5rem 0;
	color: #475569;
	font-style: italic;
}

/* Inline + block code */
.fillvox-docs__content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	background: #f1f5f9;
	padding: .15em .4em;
	border-radius: 4px;
	font-size: .875em;
	color: #0f172a;
	border: 1px solid #e2e8f0;
}
.fillvox-docs__content pre {
	background: #0f172a;
	color: #e2e8f0;
	padding: 1.25rem;
	border-radius: 12px;
	overflow-x: auto;
	font-size: .875rem;
	line-height: 1.6;
	margin: 1.5rem 0;
}
.fillvox-docs__content pre code {
	background: transparent;
	padding: 0;
	border: 0;
	color: inherit;
}

/* Images inside docs content */
.fillvox-docs__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 1.5rem 0;
}
.fillvox-docs__content figure {
	margin: 1.5rem 0;
}
.fillvox-docs__content figcaption {
	color: #64748b;
	font-size: .875rem;
	text-align: center;
	margin-top: .5rem;
}

/* Tables */
.fillvox-docs__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: .9375rem;
}
.fillvox-docs__content th,
.fillvox-docs__content td {
	padding: .625rem 1rem;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
}
.fillvox-docs__content th {
	background: #f8fafc;
	font-weight: 600;
	color: #0f172a;
}

/* ---- Callouts ------------------------------------------------------- */
.fillvox-docs__callout {
	margin: 1.5rem 0;
}
.fillvox-docs__callout p {
	margin: 0;
}

/* ---- Help card (bottom CTA) ---------------------------------------- */
.fillvox-docs__help-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}
.fillvox-docs__help-card h3 {
	margin: 0 0 .25rem;
	font-size: 1.0625rem;
}
.fillvox-docs__help-card a {
	border-bottom: 0;
}

/* ---- Responsive ----------------------------------------------------- */
@media ( max-width: 1023px ) {
	.fillvox-docs__sidebar-inner {
		position: static !important;
	}
	.fillvox-docs__sidebar {
		border-bottom: 1px solid #e2e8f0;
		padding-bottom: 1.5rem;
		margin-bottom: 1rem;
	}
}
