/* ==========================================================================
   GeoAI Help Center - styles
   Brand: Lato (Black = headings, Light = body) · Magenta #E6007E · Russian Violet #261E47
   Only the brand palette and its official tints are used (see :root).
   ========================================================================== */

:root {
  /* Brand palette (from the huisstijl) */
  --violet: #261E47;
  --violet-1: #504B6A;
  --violet-2: #7C788F;
  --violet-3: #A7A5B4;
  --violet-4: #D4D2DA;
  --magenta: #E6007E;
  --magenta-1: #DB5797;
  --magenta-2: #E381B1;
  --magenta-3: #EDABCB;
  --magenta-4: #F6D5E5;

  --font: 'Lato', 'Calibri', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Consolas', 'SFMono-Regular', Menlo, monospace;

  --header-h: 64px;
  --sidebar-w: 300px;
  --toc-w: 236px;
  --content-w: 780px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --bg-soft: rgba(212, 210, 218, .26);
  --bg-soft-2: rgba(212, 210, 218, .45);
  --surface: #fff;
  --text: var(--violet);
  --text-2: var(--violet-1);
  --text-3: var(--violet-2);
  --heading: var(--violet);
  --line: var(--violet-4);
  --line-soft: rgba(212, 210, 218, .6);
  --accent: var(--magenta);
  --accent-text: var(--magenta);
  --accent-soft: var(--magenta-4);
  --accent-soft-2: rgba(246, 213, 229, .45);
  --on-accent: #fff;
  --mark-bg: var(--magenta-4);
  --code-bg: rgba(212, 210, 218, .38);
  --pre-bg: var(--violet);
  --pre-text: #fff;
  --header-bg: var(--violet);
  --header-text: #fff;
  --header-line: transparent;
  --shadow-1: 0 1px 2px rgba(38, 30, 71, .06);
  --shadow-2: 0 2px 4px rgba(38, 30, 71, .05), 0 12px 32px rgba(38, 30, 71, .1);
  --shadow-3: 0 24px 64px rgba(38, 30, 71, .28);
  --overlay: rgba(38, 30, 71, .55);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--violet);
  --bg-soft: rgba(80, 75, 106, .32);
  --bg-soft-2: rgba(80, 75, 106, .55);
  --surface: rgba(80, 75, 106, .28);
  --text: var(--violet-4);
  --text-2: var(--violet-3);
  --text-3: var(--violet-3);
  --heading: #fff;
  --line: var(--violet-1);
  --line-soft: rgba(80, 75, 106, .6);
  --accent: var(--magenta);
  --accent-text: var(--magenta-2);
  --accent-soft: rgba(230, 0, 126, .22);
  --accent-soft-2: rgba(230, 0, 126, .12);
  --on-accent: #fff;
  --mark-bg: rgba(230, 0, 126, .42);
  --code-bg: rgba(80, 75, 106, .5);
  --pre-bg: rgba(0, 0, 0, .28);
  --pre-text: #fff;
  --header-bg: var(--violet);
  --header-text: #fff;
  --header-line: var(--violet-1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .2), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, .55);
  --overlay: rgba(20, 15, 38, .7);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--magenta-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--magenta-3); color: var(--violet); }
[hidden] { display: none !important; }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--magenta); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

kbd {
  font-family: var(--font); font-weight: 700; font-size: .78em; line-height: 1;
  display: inline-block; padding: 3px 6px; border-radius: 6px; border: 1px solid currentColor; border-bottom-width: 2px; opacity: .85;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; gap: 8px; padding: 0 20px;
  background: var(--header-bg); color: var(--header-text);
  border-bottom: 1px solid var(--header-line);
}
.topbar a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.01em; margin-right: 8px; white-space: nowrap; }
.brand svg.mark { width: 30px; height: 30px; flex: none; }
.brand img.logo { height: 30px; width: auto; flex: none; }
.brand .ai { color: var(--magenta); }
.brand .sub { font-weight: 300; font-size: 15px; letter-spacing: 0; opacity: .8; padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .28); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: transparent; border: 0; border-radius: 10px; color: inherit; font-size: 20px;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.menu-btn { display: none; margin-left: -8px; }

