/* Reland docs */
@font-face { font-family: "Vidaloka"; src: url("../fonts/vidaloka.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Theme tokens */
:root {
  --primary: #8a6532;
  --primary-hi: #bd9a68;
  --primary-soft: #f5ede1;
  --ink: #17161a;
  --text: #45424a;
  --muted: #736f78;
  --bg: #ffffff;
  --surface: #f8f5f0;
  --card: #ffffff;
  --border: #ebe5dc;
  --code-bg: #141317;
  --code-border: #26242b;
  --code-text: #ece8e1;
  --note-info: #f6f1e8;
  --note-info-b: #e5d6bd;
  --note-tip: #ecf8f1;
  --note-tip-b: #bfe5cf;
  --note-warn: #fff6e5;
  --note-warn-b: #f5d9a0;
  --shadow: 0 1px 2px rgba(30, 20, 10, .05), 0 12px 32px rgba(30, 20, 10, .08);
  --header-h: 68px;
  --sidebar-w: 290px;
  --radius: 14px;
  --gold-grad: linear-gradient(120deg, #8a673a, #c9a26c 45%, #e8cf9f 60%, #a07a48);
  --font-head: "Vidaloka", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-code: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #d9b985;
    --primary-hi: #e3c690;
    --primary-soft: rgba(217, 185, 133, .13);
    --ink: #f3efe8;
    --text: #c9c3ba;
    --muted: #9b958c;
    --bg: #0d0d0f;
    --surface: #151518;
    --card: #17171b;
    --border: #2a2a30;
    --code-bg: #0a0a0c;
    --code-border: #26262c;
    --note-info: rgba(217, 185, 133, .09);
    --note-info-b: rgba(217, 185, 133, .28);
    --note-tip: rgba(40, 200, 120, .09);
    --note-tip-b: rgba(40, 200, 120, .26);
    --note-warn: rgba(255, 180, 0, .09);
    --note-warn-b: rgba(255, 180, 0, .28);
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --primary: #d9b985;
  --primary-hi: #e3c690;
  --primary-soft: rgba(217, 185, 133, .13);
  --ink: #f3efe8;
  --text: #c9c3ba;
  --muted: #9b958c;
  --bg: #0d0d0f;
  --surface: #151518;
  --card: #17171b;
  --border: #2a2a30;
  --code-bg: #0a0a0c;
  --code-border: #26262c;
  --note-info: rgba(217, 185, 133, .09);
  --note-info-b: rgba(217, 185, 133, .28);
  --note-tip: rgba(40, 200, 120, .09);
  --note-tip-b: rgba(40, 200, 120, .26);
  --note-warn: rgba(255, 180, 0, .09);
  --note-warn-b: rgba(255, 180, 0, .28);
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15.5px/1.8 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; }
h1, h2 { font-family: var(--font-head); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
h3, h4 { font-family: var(--font-body); font-weight: 700; }
h2 { font-size: 30px; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 38px 0 12px; }
h4 { font-size: 15px; margin: 24px 0 10px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 2px; border-radius: 6px; }
code { font-family: var(--font-code); font-size: .86em; background: var(--primary-soft); color: var(--primary); padding: .16em .45em; border-radius: 6px; word-break: break-word; }
code, pre, kbd, .tree { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
kbd { font: 600 12px/1 var(--font-code); padding: 3px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--card); color: var(--ink); }
.lead { font-size: 17px; color: var(--text); }
.muted { color: var(--muted); }
.svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.doc-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); display: flex; align-items: center; gap: 18px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 24px; width: auto; }
.brand .logo-dark { display: none; }
.brand-label { font: 600 12px/1 var(--font-body); color: var(--muted); padding: 5px 9px; border: 1px solid var(--border); border-radius: 99px; }
.search { flex: 1 1 auto; max-width: 440px; margin-left: 12px; }
.search-field { position: relative; }
.search-field > .svg { position: absolute; left: 13px; top: 11px; color: var(--muted); pointer-events: none; }
.doc-header .search-close, .doc-header .search-btn { display: none; }
.search input { width: 100%; height: 40px; padding: 0 44px 0 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font: 14px var(--font-body); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--primary-hi); background: var(--card); box-shadow: 0 0 0 4px var(--primary-soft); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
.search kbd { position: absolute; right: 10px; top: 9px; line-height: 20px; padding: 0; min-width: 22px; text-align: center; color: var(--muted); border-bottom-width: 1px; }
.results { position: absolute; top: 48px; left: 0; right: 0; display: none; max-height: min(60vh, 460px); overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.results.open { display: block; }
.results a { display: block; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a.focus { background: var(--surface); text-decoration: none; }
.results strong { display: block; font-size: 14px; margin-bottom: 2px; }
.results .empty { padding: 14px; color: var(--muted); font-size: 14px; }
.results mark { background: rgba(189, 154, 104, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--ink); font: 600 14px var(--font-body); white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { text-decoration: none; border-color: var(--primary-hi); }
.btn-primary { background: var(--gold-grad); border-color: transparent; color: #17120b; }
.btn-primary:hover { border-color: transparent; filter: brightness(1.05); }
.btn-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.btn-white { background: var(--gold-grad); border-color: transparent; color: #17120b; }
.icon-btn { width: 40px; padding: 0; }
.menu-btn { display: none; }
.theme-btn .moon { display: block; }
.theme-btn .sun { display: none; }

/* Layout */
.doc-layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.sidebar { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 26px 14px 40px 22px; border-right: 1px solid var(--border); scrollbar-width: thin; }
.nav-group { margin-bottom: 22px; }
.nav-title { margin: 0 0 8px 10px; font: 700 11px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { list-style: none; padding: 0; margin: 0; }
.nav li { margin: 0; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--text); font-size: 14px; line-height: 1.4; }
.nav a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav .svg { width: 16px; height: 16px; opacity: .8; }
.sidebar-card { margin-top: 10px; padding: 16px; border-radius: 12px; background: radial-gradient(120% 100% at 100% 0, rgba(189, 154, 104, .35), transparent 60%), #141317; color: #ece6dc; font-size: 13.5px; line-height: 1.6; }
.sidebar-card strong { color: #fff; display: block; font-family: var(--font-head); font-weight: 400; font-size: 17px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .02em; }
.sidebar-card a { color: #e3c690; font-weight: 600; text-decoration: underline; }
.content { width: 100%; min-width: 0; max-width: 1000px; margin: 0 auto; padding: 40px 56px 72px; }
.doc-section { scroll-margin-top: calc(var(--header-h) + 18px); padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--border); }
.doc-section h3[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
.eyebrow { display: inline-block; margin-bottom: 8px; font: 700 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 50px 46px; margin-bottom: 28px; border-radius: 22px; color: #fff; background: radial-gradient(70% 90% at 100% 0%, rgba(189, 154, 104, .45), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(189, 154, 104, .16), transparent 60%), linear-gradient(135deg, #0d0c0b 0%, #1b1712 60%, #2a2116 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(60% 80% at 85% 20%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 85% 20%, #000, transparent 75%); pointer-events: none; }
.hero .pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; }
.hero .pill b { color: #e3c690; font-weight: 700; }
.hero h1 { position: relative; z-index: 1; max-width: 660px; margin: 0 0 14px; color: #fff; font-size: 40px; line-height: 1.15; text-transform: uppercase; }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { position: relative; z-index: 1; max-width: 620px; margin: 0 0 26px; color: rgba(255, 255, 255, .8); font-size: 16px; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }

/* Grids & cards */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.info { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow-wrap: anywhere; }
.info span { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info strong, .info a { font-size: 15px; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 6px 0 10px; }
.card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h4 { margin: 12px 0 6px; font-size: 14.5px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.ico .svg { width: 20px; height: 20px; }

/* Demos */
.demo-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.seg button { padding: 7px 16px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 13px var(--font-body); cursor: pointer; }
.seg button.active { background: var(--card); color: var(--primary); box-shadow: 0 1px 3px rgba(20, 20, 40, .12); }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.demo { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--text); transition: transform .25s, box-shadow .25s; }
.demo:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.demo figure { position: relative; margin: 0; aspect-ratio: 6 / 5; overflow: hidden; background: var(--surface); }
.demo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo.short img { object-fit: contain; object-position: center; background: #fbfaf8; }
.demo .tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 99px; background: #141317; color: #e3c690; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.demo .meta { padding: 11px 14px 13px; }
.demo .meta strong { display: block; font-size: 14px; }
.demo .meta span { font-size: 12.5px; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 10px 0 22px; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--surface); color: var(--ink); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* Steps */
ol.steps { list-style: none; padding: 0; margin: 14px 0 24px; counter-reset: step; }
ol.steps > li { position: relative; padding-left: 50px; margin-bottom: 20px; }
ol.steps > li::before { content: counter(step); counter-increment: step; position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-grad); color: #17120b; font: 700 13px/32px var(--font-body); text-align: center; }
ol.steps > li > .t { display: block; }
ol.steps .shot { margin-top: 12px; }
ul.checks { list-style: none; padding: 0; }
ul.checks li { position: relative; padding-left: 28px; }
ul.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bd9a68' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }

/* Menu path */
.path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-size: .9em; font-weight: 600; line-height: 1.7; }
.path i { font-style: normal; color: var(--primary-hi); font-weight: 400; }

/* Screenshots */
.shot { margin: 14px 0 24px; }
.shot a { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in; }
.shot img { width: 100%; transition: transform .4s; }
.shot a:hover img { transform: scale(1.012); }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: rgba(10, 9, 8, .86); opacity: 0; pointer-events: none; transition: opacity .25s; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1500px, 100%); max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }

/* Notes */
.note { display: flex; gap: 12px; margin: 18px 0 22px; padding: 14px 16px; border: 1px solid var(--note-info-b); border-radius: 12px; background: var(--note-info); font-size: 14.5px; line-height: 1.7; }
.note .svg { margin-top: 3px; color: var(--primary-hi); }
.note p { margin: 0; }
.note.tip { background: var(--note-tip); border-color: var(--note-tip-b); }
.note.tip .svg { color: #1f9d5c; }
.note.warn { background: var(--note-warn); border-color: var(--note-warn-b); }
.note.warn .svg { color: #d48a00; }

/* Code blocks */
.code { margin: 12px 0 22px; overflow: hidden; border: 1px solid var(--code-border); border-radius: 12px; background: var(--code-bg); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #a7a19a; font: 500 12px var(--font-code); }
.code-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px; background: rgba(255, 255, 255, .05); color: #ddd6cc; font: 500 12px var(--font-body); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .12); }
.copy.done { color: #8ff0b6; border-color: rgba(143, 240, 182, .4); }
.copy .svg { width: 14px; height: 14px; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: var(--code-text); font: 13px/1.7 var(--font-code); tab-size: 4; }
.code pre code { padding: 0; background: none; color: inherit; font-size: inherit; word-break: normal; }
.hljs-comment, .hljs-quote, .hljs-meta { color: #8a857c; font-style: italic; }
.hljs-tag, .hljs-name, .hljs-selector-tag { color: #f0a58a; }
.hljs-attr, .hljs-attribute, .hljs-property { color: #8fd3e8; }
.hljs-string, .hljs-regexp { color: #b8dc8a; }
.hljs-number, .hljs-literal { color: #c4b0f5; }
.hljs-keyword, .hljs-built_in { color: #e3c690; }
.hljs-variable, .hljs-template-variable, .hljs-params { color: #f5b97a; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #f1ddb4; }
.hljs-selector-class, .hljs-selector-id, .hljs-selector-pseudo { color: #f1ddb4; }

/* File tree */
.tree { margin: 12px 0 22px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: 13.5px/1.85 var(--font-code); white-space: pre; }
.tree .d { color: var(--primary); font-weight: 600; }
.tree .c { color: var(--muted); }

/* Color swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 22px; }
.swatch { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.swatch i { display: block; height: 56px; border-bottom: 1px solid var(--border); }
.swatch div { padding: 9px 12px 11px; font-size: 13px; line-height: 1.5; }
.swatch b { display: block; color: var(--ink); font-weight: 700; }
.swatch code { font-size: 11.5px; }

/* Changelog */
.timeline { position: relative; margin: 10px 0 0; padding-left: 26px; border-left: 2px solid var(--border); }
.release { position: relative; margin-bottom: 30px; }
.release::before { content: ""; position: absolute; left: -35px; top: 4px; width: 16px; height: 16px; border: 4px solid var(--bg); border-radius: 50%; background: var(--primary-hi); box-shadow: 0 0 0 2px var(--primary-hi); }
.release h3 { margin: 0 0 4px; font-size: 17px; }
.release .date { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13.5px; }
.release ul { list-style: none; padding: 0; margin: 0; }
.release li { display: flex; gap: 10px; align-items: baseline; }
.release li > span:last-child { flex: 1 1 auto; min-width: 0; }
.chg { flex: 0 0 auto; min-width: 74px; padding: 2px 8px; border-radius: 6px; font: 700 11px/1.8 var(--font-body); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.chg.new { background: rgba(189, 154, 104, .18); color: var(--primary); }
.chg.fix { background: rgba(200, 90, 70, .14); color: #c0533e; }
.chg.imp { background: rgba(31, 157, 92, .14); color: #1f9d5c; }
.chg.upd { background: rgba(80, 120, 200, .14); color: #4a6fb5; }

/* FAQ */
.faq-item { margin: 0 0 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary-hi); font-size: 20px; line-height: 1; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding: 0 18px 16px; }
.faq-item > div > :last-child { margin-bottom: 0; }

/* Support box */
.support-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 30px; border-radius: 18px; color: #fff; background: radial-gradient(80% 120% at 100% 0, rgba(189, 154, 104, .45), transparent 60%), #141317; }
.support-box h3 { margin: 0 0 6px; color: #fff; font-family: var(--font-head); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.support-box p { margin: 0; color: rgba(255, 255, 255, .8); }

/* Footer */
.doc-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 6px; color: var(--muted); font-size: 14px; }
.doc-footer nav { display: flex; gap: 18px; }

/* Utilities */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gold-grad); color: #17120b; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; cursor: pointer; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.backdrop { position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: rgba(10, 10, 12, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }

/* Dark logos */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
}
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }

/* Responsive */
@media (max-width: 1199.98px) {
  .content { padding: 36px 36px 64px; }
}
@media (max-width: 991.98px) {
  .doc-layout { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; left: 0; top: var(--header-h); z-index: 50; width: min(310px, 86vw); background: var(--bg); box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .3s ease; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { opacity: 1; pointer-events: auto; }
  .content { padding: 30px 24px 60px; }
  .brand-label { display: none; }
  .header-actions .btn:not(.buy) .lbl { display: none; }
  .header-actions .btn:not(.buy) { width: 40px; padding: 0; }
}
@media (max-width: 767.98px) {
  .doc-header { gap: 10px; padding: 0 14px; }
  .search { display: none; position: absolute; inset: 0; z-index: 5; align-items: center; gap: 10px; max-width: none; margin: 0; padding: 0 14px; background: var(--bg); }
  body.search-open .search { display: flex; }
  .search-field { flex: 1 1 auto; }
  .doc-header .search-close, .doc-header .search-btn { display: inline-flex; }
  .search input { padding-right: 12px; }
  .search kbd { display: none; }
  .results { top: 50px; }
  .header-actions { gap: 8px; }
  .header-actions .btn .lbl { display: none; }
  .header-actions .btn { width: 40px; padding: 0; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info:first-child, .info:last-child { grid-column: 1 / -1; }
  .hero { padding: 34px 24px; border-radius: 18px; }
  .hero h1 { font-size: 28px; }
  h2 { font-size: 25px; }
  .shot-pair { grid-template-columns: 1fr; }
  ol.steps > li { padding-left: 44px; }
}
@media (max-width: 575.98px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
  .table-wrap td { position: relative; padding: 9px 14px 9px 112px; }
  .table-wrap td::before { content: attr(data-label); position: absolute; left: 14px; top: 11px; width: 88px; color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
  .table-wrap td:first-child { padding-left: 14px; background: var(--surface); color: var(--ink); font-weight: 600; }
  .table-wrap td:first-child::before { display: none; }
  .table-wrap tr:last-child td { border-bottom: 1px solid var(--border); }
  .table-wrap tr td:last-child { border-bottom: 0; }
  td code { white-space: normal; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 479.98px) {
  .brand img { height: 20px; }
  .content { padding: 24px 16px 50px; }
  .header-actions .buy { display: none; }
}

/* Print */
@media print {
  :root { --bg: #fff !important; --card: #fff !important; --surface: #f8f5f0 !important; --border: #ddd !important; --ink: #000 !important; --text: #333 !important; --muted: #666 !important; }
  .doc-header, .sidebar, .to-top, .backdrop, .copy, .lightbox { display: none !important; }
  .doc-layout { display: block; }
  .content { max-width: none; padding: 0; }
  h2, h3 { break-after: avoid; }
  .code, .card, .note, .demo, tr, .shot { break-inside: avoid; }
}
