/* Moknah Docs v2: shell + content components. Theme follows the site (html.dark / html.light via theme.js). */
:root, html.light {
  --dx-bg: #ffffff; --dx-side: #fafafa; --dx-card: #ffffff; --dx-subtle: #f4f4f6; --dx-hover: #f0f0f3;
  --dx-border: #e7e7ec; --dx-border-strong: #d6d6de;
  --dx-text: #0b0b12; --dx-body: #33333d; --dx-muted: #6b6b78; --dx-faint: #9a9aa6;
  --dx-accent: #4f46e5; --dx-accent-bg: rgba(79, 70, 229, .08); --dx-accent-line: rgba(79, 70, 229, .25);
  --dx-code-bg: #0f1117; --dx-code-head: #161922; --dx-code-text: #e6e6ef; --dx-code-border: #232634;
  --dx-inline-code: #f1f1f5;
  --dx-ok: #16a34a; --dx-ok-bg: rgba(22, 163, 74, .08); --dx-warn: #d97706; --dx-warn-bg: rgba(217, 119, 6, .08);
  --dx-err: #dc2626; --dx-err-bg: rgba(220, 38, 38, .07); --dx-info: #2563eb; --dx-info-bg: rgba(37, 99, 235, .07);
  --dx-shadow: 0 24px 48px -16px rgba(15, 23, 42, .25);
  /* aliases used by inline styles inside some pages */
  --bg-primary: var(--dx-bg); --bg-secondary: var(--dx-subtle); --border-color: var(--dx-border); --text-primary: var(--dx-text); --text-secondary: var(--dx-body); --text-muted: var(--dx-muted); --accent: var(--dx-accent);
}
html.dark {
  --dx-bg: #0b0b0f; --dx-side: #0e0e13; --dx-card: #121218; --dx-subtle: #15151c; --dx-hover: #1b1b23;
  --dx-border: #23232c; --dx-border-strong: #31313c;
  --dx-text: #f4f4f7; --dx-body: #c9c9d3; --dx-muted: #8e8e9b; --dx-faint: #6a6a77;
  --dx-accent: #8b85ff; --dx-accent-bg: rgba(139, 133, 255, .1); --dx-accent-line: rgba(139, 133, 255, .3);
  --dx-code-bg: #0e0f14; --dx-code-head: #14161d; --dx-code-border: #23252f; --dx-inline-code: #1d1d26;
  --dx-ok: #4ade80; --dx-ok-bg: rgba(74, 222, 128, .08); --dx-warn: #fbbf24; --dx-warn-bg: rgba(251, 191, 36, .08);
  --dx-err: #f87171; --dx-err-bg: rgba(248, 113, 113, .08); --dx-info: #60a5fa; --dx-info-bg: rgba(96, 165, 250, .08);
  --dx-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7);
}
html.theme-transition, html.theme-transition * { transition: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body.dx { margin: 0; background: var(--dx-bg); color: var(--dx-body); font: 400 15px/1.7 Inter, "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
html:is([lang="ar"],[lang="ur"]) body.dx { font-family: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif; }
a { color: var(--dx-accent); }
[hidden] { display: none !important; }

/* ── top bar ── */
.dx-top { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: color-mix(in srgb, var(--dx-bg) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--dx-border); }
.dx-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--dx-text); text-decoration: none; }
.dx-brand img { display: block; }
.dx-brand b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.dx-brand-sep { width: 1px; height: 18px; background: var(--dx-border-strong); }
.dx-brand-docs { font-size: 15px; font-weight: 500; color: var(--dx-muted); }
.dx-tabs { display: flex; flex: none; gap: 2px; margin-inline-start: 18px; }
.dx-tabs a { position: relative; height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--dx-muted); text-decoration: none; transition: color .15s, background-color .15s; }
.dx-tabs a:hover { color: var(--dx-text); background: var(--dx-hover); }
.dx-tabs a.is-on { color: var(--dx-text); }
.dx-tabs a.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px; border-radius: 2px; background: var(--dx-accent); }
.dx-spacer { flex: 1; }
.dx-search { position: relative; display: flex; align-items: center; width: 260px; flex: 0 1 260px; min-width: 150px; }
.dx-search svg { position: absolute; inset-inline-start: 11px; width: 15px; height: 15px; color: var(--dx-faint); pointer-events: none; }
.dx-search input { width: 100%; height: 36px; padding: 0 34px; border-radius: 9px; border: 1px solid var(--dx-border); background: var(--dx-subtle); color: var(--dx-text); font: inherit; font-size: 13.5px; outline: none; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.dx-search input::placeholder { color: var(--dx-faint); }
.dx-search input:focus { background: var(--dx-bg); border-color: var(--dx-accent); box-shadow: 0 0 0 3px var(--dx-accent-bg); }
.dx-search input::-webkit-search-cancel-button { display: none; }
.dx-search kbd { position: absolute; inset-inline-end: 8px; font: 500 11px/1 Inter, sans-serif; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--dx-border-strong); color: var(--dx-faint); background: var(--dx-bg); }
.dx-icon-btn { height: 36px; min-width: 36px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; background: transparent; color: var(--dx-muted); font: 600 12.5px/1 Inter, sans-serif; cursor: pointer; transition: color .15s, background-color .15s; }
.dx-icon-btn:hover, .dx-lang.open > .dx-icon-btn { color: var(--dx-text); background: var(--dx-hover); }
.dx-icon-btn svg { width: 17px; height: 17px; }
.dx-sun { display: none; } html.dark .dx-sun { display: block; } html.dark .dx-moon { display: none; }
.dx-menu-btn { display: none; }
.dx-cta { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; background: var(--dx-text); color: var(--dx-bg); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.dx-cta:hover { opacity: .88; }
.lang-dd { position: relative; }
.lang-dd-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 180px; margin: 0; padding: 6px; border-radius: 12px; border: 1px solid var(--dx-border); background: var(--dx-card); box-shadow: var(--dx-shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.lang-dd.open .lang-dd-menu { opacity: 1; visibility: visible; transform: none; }
.lang-dd-menu button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--dx-text); font: 500 14px/1.3 inherit; font-family: inherit; text-align: start; cursor: pointer; }
.lang-dd-menu button:hover { background: var(--dx-hover); }
.lang-dd-menu button.active { color: var(--dx-accent); font-weight: 600; }
.lang-dd-menu .lang-check { visibility: hidden; } .lang-dd-menu button.active .lang-check { visibility: visible; }