.product-switch { position: relative; }
.product-switch > button {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .1); border: 0; color: inherit; font-weight: 700; font-size: 14.5px;
}
.product-switch > button:hover { background: rgba(255, 255, 255, .18); }
.menu-pop {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 260px; z-index: 70;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px;
}
:root[data-theme="dark"] .menu-pop { background: var(--violet); }
.menu-pop a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text) !important; font-weight: 700; font-size: 15px; }
.menu-pop a small { display: block; font-weight: 300; color: var(--text-2); font-size: 13px; line-height: 1.4; }
.menu-pop a:hover, .menu-pop a[aria-current="true"] { background: var(--accent-soft); }

.tabs { display: flex; gap: 4px; margin-left: 8px; height: 100%; }
.tab {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 100%;
  font-weight: 700; font-size: 15px; opacity: .78; transition: opacity .15s;
}
.tab:hover { opacity: 1; }
.tab[aria-current="page"] { opacity: 1; }
.tab[aria-current="page"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--magenta); }

.topbar .spacer { flex: 1; }

.search-trigger {
  display: flex; align-items: center; gap: 10px; height: 42px; min-width: 280px; padding: 0 8px 0 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; color: rgba(255, 255, 255, .85);
  font-weight: 400; font-size: 15px; text-align: left; transition: background .15s, border-color .15s;
}
.search-trigger:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .34); }
.search-trigger span.txt { flex: 1; }
.search-trigger kbd { color: rgba(255, 255, 255, .8); font-size: 11.5px; }

/* ---------- layout ---------- */

.layout {
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  max-width: 1640px; margin: 0 auto; min-height: calc(100vh - var(--header-h));
}
.layout.no-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.layout.no-side { display: block; max-width: none; }

.sidebar {
  position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 28px 16px 48px 24px; border-right: 1px solid var(--line-soft); scrollbar-width: thin;
}
.side-product { display: none; }
.nav-section { margin-bottom: 22px; }
.nav-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px 12px;
  font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2);
}
.nav-title .ico { color: var(--magenta-1); width: 1.2em; height: 1.2em; }
.nav-link {
  display: block; position: relative; padding: 7px 12px; margin: 1px 0; border-radius: var(--radius-sm);
  font-size: 15.5px; font-weight: 400; line-height: 1.4; color: var(--text); text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--bg-soft-2); }
.nav-link[aria-current="page"] { background: var(--accent-soft); font-weight: 700; color: var(--heading); }
.nav-link[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--magenta); }
.nav-link .ver-date { display: block; font-weight: 300; font-size: 12.5px; color: var(--text-2); }
.nav-group-label { margin: 14px 0 4px 12px; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }

