:root {
	--ppf-docs-bg: #f8fafc;
	--ppf-docs-surface: #ffffff;
	--ppf-docs-surface-alt: #f1f5f9;
	--ppf-docs-text: #0f172a;
	--ppf-docs-muted: #475569;
	--ppf-docs-border: #dbe4ee;
	--ppf-docs-brand: #2563eb;
	--ppf-docs-brand-hover: #1d4ed8;
	--ppf-docs-code-bg: #e2e8f0;
	--ppf-docs-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	--ppf-docs-highlight: #facc15;
}

body.ppf-docs-theme-dark {
	color-scheme: dark;
	--ppf-docs-bg: #0f172a;
	--ppf-docs-surface: #111827;
	--ppf-docs-surface-alt: #1f2937;
	--ppf-docs-text: #e5e7eb;
	--ppf-docs-muted: #94a3b8;
	--ppf-docs-border: #334155;
	--ppf-docs-brand: #60a5fa;
	--ppf-docs-brand-hover: #93c5fd;
	--ppf-docs-code-bg: #1e293b;
	--ppf-docs-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
	--ppf-docs-highlight: #b18e25 ;
	background: var( --ppf-docs-bg );
}

body,
#app {
	background: var( --ppf-docs-bg );
	color: var( --ppf-docs-text );
}

.sidebar,
.content,
.app-nav,
.markdown-section,
.search input,
.sidebar-toggle,
.github-corner svg {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar {
	background: var( --ppf-docs-surface );
	border-right: 1px solid var( --ppf-docs-border );
	color: var( --ppf-docs-text );
}

.sidebar a,
.sidebar p,
.sidebar strong,
.sidebar span {
	color: inherit;
}

.sidebar ul li a {
	color: var( --ppf-docs-muted );
}

.sidebar ul li.active > a,
.sidebar ul li a:hover {
	color: var( --ppf-docs-brand );
}

.content {
	background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 220px), var( --ppf-docs-bg );
	color: var( --ppf-docs-text );
}

