/* =========================================================================
   Daily Quiz Docs — a faithful RTL rendition of the Docusaurus classic theme
   (Infima design tokens), self-hosted inside the WordPress theme.
   All article styles live under .dqd so the admin editor can reuse them.
   ========================================================================= */
:root {
	--dqd-primary: #2340c8;
	--dqd-primary-dark: #2039b4;
	--dqd-primary-darker: #1c33a0;
	--dqd-primary-light: #4f66d3;
	--dqd-primary-soft: #e9ecfa;
	--dqd-primary-rgb: 35, 64, 200;
	--dqd-bg: #ffffff;
	--dqd-surface: #ffffff;
	--dqd-content: #1c1e21;
	--dqd-content-2: #525860;
	--dqd-e0: #ffffff;
	--dqd-e100: #f5f6f7;
	--dqd-e200: #ebedf0;
	--dqd-e300: #dadde1;
	--dqd-e500: #8d949e;
	--dqd-e600: #606770;
	--dqd-e700: #444950;
	--dqd-e800: #1c1e21;
	--dqd-hover: rgba(0, 0, 0, .05);
	--dqd-navbar-h: 3.75rem;
	--dqd-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
	--dqd-code-bg: #f6f8fa;
	--dqd-code-fg: #393a34;
	--dqd-inline-code-bg: rgba(0, 0, 0, .05);
	--dqd-inline-code-border: rgba(0, 0, 0, .1);
	--dqd-radius: .4rem;
	--dqd-font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif;
	--dqd-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	--dqd-sidebar-w: 300px;
	--dqd-footer-bg: #303846;
}
html[data-theme="dark"] {
	--dqd-bg: #1b1b1d;
	--dqd-surface: #242526;
	--dqd-content: #e3e3e3;
	--dqd-content-2: #bec3c9;
	--dqd-e0: #1b1b1d;
	--dqd-e100: #242526;
	--dqd-e200: #2f3031;
	--dqd-e300: #444950;
	--dqd-e500: #8d949e;
	--dqd-e600: #b5b8bd;
	--dqd-e700: #dadde1;
	--dqd-e800: #f5f6f7;
	--dqd-hover: rgba(255, 255, 255, .05);
	--dqd-shadow: 0 1px 2px 0 rgba(0, 0, 0, .4);
	--dqd-code-bg: #282a36;
	--dqd-code-fg: #f8f8f2;
	--dqd-inline-code-bg: rgba(255, 255, 255, .08);
	--dqd-inline-code-border: rgba(255, 255, 255, .1);
	--dqd-footer-bg: #242526;
	color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--dqd-navbar-h) + .5rem); -webkit-text-size-adjust: 100%; }
