/* Runtime re-skin for the product manual (/docs). Injected by DocsSkinMiddleware alongside the
   stock MkDocs Material page. Two jobs: (1) override Material's font/colour variables with the
   site's brand, and (2) style the real site header/footer we inject around the page. Everything
   that styles our own chrome is scoped under .nbchrome / .nbfoot so it cannot touch Material. */

:root {
  --navy: #0C2740; --ink: #132433; --ink-2: #4C5D6B; --ink-3: #7C8B98;
  --paper: #FFFFFF; --panel-2: #F3F6FA; --line: #DBE3EA; --hair: #EAF0F5;
  --blue: #0A6EBD; --blue-d: #075394; --blue-wash: #E8F2FB;
  --rule: 1px solid var(--line);
  --font-display: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-ui: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --radius-sm: 6px;
}

/* --- Re-skin Material to the brand (win over the palette stylesheet with !important) --- */
:root,
[data-md-color-scheme="default"],
[data-md-color-primary] {
  --md-text-font-family: 'Figtree', system-ui, -apple-system, sans-serif !important;
  --md-code-font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace !important;
  --md-primary-fg-color: #0C2740 !important;
  --md-primary-fg-color--light: #1d456b !important;
  --md-primary-fg-color--dark: #081b2e !important;
  --md-accent-fg-color: #0A6EBD !important;
  --md-typeset-a-color: #0A6EBD !important;
}

/* Material's own header becomes a slim navy docs toolbar sitting under our site nav. Its white
   icons and search field keep working because the header stays a dark colour. */
.md-header { box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); }
.md-header__button.md-logo { display: none; }     /* our wordmark is in the site nav above */
.md-footer { display: none; }                      /* replaced by the site footer we inject */
[data-md-component="palette"] { display: none !important; } /* site is light-only; no dark toggle */

/* Anchor jumps shouldn't hide under the sticky Material toolbar. */
html { scroll-padding-top: 3.2rem; }

/* ===================== injected site chrome ===================== */
.nbchrome-skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 99; }
.nbchrome-skip:focus { left: 8px; top: 8px; }

.nbchrome .util { background: var(--navy); color: #B8C6D2; }
.nbchrome .util .in { max-width: 1200px; margin: 0 auto; padding: 7px 40px; display: flex; gap: 24px; justify-content: flex-end; font-size: 12.5px; font-family: var(--font-ui); }
.nbchrome .util a { color: #C4D0DB; text-decoration: none; }
.nbchrome .util a:hover { color: #fff; }

.nbchrome .mainnav { background: var(--paper); border-bottom: var(--rule); }
.nbchrome .mainnav .in { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 32px; height: 66px; }
.nbchrome .brand { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--navy); text-decoration: none; }
.nbchrome .brand span { color: var(--blue); }
.nbchrome .mainnav nav { display: flex; gap: 24px; }
.nbchrome .mainnav nav a { font-family: var(--font-ui); font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nbchrome .mainnav nav a:hover { color: var(--blue); }
.nbchrome .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nbchrome .docslink { font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--blue); padding: 6px 0; }
.nbchrome .pill { display: inline-block; font-family: var(--font-ui); font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 22px; border: 1.5px solid var(--blue); color: var(--blue); text-decoration: none; background: transparent; }
.nbchrome .pill.solid { background: var(--blue); color: #fff; }
.nbchrome .pill.solid:hover { background: var(--blue-d); border-color: var(--blue-d); }

.nbfoot { background: var(--paper); border-top: var(--rule); margin-top: 0; font-family: var(--font-ui); }
.nbfoot .in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 48px 40px; }
.nbfoot h4 { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.nbfoot a { display: block; font-family: var(--font-ui); font-size: 14px; text-decoration: none; color: var(--ink); margin-bottom: 9px; }
.nbfoot a:hover { color: var(--blue); }
.nbfoot .fbrand { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.nbfoot .fbrand span { color: var(--blue); }
.nbfoot p { font-size: 13.5px; color: var(--ink-2); max-width: 32ch; margin: 0; }
.nbfoot .legal { border-top: 1px solid var(--hair); font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-3); padding: 16px 40px; max-width: 1200px; margin: 0 auto; }

@media (max-width: 900px) {
  .nbchrome .mainnav .in { padding: 0 22px; gap: 18px; }
  .nbchrome .mainnav nav { display: none; }
  .nbchrome .util .in { padding: 7px 22px; gap: 16px; }
  .nbfoot .in, .nbfoot .legal { padding-left: 22px; padding-right: 22px; grid-template-columns: 1fr; }
}