.markdown-section {
	background: transparent;
	color: var( --ppf-docs-text );
	max-width: 920px;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section h5,
.markdown-section h6,
.markdown-section strong {
	color: var( --ppf-docs-text );
}

.markdown-section p,
.markdown-section li,
.markdown-section table,
.markdown-section blockquote,
.markdown-section tr,
.markdown-section td,
.markdown-section th {
	color: var( --ppf-docs-text );
}

.markdown-section a {
	color: var( --ppf-docs-brand );
}

.markdown-section a:hover {
	color: var( --ppf-docs-brand-hover );
}

.markdown-section code,
.markdown-section pre,
.markdown-section pre code {
	background: var( --ppf-docs-code-bg );
	border-color: var( --ppf-docs-border );
	color: var( --ppf-docs-text );
}

.markdown-section blockquote {
	background: var( --ppf-docs-highlight );
	border-left: 4px solid var( --ppf-docs-brand );
	box-shadow: var( --ppf-docs-shadow );
}

.markdown-section table {
	/*
	 * Docsify's base theme sets display:block on <table> so wide tables can
	 * scroll horizontally on narrow screens. That strips the table's own
	 * formatting context, so the browser builds an invisible inner table box
	 * to lay out the rows/cells — and that inner box only shrink-wraps its
	 * content instead of filling the 100% width the outer box has. The card
	 * styling below (background, border, radius) renders on the full-width
	 * outer box, while the actual cell borders stop short of it, leaving a
	 * blank strip on the right. Restoring display:table makes the table
	 * itself fill the width with no inner/outer mismatch.
	 */
	display: table;
	border-collapse: separate;
	border-spacing: 0;
	border-color: var( --ppf-docs-border );
	background: var( --ppf-docs-surface );
	box-shadow: var( --ppf-docs-shadow );
	border: 1px solid var( --ppf-docs-border );
	border-radius: 14px;
	overflow: hidden;
}

.markdown-section thead th,
.markdown-section tbody td,
.markdown-section tfoot td {
	border-color: var( --ppf-docs-border );
}

.markdown-section thead th {
	background: var( --ppf-docs-surface-alt );
	color: var( --ppf-docs-text );
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
}

.markdown-section tbody tr:nth-child( 2n ) {
	background: rgba( 148, 163, 184, 0.08 );
}

.markdown-section tbody tr:hover {
	background: rgba( 96, 165, 250, 0.12 );
}

.markdown-section td,
.markdown-section th {
	padding: 0.85rem 1rem;
	vertical-align: top;
}

body.ppf-docs-theme-dark .markdown-section table {
	background: var( --ppf-docs-surface );
	border-color: var( --ppf-docs-border );
	box-shadow: var( --ppf-docs-shadow );
}

body.ppf-docs-theme-dark .markdown-section table tr > * {
	background: var( --ppf-docs-surface ) !important;
	color: #e5e7eb !important;
	border-color: #334155 !important;
}

body.ppf-docs-theme-dark .markdown-section thead th {
	background: #1f2937;
	color: #f8fafc;
}

body.ppf-docs-theme-dark .markdown-section tbody tr:nth-child( 2n ) {
	background: rgba( 148, 163, 184, 0.08 ) !important;
}

body.ppf-docs-theme-dark .markdown-section tbody tr:nth-child( 2n + 1 ) {
	background: transparent !important;
}

body.ppf-docs-theme-dark .markdown-section tbody tr:hover {
	background: rgba( 59, 130, 246, 0.16 ) !important;
}

body.ppf-docs-theme-dark .markdown-section td,
body.ppf-docs-theme-dark .markdown-section th,
body.ppf-docs-theme-dark .markdown-section thead th,
body.ppf-docs-theme-dark .markdown-section tbody td,
body.ppf-docs-theme-dark .markdown-section tfoot td {
	border-color: #334155;
	color: #e5e7eb !important;
}

body.ppf-docs-theme-dark .markdown-section table tbody td,
body.ppf-docs-theme-dark .markdown-section table tbody th {
	background: #111827 !important;
}

body.ppf-docs-theme-dark .markdown-section table tbody tr:nth-child( 2n ) > * {
	background: #1f2937 !important;
}

body.ppf-docs-theme-dark .markdown-section table tbody tr:hover > * {
	background: #273244 !important;
}

body.ppf-docs-theme-dark .markdown-section table strong,
body.ppf-docs-theme-dark .markdown-section table code {
	color: #f8fafc !important;
}

body.ppf-docs-theme-dark .markdown-section table a {
	color: #93c5fd;
}

body.ppf-docs-theme-dark .markdown-section table a:hover {
	color: #bfdbfe;
}

.app-nav {
	background: rgba( 255, 255, 255, 0.72 );
	backdrop-filter: blur( 12px );
	border-bottom: 1px solid rgba( 148, 163, 184, 0.2 );
	color: var( --ppf-docs-text );
}

body.ppf-docs-theme-dark .app-nav {
	background: rgba( 15, 23, 42, 0.76 );
	border-bottom-color: rgba( 148, 163, 184, 0.18 );
}

.app-nav a {
	color: var( --ppf-docs-text );
}

.search input {
	background: var( --ppf-docs-surface );
	border-color: var( --ppf-docs-border );
	color: var( --ppf-docs-text );
}

.search input::placeholder {
	color: var( --ppf-docs-muted );
}

.sidebar-toggle {
	background: var( --ppf-docs-surface );
	border: 1px solid var( --ppf-docs-border );
	box-shadow: var( --ppf-docs-shadow );
	color: var( --ppf-docs-text );
}

.ppf-docs-theme-toggle {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1000;
	align-items: center;
	background: var( --ppf-docs-surface );
	border: 1px solid var( --ppf-docs-border );
	border-radius: 9999px;
	box-shadow: var( --ppf-docs-shadow );
	color: var( --ppf-docs-text );
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
}

.ppf-docs-theme-toggle:hover,
.ppf-docs-theme-toggle:focus {
	border-color: var( --ppf-docs-brand );
	color: var( --ppf-docs-brand );
	outline: none;
}
