/**
 * Docs page (/docs/). Loaded after home.css on that page only, and uses its
 * colour tokens, buttons, section heads and closing band.
 */

/* ── Hero and search ──────────────────────────────── */
.docs-hero { position: relative; isolation: isolate; text-align: center; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.docs-hero::before {
	content: ""; position: absolute; inset: -30% 0 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(40% 50% at 50% 20%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
		radial-gradient(30% 40% at 85% 60%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
		radial-gradient(30% 40% at 12% 70%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
.docs-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.docs-hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.docs-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 16px; }
.docs-hero .lead { margin-inline: auto; }

.docs-search { position: relative; max-width: 720px; margin: 16px auto 0; text-align: left; z-index: 5; }
.docs-field { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.docs-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.docs-field > .ico { width: 21px; height: 21px; color: var(--muted); flex: none; }
.docs-field input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; color: var(--ink); font: 400 17px var(--f); }
.docs-field input:focus { outline: none; }
.docs-field input::-webkit-search-cancel-button { cursor: pointer; }
.docs-field .btn { flex: none; height: 44px; }

.docs-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(60vh, 460px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.docs-results .oxilabdocs-search-item { border-top: 1px solid var(--line); }
.docs-results .oxilabdocs-search-item:first-child { border-top: 0; }
.docs-results .oxilabdocs-search-item a { display: block; padding: 14px 18px; }
.docs-results .oxilabdocs-search-item a:hover, .docs-results .oxilabdocs-search-item a:focus-visible { background: var(--surface-2); outline: none; }
.docs-results .oxilabdocs-search-item-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.docs-results .oxilabdocs-search-item-category { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.docs-results .oxilabdocs-search-item-category img { background: #fff; }
.docs-results .oxilabdocs-search-item-category svg { width: 16px; height: 16px; }
.docs-results mark { background: color-mix(in srgb, var(--brand) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.docs-results .state { padding: 18px; color: var(--muted); font-size: 14.5px; text-align: center; }
.docs-results .state a { color: var(--brand-ink); font-weight: 600; }
.docs-results .all { display: block; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--brand-ink); background: var(--surface-2); }

/* plugin picker inside the search field */
.docs-scope { position: relative; flex: none; display: flex; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); }
.scope-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: 500 15px/1 var(--f); cursor: pointer; max-width: 220px; }
.scope-btn:hover, .scope-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.scope-btn .scope-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.scope-btn .chev { width: 14px; height: 14px; flex: none; transition: transform .2s; }
.scope-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.scope-icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; color: var(--muted); }
.scope-icon .ico { width: 19px; height: 19px; }
.scope-icon img { width: 24px; height: 24px; border-radius: 50%; background: #fff; object-fit: contain; }
.scope-list { position: absolute; z-index: 7; top: calc(100% + 16px); right: 0; min-width: 260px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.scope-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.scope-list li span:not(.scope-icon) { flex: 1; }
.scope-list li .tick { width: 17px; height: 17px; color: var(--brand-ink); visibility: hidden; }
.scope-list li[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.scope-list li[aria-selected="true"] .tick { visibility: visible; }
.scope-list li:hover, .scope-list li:focus-visible { background: var(--surface-2); outline: none; }

.docs-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; }
.docs-facts li { display: flex; align-items: baseline; gap: 6px; }
.docs-facts b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.docs-facts span { color: var(--muted); font-size: 14px; }

/* ── Popular topics ───────────────────────────────── */
.topics-band { border-block: 1px solid var(--line); background: var(--surface); padding-block: 18px; }
.topics { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; }
.topics-label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.topic { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.topic img { width: 20px; height: 20px; border-radius: 5px; background: #fff; }
.topic small { font-size: 12px; color: var(--muted); }
.topic:hover { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--ink); }

/* ── Start here ───────────────────────────────────── */
.starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.start { display: grid; gap: 12px; align-content: space-between; min-height: 170px; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.start:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c, var(--brand)) 40%, var(--line)); }
.start-top { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--c, var(--brand-ink)); }
.start b { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.start-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.start-go .ico { width: 15px; height: 15px; transition: transform .2s; }
.start:hover .start-go .ico { transform: translateX(3px); }

/* ── Plugins and sections ─────────────────────────── */
.dcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
/* an odd last card sits centred instead of alone on the left */
.dcards > .dcard:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); }
.dcard { display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: 26px; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--c, var(--brand)) 10%, var(--surface)), var(--surface) 70%); transition: box-shadow .25s, border-color .25s; }
.dcard:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c, var(--brand)) 30%, var(--line)); }
.dcard-head { display: flex; align-items: center; gap: 16px; }
.dcard-icon { width: 54px; height: 54px; flex: none; border-radius: 50%; background: #fff; padding: 7px; object-fit: contain; box-shadow: inset 0 0 0 1px var(--line); }
.dcard-head h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.dcard-head h3 a:hover { color: var(--c, var(--brand-ink)); }
.dcard-head p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.dsections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.dsections a { height: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: var(--surface-2); font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; min-width: 0; }
.dsections a .ico { width: 17px; height: 17px; flex: none; color: var(--c, var(--brand-ink)); }
.dsections a span { flex: 1; min-width: 0; line-height: 1.35; }
.dsections a b { flex: none; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.dsections a:hover { background: color-mix(in srgb, var(--c, var(--brand)) 12%, var(--surface-2)); color: var(--ink); }
.dcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dcard-start { background: var(--c, var(--brand)); color: #fff; border-radius: 999px; padding: 11px 20px; box-shadow: 0 8px 20px -12px var(--c, var(--brand)); }
.dcard-start:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c, var(--brand)) 88%, #000); }
.dcard-start .ico { width: 15px; height: 15px; }
.dcard-all { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--c, var(--brand-ink)); }
.dcard-all .ico { width: 16px; height: 16px; transition: transform .2s; }
.dcard-all:hover .ico { transform: translateX(3px); }

/* ── Plugin and section pages ─────────────────────── */
.dcat-hero { position: relative; isolation: isolate; padding-block: 28px 56px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--c, var(--brand)) 12%, var(--bg)), var(--bg) 70%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.crumbs a { color: var(--ink-2); font-weight: 500; }
.crumbs a:hover { color: var(--c, var(--brand-ink)); }
.crumbs .ico { width: 13px; height: 13px; transform: rotate(-90deg); opacity: .6; }
.crumbs [aria-current] { color: var(--muted); }
.dcat-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.dcat-grid > * { min-width: 0; }
.dcat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.dcat-head .dcard-icon { width: 68px; height: 68px; padding: 9px; }
.dcat-kicker { font-size: 14px; font-weight: 600; color: var(--c, var(--brand-ink)); margin-bottom: 2px; }
.dcat-head h1 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.dcat-facts { justify-content: flex-start; margin-top: 20px; }
.dcat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dcat-actions .btn { padding: 12px 20px; }
.dcat-search { margin: 0; max-width: none; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dcat-search-label { font-size: 14.5px; font-weight: 600; margin-bottom: 10px; }
/* a slimmer field than the landing page's, with a focus ring in the plugin's colour */
.dcat-search .docs-field { gap: 8px; padding: 4px 4px 4px 14px; border-radius: 12px; background: var(--surface); box-shadow: none; }
.dcat-search .docs-field:focus-within { border-color: var(--c, var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); }
.dcat-search .docs-field > .ico { width: 17px; height: 17px; }
.dcat-search .docs-field input { height: 38px; font-size: 15px; }
.dcat-search .docs-field .btn { height: 36px; padding: 0 16px; border-radius: 9px; font-size: 14px; box-shadow: none; }

.dcat-body { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; padding-block: 48px 24px; }
.dcat-body > * { min-width: 0; }
.dcat-side { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 22px; }
.dcat-side > * { min-width: 0; }
.side-block h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px 12px; letter-spacing: 0; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); border-left: 3px solid transparent; transition: background .2s, color .2s; }
.side-nav a b { flex: none; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.is-active, .side-nav a[aria-current="page"] { background: color-mix(in srgb, var(--c, var(--brand)) 11%, var(--surface)); color: var(--ink); font-weight: 600; border-left-color: var(--c, var(--brand)); }
.side-all { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 12px; font-size: 14px; font-weight: 600; color: var(--c, var(--brand-ink)); }
.side-all .ico { width: 15px; height: 15px; }
.side-others ul { display: grid; gap: 2px; }
.side-others a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.side-others a:hover { background: var(--surface-2); color: var(--ink); }
.side-others img { width: 24px; height: 24px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 0 0 1px var(--line); }

.dcat-main { display: grid; gap: 22px; }
.sec { scroll-margin-top: 100px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.sec-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--brand)) 7%, var(--surface)), var(--surface) 60%); }
.sec-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--c, var(--brand-ink)); background: color-mix(in srgb, var(--c, var(--brand)) 14%, transparent); }
.sec-icon .ico { width: 18px; height: 18px; }
.sec-head h2 { flex: 1; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.sec-head h2 a:hover { color: var(--c, var(--brand-ink)); }
.sec-count { flex: none; font-size: 13px; color: var(--muted); }
.guide-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.guide-list a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; font-size: 15.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.guide-list a:hover { background: var(--surface-2); color: var(--ink); }
.guide-list .doc { width: 19px; height: 19px; color: var(--muted); }
.guide-list a:hover .doc { color: var(--c, var(--brand-ink)); }
.guide-list small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.guide-list .go { width: 16px; height: 16px; color: var(--c, var(--brand-ink)); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.guide-list a:hover .go, .guide-list a:focus-visible .go { opacity: 1; transform: none; }
.sec-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(13, 27, 42, .04); transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.pager:hover, .pager:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, var(--brand)) 45%, var(--line)); background: color-mix(in srgb, var(--c, var(--brand)) 4%, var(--surface)); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--c, var(--brand)) 70%, transparent); }
.pager-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pager small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.pager b { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.pager-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--c, var(--brand-ink)); background: color-mix(in srgb, var(--c, var(--brand)) 11%, var(--surface)); transition: background .2s, color .2s; }
.pager-ico .ico { width: 19px; height: 19px; transition: transform .2s; }
.pager.prev .pager-ico .ico { transform: rotate(180deg); }
.pager:hover .pager-ico { background: var(--c, var(--brand)); color: #fff; }
.pager.next:hover .pager-ico .ico { transform: translateX(3px); }
.pager.prev:hover .pager-ico .ico { transform: rotate(180deg) translateX(3px); }
.pager.next { grid-column: 2; text-align: right; }

/* ── Single guide ─────────────────────────────────── */
/* the guide page runs wider than the rest of the site, for three columns */
.doc-page .wrap, .single-docs .site-header .wrap { max-width: 1440px; }
.doc-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 248px; gap: 44px; align-items: start; padding-block: 36px 72px; }
.doc-page:not(.has-rail) .doc-grid { grid-template-columns: 300px minmax(0, 1fr); }
.doc-side, .doc-rail { position: sticky; top: calc(92px + env(safe-area-inset-top, 0px)); }
/* the panel keeps its whole border; only the list inside it scrolls */
.doc-side-body { display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.doc-tree { display: grid; gap: 2px; align-content: start; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0 -6px; padding: 0 6px; }
.doc-rail { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.doc-side-toggle { display: none; }
/* both sidebars sit in soft panels, like an app sidebar */
.doc-side-body, .doc-rail { padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(13, 27, 42, .04), 0 12px 32px -20px rgba(13, 27, 42, .25); }
.doc-side-plugin { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); }
.doc-side-plugin img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.doc-side-plugin b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.doc-side-plugin small { font-size: 13px; color: var(--muted); }
.doc-side-plugin:hover b { color: var(--c, var(--brand-ink)); }
.doc-side-search { margin: 0 0 12px; max-width: none; }
.doc-side-search .docs-field { padding: 2px 4px 2px 12px; gap: 8px; border-radius: 12px; background: var(--tint); box-shadow: none; }
.doc-side-search .docs-field:focus-within { background: var(--surface); border-color: var(--c, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 15%, transparent); }
.doc-side-search .docs-field > .ico { width: 16px; height: 16px; }
.doc-side-search .docs-field input { height: 36px; font-size: 14.5px; }
.doc-side-search .docs-results { width: min(440px, 88vw); }
.tree-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 600 14px/1.35 var(--f); text-align: left; cursor: pointer; transition: background .2s; }
.tree-head:hover, .tree-head[aria-expanded="true"] { background: var(--surface-2); }
.tree-head span { flex: 1; min-width: 0; }
.tree-ico { width: 18px; height: 18px; flex: none; color: var(--muted); }
.tree-head[aria-expanded="true"] .tree-ico { color: var(--c, var(--brand-ink)); }
.tree-count { flex: none; min-width: 26px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 18px; text-align: center; box-shadow: 0 1px 2px rgba(13, 27, 42, .06); font-variant-numeric: tabular-nums; }
.tree-head .chev { width: 14px; height: 14px; flex: none; color: var(--muted); transform: rotate(-90deg); transition: transform .2s; }
.tree-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* guides hang off a tree line with rounded elbows, starting under the folder icon */
.tree-sec ul { display: grid; margin: 4px 0 8px 19px; }
.tree-sec li { position: relative; padding-left: 20px; }
.tree-sec li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 18px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 10px; }
.tree-sec li:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 16px; bottom: 0; border-left: 1.5px solid var(--line); }
.tree-sec a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--muted); transition: background .2s, color .2s; }
.tree-sec a:hover { color: var(--ink); background: var(--surface-2); }
.tree-sec a[aria-current="page"] { color: var(--c, var(--brand-ink)); background: color-mix(in srgb, var(--c, var(--brand)) 10%, transparent); font-weight: 600; }