main { min-width: 0; padding: 44px 56px 72px; }
.layout.no-side main { padding: 0; }
.doc { max-width: var(--content-w); margin: 0 auto; animation: fade-in .3s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.toc { position: sticky; top: var(--header-h); align-self: start; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 48px 24px 32px 8px; scrollbar-width: thin; }
.toc h2 { margin: 0 0 10px; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.toc a {
  display: block; padding: 4px 0 4px 14px; border-left: 2px solid var(--line); font-size: 14.5px; font-weight: 400; line-height: 1.4;
  color: var(--text-2); text-decoration: none; transition: color .12s, border-color .12s;
}
.toc a.lvl3 { padding-left: 28px; font-size: 14px; }
.toc a:hover { color: var(--heading); }
.toc a.active { color: var(--accent-text); border-left-color: var(--magenta); font-weight: 700; }

.site-footer {
  max-width: var(--content-w); margin: 64px auto 0; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--text-2);
}
.site-footer a { font-weight: 700; }

/* ---------- article ---------- */

.eyebrow { font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow .sep { opacity: .5; }

.doc-title { margin: 0 0 14px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; color: var(--heading); }
.doc-lead { margin: 0 0 8px; font-size: 20px; line-height: 1.55; color: var(--text-2); }
.doc-meta { margin: 0; font-size: 14px; color: var(--text-3); }
.doc-head { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line-soft); }

.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--heading); font-weight: 900; letter-spacing: -.01em; position: relative; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 { font-size: 29px; line-height: 1.2; margin: 2.1em 0 .6em; }
.prose h3 { font-size: 21px; line-height: 1.3; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 17px; margin: 1.5em 0 .4em; }
.prose h2 .anchor, .prose h3 .anchor, .prose h4 .anchor {
  position: absolute; left: -1.1em; padding-right: .3em; color: var(--magenta-2); font-weight: 400; text-decoration: none; opacity: 0; transition: opacity .12s;
}
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor, .anchor:focus-visible { opacity: 1; }
.prose p { margin: 0 0 1.1em; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li > p { margin: .3em 0; }
.prose li > ul, .prose li > ol { margin: .3em 0 .5em; }
.prose ul > li::marker { color: var(--magenta); }
.prose ol { list-style: none; counter-reset: step; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 2.6em; margin: 1em 0; min-height: 1.9em; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: .05em; width: 1.9em; height: 1.9em; border-radius: 50%;
  display: grid; place-items: center; font-size: .86em; font-weight: 900; background: var(--accent-soft); color: var(--heading);
}
.prose ol ol > li::before { background: var(--bg-soft-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code {
  font-family: var(--mono); font-size: .86em; font-weight: 400; background: var(--code-bg); color: var(--heading);
  padding: .14em .42em; border-radius: 6px; word-break: break-word;
}
.prose pre {
  position: relative; margin: 1.3em 0; padding: 18px 20px; overflow-x: auto; border-radius: var(--radius-sm);
  background: var(--pre-bg); color: var(--pre-text); font-size: 14.5px; line-height: 1.6;
}
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; word-break: normal; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 12.5px; font-weight: 700;
  color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 6px; opacity: 0; transition: opacity .12s;
}
.prose pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.prose a.ext::after { content: ''; display: inline-block; width: .7em; height: .7em; margin-left: .25em; vertical-align: baseline;
  background: currentColor; -webkit-mask: var(--ext-icon) center / contain no-repeat; mask: var(--ext-icon) center / contain no-repeat; opacity: .7; }
:root { --ext-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6M10 14L21 3'/%3E%3C/svg%3E"); }

.prose blockquote { margin: 1.3em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--magenta-3); color: var(--text-2); }
.prose blockquote > :last-child { margin-bottom: 0; }

/* callouts */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; margin: 1.4em 0; padding: 16px 20px 16px 18px; border-radius: var(--radius-sm); background: var(--bg-soft); border-left: 4px solid var(--violet-2); }
.callout .c-ico { font-size: 22px; padding-top: 2px; color: var(--violet-1); }
:root[data-theme="dark"] .callout .c-ico { color: var(--violet-3); }
.callout .c-title { font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; color: var(--heading); }
.callout .c-body > :last-child { margin-bottom: 0; }
.callout .c-body p { margin-bottom: .6em; }
.callout.important, .callout.warning, .callout.caution { background: var(--accent-soft-2); border-left-color: var(--magenta); }
.callout.important .c-ico, .callout.warning .c-ico, .callout.caution .c-ico { color: var(--magenta); }
.callout.tip { background: var(--bg-soft); border-left-color: var(--magenta-2); }
.callout.tip .c-ico { color: var(--magenta-1); }

/* figures */
.prose figure { margin: 1.6em 0; }
.prose img { display: block; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-1); cursor: zoom-in; background: var(--surface); }
.prose li img { margin: .6em 0 1em; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--text-2); font-weight: 400; }
.prose img.no-frame { border: 0; box-shadow: none; }

