/*
 * Single doc page (single-doc.php).
 *
 * Plain CSS, loaded only on docs, so it needs no Tailwind build.
 * Colors are variables; html.dark switches them.
 */

.doc-page {
	--doc-bg: #ffffff;
	--doc-surface: #f8fafc;
	--doc-surface-2: #f1f5f9;
	--doc-border: #e2e8f0;
	--doc-border-strong: #cbd5e1;
	--doc-text: #334155;
	--doc-heading: #0f172a;
	--doc-muted: #64748b;
	--doc-faint: #94a3b8;
	--doc-link: #2563eb;
	--doc-link-hover: #1d4ed8;
	--doc-accent-bg: #eff6ff;
	--doc-code-bg: #f1f5f9;
	--doc-code-text: #0f172a;
	--doc-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 4px 16px rgb(15 23 42 / 0.06);

	--doc-note: #2563eb;
	--doc-note-bg: #eff6ff;
	--doc-tip: #059669;
	--doc-tip-bg: #ecfdf5;
	--doc-warn: #d97706;
	--doc-warn-bg: #fffbeb;

	background: var(--doc-bg);
	color: var(--doc-text);
	font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.dark .doc-page {
	--doc-bg: #0b1120;
	--doc-surface: #111827;
	--doc-surface-2: #1e293b;
	--doc-border: #1f2a3c;
	--doc-border-strong: #334155;
	--doc-text: #cbd5e1;
	--doc-heading: #f8fafc;
	--doc-muted: #94a3b8;
	--doc-faint: #64748b;
	--doc-link: #60a5fa;
	--doc-link-hover: #93c5fd;
	--doc-accent-bg: rgb(37 99 235 / 0.14);
	--doc-code-bg: #1e293b;
	--doc-code-text: #e2e8f0;
	--doc-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);

	--doc-note: #60a5fa;
	--doc-note-bg: rgb(37 99 235 / 0.12);
	--doc-tip: #34d399;
	--doc-tip-bg: rgb(5 150 105 / 0.12);
	--doc-warn: #fbbf24;
	--doc-warn-bg: rgb(217 119 6 / 0.12);
}

/* ---------- Layout ---------- */

/*
 * The theme sets overflow-x: hidden on both html and body, which makes body
 * a scroll container and stops the sidebars from sticking. clip hides the
 * same overflow without creating one.
 */
html:has(body.single-doc),
body.single-doc {
	overflow-x: clip !important;
}

.doc-layout {
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px 16px 64px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

.doc-sidebar,
.doc-rail {
	display: none;
}

@media (min-width: 1024px) {
	.doc-layout {
		grid-template-columns: 250px minmax(0, 1fr);
		padding: 40px 32px 96px;
		gap: 48px;
	}
	.doc-sidebar { display: block; }
	.doc-mobile-nav { display: none; }
}

@media (min-width: 1280px) {
	.doc-layout {
		grid-template-columns: 250px minmax(0, 1fr) 220px;
		gap: 56px;
	}
	.doc-rail { display: block; }
	.doc-mobile-toc { display: none; }
}

.doc-main {
	min-width: 0;
	max-width: 780px;
	width: 100%;
	margin: 0 auto;
}

.doc-sidebar-inner,
.doc-rail-inner {
	position: sticky;
	top: 96px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	scrollbar-width: thin;
	padding-bottom: 24px;
}

/* ---------- Sidebar navigation ---------- */

.doc-sidebar-product {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 700;
	color: var(--doc-heading);
	text-decoration: none;
}

.doc-sidebar-product span {
	font-size: 13px;
	font-weight: 500;
	color: var(--doc-muted);
}

.doc-nav-section {
	margin-bottom: 6px;
}

.doc-nav-section > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--doc-muted);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.doc-nav-section > summary::-webkit-details-marker { display: none; }

.doc-nav-section > summary::after {
	content: '';
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}

.doc-nav-section[open] > summary::after { transform: rotate(45deg); }
.doc-nav-section > summary:hover { color: var(--doc-heading); }

.doc-nav ul {
	margin: 2px 0 10px;
	padding: 0 0 0 10px;
	list-style: none;
	border-left: 1px solid var(--doc-border);
	margin-left: 10px;
}

.doc-nav li a {
	display: block;
	margin-left: -11px;
	padding: 6px 12px;
	border-left: 2px solid transparent;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--doc-text);
	text-decoration: none;
	transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.doc-nav li a:hover {
	color: var(--doc-heading);
	border-left-color: var(--doc-border-strong);
}