.doc-article { min-width: 0; }
.doc-article .crumbs { margin-bottom: 18px; }
.doc-header { padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.doc-header h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.doc-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.doc-meta .ico { width: 16px; height: 16px; }
.doc-copy { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 13.5px/1 var(--f); cursor: pointer; }
.doc-copy:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); color: var(--ink); }
.doc-copy.is-done { border-color: var(--brand); color: var(--brand-ink); }

/* guide content, as written in the editor */
.doc-body { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.doc-body > * + * { margin-top: 1.1em; }
.doc-body h2 { margin-top: 2.2em; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 100px; }
.doc-body h3 { margin-top: 1.8em; font-size: 20px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); scroll-margin-top: 100px; }
.doc-body h4 { margin-top: 1.5em; font-size: 17px; font-weight: 700; color: var(--ink); }
.doc-body h2 + *, .doc-body h3 + *, .doc-body h4 + * { margin-top: .6em; }
.doc-body p, .doc-body li { max-width: 76ch; }
.doc-body a { color: var(--c, var(--brand-ink)); font-weight: 500; }
.doc-body a:hover { color: var(--ink); }
.doc-body strong { color: var(--ink); font-weight: 650; }
.doc-body ul, .doc-body ol { padding-left: 1.4em; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li { margin-top: .4em; padding-left: .2em; }
.doc-body li::marker { color: var(--c, var(--brand-ink)); font-weight: 600; }
.doc-body img:not(.emoji) { height: auto; border-radius: 12px; border: 1px solid var(--line); }
.doc-body figure { margin: 1.6em 0; }
.doc-body figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.doc-body blockquote { margin: 1.6em 0; padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--c, var(--brand)) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 22%, var(--line)); color: var(--ink); }
.doc-body blockquote > * + * { margin-top: .6em; }
.doc-body code { font: 500 .88em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.doc-body pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: #0d1b2a; color: #e6eef3; font-size: 14px; line-height: 1.6; }
.doc-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-body .wp-block-table { overflow-x: auto; }
.doc-body th, .doc-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-body th { color: var(--ink); font-weight: 650; background: var(--surface-2); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.doc-body iframe, .doc-body video { width: 100%; max-width: 100%; border: 0; border-radius: 12px; }
.doc-body .wp-block-embed iframe { aspect-ratio: 16 / 9; height: auto; }
/* the table of contents that class-toc.php adds, matched to this page */
.doc-body .ox-docs-toc { margin: 1.6em 0 2em; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); }
.doc-body .ox-docs-toc__title { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.doc-body .ox-docs-toc__list { margin: 0; padding: 0; list-style: none; }
.doc-body .ox-docs-toc__list li { margin: 0; padding: 0; max-width: none; }
.doc-body .ox-docs-toc__list a { color: var(--ink-2); font-weight: 500; text-decoration: none; border: 0; }
.doc-body .ox-docs-toc__list a:hover { color: var(--c, var(--brand-ink)); }
.doc-page.has-rail .doc-body .ox-docs-toc { display: none; }
@media (min-width: 768px) { .doc-body .ox-docs-toc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; } }

.doc-pager { margin-top: 48px; }
.doc-help { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line); }
.doc-help > div { flex: 1; min-width: 0; }
.doc-help b { font-size: 15.5px; }
.doc-help p { font-size: 14px; color: var(--muted); }