/* tables */
.table-wrap { margin: 1.5em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap.tall { max-height: 68vh; overflow-y: auto; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-size: 12.5px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); background: var(--bg-soft); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.prose td { font-weight: 400; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: var(--accent-soft-2); }
.prose th[align="center"], .prose td[align="center"] { text-align: center; }
.prose td:first-child { font-variant-numeric: tabular-nums; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--heading); }
th.sortable .ico { margin-left: 4px; opacity: 0; }
th.sortable[aria-sort] .ico { opacity: 1; color: var(--magenta); }
.table-tools { display: flex; align-items: center; gap: 14px; margin: 1.4em 0 -.6em; }
.table-tools .field { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.table-tools .field:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 3px var(--accent-soft); }
.table-tools input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 400; font-size: 15.5px; color: var(--text); }
.table-tools .count { font-size: 14px; color: var(--text-2); white-space: nowrap; font-weight: 400; }
.table-empty { padding: 28px; text-align: center; color: var(--text-2); }

/* search highlight inside the article */
mark { background: var(--mark-bg); color: inherit; border-radius: 3px; padding: 0 .12em; }
mark.hit { box-shadow: 0 0 0 2px var(--mark-bg); }
.hit-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px;
  padding: 9px 10px 9px 18px; border-radius: 999px; background: var(--violet); color: #fff; box-shadow: var(--shadow-2); font-size: 14.5px; font-weight: 400;
}
:root[data-theme="dark"] .hit-bar { background: var(--magenta); }
.hit-bar button { border: 0; background: rgba(255, 255, 255, .16); color: #fff; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; }
.hit-bar button:hover { background: rgba(255, 255, 255, .28); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 12px 0; background: var(--surface); transition: border-color .15s, box-shadow .15s; scroll-margin-top: calc(var(--header-h) + 20px); }
.faq-item[open] { border-color: var(--magenta-2); box-shadow: var(--shadow-1); }
.faq-item > summary { list-style: none; display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; cursor: pointer; font-weight: 900; font-size: 18px; line-height: 1.4; color: var(--heading); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .ico { margin-top: .25em; color: var(--magenta); transition: transform .2s var(--ease); }
.faq-item[open] > summary .ico { transform: rotate(90deg); }
.faq-item > summary .anchor { display: none; }
.faq-body { padding: 0 20px 6px 52px; }
.faq-body > :last-child { margin-bottom: 1em; }

/* prev / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--heading); font-weight: 900; font-size: 17px; line-height: 1.35; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pager a:hover { border-color: var(--magenta); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.pager small { font-size: 12.5px; font-weight: 400; letter-spacing: .04em; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.pager .next { text-align: right; grid-column: 2; }
.pager .next small { justify-content: flex-end; }

/* ---------- project home ---------- */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 88% 30%, rgba(230, 0, 126, .38), transparent 62%),
    radial-gradient(600px 300px at 10% 110%, rgba(219, 87, 151, .22), transparent 60%),
    linear-gradient(135deg, var(--violet) 40%, var(--violet-1) 130%);
}
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 72px 32px 80px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--magenta-2); }
.hero h1 { margin: 0 0 18px; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; font-weight: 900; letter-spacing: -.025em; }
.hero p.lead { margin: 0 0 30px; font-size: 20px; line-height: 1.6; color: var(--violet-4); max-width: 34em; }
.hero-search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 540px; height: 60px; padding: 0 12px 0 20px; border: 0; border-radius: 16px;
  background: #fff; color: var(--violet-2); font-size: 18px; font-weight: 400; text-align: left; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); transition: transform .15s var(--ease), box-shadow .15s;
}
.hero-search:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(0, 0, 0, .38); }
.hero-search .txt { flex: 1; color: var(--violet-1); }
.hero-search kbd { color: var(--violet-1); font-size: 12px; }
.hero-search .ico { color: var(--magenta); font-size: 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.badge { padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); font-size: 13.5px; font-weight: 700; color: var(--violet-4); }
.hero-art { position: relative; }
.hero-art img { display: block; width: 122%; max-width: none; height: auto; margin: -5% 0 -5% -11%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); pointer-events: none; }