/* ── layout ── */
.dx-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr) 232px; max-width: 1480px; margin: 0 auto; }
body.dx-no-toc .dx-layout { grid-template-columns: 272px minmax(0, 1fr); }
.dx-side { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 20px 14px 40px; border-inline-end: 1px solid var(--dx-border); scrollbar-width: thin; }
.dx-main { min-width: 0; padding: 40px 56px 64px; }
.content { max-width: 780px; margin: 0 auto; }
.dx-toc { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 40px 20px 40px 8px; }
[dir="rtl"] .dx-toc { padding: 40px 8px 40px 20px; }
.dx-scrim { display: none; }

/* sidebar items (markup comes from base_user_guide / base_api_reference) */
.sidebar-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item-direct, .nav-section-header { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--dx-body); text-decoration: none; cursor: pointer; user-select: none; transition: background-color .12s, color .12s; }
.nav-item-direct:hover, .nav-section-header:hover { background: var(--dx-hover); color: var(--dx-text); }
.nav-item-direct.active { background: var(--dx-accent-bg); color: var(--dx-accent); font-weight: 600; }
.nav-item-direct.active .nav-section-icon { color: var(--dx-accent); }
.nav-section-icon { width: 16px; height: 16px; flex: none; color: var(--dx-faint); }
.nav-section-header .nav-section-arrow { width: 14px; height: 14px; margin-inline-start: auto; color: var(--dx-faint); transition: transform .18s; flex: none; }
[dir="rtl"] .nav-section-header .nav-section-arrow { transform: scaleX(-1); }
.nav-section.open > .nav-section-header .nav-section-arrow { transform: rotate(90deg); }
.nav-section-header:focus-visible, .nav-item-direct:focus-visible, .nav-item:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: -2px; }
.nav-section-items { display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px; padding-inline-start: 18px; border-inline-start: 1px solid var(--dx-border); margin-inline-start: 17px; }
.nav-section.open > .nav-section-items { display: flex; }
.nav-item { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 10px; border-radius: 7px; font-size: 13.5px; color: var(--dx-muted); text-decoration: none; transition: background-color .12s, color .12s; }
.nav-item:hover { background: var(--dx-hover); color: var(--dx-text); }
.nav-item.active { color: var(--dx-accent); background: var(--dx-accent-bg); font-weight: 600; }
.nav-divider { height: 1px; margin: 10px 8px; background: var(--dx-border); }
.nav-section-soon .nav-section-header, .nav-section-header.disabled { cursor: default; color: var(--dx-faint); }
.nav-section-soon .nav-section-header:hover, .nav-section-header.disabled:hover { background: transparent; color: var(--dx-faint); }
.dx-noresult { margin: 12px 10px; font-size: 13px; color: var(--dx-muted); }