.doc-nav li a[aria-current='page'] {
	color: var(--doc-link);
	border-left-color: var(--doc-link);
	font-weight: 600;
	background: linear-gradient(90deg, var(--doc-accent-bg), transparent);
}

/* Mobile nav and TOC: collapsible panels */
.doc-mobile-nav,
.doc-mobile-toc {
	margin-bottom: 20px;
	border: 1px solid var(--doc-border);
	border-radius: 12px;
	background: var(--doc-surface);
}

.doc-mobile-nav > summary,
.doc-mobile-toc > summary {
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--doc-heading);
	cursor: pointer;
}

.doc-mobile-nav .doc-nav,
.doc-mobile-toc .doc-toc {
	padding: 0 12px 12px;
}

.doc-mobile-toc { margin-top: 8px; }

/* ---------- Breadcrumbs ---------- */

.doc-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--doc-muted);
}

.doc-breadcrumbs li + li::before {
	content: '/';
	margin-right: 6px;
	color: var(--doc-faint);
}

.doc-breadcrumbs a {
	color: var(--doc-muted);
	text-decoration: none;
}

.doc-breadcrumbs a:hover { color: var(--doc-heading); }

/* ---------- Header ---------- */

.doc-title {
	margin: 0 0 14px;
	font-size: clamp(30px, 4vw, 40px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--doc-heading);
}

.doc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	font-size: 14px;
	color: var(--doc-muted);
}

.doc-actions {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.doc-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--doc-border-strong);
	border-radius: 8px;
	background: var(--doc-bg);
	color: var(--doc-heading);
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.doc-btn:hover { background: var(--doc-surface-2); }

.doc-btn svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.doc-actions > .doc-btn {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.doc-btn-icon {
	padding: 0 9px;
	border-left: 0;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	list-style: none;
}

.doc-btn-icon::-webkit-details-marker { display: none; }

.doc-menu { position: relative; }

.doc-menu-list {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 30;
	width: 290px;
	padding: 6px;
	border: 1px solid var(--doc-border);
	border-radius: 12px;
	background: var(--doc-bg);
	box-shadow: var(--doc-shadow);
}

.doc-menu-list a,
.doc-menu-list button {
	display: block;
	width: 100%;
	padding: 9px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	text-align: left;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.doc-menu-list a:hover,
.doc-menu-list button:hover { background: var(--doc-surface-2); }

.doc-menu-list strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--doc-heading);
}

.doc-menu-list span {
	display: block;
	margin-top: 1px;
	font-size: 12.5px;
	color: var(--doc-muted);
}

/* ---------- Summary ---------- */

.doc-summary {
	position: relative;
	margin: 28px 0 8px;
	padding: 18px 20px 18px 22px;
	border: 1px solid var(--doc-border);
	border-radius: 14px;
	background: var(--doc-surface);
	overflow: hidden;
}

.doc-summary::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: linear-gradient(180deg, #6366f1, #06b6d4);
}

.doc-summary-label {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--doc-muted);
}

.doc-summary p:last-child {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--doc-heading);
}

/* ---------- Body ---------- */

.doc-body {
	margin-top: 32px;
	font-size: 17px;
	line-height: 1.75;
	color: var(--doc-text);
	overflow-wrap: break-word;
}

.doc-body > * { margin-top: 0; margin-bottom: 0; }
.doc-body > * + * { margin-top: 1.1em; }
.doc-body > :is(h2, h3) + * { margin-top: 0.6em; }

.doc-body h2,
.doc-body h3 {
	position: relative;
	color: var(--doc-heading);
	scroll-margin-top: 96px;
	letter-spacing: -0.015em;
}

.doc-body h2 {
	margin-top: 2.4em;
	margin-bottom: 0.2em;
	padding-top: 1.2em;
	border-top: 1px solid var(--doc-border);
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
}

.doc-body > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.doc-body h3 {
	margin-top: 2em;
	margin-bottom: 0.1em;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 650;
}

.doc-body :is(h2, h3):target {
	animation: doc-flash 1.6s ease;
}

@keyframes doc-flash {
	0%, 40% { background: var(--doc-accent-bg); box-shadow: 0 0 0 8px var(--doc-accent-bg); border-radius: 4px; }
	100% { background: transparent; box-shadow: 0 0 0 8px transparent; }
}

.doc-body .doc-anchor {
	margin-left: 8px;
	padding: 0 4px;
	border-radius: 4px;
	color: var(--doc-faint);
	font-weight: 500;
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.12s ease;
}

.doc-body .doc-anchor::before { content: "#"; }