.home-wrap { max-width: 1240px; margin: 0 auto; padding: 56px 32px 24px; }
.home-wrap h2 { margin: 0 0 20px; font-size: 26px; font-weight: 900; letter-spacing: -.01em; color: var(--heading); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 56px; }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--text); position: relative; transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.card:hover { border-color: var(--magenta); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card .c-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--magenta); font-size: 22px; margin-bottom: 10px; }
.card h3 { margin: 0; font-size: 19px; font-weight: 900; color: var(--heading); letter-spacing: -.005em; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.card .go { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14.5px; color: var(--accent-text); display: flex; align-items: center; gap: 6px; }
.card:hover .go .ico { transform: translateX(3px); }
.card .go .ico { transition: transform .15s; }

.latest-panel {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 32px; align-items: center; padding: 28px 32px; margin-bottom: 56px;
  border-radius: var(--radius); background: var(--violet); color: #fff; position: relative; overflow: hidden;
}
:root[data-theme="dark"] .latest-panel { background: var(--bg-soft-2); border: 1px solid var(--line); }
.latest-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 100% 0, rgba(230, 0, 126, .35), transparent 70%); pointer-events: none; }
.latest-panel > * { position: relative; }
.latest-panel .v { font-size: 44px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.latest-panel .v small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta-2); margin-bottom: 8px; }
.latest-panel ul { margin: 0; padding: 0; list-style: none; font-size: 15.5px; color: var(--violet-4); }
.latest-panel li { margin: 3px 0; display: flex; gap: 10px; align-items: baseline; }
.latest-panel li b { flex: none; }
.latest-panel .date { font-size: 14px; font-weight: 400; letter-spacing: 0; opacity: .8; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; text-decoration: none;
  background: var(--magenta); color: #fff !important; font-weight: 700; font-size: 15px; transition: background .15s, transform .15s var(--ease);
}
.btn:hover { background: var(--magenta-1); transform: translateY(-1px); text-decoration: none; }

.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin-bottom: 40px; }
.topic h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.topic h3 .ico { color: var(--magenta-1); font-size: 18px; }
.topic a { display: block; padding: 5px 0; font-weight: 400; font-size: 16px; text-decoration: none; color: var(--text); }
.topic a:hover { color: var(--accent-text); text-decoration: underline; }

/* products page */
.products-hero { padding: 72px 32px 40px; max-width: 1240px; margin: 0 auto; }
.products-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 54px); font-weight: 900; letter-spacing: -.025em; line-height: 1.05; color: var(--heading); }
.products-hero p { margin: 0; font-size: 20px; color: var(--text-2); max-width: 40em; }