/* badges */
.badge, .badge-new, .badge-soon { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font: 700 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .02em; flex: none; }
.badge { min-width: 38px; justify-content: center; }
.badge-green { background: var(--dx-ok-bg); color: var(--dx-ok); }
.badge-orange { background: var(--dx-warn-bg); color: var(--dx-warn); }
.badge-red { background: var(--dx-err-bg); color: var(--dx-err); }
.badge-new { background: var(--dx-accent); color: #fff; font-family: Inter, sans-serif; text-transform: uppercase; }
.badge-soon { margin-inline-start: auto; background: var(--dx-subtle); color: var(--dx-faint); border: 1px solid var(--dx-border); font-family: Inter, sans-serif; }

/* ── article ── */
.dx-crumb { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--dx-accent); }
.content h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: var(--dx-text); }
html:is([lang="ar"],[lang="ur"]) .content h1, html:is([lang="ar"],[lang="ur"]) .content h2 { letter-spacing: 0; line-height: 1.35; }
.content .subtitle, .content .page-description { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--dx-muted); }
.content h2 { margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--dx-border); font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--dx-text); }
.content h3 { margin: 32px 0 10px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--dx-text); }
.content h4 { margin: 24px 0 8px; font-size: 15.5px; font-weight: 600; color: var(--dx-text); }
.content p { margin: 0 0 16px; }
.content ul, .content ol { margin: 0 0 18px; padding-inline-start: 22px; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--dx-faint); }
.content strong { color: var(--dx-text); font-weight: 600; }
.content a { color: var(--dx-accent); text-decoration: underline; text-decoration-color: var(--dx-accent-line); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: currentColor; }
.content hr { margin: 40px 0; border: 0; border-top: 1px solid var(--dx-border); }
.content :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--dx-inline-code); border: 1px solid var(--dx-border); color: var(--dx-text); font: 500 .86em/1.4 "JetBrains Mono", ui-monospace, monospace; word-break: break-word; }
.content .text-muted { color: var(--dx-muted); }
.content .small { font-size: 13px; }

/* endpoint */
.endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 24px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--dx-border); background: var(--dx-subtle); direction: ltr; }
.method { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .03em; }
.method-post { background: var(--dx-ok-bg); color: var(--dx-ok); }
.method-put { background: var(--dx-warn-bg); color: var(--dx-warn); }
.method-delete { background: var(--dx-err-bg); color: var(--dx-err); }
.method-ws { background: var(--dx-accent-bg); color: var(--dx-accent); }
.endpoint-url { font: 500 14px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--dx-text); word-break: break-all; }

