/* QualityMax documentation branding: v3.2 violet/indigo tokens and IBM Plex.
   Reference: docs.qualitymax.io and docs-site/src/styles/qualitymax.css. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("ibm-plex-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #08070c;
  --bg-elev: #0f0e17;
  --bg-raised: #1d1c33;
  --border: #222030;
  --fg: #ffffff;
  --fg-secondary: rgba(255, 255, 255, .74);
  --fg-muted: #a3a1bd;
  --accent: #726aff;
  --accent-deep: #4e46da;
  --accent-text: #e0dfff;
  --header-bg: rgba(8, 7, 12, .95);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg-secondary); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-underline-offset: .2em; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: .6rem 1rem;
  background: var(--bg-raised); z-index: 10; }
.skip:focus { top: 1rem; }
.header { position: sticky; top: 0; z-index: 5; background: var(--header-bg);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1376px; margin: 0 auto; min-height: 76px; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.brand-link { display: inline-flex; flex-shrink: 0; }
.brand-logo { width: 186px; height: 28px; object-fit: contain; }
.brand-logo-light { display: none; }
.brand-label { border-left: 1px solid var(--border); padding-left: 1.25rem;
  color: var(--fg-muted); font-size: .875rem; white-space: nowrap; }
.header-links { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; }
.header-links a { color: var(--fg-secondary); text-decoration: none; }
.header-links a:hover { color: var(--accent-text); }
.header-links .download { color: var(--accent-text); background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: 6px; padding: .45rem .8rem; }
.layout { max-width: 1376px; margin: 0 auto; display: grid;
  grid-template-columns: 264px minmax(0, 1fr); gap: 3.5rem; padding: 0 2rem; }
.mobile-toc { display: none; }
aside { align-self: start; position: sticky; top: 76px; max-height: calc(100vh - 76px);
  overflow-y: auto; padding: 2.5rem 1.5rem 2.5rem 0; border-right: 1px solid var(--border);
  font-size: .875rem; }
.nav-label { color: var(--fg); font-weight: 600; display: block; margin-bottom: 1rem; }
aside ul { list-style: none; padding: 0; margin: 0; }
aside li { margin: .3rem 0; line-height: 1.5; }
aside a { display: block; padding: .45rem .6rem; margin-left: -.6rem; border-radius: 6px;
  color: var(--fg-muted); text-decoration: none; }
aside a:hover { color: var(--accent-text); background: var(--bg-raised); }
main { padding: 2.5rem 0 4rem; min-width: 0; max-width: 80ch; overflow-wrap: anywhere; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .65rem; color: var(--fg-muted);
  font-size: .8125rem; margin-bottom: 1.25rem; }
.breadcrumb span:last-child { color: var(--accent-text); }
h1, h2 { color: var(--fg); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
h1 { margin: 0 0 1.5rem; font-size: clamp(2rem, 3.5vw, 2.75rem); max-width: 24ch; }
h2 { margin: 3rem 0 1.1rem; padding-top: .4rem; font-size: 1.55rem; scroll-margin-top: 6.5rem; }
p { margin: 0 0 1.2rem; }
strong { color: var(--fg); font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.5rem 0 2rem; }
th, td { text-align: left; vertical-align: top; padding: .8rem .85rem; border: 1px solid var(--border); }
th { background: var(--bg-raised); color: var(--fg); font-weight: 600; }
td { background: var(--bg-elev); }
code { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .84em;
  color: var(--accent-text); background: var(--bg-raised); padding: .15rem .35rem; border-radius: 4px; }
li { margin: .5rem 0; }
footer { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.5rem;
  font-size: .875rem; color: var(--fg-muted); display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --bg: #fbfbfe; --bg-elev: #f5f5fa; --bg-raised: #e0dfff;
    --border: #e4e3ec; --fg: #14131c; --fg-secondary: #45445a; --fg-muted: #6e6d90;
    --accent: #4e46da; --accent-text: #302b8c; --header-bg: rgba(251, 251, 254, .95); }
  .brand-logo-dark { display: none; }
  .brand-logo-light { display: block; }
}
@media (max-width: 1050px) {
  .brand-label { display: none; }
  .layout { grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 800px) {
  .header-inner { padding: 1rem 1.25rem; }
  .layout { display: block; padding: 0 1.25rem; }
  aside { display: none; }
  .mobile-toc { display: block; border-bottom: 1px solid var(--border); padding: 1rem 0;
    font-size: .875rem; }
  .mobile-toc summary { color: var(--accent-text); cursor: pointer; }
  .mobile-toc ul { padding-left: 1.25rem; }
  .mobile-toc li { margin: .6rem 0; }
  main { padding-top: 2rem; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 68px; gap: .75rem; }
  .brand-logo { width: 150px; height: auto; }
  .header-links { gap: 1rem; font-size: .8125rem; }
  .header-links .product-link, .header-links .download { display: none; }
  th, td { padding: .55rem; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --bg-elev: #fff; --bg-raised: #f5f5fa;
    --border: #e4e3ec; --fg: #14131c; --fg-secondary: #45445a; --fg-muted: #6e6d90; --accent-text: #302b8c; }
  .header, aside, .mobile-toc, .skip, footer, .breadcrumb { display: none; }
  .layout { display: block; padding: 0; } main { padding: 0; max-width: none; }
  h2 { break-after: avoid; } tr { break-inside: avoid; }
}