/* ---------- releases ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 700; color: var(--text); transition: border-color .12s, background .12s;
}
.chip:hover { border-color: var(--magenta-2); }
.chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); }
.chip .n { font-weight: 400; opacity: .7; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.release { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0 28px; position: relative; padding-bottom: 36px; scroll-margin-top: calc(var(--header-h) + 20px); }
.release::before { content: ''; position: absolute; left: 160px; top: 14px; bottom: -14px; width: 2px; background: var(--line); }
.release:last-child::before { display: none; }
.release::after { content: ''; position: absolute; left: 154px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--magenta-3); }
.release:first-child::after { background: var(--magenta); border-color: var(--magenta-3); box-shadow: 0 0 0 5px var(--accent-soft); }
.release-meta { text-align: right; padding-top: 2px; }
.release-meta .version { font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; color: var(--heading); text-decoration: none; display: block; }
.release-meta .version:hover { color: var(--accent-text); }
.release-meta time { display: block; font-size: 14px; color: var(--text-2); font-weight: 400; margin-top: 4px; }
.release-meta .pill { margin-top: 8px; }
.release-card { margin-left: 16px; padding: 22px 26px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.release-card > .summary { margin: 0 0 14px; }
.release-card p { margin: 0 0 .8em; }
.rgroup { margin: 0 0 18px; }
.rgroup h3 { margin: 0 0 8px; font-size: inherit; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.pill.latest { background: var(--magenta); color: #fff; }
.pill.new { background: var(--magenta); color: #fff; }
.pill.improved { background: var(--violet); color: #fff; }
:root[data-theme="dark"] .pill.improved { background: var(--violet-4); color: var(--violet); }
.pill.fixed { background: var(--violet-4); color: var(--violet); }
:root[data-theme="dark"] .pill.fixed { background: var(--violet-1); color: #fff; }
.pill.changed { background: var(--magenta-4); color: var(--violet); }
:root[data-theme="dark"] .pill.changed { background: var(--magenta-3); }
.pill.removed { background: transparent; color: var(--text); border: 1.5px solid var(--violet-2); }
.pill.other { background: var(--bg-soft-2); color: var(--text); }
.rgroup ul { margin: 0; padding-left: 1.3em; list-style: disc; }
.rgroup li { margin: .4em 0; }
.rgroup ul > li::marker { color: var(--magenta); }
.rgroup code { font-family: var(--mono); font-size: .86em; font-weight: 400; background: var(--code-bg); padding: .12em .4em; border-radius: 6px; }
.rgroup li strong { font-weight: 700; }
.release[hidden], .rgroup[hidden] { display: none !important; }
.release:target .release-card, .release.flash .release-card { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--magenta); } 30% { box-shadow: 0 0 0 4px var(--magenta-3); } 100% { box-shadow: 0 0 0 0 transparent; } }
.empty { padding: 48px 16px; text-align: center; color: var(--text-2); }

/* ---------- search palette ---------- */

.palette-overlay { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: overlay-in .15s ease-out; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.palette {
  width: 100%; max-width: 700px; max-height: 78vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-3); animation: pop-in .2s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: none; } }
.p-head { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; height: 66px; border-bottom: 1px solid var(--line); flex: none; }
.p-head .ico { font-size: 22px; color: var(--magenta); }
.p-head input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 19px; font-weight: 400; color: var(--text); }
.p-head input::placeholder { color: var(--text-3); }
.p-head input::-webkit-search-cancel-button { display: none; }
.p-esc { border: 1px solid var(--line); background: transparent; color: var(--text-2); border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.p-scope { display: flex; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); flex: none; }
.p-scope .chip { height: 30px; font-size: 13px; padding: 0 12px; }
.p-body { overflow-y: auto; padding: 8px; flex: 1; scrollbar-width: thin; }
.p-group { margin: 10px 12px 4px; font-size: 11.5px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); display: flex; justify-content: space-between; }
.p-group button { border: 0; background: none; color: var(--accent-text); font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 0; }
.res { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: inherit; cursor: pointer; }
.res[aria-selected="true"] { background: var(--accent-soft); }
.res .r-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--bg-soft-2); color: var(--violet-1); font-size: 18px; }
:root[data-theme="dark"] .res .r-ico { color: var(--violet-3); }
.res[aria-selected="true"] .r-ico { background: var(--magenta); color: #fff; }
.res .r-main { flex: 1; min-width: 0; }
.res .r-title { font-weight: 900; font-size: 16px; line-height: 1.35; color: var(--heading); }
.res .r-title .tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 900; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft-2); color: var(--text-2); vertical-align: 2px; }
.res .r-crumb { font-size: 13px; font-weight: 400; color: var(--text-2); margin-top: 1px; }
.res .r-snip { font-size: 14.5px; line-height: 1.5; font-weight: 400; color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; }
.res .r-go { align-self: center; color: var(--magenta); opacity: 0; font-size: 18px; }
.res[aria-selected="true"] .r-go { opacity: 1; }
.p-empty { padding: 40px 24px 44px; text-align: center; color: var(--text-2); }
.p-empty strong { display: block; font-size: 18px; font-weight: 900; color: var(--heading); margin-bottom: 6px; }
.p-empty .did-you { margin-top: 14px; font-size: 14.5px; }
.p-foot { display: flex; gap: 18px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-2); flex: none; font-weight: 400; }
.p-foot span { display: flex; align-items: center; gap: 6px; }
.p-foot .grow { flex: 1; }
.p-note { margin: 6px 14px 2px; font-size: 13px; color: var(--text-2); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 32px; background: var(--overlay); backdrop-filter: blur(6px); cursor: zoom-out; animation: overlay-in .15s ease-out; }
.lightbox img { max-width: min(96vw, 1800px); max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-3); background: #fff; }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 400; font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; top: 18px; right: 18px; }