/* tables */
.dx-table { margin: 8px 0 24px; border: 1px solid var(--dx-border); border-radius: 12px; overflow-x: auto; }
.content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.content th { padding: 10px 14px; text-align: start; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--dx-muted); background: var(--dx-subtle); border-bottom: 1px solid var(--dx-border); white-space: nowrap; }
.content td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--dx-border); }
.content tr:last-child td { border-bottom: 0; }
.param-name { font: 600 13px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--dx-text); }
.param-type { font: 500 12.5px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--dx-muted); }
.required, .optional { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.required { background: var(--dx-err-bg); color: var(--dx-err); }
.optional { background: var(--dx-subtle); color: var(--dx-muted); border: 1px solid var(--dx-border); }

/* callouts */
.callout { position: relative; margin: 20px 0; padding: 14px 16px 14px 18px; border-radius: 12px; border: 1px solid var(--dx-border); background: var(--dx-subtle); }
.callout::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--dx-faint); }
.callout-info { background: var(--dx-info-bg); border-color: color-mix(in srgb, var(--dx-info) 22%, transparent); } .callout-info::before { background: var(--dx-info); }
.callout-warning { background: var(--dx-warn-bg); border-color: color-mix(in srgb, var(--dx-warn) 25%, transparent); } .callout-warning::before { background: var(--dx-warn); }
.callout-success { background: var(--dx-ok-bg); border-color: color-mix(in srgb, var(--dx-ok) 22%, transparent); } .callout-success::before { background: var(--dx-ok); }
.callout-error { background: var(--dx-err-bg); border-color: color-mix(in srgb, var(--dx-err) 22%, transparent); } .callout-error::before { background: var(--dx-err); }
.callout-title { margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--dx-text); }
.callout-text, .callout-content p { margin: 0; font-size: 14px; line-height: 1.65; }
.callout-content > :last-child { margin-bottom: 0; }

/* code */
.code-block, .pre-wrapper { position: relative; margin: 14px 0 24px; border-radius: 12px; border: 1px solid var(--dx-code-border); background: var(--dx-code-bg); overflow: hidden; direction: ltr; text-align: left; }
.code-header { display: flex; align-items: center; gap: 2px; min-height: 42px; padding: 0 8px; padding-inline-end: 96px; background: var(--dx-code-head); border-bottom: 1px solid var(--dx-code-border); overflow-x: auto; }
.code-tab { height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #8b8fa3; font: 500 12.5px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap; transition: color .12s, background-color .12s; }
.code-tab:hover { color: #e6e6ef; }
.code-tab.active { color: #fff; background: rgba(255, 255, 255, .08); }
.code-body { display: none; } .code-body.active { display: block; }
.content pre { margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--dx-code-bg); color: var(--dx-code-text); font: 400 13px/1.7 "JetBrains Mono", ui-monospace, monospace; tab-size: 2; }
.pre-wrapper pre { padding-top: 16px; padding-right: 96px; }
.content pre code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.code-copy-btn { position: absolute; top: 7px; right: 8px; height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #b6b9c8; font: 500 12px/1 Inter, sans-serif; cursor: pointer; transition: color .12s, background-color .12s; }
.code-copy-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.code-copy-btn svg { width: 13px; height: 13px; }
.code-copy-btn.copied { color: #4ade80; border-color: rgba(74, 222, 128, .35); }
.token-keyword { color: #c792ea; } .token-string { color: #a5d6a7; } .token-comment, .code-comment { color: #6b7086; font-style: italic; }
.token-function { color: #82aaff; } .token-number { color: #f78c6c; } .token-property { color: #7fdbca; } .token-class-name { color: #ffcb6b; } .token-interpolation { color: #f07178; }

/* images */
.img-figure { margin: 24px 0; }
.doc-image { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--dx-border); cursor: zoom-in; }
.img-caption { margin-top: 8px; font-size: 13px; color: var(--dx-muted); text-align: center; }
.image-lightbox-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(5, 5, 10, .86); }
.image-lightbox-overlay.open { display: flex; }
.image-lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.image-lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }

/* pagination + footer */
.pagination-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pagination-item { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--dx-border); text-decoration: none !important; transition: border-color .15s, background-color .15s; }
.pagination-item:hover { border-color: var(--dx-accent-line); background: var(--dx-accent-bg); }
.pagination-next { grid-column: 2; text-align: end; }
.pagination-label { font-size: 12px; color: var(--dx-muted); }
.pagination-title { font-size: 15px; font-weight: 600; color: var(--dx-text); }
.pagination-desc { font-size: 13px; color: var(--dx-muted); line-height: 1.5; }
.pagination-item:not(.pagination-next) .pagination-label::before { content: "← "; }
.pagination-next .pagination-label::after { content: " →"; }
[dir="rtl"] .pagination-item:not(.pagination-next) .pagination-label::before { content: "→ "; }
[dir="rtl"] .pagination-next .pagination-label::after { content: " ←"; }
.dx-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--dx-border); font-size: 13px; color: var(--dx-muted); }
.dx-foot a { color: var(--dx-muted); text-decoration: none; }
.dx-foot a:hover { color: var(--dx-accent); }