.doc-body :is(h2, h3):hover .doc-anchor,
.doc-body .doc-anchor:focus-visible { opacity: 1; }
.doc-body .doc-anchor:hover { color: var(--doc-link); }

.doc-body a:not(.doc-anchor) {
	color: var(--doc-link);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--doc-link) 35%, transparent);
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	transition: text-decoration-color 0.12s ease;
}

.doc-body a:not(.doc-anchor):hover {
	color: var(--doc-link-hover);
	text-decoration-color: currentColor;
}

.doc-body strong { color: var(--doc-heading); font-weight: 600; }

/* Lists */
.doc-body ul,
.doc-body ol {
	padding-left: 1.4em;
}

.doc-body ul { list-style: none; padding-left: 1.3em; }

.doc-body ul > li { position: relative; }

.doc-body ul > li::before {
	content: '';
	position: absolute;
	left: -1.05em;
	top: 0.72em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--doc-border-strong);
}

.doc-body ol { list-style: decimal; }
.doc-body ol > li::marker { color: var(--doc-muted); font-weight: 600; }
.doc-body li + li { margin-top: 0.45em; }
.doc-body li > p { margin: 0; }

/* Inline code and keys */
.doc-body :not(pre) > code {
	padding: 0.15em 0.4em;
	border: 1px solid var(--doc-border);
	border-radius: 6px;
	background: var(--doc-code-bg);
	color: var(--doc-code-text);
	font-size: 0.86em;
	font-weight: 500;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.doc-body kbd {
	display: inline-block;
	min-width: 1.6em;
	padding: 0.05em 0.45em;
	border: 1px solid var(--doc-border-strong);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: var(--doc-surface);
	color: var(--doc-heading);
	font-family: inherit;
	font-size: 0.82em;
	font-weight: 600;
	text-align: center;
	line-height: 1.5;
}

/* Code blocks */
.doc-body pre {
	position: relative;
	margin: 1.4em 0 !important;
	padding: 0 !important;
	border: 1px solid #1e293b;
	border-radius: 12px;
	background: #0f172a !important;
	overflow: hidden;
}

.doc-body pre > code {
	display: block;
	padding: 18px 20px !important;
	overflow-x: auto;
	background: none !important;
	color: #e2e8f0;
	font-size: 14px !important;
	line-height: 1.7 !important;
	text-shadow: none !important;
	white-space: pre;
}

/* Snippets are short: no line numbers. */
.doc-body pre .line-numbers-rows { display: none !important; }

.doc-code-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 38px;
	padding: 0 8px 0 16px;
	border-bottom: 1px solid #1e293b;
	background: #111c33;
	font-size: 12px;
	color: #94a3b8;
}

.doc-code-bar span {
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.doc-code-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 9px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: none;
	color: #94a3b8;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.doc-code-copy:hover { border-color: #334155; color: #e2e8f0; }
.doc-code-copy.is-copied { color: #34d399; }

.doc-code-copy svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

/* Tables */
.doc-body .wp-block-table {
	margin: 1.6em 0;
	border: 1px solid var(--doc-border);
	border-radius: 12px;
	overflow-x: auto;
}

.doc-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
}

.doc-body .wp-block-table :is(table, thead, tbody, tr, th, td) {
	border: 0;
}

.doc-body .wp-block-table thead th {
	padding: 11px 16px;
	border-bottom: 1px solid var(--doc-border);
	background: var(--doc-surface);
	color: var(--doc-heading);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
}

.doc-body .wp-block-table td {
	padding: 11px 16px;
	border-top: 1px solid var(--doc-border);
	vertical-align: top;
}

.doc-body .wp-block-table tbody tr:first-child td { border-top: 0; }
.doc-body tbody tr:hover td { background: var(--doc-surface); }
.doc-body td code { white-space: nowrap; }

/* Callouts: Group block styles Note, Tip, Warning */
.doc-body .wp-block-group:is(.is-style-note, .is-style-tip, .is-style-warning) {
	--callout: var(--doc-note);
	--callout-bg: var(--doc-note-bg);
	position: relative;
	margin: 1.6em 0;
	padding: 14px 18px 14px 50px;
	border: 1px solid color-mix(in srgb, var(--callout) 25%, transparent);
	border-radius: 12px;
	background: var(--callout-bg);
	font-size: 16px;
	line-height: 1.65;
}

.doc-body .wp-block-group.is-style-tip { --callout: var(--doc-tip); --callout-bg: var(--doc-tip-bg); }
.doc-body .wp-block-group.is-style-warning { --callout: var(--doc-warn); --callout-bg: var(--doc-warn-bg); }

.doc-body .wp-block-group:is(.is-style-note, .is-style-tip, .is-style-warning)::before {
	content: '';
	position: absolute;
	left: 17px;
	top: 17px;
	width: 20px;
	height: 20px;
	background: var(--callout);
	-webkit-mask: var(--callout-icon) center / contain no-repeat;
	mask: var(--callout-icon) center / contain no-repeat;
	--callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
}

.doc-body .wp-block-group.is-style-tip::before {
	--callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.4 1 1.1 1 1.9V16h5v-.2c0-.8.4-1.5 1-1.9A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E");
}

.doc-body .wp-block-group.is-style-warning::before {
	--callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0ZM12 9v4M12 17h.01'/%3E%3C/svg%3E");
}

.doc-body .wp-block-group:is(.is-style-note, .is-style-tip, .is-style-warning) > * + * { margin-top: 0.6em; }
.doc-body .wp-block-group:is(.is-style-note, .is-style-tip, .is-style-warning) pre { margin: 0.8em 0 0; }

/* Images, GIFs and video */
.doc-body .wp-block-image,
.doc-body figure.doc-media {
	margin: 1.8em 0;
}

.doc-body .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--doc-border);
	border-radius: 12px;
	box-shadow: var(--doc-shadow);
	cursor: zoom-in;
}

