@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/open-sans-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/open-sans-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/open-sans-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/open-sans-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/open-sans-800.ttf) format('truetype');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(/fonts/oswald-variable.ttf) format('truetype');
}
:root {
  color-scheme: dark;
  --bg: #151515;
  --surface: #1d1d1b;
  --raised: #242422;
  --line: #343431;
  --text: #f5f3ef;
  --muted: #aaa9a3;
  --orange: #f39200;
  --orange-hover: #ffb13b;
  --width: 1120px;
  --docs-width: 1160px;
  font-family: 'Open Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; --header-height: 86px; scroll-padding-top: calc(var(--header-height) + 25px); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main, body > .docs-shell { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a { touch-action: manipulation; }
a, button, input, select, textarea, summary { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--orange); }
a:hover { color: var(--orange-hover); }
.container { width: min(var(--width), calc(100% - 56px)); margin: 0 auto; }
.skip { position: fixed; top: -80px; left: 20px; padding: 12px; background: var(--orange); color: #151515; z-index: 20; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Shared header and footer keep their positions across page types. */
.header { position: sticky; top: 0; z-index: 10; border-bottom: 2px solid #ffffff0d; background: #191918; flex-shrink: 0; }
.header-inner { width: min(var(--docs-width), calc(100% - 56px)); margin: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; min-height: 82px; padding: 16px 0; gap: 28px; align-items: center; }
.brand { display: flex; align-items: center; gap: 7px; font-size: 23px; font-weight: 800; letter-spacing: -.8px; white-space: nowrap; }
.brand img { width: 52px; height: 52px; flex-shrink: 0; }
.brand span { margin-bottom: 2px; }
.nav { display: flex; justify-content: flex-end; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; color: #c6c4be; }
.nav a[aria-current] { color: var(--orange); }
.nav a:hover { color: var(--orange-hover); }
.docs-dropdown { position: relative; }
.docs-dropdown > summary { display: flex; align-items: center; gap: 6px; padding: 10px 0; list-style: none; cursor: pointer; }
.docs-dropdown > summary::-webkit-details-marker { display: none; }
.docs-dropdown > summary svg { width: 12px; height: 12px; transition: transform .15s; }
.docs-dropdown.is-current > summary { color: var(--orange); }
.docs-dropdown > summary:hover, .docs-dropdown[open] > summary { color: var(--orange-hover); }
.docs-dropdown[open] > summary svg { transform: rotate(180deg); }
.docs-dropdown .header-docs-menu { top: 100%; left: auto; right: 0; width: 310px; font-weight: 400; }
.header-search { display: flex; justify-content: center; min-width: 0; }
.header-search:empty { min-height: 43px; }
.search-open { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; color: #aaa79e; background: #20201e; font-size: 14px; text-align: left; }
.search-open:hover { border-color: #85704d; }
.search-open svg { flex-shrink: 0; }
kbd { margin-left: auto; white-space: nowrap; font: 10px 'Open Sans', sans-serif; border: 1px solid #41413b; border-radius: 4px; padding: 2px 5px; }
.footer { flex-shrink: 0; border-top: 2px solid var(--line); padding: 28px 0 32px; background: #181817; color: #96958e; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-links { display: flex; gap: 22px; }

/* Homepage and product cards. Artwork fills the frame without stretching. */
.hero { background: radial-gradient(ellipse at 77% 62%, #f392000c, transparent 44%), linear-gradient(125deg, #1d1d1b, #23211d); border-bottom: 2px solid #f3920024; }
.hero-inner { min-height: 310px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 35px; align-items: center; padding-top: 40px; padding-bottom: 42px; }
.hero h1 { font-family: 'Oswald', 'Open Sans', sans-serif; font-size: 51px; letter-spacing: -.5px; line-height: 1.2; margin: 0 0 28px; font-weight: 600; }
.hero-art img { width: 100%; max-width: 500px; margin: auto; height: auto; display: block; filter: drop-shadow(0 17px 15px #0003); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 700; background: transparent; color: var(--text); }
.button.primary { background: var(--orange); border-color: var(--orange); color: #21190e; }
.button:hover { border-color: var(--orange-hover); color: var(--orange-hover); }
.button.primary:hover { background: var(--orange-hover); color: #21190e; }
.catalog { padding: 38px 0 50px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { font-size: 27px; letter-spacing: -.65px; margin: 0; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s; }
.product:hover { border-color: #85704d; }
.product-cover { display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-content { padding: 21px 21px 18px; display: flex; flex: 1; flex-direction: column; }
.product h2, .product h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.4px; margin: 0 0 10px; }
.product h3 button, .card-actions button { border: 0; padding: 0; background: none; font: inherit; text-align: left; }
.product h3 button:hover, .card-actions button:hover { color: var(--orange-hover); }
.product p.summary { font-size: 15px; color: #b6b4ae; line-height: 1.8; margin: 0 0 22px; flex: 1; }
.card-actions { border-top: 1px solid var(--line); padding-top: 15px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; gap: 12px; flex-wrap: wrap; }
.card-actions a:first-child { color: var(--orange); }
.card-actions a:hover { color: var(--orange-hover); }

/* Compact documentation layout. */
.docs-shell { width: min(var(--docs-width), calc(100% - 56px)); margin: 0 auto; display: grid; grid-template-columns: 225px minmax(0, 640px) 155px; gap: 45px; padding: 36px 0 70px; align-content: start; align-items: start; }
.sidebar { font-size: 14px; position: sticky; top: calc(var(--header-height) + 25px); }
.sidebar-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #929087; text-transform: uppercase; margin: 28px 10px 13px; }
.sidebar > .sidebar-label:first-child { margin-top: 0; }
.sidebar nav a { display: block; padding: 9px 12px; border-left: 2px solid transparent; line-height: 1.6; margin: 2px 0; color: #a8a69e; }
.sidebar nav a:hover { color: var(--orange-hover); }
.sidebar nav a[aria-current] { border-left-color: var(--orange); background: #f392000b; color: #ffc167; border-radius: 0 4px 4px 0; }
.sidebar .store-link { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); margin-top: 25px; padding: 18px 12px 9px; color: #c2b9a8; font-size: 14px; }
.sidebar .store-link:hover { color: var(--orange-hover); }
.product-menu { position: absolute; z-index: 5; top: 100%; right: 0; width: 310px; max-width: calc(100vw - 36px); padding: 0; background: #1b1b1b; border: 1px solid #383838; border-radius: 6px; box-shadow: 0 12px 24px #0004; }
.product-menu a { display: flex; gap: 12px; align-items: center; min-height: 66px; padding: 12px; color: var(--text); font-size: 14px; line-height: 1.45; transition: background .12s, color .12s; }
.product-menu a + a { border-top: 1px solid #303030; }
.product-menu a:first-child { border-radius: 5px 5px 0 0; }
.product-menu a:last-child { border-radius: 0 0 5px 5px; }
.product-menu a img { width: 54px; height: 38px; object-fit: cover; background: #111; flex-shrink: 0; }
.product-menu a > span:not(.menu-arrow) { flex: 1; }
.product-menu a:hover { background: #272727; color: var(--orange-hover); }
.product-menu .menu-arrow { margin-left: auto; font-size: 20px; color: #898989; }
.doc-article { min-width: 0; }
.breadcrumbs { font-size: 13px; color: #a09b90; margin: 0 0 19px; }
.breadcrumbs span { color: #d9a75c; }
.doc-article h1 { font-size: 33px; line-height: 1.3; letter-spacing: -1px; font-weight: 700; margin: 0 0 23px; }
.prose { font-size: 16px; line-height: 1.8; color: #c1beb6; overflow-wrap: anywhere; }
.prose p { margin: 0 0 19px; }
.prose h2 { font-size: 24px; color: var(--text); font-weight: 600; letter-spacing: -.4px; margin: 34px 0 14px; }
.prose h3 { font-size: 19px; color: var(--text); margin-top: 26px; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-hover); }
.prose strong { font-weight: 600; color: #f0eae0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { padding-left: 4px; margin: 7px 0; }
.prose figure { margin: 24px 0; }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; display: block; }
.prose figcaption { font-size: 13px; color: #8e8c84; margin-top: 8px; }
.prose pre, .prose code { font-family: Consolas, monospace; background: #242421; border-radius: 4px; color: #ded4c2; }
.prose code { padding: 2px 5px; }
.prose pre { padding: 15px; overflow: auto; }
.prose blockquote { margin: 24px 0; border-left: 2px solid #c9903b; background: #f3920008; padding: 13px 17px; color: #d6c6a9; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: left; }
/* FAQ rows share a border; questions remain distinct from the answer text. */
.prose details { border: 1px solid var(--line); border-radius: 6px; background: #1b1b1b; padding: 0 20px 0 40px; }
.prose details:has(+ details) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.prose details + details { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.prose details > summary { position: relative; margin: 0 -20px 0 -40px; padding: 16px 20px 16px 40px; list-style: none; cursor: pointer; font-weight: 700; line-height: 1.6; color: var(--text); border-radius: inherit; }
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::before { content: ''; position: absolute; left: 18px; top: 25px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); color: var(--muted); }
.prose details[open] > summary::before { transform: rotate(45deg); }
.prose details > summary:hover { color: var(--orange-hover); background: #ffffff03; }
.prose details > summary:focus-visible { outline-offset: -3px; }
.prose details[open] { padding-bottom: 1px; }
.prose details[open] > :last-child:not(summary) { margin-bottom: 19px; }
.image-zoom { padding: 0; border: 0; background: transparent; display: block; max-width: 100%; cursor: zoom-in; }
/* Use spare space to the right without widening the article's reading column. */
.toc { position: sticky; top: calc(var(--header-height) + 25px); width: clamp(155px, calc(155px + (100vw - var(--docs-width)) / 2), 300px); min-width: 0; max-height: calc(100dvh - var(--header-height) - 50px); overflow-y: auto; overflow-x: hidden; overflow-wrap: anywhere; padding-top: 7px; font-size: 14px; line-height: 1.65; color: #939087; }
.toc strong { font-weight: 600; color: #c4bfb5; font-size: 14px; display: block; margin-bottom: 13px; }
.toc a { display: block; padding: 7px 0 7px 13px; border-left: 1px solid var(--line); }
.pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 38px; }
.pager { border: 1px solid var(--line); padding: 16px; border-radius: 6px; display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; color: #e2d9c8; min-width: 0; }
.pager:hover { border-color: #85704d; }
.pager.previous { grid-column: 1; text-align: left; }
.pager.next { grid-column: 2; text-align: right; justify-content: flex-end; }
.pager:only-child { grid-column: 1 / -1; }
.pager small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.pager > span { min-width: 0; overflow-wrap: anywhere; }
.mobile-menu { display: none; }

/* Legal and contact pages use the documentation reading width. */
.legal { max-width: 700px; padding: 42px 0 65px; }
.legal h1 { font-size: 34px; letter-spacing: -1px; margin: 0 0 24px; }
.legal h2 { margin-top: 30px; }
.contact-form { margin-top: 28px; }
.contact-form label { display: block; color: var(--text); margin: 18px 0 7px; font-weight: 600; }
.contact-form label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; }
.contact-form textarea { resize: vertical; min-height: 180px; }
.contact-form input:hover, .contact-form textarea:hover { border-color: #696050; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.contact-actions a { font-size: 13px; color: var(--muted); }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#contact-status { margin: 18px 0 0; font-size: 14px; color: var(--orange-hover); }
#contact-status:empty { display: none; }

/* Search, store selection and enlarged documentation images. */
dialog { border: 1px solid #4a473f; border-radius: 10px; background: var(--surface); color: var(--text); padding: 25px; width: min(640px, calc(100% - 32px)); max-height: 85vh; box-shadow: 0 30px 150px #000a; }
dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dialog-head h2 { font-size: 20px; margin: 0; }
.close { border: 0; background: none; color: var(--muted); font-size: 26px; padding: 2px 8px; }
.close:hover { color: var(--orange-hover); }
.search-input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 13px; color: var(--text); }
.search-results { margin-top: 16px; max-height: 55vh; overflow: auto; font-size: 14px; color: var(--muted); }
.search-results a { display: block; padding: 14px; border-bottom: 1px solid var(--line); }
.search-results a:hover { background: #f392000b; }
.search-results strong { font-size: 16px; color: var(--orange); }
.search-results p, .search-results small { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; margin: 6px 0; }
.store-options a { display: block; padding: 18px 12px; border-top: 1px solid var(--line); }
.image-dialog { width: min(1400px, 95vw); }
.image-dialog img { display: block; width: 100%; height: auto; }
.image-dialog .close { display: block; margin-left: auto; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 20px; }
  .brand { font-size: 21px; }
  .nav { gap: 18px; }
  .search-open { font-size: 13px; gap: 8px; }
  .search-open kbd { display: none; }
  .docs-shell { grid-template-columns: 205px minmax(0, 640px); gap: 35px; max-width: 960px; }
  .toc { display: none; }
  .hero h1 { font-size: 43px; }
  .cards { gap: 17px; }
  .product-content { padding: 17px; }
  .product h2, .product h3 { font-size: 17px; }
}
@media (max-width: 760px) {
  .container, .docs-shell, .header-inner { width: calc(100% - 36px); }
  .header-inner { position: relative; display: flex; flex-wrap: wrap; min-height: 78px; gap: 15px; padding: 15px 0; }
  .docs-dropdown { position: static; }
  .docs-dropdown .header-docs-menu { right: 0; top: 100%; max-width: 100%; }
  .nav { margin-left: auto; gap: 18px; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-search:empty { display: none; }
  .search-open { max-width: none; font-size: 14px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 32px 0; min-height: 0; }
  .hero-copy { max-width: 450px; }
  .hero h1 { font-size: 42px; }
  .hero-art { max-width: 530px; width: 100%; margin: auto; }
  .cards { grid-template-columns: 1fr; }
  .product h2, .product h3 { font-size: 21px; }
  .catalog { padding-top: 30px; }
  .section-heading h2 { font-size: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .docs-shell { display: block; padding-top: 25px; }
  .sidebar { display: none; position: static; margin-bottom: 30px; }
  .sidebar.open { display: block; }
  .mobile-menu { display: flex; justify-content: space-between; width: 100%; margin-bottom: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; font-size: 14px; }
  .doc-article h1 { font-size: 29px; }
  .pagination { gap: 10px; }
  .pager { padding: 12px; gap: 8px; font-size: 14px; }
  .legal { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