.backdrop { display: none; }
.no-scroll { overflow: hidden; }

.load-error { max-width: 640px; margin: 15vh auto; padding: 0 24px; }
.load-error h1 { font-weight: 900; color: var(--heading); }
.notfound { text-align: center; padding: 12vh 0; }
.notfound .big { font-size: 96px; line-height: 1; font-weight: 900; color: var(--magenta); letter-spacing: -.04em; }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
  main { padding: 40px 40px 64px; }
}

@media (max-width: 960px) {
  :root { --header-h: 58px; }
  .menu-btn { display: inline-grid; }
  .layout, .layout.no-toc { display: block; }
  .sidebar {
    position: fixed; z-index: 90; left: 0; top: var(--header-h); bottom: 0; height: auto; align-self: auto; width: min(340px, 88vw);
    background: var(--bg); transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: var(--shadow-3); border-right: 1px solid var(--line);
  }
  .nav-open .sidebar { transform: none; }
  .nav-open .backdrop { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 80; background: var(--overlay); }
  .side-product { display: block; margin: 0 0 20px 12px; }
  .side-product small { display: block; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
  .side-product strong { font-weight: 900; font-size: 18px; color: var(--heading); line-height: 1.3; display: block; }
  .side-product a { font-size: 14px; font-weight: 700; }
  main { padding: 28px 20px 56px; }
  .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-trigger .txt, .search-trigger kbd { display: none; }
  .brand .sub { display: none; }
  .product-switch { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 56px; }
  .hero-art { order: -1; max-width: 520px; }
  .hero-art img { width: 100%; margin: 0; }
  .home-wrap { padding: 40px 20px 8px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-panel { grid-template-columns: 1fr; padding: 24px; }
  .products-hero { padding: 48px 20px 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .topbar { padding: 0 10px; gap: 4px; }
  .brand { font-size: 18px; }
  .tab { padding: 0 9px; font-size: 14px; }
  .cards, .topic-grid { grid-template-columns: 1fr; }
  .prose h2 { font-size: 25px; }
  .prose h2 .anchor, .prose h3 .anchor { display: none; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
  .release { grid-template-columns: 1fr; padding-left: 26px; }
  .release::before { left: 6px; top: 10px; }
  .release::after { left: 0; top: 8px; }
  .release-meta { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
  .release-meta time { margin: 0; }
  .release-meta .pill { margin: 0; }
  .release-card { margin-left: 0; padding: 18px 18px 6px; }
  .palette-overlay { padding: 0; }
  .palette { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }
  .p-foot .hide-sm { display: none; }
  .faq-body { padding-left: 20px; }
  .table-tools { flex-direction: column; align-items: stretch; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .sidebar, .toc, .site-footer, .pager, .copy-btn, .hit-bar, .table-tools, .backdrop, .anchor { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .layout { display: block; }
  main { padding: 0; }
  .doc { max-width: none; animation: none; }
  .faq-item { border: 0; }
  .faq-item > summary .ico { display: none; }
  .table-wrap.tall { max-height: none; overflow: visible; }
  .release { break-inside: avoid; }
}
