/* PortfolioDAM Help — brand: navy #101d2f, orange #f4981e (as on portfoliodam.com), orange tint #fef1df */

:root {
  --navy: #101d2f;
  --navy-2: #1b2b44;
  --orange: #f4981e;
  --orange-tint: #fef1df;

  --bg: #ffffff;
  --surface: #f6f7f8;
  --surface-2: #eef0f2;
  --text: #303335;
  --text-muted: #5f646b;
  --heading: var(--navy);
  --border: #dde0e4;
  --border-strong: #c3c6cb;
  --link: #a85a00;               /* deep orange: 5.1:1 on white (#f4981e itself is too light for text) */
  --link-hover: #7f4400;
  --accent: var(--orange);
  --accent-soft: var(--orange-tint);
  --mark: #fde2bb;
  --focus: #f4981e;

  --header-bg: var(--navy);
  --header-text: #ffffff;
  --header-muted: #b7c0cc;

  --callout-note-bg: #fff5e8;   --callout-note-border: var(--orange);
  --callout-tip-bg: #eef3f8;    --callout-tip-border: #3d6a99;
  --callout-imp-bg: #fdecea;    --callout-imp-border: #b3261e;

  --icon-chip: transparent;
  --shadow: 0 1px 2px rgb(16 29 47 / .06), 0 4px 16px rgb(16 29 47 / .06);
  --radius: 10px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, Consolas, monospace;

  --header-h: 64px;
  --sidebar-w: 288px;
  --toc-w: 220px;
  --content-max: 760px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1626;
    --surface: #122036;
    --surface-2: #192a44;
    --text: #dfe4ea;
    --text-muted: #9aa6b5;
    --heading: #ffffff;
    --border: #23354f;
    --border-strong: #33496a;
    --link: #f8b04f;
    --link-hover: #fcd08f;
    --accent-soft: rgb(244 152 30 / .16);
    --mark: rgb(244 152 30 / .38);
    --header-bg: #08111e;
    --callout-note-bg: rgb(244 152 30 / .12);
    --callout-tip-bg: rgb(93 141 191 / .14);   --callout-tip-border: #6c9bcb;
    --callout-imp-bg: rgb(229 83 75 / .14);    --callout-imp-border: #ef6b63;
    --icon-chip: #f1f3f5;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1626;
  --surface: #122036;
  --surface-2: #192a44;
  --text: #dfe4ea;
  --text-muted: #9aa6b5;
  --heading: #ffffff;
  --border: #23354f;
  --border-strong: #33496a;
  --link: #f8b04f;
  --link-hover: #fcd08f;
  --accent-soft: rgb(244 152 30 / .16);
  --mark: rgb(244 152 30 / .38);
  --header-bg: #08111e;
  --callout-note-bg: rgb(244 152 30 / .12);
  --callout-tip-bg: rgb(93 141 191 / .14);   --callout-tip-border: #6c9bcb;
  --callout-imp-bg: rgb(229 83 75 / .14);    --callout-imp-border: #ef6b63;
  --icon-chip: #f1f3f5;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-xs { width: 14px; height: 14px; vertical-align: -2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 18px; border-radius: 8px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #f7ab45; color: var(--navy); }
.btn-secondary { background: transparent; color: inherit; border-color: currentColor; }
.btn-secondary:hover { background: rgb(255 255 255 / .08); color: inherit; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgb(127 127 127 / .14); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg); color: var(--header-text);
  border-bottom: 3px solid var(--orange);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h); max-width: 1600px; margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.brand img { display: block; height: 40px; width: auto; }