/* toc */
.toc-title { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dx-text); }
.toc-list { margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--dx-border); }
.toc-link { display: block; margin-inline-start: -1px; padding: 4px 12px; border-inline-start: 2px solid transparent; font-size: 13px; line-height: 1.45; color: var(--dx-muted); text-decoration: none; transition: color .12s, border-color .12s; }
.toc-link[data-level="3"] { padding-inline-start: 24px; font-size: 12.5px; }
.toc-link:hover { color: var(--dx-text); }
.toc-link.active { color: var(--dx-accent); border-inline-start-color: var(--dx-accent); }

/* responsive */
@media (max-width: 1279.98px) {
  .dx-layout, body.dx-no-toc .dx-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .dx-toc { display: none; }
  .dx-main { padding: 36px 40px 56px; }
}
@media (max-width: 960px) {
  .dx-layout, body.dx-no-toc .dx-layout { grid-template-columns: minmax(0, 1fr); }
  .dx-menu-btn { display: inline-flex; }
  .dx-side { position: fixed; top: 64px; inset-inline-start: 0; z-index: 35; width: 290px; max-width: 85vw; height: calc(100vh - 64px); background: var(--dx-side); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--dx-shadow); }
  [dir="rtl"] .dx-side { transform: translateX(102%); }
  .dx-side { box-shadow: none; visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  body.dx-drawer .dx-side { transform: none; visibility: visible; box-shadow: var(--dx-shadow); transition: transform .22s ease; }
  .dx-scrim { display: block; position: fixed; inset: 64px 0 0; z-index: 30; background: rgba(5, 5, 10, .4); }
  .dx-search:not(.dx-search--side) { display: none; }
}
@media (max-width: 1100px) {
  .dx-brand-sep, .dx-brand-docs, .dx-search kbd { display: none; }
  .dx-tabs { margin-inline-start: 8px; }
}
@media (max-width: 720px) {
  .dx-top { gap: 6px; padding: 0 10px; }
  .dx-brand-sep, .dx-brand-docs, .dx-search, .dx-cta, .dx-brand b { display: none; }
  .dx-tabs a { padding: 0 9px; font-size: 13.5px; }
  .dx-tabs a.is-on::after { left: 9px; right: 9px; }
  .dx-main { padding: 28px 16px 48px; }
  .content h1 { font-size: 28px; }
  .content h2 { font-size: 21px; }
  .pagination-nav { grid-template-columns: 1fr; }
  .pagination-next { grid-column: auto; }
}

/* tablet + mobile: tabs + search live inside the drawer */
.dx-side-mobile { display: none; }
@media (max-width: 960px) {
  .dx-tabs { display: none; }
  .dx-side-mobile { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--dx-border); }
  .dx-side-tabs { display: flex; flex-direction: column; gap: 4px; }
  .dx-side-tabs a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--dx-muted); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
  .dx-side-tabs a:hover { color: var(--dx-text); background: var(--dx-hover); }
  .dx-side-tabs svg { width: 18px; height: 18px; flex: none; }
  .dx-side-tabs a.is-on { color: var(--dx-accent); background: var(--dx-accent-bg); border-color: color-mix(in srgb, var(--dx-accent) 22%, transparent); }
  .dx-search.dx-search--side { display: flex; flex: none; width: 100%; min-width: 0; }
  .dx-brand b { display: inline; }
}