.rail-title { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.rail-title .ico { width: 16px; height: 16px; color: var(--muted); }
.rail-list { display: grid; gap: 2px; margin-left: 6px; border-left: 1.5px solid var(--line); }
.rail-list a { display: block; margin-left: -1.5px; padding: 6px 10px 6px 14px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: color .2s, background .2s, border-color .2s; }
.rail-list a:hover { color: var(--ink); background: var(--surface-2); }
.rail-list a.is-active { color: var(--c, var(--brand-ink)); border-left-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 10%, transparent); font-weight: 600; }
.rail-top { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 8px 2px; border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.rail-top .ico { width: 15px; height: 15px; transform: rotate(-90deg); }
.rail-top:hover { color: var(--c, var(--brand-ink)); }

/* ── Recently updated and search results ──────────── */
.recent { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.rec { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 15px 22px; border-top: 1px solid var(--line); transition: background .2s; }
.rec:first-child { border-top: 0; }
.rec:hover { background: var(--surface-2); }
.rec-text { display: grid; gap: 2px; min-width: 0; }
.rec-text b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.rec-text small { font-size: 13px; color: var(--muted); }
.rec time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rec .go { width: 18px; height: 18px; color: var(--brand-ink); }
.results-title { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.results-empty { color: var(--muted); font-size: 16px; }
.results-empty a { color: var(--brand-ink); font-weight: 600; }

/* ── Still need help ──────────────────────────────── */
.help-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 860px; margin-top: 10px; }
.way { display: grid; justify-items: start; gap: 6px; text-align: left; padding: 20px; border-radius: 16px; border: 1px solid var(--band-line); background: var(--band-soft); transition: background .2s, border-color .2s; }
.way:hover { background: var(--band-soft-hover); border-color: color-mix(in srgb, var(--band-strong) 30%, transparent); }
.way .ico { width: 24px; height: 24px; color: var(--brand-ink); margin-bottom: 4px; }
.way b { color: var(--band-strong); font-size: 16px; font-weight: 700; }
.way span { color: var(--band-muted); font-size: 14px; }

@media (max-width: 1200px) {
	.doc-grid, .doc-page.has-rail .doc-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; }
	.doc-rail { display: none; }
	.doc-page.has-rail .doc-body .ox-docs-toc { display: block; }
}
@media (max-width: 900px) {
	.doc-grid, .doc-page.has-rail .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
	.doc-side { position: static; max-height: none; overflow: visible; margin-bottom: 18px; }
	.doc-side-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 15px/1.3 var(--f); cursor: pointer; }
	.doc-side-toggle img { width: 26px; height: 26px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
	.doc-side-toggle span { flex: 1; text-align: left; }
	.doc-side-toggle .chev { width: 15px; height: 15px; transition: transform .2s; }
	.doc-side-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
	.doc-side-body { display: none; margin-top: 10px; max-height: none; }
	.doc-tree { overflow: visible; }
	.doc-side.is-open .doc-side-body { display: block; }
	.doc-side-plugin { display: none; }
	.dcat-grid { grid-template-columns: 1fr; gap: 28px; }
	.dcat-body { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; }
	.dcat-side { position: static; }
	.side-others { display: none; }
	.dcat-side { grid-template-columns: minmax(0, 1fr); }
	.side-nav { grid-auto-flow: column; grid-auto-columns: max-content; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; gap: 6px; padding-bottom: 6px; }
	.side-nav a { border-left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
	.side-block h2 { margin-left: 0; }
	.side-all { margin-left: 0; }
	.dcards { grid-template-columns: 1fr; }
	.dcards > .dcard:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
	.help-ways { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.doc-body { font-size: 16px; }
	.doc-body h2 { font-size: 22px; }
	.doc-copy { margin-left: 0; }
	.doc-help { flex-wrap: wrap; }
	.dcat-head .dcard-icon { width: 54px; height: 54px; }
	.dcat-search { padding: 16px; }
	.dcat-search .docs-field { flex-wrap: nowrap; padding-left: 12px; }
	.dcat-search .docs-field input { flex-basis: auto; }
	.dcat-search .docs-field .btn { width: auto; }
	.guide-list a { grid-template-columns: auto 1fr; }
	.guide-list small { grid-column: 2; }
	.guide-list .go { display: none; }
	.sec-head { padding: 16px; flex-wrap: wrap; }
	.sec-pager { grid-template-columns: 1fr; }
	.pager.next { grid-column: auto; }
	.docs-field { padding-left: 14px; flex-wrap: wrap; }
	.docs-scope { order: 3; flex: 1; padding-left: 0; border-left: 0; }
	.scope-btn { max-width: none; }
	.scope-list { left: 0; right: auto; }
	.docs-field input { flex-basis: calc(100% - 40px); }
	.docs-field .btn { order: 4; flex: none; width: auto; }
	.dsections { grid-template-columns: 1fr; }
	.dcard { padding: 20px; border-radius: 22px; }
	.rec { grid-template-columns: auto 1fr; padding: 14px 16px; }
	.rec time { grid-column: 2; }
	.rec .go { display: none; }
}