.brand-text { font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.brand-text span { color: var(--orange); font-weight: 600; }
.product-nav { display: flex; gap: 4px; }
.product-nav a {
  color: var(--header-muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.product-nav a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.product-nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 8px 8px 0 0; }

.header-search { position: relative; margin-left: auto; width: min(380px, 100%); }
.header-search .icon { position: absolute; left: 12px; top: 10px; color: var(--header-muted); pointer-events: none; }
.header-search input {
  width: 100%; height: 40px; padding: 0 36px 0 40px; border-radius: 8px;
  border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .08); color: #fff;
  font: 15px var(--font);
}
.header-search input::placeholder { color: var(--header-muted); }
.header-search input:focus { outline: none; border-color: var(--orange); background: rgb(255 255 255 / .12); }
.search-hint {
  position: absolute; right: 10px; top: 10px; font: 12px/18px var(--mono); padding: 0 6px;
  border: 1px solid rgb(255 255 255 / .25); border-radius: 4px; color: var(--header-muted);
}
.header-search input:focus ~ .search-hint { display: none; }
.theme-toggle { color: var(--header-muted); margin-left: auto; }
.header-search + .theme-toggle { margin-left: 4px; }
.theme-toggle:hover { color: #fff; background: rgb(255 255 255 / .1); }
.header-search input::-webkit-search-cancel-button { filter: invert(1) brightness(1.6); }
.theme-toggle .icon-light, .theme-toggle .icon-dark { display: none; }
[data-theme="light"] .theme-toggle .icon-auto, [data-theme="dark"] .theme-toggle .icon-auto { display: none; }
[data-theme="light"] .theme-toggle .icon-light, [data-theme="dark"] .theme-toggle .icon-dark { display: block; }
.menu-btn { display: none; margin-left: -8px; }

/* search suggestions */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
  margin: 0; padding: 6px; list-style: none; text-align: left;
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); max-height: 70vh; overflow: auto;
}
.suggest a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: inherit; }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--accent-soft); }
.suggest .s-title { display: block; font-weight: 600; color: var(--heading); }
.suggest .s-section { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.suggest .s-snippet { display: block; font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-all { font-size: 14px; color: var(--link); font-weight: 600; }
.suggest .s-empty { padding: 8px 10px; color: var(--text-muted); font-size: 14px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- layout ---------- */
.layout {
  flex: 1; display: grid; width: 100%; max-width: 1600px; margin: 0 auto;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  gap: 0 48px; padding: 0 24px;
}
.layout:not(:has(.toc)) { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.content { min-width: 0; max-width: var(--content-max); padding: 28px 0 64px; }

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky; top: calc(var(--header-h) + 3px); align-self: start;
  height: calc(100vh - var(--header-h) - 3px); overflow-y: auto; overscroll-behavior: contain;
  padding: 24px 12px 40px 0; border-right: 1px solid var(--border);
  font-size: 14.5px;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px 8px; }
.sidebar-title { font-weight: 700; color: var(--heading); text-decoration: none; font-size: 15px; }
.sidebar-close { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-children > .nav-list { margin-left: 12px; padding-left: 8px; border-left: 1px solid var(--border); }
.nav-row { display: flex; align-items: flex-start; border-radius: 6px; }
.nav-row > a, .nav-group {
  flex: 1; display: block; padding: 5px 8px; line-height: 1.4; color: var(--text);
  text-decoration: none; border-radius: 6px;
}
.nav-row > a:hover, .nav-group:hover { background: var(--surface-2); color: var(--heading); }
.nav-group {
  border: 0; background: none; font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  color: var(--heading);
}
.nav-row.is-current > a { background: var(--accent-soft); color: var(--heading); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.nav-toggle {
  flex: none; width: 28px; height: 30px; display: grid; place-items: center;
  border: 0; background: none; color: var(--text-muted); cursor: pointer; border-radius: 6px;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle .icon { width: 14px; height: 14px; transition: transform .15s; }
[aria-expanded="true"] > .icon, [aria-expanded="true"] ~ .nav-toggle .icon { transform: rotate(90deg); }
.nav-row:has(.nav-group[aria-expanded="true"]) .nav-toggle .icon { transform: rotate(90deg); }
.no-js .nav-children[hidden] { display: block !important; }
.sidebar-extra { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.sidebar-extra > .nav-group { display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-extra > .nav-group::after { content: "+"; font-size: 16px; }
.sidebar-extra > .nav-group[aria-expanded="true"]::after { content: "−"; }
.scrim { display: none; }

/* ---------- article ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.article h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; letter-spacing: -.02em; color: var(--heading); margin: 0 0 24px; }

.toc { position: sticky; top: calc(var(--header-h) + 3px); align-self: start; padding: 32px 0; font-size: 13.5px; max-height: calc(100vh - var(--header-h)); overflow: auto; }
.toc-title { margin: 0 0 8px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.toc ul, .toc-inline ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--border); color: var(--text-muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--heading); }
.toc a.is-active { color: var(--heading); border-left-color: var(--orange); font-weight: 600; }
.toc .toc-l3 a { padding-left: 24px; }
.toc-inline { display: none; margin: -8px 0 24px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
.toc-inline summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.toc-inline ul { margin-top: 8px; }
.toc-inline li { padding: 3px 0; }
.toc-inline .toc-l3 { padding-left: 16px; }

.prose { font-size: 16.5px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose .table-wrap, .prose .callout { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--heading); line-height: 1.3; position: relative; }
.prose h2 { font-size: 24px; margin: 2em 0 .6em; padding-top: .2em; letter-spacing: -.01em; }
.prose h3 { font-size: 19px; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 17px; margin: 1.4em 0 .4em; }
.heading-anchor { margin-left: 8px; color: var(--border-strong); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .heading-anchor, h3:hover .heading-anchor { opacity: 1; }
.prose li { margin: .3em 0; }
.prose li > p { margin: 0 0 .4em; }
.prose ol { padding-left: 1.6em; }
.prose ul { padding-left: 1.4em; }
.prose ol > li::marker { color: var(--orange); font-weight: 700; }
.prose ul > li::marker { color: var(--orange); }
.prose ul.no-marker { list-style: none; padding-left: 0; }
.prose p.heading, .prose p.heading-caps, .prose p.subhead, .prose p.head-xref { font-weight: 700; color: var(--heading); margin: 1.4em 0 .3em; }
.prose p.heading + p, .prose p.head-xref + p { margin-top: 0; }
.prose .all-caps, .prose .heading-caps { text-transform: uppercase; letter-spacing: .04em; font-size: .92em; }
.prose .normal-case { text-transform: none; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* Portfolio UI vocabulary */
.prose .ui-element { font-weight: 600; color: var(--heading); }
.prose .btn {
  display: inline-block; padding: 0 .5em; font-size: .9em; font-weight: 600; line-height: 1.6;
  border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface); color: var(--heading);
  white-space: nowrap;
}
.prose .key, .prose kbd {
  display: inline-block; padding: 0 .45em; font: 600 .82em/1.7 var(--mono);
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface);
}
.prose .inline-head { font-weight: 700; color: var(--heading); }
.prose img.inline-icon, .prose img.inline-icon-head, .prose img.table-icon, .prose img.checkbox, .prose img.oneline {
  height: 1.3em; width: auto; vertical-align: -.28em; background: var(--icon-chip); border-radius: 3px;
}
.prose img.inline-icon-bigger { height: 1.8em; width: auto; vertical-align: middle; background: var(--icon-chip); border-radius: 3px; }
.prose img.table-icon { height: 1.6em; }
.prose img.screenshot, .prose .fig img, .prose .figcenter img {
  border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); background: #fff;
}
.prose .figcenter { text-align: center; }
.prose .footnote { font-size: .9em; color: var(--text-muted); }
.prose .hanging-indent { padding-left: 1.5em; text-indent: -1.5em; }
.prose .sup { vertical-align: super; font-size: .75em; }
.prose .contact h3 { margin-top: 1.4em; }
.prose .contact p { margin: 0; }

/* code */
.prose code {
  font: .88em var(--mono); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 4px; padding: .05em .35em; overflow-wrap: anywhere;
}
.prose pre, .prose .code-output {
  font: 13.5px/1.6 var(--mono); background: var(--navy); color: #e6ebf2; border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; margin: 0 0 1em;
}
.prose .code-output p { margin: 0; white-space: pre-wrap; word-break: break-all; }
.prose .code-output b, .prose .code-output strong { color: #f8c27a; }
.prose ul.code { list-style: none; padding: 12px 16px; background: var(--surface); border-radius: var(--radius); font-family: var(--mono); font-size: 14px; }

/* callouts */
.prose .callout {
  border-left: 4px solid var(--callout-note-border); background: var(--callout-note-bg);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px;
}
.prose .callout > :last-child { margin-bottom: 0; }
.prose .callout-tip { border-left-color: var(--callout-tip-border); background: var(--callout-tip-bg); }
.prose .callout-important { border-left-color: var(--callout-imp-border); background: var(--callout-imp-bg); }
.prose .callout-label { color: var(--heading); }
.prose .inline-note { font-weight: 700; color: var(--heading); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap:focus-visible { outline-offset: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th, .prose tr.headrow td, .prose tr.top-level td, .prose td.listhead, .prose td.headcol {
  background: var(--surface); color: var(--heading); font-weight: 700;
}
.prose thead th { border-bottom: 2px solid var(--orange); }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: var(--surface); }
.prose td > p:last-child, .prose th > p:last-child { margin-bottom: 0; }
.prose td.port-number { font-family: var(--mono); white-space: nowrap; }
.prose td.icon { width: 48px; text-align: center; }
.prose tr.mid-level td { font-weight: 600; }

/* pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager-link {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.pager-link:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.pager-link.next { text-align: right; grid-column: 2; }
.pager-label { font-size: 13px; color: var(--text-muted); }
.pager-title { font-weight: 600; color: var(--heading); }

/* ---------- home ---------- */
.hero { background: var(--navy); color: #fff; padding: 72px 24px 88px; text-align: center; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 100%;
  background: radial-gradient(ellipse at center, rgb(244 152 30 / .28), transparent 65%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 12px; }
.hero-lead { color: #c9d1dc; font-size: 18px; margin: 0 0 32px; }
.hero-search { position: relative; display: flex; gap: 8px; }
.hero-search > .icon { position: absolute; left: 16px; top: 15px; color: #6b7686; pointer-events: none; }
.hero-search input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px 0 46px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: #fff; color: #101d2f; font: 16px var(--font);
}
.hero-search input:focus { outline: 3px solid rgb(244 152 30 / .55); outline-offset: 0; border-color: var(--orange); }
.hero-search .btn-primary { height: 50px; }
.hero .suggest { top: calc(100% + 8px); }

.products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
  max-width: 1100px; width: 100%; margin: -48px auto 0; padding: 0 24px; position: relative; z-index: 2;
}
.product-card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 28px; border-top: 4px solid var(--orange);
}
.product-card-head { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.product-card-head img { height: 50px; width: auto; align-self: flex-start; }
.product-card h2 { margin: 0; font-size: 22px; color: var(--heading); }
.product-card > p { color: var(--text-muted); margin: 8px 0 16px; }
.product-links { list-style: none; margin: 0 0 20px; padding: 0; columns: 2; column-gap: 16px; font-size: 15px; }
.product-links li { break-inside: avoid; padding: 3px 0; }
.product-links a { text-decoration: none; }
.product-links a:hover { text-decoration: underline; }
.product-card-more { margin-top: auto; font-weight: 600; text-decoration: none; }

.help-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 1052px; width: calc(100% - 48px); margin: 56px auto 72px; padding: 28px 32px;
  background: var(--accent-soft); border-radius: 14px;
}
.help-strip h2 { margin: 0 0 4px; color: var(--heading); font-size: 22px; }
.help-strip p { margin: 0; color: var(--text); }
.help-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.help-strip .btn-secondary { color: var(--heading); }

/* ---------- search page ---------- */
.search-main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 40px 24px 72px; }
.search-main h1 { color: var(--heading); margin: 0 0 20px; letter-spacing: -.02em; }
.search-page-form { margin-bottom: 20px; }
.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
}
.chip span { color: var(--text-muted); font-size: 12.5px; }
.chip:hover { border-color: var(--orange); color: var(--heading); }
.chip[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-current] span { color: #c9d1dc; }
.search-count { color: var(--text-muted); font-size: 14px; }
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 18px 0; border-bottom: 1px solid var(--border); }
.result-title { font-size: 18px; font-weight: 600; text-decoration: none; }
.result-title:hover { text-decoration: underline; }
.result-path { margin: 2px 0 6px; font-size: 13px; color: var(--text-muted); }
.result-snippet { margin: 0; font-size: 15px; }
.empty { padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty h2 { margin-top: 0; color: var(--heading); font-size: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c9d1dc; margin-top: auto; font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; max-width: 1600px; margin: 0 auto; padding: 40px 24px; }
.footer-brand p { margin: 8px 0 0; max-width: 340px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-cols h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 3px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange-tint); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .layout, .layout:not(:has(.toc)) { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
  .toc-inline { display: block; }
}
@media (max-width: 960px) {
  :root { --header-h: 58px; }
  .menu-btn { display: inline-grid; }
  .product-nav { display: none; }
  .layout, .layout:not(:has(.toc)) { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .content { max-width: none; padding-top: 20px; }
  .sidebar {
    position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: 100vh; width: min(320px, 86vw);
    background: var(--bg); padding: 12px 12px 40px; border-right: 1px solid var(--border);
    transform: translateX(-100%); transition: transform .2s ease; visibility: hidden;
  }
  .nav-open .sidebar { transform: none; visibility: visible; box-shadow: var(--shadow); }
  .sidebar-close { display: inline-grid; }
  .nav-open .scrim { display: block !important; position: fixed; inset: 0; z-index: 55; background: rgb(8 17 30 / .5); }
  .nav-open { overflow: hidden; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .header-search { width: auto; flex: 1; }
  .search-hint { display: none; }
  .brand img { height: 32px; }
}
@media (max-width: 560px) {
  .brand-text { font-size: 17px; }
  .is-home .brand-text span { display: none; }
  .header-search input { padding-right: 10px; }
  .hero { padding: 48px 16px 72px; }
  .hero-search { flex-direction: column; }
  .hero-search input { flex: none; width: 100%; }
  .hero-search .btn-primary { width: 100%; }
  .products { padding: 0 16px; }
  .product-card { padding: 22px; }
  .product-links { columns: 1; }
  .help-strip { width: calc(100% - 32px); padding: 22px; }
  .pager { grid-template-columns: 1fr; }
  .pager-link.next { grid-column: 1; }
  .search-main { padding: 28px 16px 56px; }
  .footer-inner { padding: 32px 16px; }
  .prose { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .sidebar, .toc, .pager, .site-footer, .breadcrumbs, .toc-inline { display: none !important; }
  .layout { display: block; }
}

/* footer copyright line */
.footer-legal { max-width: 1600px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13px; }
.footer-legal a { color: #c9d1dc; }
@media (max-width: 560px) { .footer-legal { padding: 16px; } }

/* ---------- versions ---------- */
.version-tag {
  display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; vertical-align: 1px;
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-muted);
}
.version-switch { position: relative; margin: 0 0 14px 8px; font-size: 14px; }
.version-switch summary {
  display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg);
}
.version-switch summary::-webkit-details-marker { display: none; }
.version-switch summary span { color: var(--text-muted); }
.version-switch summary strong { color: var(--heading); flex: 1; }
.version-switch summary .icon { transform: rotate(90deg); color: var(--text-muted); transition: transform .15s; }
.version-switch[open] summary .icon { transform: rotate(-90deg); }
.version-switch summary:hover { border-color: var(--orange); }
.version-switch ul {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow);
}
.version-switch li a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.version-switch li a:hover { background: var(--surface-2); color: var(--heading); }
.version-switch li a[aria-current] { background: var(--accent-soft); color: var(--heading); font-weight: 600; }
.version-banner {
  margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--orange); color: var(--heading); font-size: 15px;
}
.version-banner p { margin: 0; }
.version-banner a { font-weight: 600; margin-left: 4px; white-space: nowrap; }

/* home: versions */
.product-card h2 .version-tag { font-size: 13px; vertical-align: 3px; }
.older-docs {
  max-width: 1052px; width: calc(100% - 48px); margin: 32px auto 0; padding: 20px 28px;
  border: 1px solid var(--border); border-radius: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
}
.older-docs h2 { margin: 0; font-size: 17px; color: var(--heading); }
.older-docs p { margin: 0; color: var(--text-muted); font-size: 15px; flex: 1; min-width: 220px; }
.older-docs ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.older-docs a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 600;
}
.older-docs a:hover { border-color: var(--orange); }
.older-docs + .help-strip { margin-top: 24px; }
@media (max-width: 560px) { .older-docs { width: calc(100% - 32px); padding: 18px; } }

/* legal agreements converted from PDF */
.prose p.clause { padding-left: 1.75em; }
.prose p.clause-2 { padding-left: 1.75em; }
.prose h4 + p.clause-2 { margin-top: -.2em; }
.prose p.small-print { font-size: .88em; color: var(--text-muted); margin-bottom: .3em; }
.prose p.download a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); text-decoration: none; font-weight: 600;
}
.prose p.download a::before { content: "↓"; font-weight: 700; color: var(--orange); }
.prose p.download a:hover { border-color: var(--orange); }
.prose p.address { line-height: 1.6; }

/* third-party licences */
.prose p.source-link {
  padding: 10px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}
.prose p.license-head { text-align: center; font-weight: 600; color: var(--heading); }
.prose pre { white-space: pre-wrap; }
.version-banner-upcoming { border-style: dashed; }