.doc-body figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--doc-muted);
	text-align: center;
}

.doc-body .wp-block-embed { margin: 1.8em 0; }

.doc-body .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--doc-shadow);
	background: #000;
}

.doc-body .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.doc-body video {
	display: block;
	width: 100%;
	border-radius: 12px;
	box-shadow: var(--doc-shadow);
}

/* Lightbox for images */
.doc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgb(2 6 23 / 0.85);
	backdrop-filter: blur(4px);
	cursor: zoom-out;
	animation: doc-fade 0.15s ease;
}

.doc-lightbox img {
	max-width: min(1400px, 100%);
	max-height: 100%;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
}

@keyframes doc-fade { from { opacity: 0; } }

/* ---------- Footer: feedback and pager ---------- */

.doc-footer {
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid var(--doc-border);
}

.doc-feedback {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 28px;
}

.doc-feedback > p:first-child {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--doc-heading);
}

.doc-feedback-buttons { display: flex; gap: 8px; }
.doc-feedback-buttons .doc-btn { border-radius: 999px; }

.doc-feedback-thanks {
	margin: 0;
	font-size: 15px;
	color: var(--doc-muted);
}

.doc-feedback-thanks a { color: var(--doc-link); }

.doc-pager {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.doc-pager a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--doc-border);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.doc-pager a:hover {
	border-color: var(--doc-link);
	box-shadow: var(--doc-shadow);
	transform: translateY(-1px);
}

.doc-pager span {
	display: block;
	font-size: 13px;
	color: var(--doc-muted);
}

.doc-pager strong {
	display: block;
	margin-top: 2px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--doc-heading);
}

.doc-pager-prev span::before { content: '← '; }
.doc-pager-next { text-align: right; grid-column: -2; }
.doc-pager-next span::after { content: ' →'; }

/* ---------- Rail: on this page ---------- */

.doc-rail-title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--doc-muted);
}

.doc-toc {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--doc-border);
}

.doc-toc a {
	display: block;
	margin-left: -1px;
	padding: 5px 0 5px 14px;
	border-left: 2px solid transparent;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--doc-muted);
	text-decoration: none;
	transition: color 0.12s ease, border-color 0.12s ease;
}

.doc-toc .doc-toc-h3 a { padding-left: 26px; font-size: 13px; }
.doc-toc a:hover { color: var(--doc-heading); }

.doc-toc a.is-active {
	color: var(--doc-link);
	border-left-color: var(--doc-link);
	font-weight: 500;
}

.doc-rail-help {
	margin-top: 28px;
	padding: 14px 16px;
	border: 1px solid var(--doc-border);
	border-radius: 12px;
	background: var(--doc-surface);
	font-size: 13.5px;
	line-height: 1.5;
}

.doc-rail-help p { margin: 0; }
.doc-rail-help p + p { margin-top: 4px; color: var(--doc-muted); }
.doc-rail-help strong { color: var(--doc-heading); }
.doc-rail-help a { color: var(--doc-link); }

/* ---------- Toast ---------- */

.doc-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	font-size: 14px;
	box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
	transform: translateX(-50%);
	animation: doc-fade 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
	.doc-page *,
	.doc-page *::before { animation: none !important; transition: none !important; }
}