body.dqd-body { margin: 0; background: var(--dqd-bg) !important; background-image: none !important; color: var(--dqd-content); font-family: var(--dqd-font); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
.dqd-body *, .dqd-body *::before, .dqd-body *::after { box-sizing: border-box; }
.dqd-body a { color: var(--dqd-primary); text-decoration: none; }
.dqd-body a:hover { text-decoration: underline; }
.dqd-body button { font: inherit; }
.dqd-body :focus { outline: none; }
.dqd-body :focus-visible { outline: 2px solid var(--dqd-primary); outline-offset: 2px; border-radius: 4px; }
.dqd-body img { max-width: 100%; }
.dqd-skip { position: absolute; top: -100px; inset-inline-start: 1rem; z-index: 300; padding: .6rem 1rem; background: var(--dqd-primary); color: #fff !important; border-radius: var(--dqd-radius); }
.dqd-skip:focus { top: 1rem; }
body.admin-bar .dqd-navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .dqd-navbar { top: 46px; } }
kbd { font-family: var(--dqd-mono); font-size: .75em; padding: .1rem .35rem; border-radius: .25rem; border: 1px solid var(--dqd-e300); border-bottom-width: 2px; background: var(--dqd-e100); color: var(--dqd-content); }

/* -------------------------------------------------------------- navbar */
.dqd-navbar { position: sticky; top: 0; z-index: 100; height: var(--dqd-navbar-h); background: var(--dqd-surface); box-shadow: var(--dqd-shadow); }
.dqd-navbar-inner { height: 100%; display: flex; align-items: center; gap: .25rem; padding: .5rem 1rem; }
.dqd-brand { display: inline-flex; align-items: center; gap: .5rem; margin-inline-end: 1rem; color: var(--dqd-content) !important; text-decoration: none !important; min-width: 0; }
.dqd-brand img { width: 32px; height: 32px; flex: none; }
.dqd-brand b { font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dqd-navbar-items { display: flex; align-items: center; gap: .1rem; min-width: 0; }
.dqd-navbar-end { margin-inline-start: auto; display: flex; align-items: center; gap: .25rem; }
.dqd-navbar-link { display: inline-block; padding: .25rem .75rem; color: var(--dqd-content) !important; font-weight: 500; border-radius: var(--dqd-radius); white-space: nowrap; text-decoration: none !important; transition: color .2s; }
.dqd-navbar-link:hover, .dqd-navbar-link.is-active { color: var(--dqd-primary) !important; }
.dqd-navbar-toggle { display: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-inline-end: .5rem; border: 0; background: transparent; color: var(--dqd-content); cursor: pointer; border-radius: 50%; }
.dqd-theme-toggle { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--dqd-content); cursor: pointer; transition: background .2s; }
.dqd-theme-toggle:hover { background: var(--dqd-hover); }
.dqd-theme-toggle .dqd-ico-dark, html[data-theme="dark"] .dqd-theme-toggle .dqd-ico-light { display: none; }
html[data-theme="dark"] .dqd-theme-toggle .dqd-ico-dark { display: inline; }
.dqd-search-btn { display: inline-flex; align-items: center; gap: .5rem; height: 36px; margin-inline-start: .5rem; padding: 0 .5rem 0 .75rem; border: 0; border-radius: 40px; background: var(--dqd-e200); color: var(--dqd-e600); cursor: pointer; transition: box-shadow .2s, background .2s; }
.dqd-search-btn:hover { background: var(--dqd-surface); box-shadow: inset 0 0 0 2px var(--dqd-primary); color: var(--dqd-content); }
.dqd-search-placeholder { font-size: .95rem; padding-inline-end: 1.5rem; }
.dqd-keys { display: inline-flex; gap: 3px; direction: ltr; }
.dqd-keys kbd { min-width: 20px; height: 18px; display: inline-grid; place-items: center; padding: 0 .25rem; border: 0; border-radius: 3px; font-size: .7rem; background: linear-gradient(-225deg, #d5dbe4, #f8f8f8); box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff, 0 1px 2px 1px rgba(30, 35, 90, .4); color: #969faf; }
html[data-theme="dark"] .dqd-keys kbd { background: linear-gradient(-26.5deg, #565872, #31355b); box-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d, 0 2px 2px 0 rgba(3, 4, 9, .3); color: #7f8497; }

/* -------------------------------------------------------------- layout */
.dqd-wrapper { display: flex; flex: 1 0 auto; width: 100%; }
.dqd-sidebar { flex: none; width: var(--dqd-sidebar-w); border-inline-end: 1px solid var(--dqd-e300); }
.dqd-sidebar .dqd-menu { position: sticky; top: var(--dqd-navbar-h); max-height: calc(100vh - var(--dqd-navbar-h)); overflow-y: auto; padding: .5rem; scrollbar-width: thin; }
body.admin-bar .dqd-sidebar .dqd-menu { top: calc(var(--dqd-navbar-h) + 32px); max-height: calc(100vh - var(--dqd-navbar-h) - 32px); }
.dqd-main { flex: 1; min-width: 0; padding: 1rem 2rem 2rem; }
.dqd-doc-row { display: flex; gap: 1rem; max-width: 1140px; margin: 0 auto; }
.dqd-doc-col { flex: 1; min-width: 0; }
.dqd-doc-row.has-toc .dqd-doc-col { max-width: 75%; }
.dqd-toc-col { flex: 0 0 25%; max-width: 25%; }

/* ---------------------------------------------------------- sidebar menu */
.dqd-menu { font-weight: 500; font-size: .95rem; }
.dqd-menu-list { list-style: none; margin: 0; padding: 0; }
.dqd-menu-list.is-sub { padding-inline-start: 1rem; margin-top: .25rem; }
.dqd-menu-item { margin-top: .25rem; }
.dqd-menu-item.is-collapsed > .dqd-menu-list { display: none; }
.dqd-menu-section { display: block; margin: .25rem 0 .5rem; padding: .375rem .75rem; font-weight: 800; color: var(--dqd-content) !important; border-radius: .25rem; text-decoration: none !important; }
.dqd-menu-section:hover { background: var(--dqd-hover); }
.dqd-menu-section.is-active { color: var(--dqd-primary) !important; background: var(--dqd-hover); }
.dqd-menu-link { display: flex; align-items: center; gap: .4rem; flex: 1; padding: .375rem .75rem; border-radius: .25rem; color: var(--dqd-e700) !important; line-height: 1.5; text-decoration: none !important; transition: background .2s, color .2s; }
.dqd-menu-link:hover { background: var(--dqd-hover); color: var(--dqd-content) !important; }
.dqd-menu-link.is-active { color: var(--dqd-primary) !important; background: var(--dqd-hover); }
.dqd-menu-link.is-active-parent { color: var(--dqd-primary) !important; }
.dqd-menu-cat { display: flex; align-items: center; border-radius: .25rem; }
.dqd-menu-cat:hover { background: var(--dqd-hover); }
.dqd-menu-cat .dqd-menu-link:hover { background: transparent; }
.dqd-menu-caret { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: .25rem; background: transparent; color: var(--dqd-e600); cursor: pointer; transition: transform .2s; transform: rotate(-90deg); }
.dqd-menu-caret:hover { background: var(--dqd-hover); }
.dqd-menu-item.is-collapsed > .dqd-menu-cat .dqd-menu-caret { transform: rotate(0deg); }
.dqd-draft { font-style: normal; font-size: .65rem; font-weight: 800; padding: 0 .35rem; border-radius: .25rem; background: #fff8e6; color: #8a6100; }

/* -------------------------------------------------------- breadcrumbs */
.dqd-breadcrumbs { margin-bottom: .8rem; }
.dqd-breadcrumbs ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.dqd-breadcrumbs li { display: inline-flex; align-items: center; }
.dqd-breadcrumbs li + li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin: 0 .5rem; opacity: .5; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M176 128 80 32v192z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M176 128 80 32v192z'/%3E%3C/svg%3E") center / contain no-repeat; transform: scaleX(-1); }
.dqd-crumb { display: inline-flex; align-items: center; padding: .25rem .8rem; border-radius: 1.5rem; font-size: .8rem; color: var(--dqd-content) !important; text-decoration: none !important; transition: background .2s; }
a.dqd-crumb:hover { background: var(--dqd-e200); }
.dqd-crumb.is-active { background: var(--dqd-e100); color: var(--dqd-primary) !important; font-weight: 700; }
html[data-theme="dark"] .dqd-crumb.is-active { background: var(--dqd-e200); }
.dqd-crumb-home { padding: .3rem .5rem; color: var(--dqd-e700) !important; }

/* -------------------------------------------------------------- markdown */
.dqd { color: var(--dqd-content); font-size: 1rem; line-height: 1.95; overflow-wrap: break-word; }
.dqd > *:first-child, .dqd > header > h1 { margin-top: 0; }
.dqd h1, .dqd h2, .dqd h3, .dqd h4 { color: var(--dqd-content); font-weight: 800; line-height: 1.45; margin: 0 0 1rem; letter-spacing: 0; }
.dqd h1 { font-size: 2.6rem; margin-bottom: 1.5rem; }
.dqd h2 { font-size: 1.85rem; margin-top: 2.5rem; }
.dqd h3 { font-size: 1.4rem; margin-top: 2rem; }
.dqd h4 { font-size: 1.1rem; margin-top: 1.5rem; }
.dqd-anchor { scroll-margin-top: calc(var(--dqd-navbar-h) + .75rem); }
.dqd-hash { opacity: 0; margin-inline-start: .4rem; color: var(--dqd-primary) !important; text-decoration: none !important; user-select: none; transition: opacity .15s; }
.dqd-anchor:hover .dqd-hash, .dqd-hash:focus { opacity: 1; }
.dqd p { margin: 0 0 1.25rem; }
.dqd ul, .dqd ol { margin: 0 0 1.25rem; padding-inline-start: 2rem; }
.dqd li + li, .dqd li > ul, .dqd li > ol { margin-top: .25rem; }
.dqd li > ul, .dqd li > ol { margin-bottom: 0; }
.dqd strong { font-weight: 800; }
.dqd hr { border: 0; border-top: 1px solid var(--dqd-e300); margin: 2rem 0; }
.dqd blockquote { margin: 0 0 1.25rem; padding: 0 1rem; border-inline-start: .25rem solid var(--dqd-e300); color: var(--dqd-e700); }
.dqd img { border-radius: var(--dqd-radius); }
.dqd a { color: var(--dqd-primary); }
.dqd a:hover { text-decoration: underline; }
.dqd code { font-family: var(--dqd-mono); font-size: 90%; padding: .1rem .3rem; border-radius: var(--dqd-radius); background: var(--dqd-inline-code-bg); border: .1rem solid var(--dqd-inline-code-border); direction: ltr; unicode-bidi: isolate; }
.dqd a code { color: inherit; }
.dqd-table { overflow-x: auto; margin: 0 0 1.25rem; -webkit-overflow-scrolling: touch; }
.dqd table { border-collapse: collapse; width: auto; min-width: 50%; font-size: .95rem; }
.dqd th, .dqd td { border: 1px solid var(--dqd-e300); padding: .6rem .8rem; text-align: start; vertical-align: top; }
.dqd thead tr { background: var(--dqd-e100); border-bottom: 2px solid var(--dqd-e300); }
.dqd th { font-weight: 800; }
.dqd tbody tr:nth-child(2n) { background: var(--dqd-e100); }
html[data-theme="dark"] .dqd thead tr, html[data-theme="dark"] .dqd tbody tr:nth-child(2n) { background: rgba(255, 255, 255, .03); }
.dqd details { margin: 0 0 1.25rem; padding: .8rem 1rem; border: 1px solid var(--dqd-e300); border-radius: var(--dqd-radius); background: var(--dqd-e100); }
.dqd details summary { cursor: pointer; font-weight: 700; }

/* ----------------------------------------------------------- code blocks */
.dqd-code { position: relative; margin: 0 0 1.25rem; border-radius: var(--dqd-radius); background: var(--dqd-code-bg); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1); direction: ltr; overflow: hidden; }
.dqd-code-title { padding: .6rem 1rem; border-bottom: 1px solid var(--dqd-e300); font-family: var(--dqd-mono); font-size: .8rem; font-weight: 600; color: var(--dqd-code-fg); text-align: left; }
html[data-theme="dark"] .dqd-code-title { border-bottom-color: rgba(255, 255, 255, .1); }
.dqd-code-body { position: relative; }
.dqd-code pre { margin: 0; padding: 1rem; overflow: auto; font-family: var(--dqd-mono); font-size: .85rem; line-height: 1.7; color: var(--dqd-code-fg); background: transparent; text-align: left; tab-size: 4; }
.dqd-code code { all: unset; font-family: inherit; white-space: pre; }
.dqd-code-lang { position: absolute; top: .35rem; right: .75rem; font-family: var(--dqd-mono); font-size: .65rem; font-weight: 700; letter-spacing: .05em; color: var(--dqd-e500); pointer-events: none; transition: opacity .2s; }
.dqd-copy { position: absolute; top: .5rem; right: .5rem; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .45rem; border: 1px solid var(--dqd-e300); border-radius: var(--dqd-radius); background: var(--dqd-code-bg); color: var(--dqd-code-fg); font-family: var(--dqd-font); font-size: .75rem; cursor: pointer; opacity: 0; transition: opacity .2s; }
html[data-theme="dark"] .dqd-copy { border-color: rgba(255, 255, 255, .15); }
.dqd-copy span { display: none; }
.dqd-copy.is-copied span { display: inline; }
.dqd-code:hover .dqd-copy, .dqd-copy:focus-visible, .dqd-copy.is-copied { opacity: 1; }
.dqd-code:hover .dqd-code-lang { opacity: 0; }
@media (hover: none) { .dqd-copy { opacity: .8; } .dqd-code-lang { display: none; } }
/* Prism — GitHub (light) and Dracula (dark), as Docusaurus ships them */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #999988; font-style: italic; }
.token.namespace { opacity: .7; }
.token.string, .token.attr-value { color: #e3116c; }
.token.punctuation, .token.operator { color: #393a34; }
.token.entity, .token.url, .token.symbol, .token.number, .token.boolean, .token.variable, .token.constant, .token.property, .token.regex, .token.inserted { color: #36acaa; }
.token.atrule, .token.keyword, .token.attr-name, .token.selector { color: #00a4db; }
.token.function, .token.deleted, .token.tag { color: #d73a49; }
.token.function-variable { color: #6f42c1; }
.token.tag, .token.selector, .token.keyword { color: #00009f; }
html[data-theme="dark"] .token.comment, html[data-theme="dark"] .token.prolog { color: #6272a4; }
html[data-theme="dark"] .token.string, html[data-theme="dark"] .token.attr-value { color: #f1fa8c; }
html[data-theme="dark"] .token.punctuation, html[data-theme="dark"] .token.operator { color: #f8f8f2; }
html[data-theme="dark"] .token.number, html[data-theme="dark"] .token.boolean, html[data-theme="dark"] .token.constant, html[data-theme="dark"] .token.property, html[data-theme="dark"] .token.variable { color: #bd93f9; }
html[data-theme="dark"] .token.keyword, html[data-theme="dark"] .token.tag, html[data-theme="dark"] .token.selector, html[data-theme="dark"] .token.atrule { color: #ff79c6; }
html[data-theme="dark"] .token.function, html[data-theme="dark"] .token.attr-name, html[data-theme="dark"] .token.function-variable { color: #50fa7b; }
html[data-theme="dark"] .token.class-name { color: #8be9fd; }

/* ------------------------------------------------------------ admonitions */
.dqd-admonition { --a-bg: #fdfdfe; --a-border: #d4d5d8; --a-fg: #474748; margin: 0 0 1.25rem; padding: 1rem; border: 1px solid var(--a-border); border-inline-start-width: .5rem; border-radius: var(--dqd-radius); background: var(--a-bg); color: var(--dqd-content); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1); }
.dqd-admonition--tip { --a-bg: #e6f6e6; --a-border: #009400; --a-fg: #003100; }
.dqd-admonition--info { --a-bg: #eef9fd; --a-border: #4cb3d4; --a-fg: #193c47; }
.dqd-admonition--warning { --a-bg: #fff8e6; --a-border: #e6a700; --a-fg: #4d3800; }
.dqd-admonition--danger { --a-bg: #ffebec; --a-border: #e13238; --a-fg: #4b1113; }
html[data-theme="dark"] .dqd-admonition { --a-bg: #474748; --a-border: #d4d5d8; --a-fg: #fdfdfe; }
html[data-theme="dark"] .dqd-admonition--tip { --a-bg: #003100; --a-border: #009400; --a-fg: #e6f6e6; }
html[data-theme="dark"] .dqd-admonition--info { --a-bg: #193c47; --a-border: #4cb3d4; --a-fg: #eef9fd; }
html[data-theme="dark"] .dqd-admonition--warning { --a-bg: #4d3800; --a-border: #e6a700; --a-fg: #fff8e6; }
html[data-theme="dark"] .dqd-admonition--danger { --a-bg: #4b1113; --a-border: #e13238; --a-fg: #ffebec; }
.dqd-admonition-heading { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; font-size: .85rem; font-weight: 800; color: var(--a-fg); }
.dqd-admonition-icon { display: inline-grid; color: var(--a-border); }
html[data-theme="dark"] .dqd-admonition-icon { color: var(--a-fg); }
.dqd-admonition-content > :last-child { margin-bottom: 0; }
.dqd-admonition-content a { color: var(--a-fg); text-decoration: underline; text-decoration-color: var(--a-border); }
.dqd-admonition-content code { background: rgba(0, 0, 0, .06); }
.dqd-status { margin-bottom: 1rem; }

/* --------------------------------------------------------------- tabs */
.dqd-tabs-container { margin: 0 0 1.25rem; }
.dqd-tabs { display: flex; overflow-x: auto; margin: 0 0 1rem; padding: 0; border-bottom: 1px solid var(--dqd-e200); scrollbar-width: none; }
.dqd-tab { flex: none; padding: .75rem 1rem; border: 0; border-bottom: 3px solid transparent; border-radius: var(--dqd-radius) var(--dqd-radius) 0 0; background: transparent; color: var(--dqd-e700); font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.dqd-tab:hover { background: var(--dqd-hover); }
.dqd-tab.is-active { color: var(--dqd-primary); border-bottom-color: var(--dqd-primary); }
.dqd-tab-panel > :last-child { margin-bottom: 0; }

/* ----------------------------------------------------------- doc footer */
.dqd-doc-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 3rem 0 0; font-size: .85rem; }
.dqd-edit { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.dqd-updated { color: var(--dqd-e600); font-style: italic; }
.dqd-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.dqd-pager { display: block; padding: 1rem; border: 1px solid var(--dqd-e300); border-radius: var(--dqd-radius); color: var(--dqd-content) !important; line-height: 1.6; text-decoration: none !important; transition: border-color .2s; }
.dqd-pager:hover { border-color: var(--dqd-primary); }
.dqd-pager small { display: block; margin-bottom: .25rem; font-size: .85rem; font-weight: 500; color: var(--dqd-e700); }
.dqd-pager b { color: var(--dqd-primary); font-weight: 800; }
.dqd-pager.is-next { grid-column: 2; text-align: left; }

/* ------------------------------------------------------- generated cards */
.dqd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; }
.dqd-card { display: block; padding: 1.5rem; border: 1px solid var(--dqd-e200); border-radius: .8rem; background: var(--dqd-surface); box-shadow: 0 1.5px 3px 0 rgba(0, 0, 0, .15); color: var(--dqd-content) !important; text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
.dqd-card:hover { border-color: var(--dqd-primary); box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .2); }
.dqd .dqd-card-title { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dqd-card-desc { margin: 0; font-size: .85rem; color: var(--dqd-e700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ TOC */
.dqd-toc { position: sticky; top: calc(var(--dqd-navbar-h) + 1rem); max-height: calc(100vh - var(--dqd-navbar-h) - 2rem); overflow-y: auto; padding: .5rem 0; border-inline-start: 1px solid var(--dqd-e300); font-size: .8rem; scrollbar-width: thin; }
body.admin-bar .dqd-toc { top: calc(var(--dqd-navbar-h) + 32px + 1rem); }
.dqd-toc ul { list-style: none; margin: 0; padding: 0 .75rem; }
.dqd-toc li { margin: .5rem 0; line-height: 1.6; }
.dqd-toc li.lvl-3 { padding-inline-start: 1rem; }
.dqd-toc-link { color: var(--dqd-e600) !important; text-decoration: none !important; }
.dqd-toc-link:hover { color: var(--dqd-primary) !important; }
.dqd-toc-link.is-active { color: var(--dqd-primary) !important; font-weight: 700; }
.dqd-toc-mobile { display: none; margin: 0 0 1rem; border-radius: var(--dqd-radius); background: var(--dqd-e100); font-size: .9rem; }
.dqd-toc-mobile summary { padding: .4rem .8rem; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.dqd-toc-mobile summary::-webkit-details-marker { display: none; }
.dqd-toc-mobile summary::after { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.58 12 13.17l4.59-4.59L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.58 12 13.17l4.59-4.59L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s; }
.dqd-toc-mobile[open] summary::after { transform: rotate(180deg); }
.dqd-toc-mobile ul { list-style: none; margin: 0; padding: .3rem .8rem .8rem; border-top: 1px solid var(--dqd-e300); }
.dqd-toc-mobile li { margin: .35rem 0; }
.dqd-toc-mobile li.lvl-3 { padding-inline-start: 1rem; }
.dqd-toc-mobile a { color: var(--dqd-e700) !important; }

/* --------------------------------------------------------------- footer */
.dqd-footer { flex-shrink: 0; padding: 2rem 1rem; background: var(--dqd-footer-bg); color: #ebedf0; }
.dqd-footer-inner { max-width: 1140px; margin: 0 auto; }
.dqd-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dqd-footer b { display: block; margin-bottom: .5rem; color: #fff; font-weight: 800; }
.dqd-footer ul { list-style: none; margin: 0; padding: 0; }
.dqd-footer li { margin: .25rem 0; }
.dqd-footer a { color: #ebedf0 !important; }
.dqd-footer a:hover { color: #fff !important; }
.dqd-copyright { margin: 2rem 0 0; text-align: center; font-size: .9rem; color: #ebedf0; }

/* ----------------------------------------------------------- back to top */
.dqd-backtop { position: fixed; bottom: 1.3rem; left: 1.3rem; z-index: 90; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: var(--dqd-e200); color: var(--dqd-content); box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .3); cursor: pointer; opacity: 0; visibility: hidden; transform: scale(.5); transition: all .2s; }
.dqd-backtop.is-visible { opacity: 1; visibility: visible; transform: scale(1); }
.dqd-backtop:hover { background: var(--dqd-e300); }

/* ----------------------------------------------------------- search modal */
.dqd-search-modal { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: center; padding: 50px 1rem 1rem; background: rgba(101, 108, 133, .8); }
.dqd-search-modal[hidden] { display: none; }
html[data-theme="dark"] .dqd-search-modal { background: rgba(9, 10, 17, .8); }
.dqd-search-box { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 100px); border-radius: 6px; background: var(--dqd-e100); box-shadow: inset 1px 1px 0 0 hsla(0, 0%, 100%, .5), 0 3px 8px 0 #555a64; overflow: hidden; }
html[data-theme="dark"] .dqd-search-box { background: #15172a; box-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309; }
.dqd-search-form { display: flex; align-items: center; gap: .5rem; height: 56px; margin: 12px; padding: 0 12px; border-radius: 4px; background: var(--dqd-surface); box-shadow: inset 0 0 0 2px var(--dqd-primary); color: var(--dqd-primary); }
html[data-theme="dark"] .dqd-search-form { background: #090a11; }
.dqd-search-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0 !important; background: transparent; color: var(--dqd-content); font: inherit; font-size: 1.1rem; }
.dqd-search-input::-webkit-search-cancel-button { display: none; }
.dqd-search-cancel { border: 0; background: transparent; color: var(--dqd-primary); cursor: pointer; font-size: .9rem; }
.dqd-search-results { flex: 1; overflow-y: auto; padding: 0 12px 12px; scrollbar-width: thin; }
.dqd-search-empty { margin: 1.5rem 0; text-align: center; color: var(--dqd-e600); font-size: .9rem; }
.dqd-hit-group { margin: .5rem 0 .3rem; padding: 0 .25rem; font-size: .8rem; font-weight: 700; color: var(--dqd-primary); }
.dqd-hit { display: flex; align-items: center; gap: .75rem; margin-bottom: 4px; padding: .5rem .75rem; min-height: 56px; border-radius: 4px; background: var(--dqd-surface); box-shadow: 0 1px 3px 0 #d4d9e1; color: var(--dqd-content) !important; text-decoration: none !important; }
html[data-theme="dark"] .dqd-hit { background: #090a11; box-shadow: none; }
.dqd-hit.is-selected { background: var(--dqd-primary); color: #fff !important; }
.dqd-hit-icon { flex: none; color: var(--dqd-e500); }
.dqd-hit.is-selected .dqd-hit-icon, .dqd-hit.is-selected small, .dqd-hit.is-selected mark { color: #fff; }
.dqd-hit-text { flex: 1; min-width: 0; }
.dqd-hit-text b { display: block; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dqd-hit-text small { display: block; font-size: .78rem; color: var(--dqd-e600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dqd-hit mark { background: none; color: var(--dqd-primary); font-weight: 800; text-decoration: underline; }
.dqd-search-foot { display: flex; gap: 1rem; justify-content: flex-end; padding: .6rem 12px; background: var(--dqd-surface); box-shadow: 0 -1px 0 0 #e0e3e8, 0 -3px 6px 0 rgba(69, 98, 155, .12); font-size: .75rem; color: var(--dqd-e600); }
html[data-theme="dark"] .dqd-search-foot { background: #1e2136; box-shadow: none; }
.dqd-search-foot span { display: inline-flex; align-items: center; gap: .25rem; }
body.dqd-lock { overflow: hidden; }

/* ------------------------------------------------------------ home/hero */
.dqd-hero { padding: 4rem 2rem; background: var(--dqd-primary); color: #fff; text-align: center; overflow: hidden; }
.dqd-hero-inner { max-width: 1140px; margin: 0 auto; }
.dqd-hero-title { margin: 0 0 1rem; font-size: 3rem; font-weight: 800; line-height: 1.3; }
.dqd-hero-sub { margin: 0 0 1.5rem; font-size: 1.4rem; opacity: .95; }
.dqd-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.dqd-button { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 2rem; border: 2px solid transparent; border-radius: var(--dqd-radius); font-size: 1.15rem; font-weight: 800; line-height: 1.8; cursor: pointer; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s; }
.dqd-button--light { background: #ebedf0; color: #1c1e21 !important; }
.dqd-button--light:hover { background: #dadde1; }
.dqd-button--outline { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.dqd-button--outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.dqd-home { flex: 1 0 auto; }
.dqd-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 1140px; margin: 0 auto; padding: 3rem 1rem; }
.dqd-feature { text-align: center; padding: 0 .5rem; }
.dqd-feature-ico { font-size: 4.5rem; line-height: 1.3; margin-bottom: .5rem; }
.dqd-feature h2 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 800; }
.dqd-feature h2 a { color: var(--dqd-content) !important; }
.dqd-feature p { margin: 0 0 .8rem; color: var(--dqd-content-2); }
.dqd-feature ul { list-style: none; margin: 0 0 .8rem; padding: 0; font-size: .92rem; }
.dqd-feature li { margin: .2rem 0; }
.dqd-feature-more { font-weight: 700; font-size: .9rem; }
.dqd-empty { grid-column: 1 / -1; text-align: center; color: var(--dqd-e600); }

/* -------------------------------------------------------------- drawer */
.dqd-drawer, .dqd-drawer-backdrop { display: none; }
@media (max-width: 996px) {
	.dqd-navbar-toggle { display: inline-flex; }
	.dqd-navbar-items, .dqd-navbar-end .dqd-navbar-link, .dqd-navbar-end > .dqd-theme-toggle { display: none; }
	.dqd-search-placeholder, .dqd-keys { display: none; }
	.dqd-search-btn { width: 36px; padding: 0; justify-content: center; }
	.dqd-sidebar, .dqd-toc-col { display: none; }
	.dqd-doc-row.has-toc .dqd-doc-col { max-width: 100%; }
	.dqd-toc-mobile { display: block; }
	.dqd-main { padding: 1rem; }
	.dqd h1 { font-size: 2rem; }
	.dqd h2 { font-size: 1.55rem; }
	.dqd h3 { font-size: 1.25rem; }
	.dqd-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 199; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
	.dqd-drawer { display: flex; flex-direction: column; overflow: hidden; position: fixed; top: 0; bottom: 0; right: 0; z-index: 200; width: 83vw; max-width: 300px; background: var(--dqd-surface); box-shadow: var(--dqd-shadow); transform: translateX(100%); visibility: hidden; transition: transform .25s ease-in-out, visibility .25s; }
	.dqd-drawer[hidden], .dqd-drawer-backdrop[hidden] { display: block; }
	body.dqd-drawer-open .dqd-drawer { transform: none; visibility: visible; }
	body.dqd-drawer-open .dqd-drawer-backdrop { opacity: 1; visibility: visible; }
	.dqd-drawer-head { display: flex; align-items: center; gap: .25rem; height: var(--dqd-navbar-h); padding: .5rem 1rem; box-shadow: var(--dqd-shadow); }
	.dqd-drawer-head .dqd-brand { flex: 1; margin: 0; }
	.dqd-drawer-head .dqd-theme-toggle { display: grid; }
	.dqd-drawer-close { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--dqd-content); cursor: pointer; }
	.dqd-drawer-panels { flex: 1; display: flex; width: 200%; overflow: hidden; transition: transform .25s ease-in-out; }
	.dqd-drawer-panels.show-doc { transform: translateX(50%); }
	.dqd-drawer-panel { width: 50%; overflow-y: auto; padding: .5rem; }
	.dqd-drawer-back { display: flex; align-items: center; gap: .4rem; width: 100%; margin: 0 0 .5rem; padding: .375rem .75rem; border: 0; border-radius: .25rem; background: var(--dqd-e200); color: var(--dqd-content); font-weight: 700; cursor: pointer; }
	.dqd-features { grid-template-columns: minmax(0, 1fr); }
	.dqd-hero { padding: 2.5rem 1rem; }
	.dqd-hero-title { font-size: 2.2rem; }
	.dqd-hero-sub { font-size: 1.1rem; }
	.dqd-cards { grid-template-columns: minmax(0, 1fr); }
	.dqd-footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.dqd-brand b { font-size: .95rem; }
	.dqd-pagination { grid-template-columns: minmax(0, 1fr); }
	.dqd-pager.is-next { grid-column: auto; }
	.dqd-search-modal { padding: 0; }
	.dqd-search-box { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dqd-body * { transition: none !important; } }
@media print { .dqd-navbar, .dqd-sidebar, .dqd-toc-col, .dqd-footer, .dqd-backtop, .dqd-pagination, .dqd-breadcrumbs { display: none !important; } .dqd-doc-row.has-toc .dqd-doc-col { max-width: 100%; } }
