/* Shared brand, navigation, footer and inner-page palette. Load after page CSS. */
:root, body:not(.home-mode) {
  --ink: #172235; --muted: #68768a; --paper: #fbfcfe; --surface: #fff;
  --surface-subtle: #f4f7fb; --line: #e2e8f1; --accent: #426aa8;
  --accent-soft: #eef4ff; --focus: #6495ed; color-scheme: light;
}
html[data-theme="dark"], body.inner-dark {
  --ink: #edf2fa; --muted: #a3afc2; --paper: #0b0e14; --surface: #121925;
  --surface-subtle: #182133; --line: #283244; --accent: #a4c8ff;
  --accent-soft: #192a43; --focus: #8bb7ff; color-scheme: dark;
}
body.home-mode { color-scheme: dark; }
body:not(.home-mode) { background: var(--paper); color: var(--ink); }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
[data-site-header] { position: sticky; top: 0; z-index: 20; flex: 0 0 auto; }
[data-site-header] > .site-header { position: static; }
[data-site-header] > nav { max-width: 1216px; margin: auto; padding: 16px 28px; line-height: 2; }
[data-site-footer] > footer:not(.site-footer) { margin-top: 40px; padding: 24px 28px; border-top: 1px solid var(--line); font-size: 12px; line-height: 2; }
[data-site-footer] > footer:not(.site-footer) img { vertical-align: middle; }
html { scroll-padding-top: var(--site-header-offset,140px); }
.header-inner { max-width: 1216px; min-height: 84px; margin: auto; padding: 0 28px; display: flex; align-items: center; gap: 38px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 23px; line-height: 1.2; text-decoration: none; }
.brand-logo { display: block; width: auto; height: .96em; flex-shrink: 0; }
body.home-mode .brand-logo, body.inner-dark .brand-logo { filter: invert(1); }
.main-nav { display: flex; flex: 1; gap: 27px; font-size: 14px; }
.site-header a, .site-footer a { text-decoration: none; }
.main-nav a, .header-actions > a, .header-support > a { white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 23px; font-size: 14px; }
.header-actions > a, .header-support > a { color: inherit; }
.header-actions .login-link { padding: 8px 17px; border: 1px solid var(--line); border-radius: 8px; }
.header-support { position: relative; }
.header-support > a { display: inline-flex; align-items: center; min-height: 44px; }
.header-support-code {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px #050b1829;
}
.header-support-code img { display: block; width: 160px; height: auto; }
.header-support:not([data-code-dismissed]) > a:focus-visible + .header-support-code { display: block; }
@media (hover: hover) {
  .header-support:not([data-code-dismissed]):hover > .header-support-code { display: block; }
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 9px; margin-left: auto; flex: 0 0 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }
.theme-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.theme-toggle:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
body:not(.home-mode):not(.inner-dark) .site-header { background: #ffffffee; border-color: var(--line); }
body.inner-dark .site-header { background: #0b0e14ee; border-color: var(--line); }
body:not(.home-mode) .main-nav, body:not(.home-mode) .header-actions { color: var(--muted); }
body:not(.home-mode) .site-header a:hover, body:not(.home-mode) .site-header a.active,
body:not(.home-mode) .site-header a[aria-current] { color: var(--accent); }
body:not(.home-mode) .login-link { background: var(--surface); color: var(--ink); border-color: var(--line); }
.site-footer { margin-top: 64px; padding: 40px 0 22px; border-top: 1px solid var(--line); }
.site-footer .container { max-width: 1216px; margin: auto; padding: 0 28px; }
.footer-main { display: flex; justify-content: space-between; gap: 35px; }
.footer-main p { font-size: 13px; margin: 13px 0 0; }
.footer-links { display: flex; gap: 55px; font-size: 13px; }
.footer-links strong { display: block; font-weight: 500; margin-bottom: 12px; }
.footer-links button, .footer-links a { display: block; color: var(--muted); margin-bottom: 9px; border: 0; background: none; padding: 0; text-align: left; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
body:not(.home-mode):not(.inner-dark) .site-footer { background: #f7f9fc; color: var(--muted); border-color: var(--line); }
body.inner-dark .site-footer { background: #080b11; color: var(--muted); border-color: var(--line); }
body:not(.home-mode) .site-footer .footer-bottom { color: var(--muted); border-color: var(--line); }
.filing-links a { color: inherit; }
.filing-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 12px 0 4px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.police-filing { display: inline-flex; align-items: center; gap: 5px; }
.police-filing img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 10px; color: #172235; background: #fff; border-radius: 5px; }
.skip-link:focus { top: 12px; }
#products > .card { scroll-margin-top: 12px; }
#products h2[tabindex="-1"]:focus { outline: 2px solid var(--focus); outline-offset: 5px; width: fit-content; max-width: 100%; }
body[data-site-page] .theme-toggle { width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; }
body[data-site-page] .header-actions { flex-wrap: wrap; justify-content: flex-end; }
body[data-site-page] .main-nav a, body[data-site-page] .header-actions > a { min-height: 44px; display: inline-flex; align-items: center; }
html.site-notice-open { overflow: hidden; }
dialog.site-notice { position: fixed; inset: 0; height: fit-content; box-sizing: border-box; width: min(420px,calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #050b1840; }
dialog.site-notice::backdrop { background: #050b1873; backdrop-filter: blur(4px); }
.site-notice-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-notice-brand { display: inline-flex; font-size: 23px; }
.site-notice-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
.site-notice-close:hover { background: var(--surface-subtle); color: var(--ink); filter: none; }
.site-notice-content { padding: 20px 0 30px; }
.site-notice-label { display: inline-block; padding: 5px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; line-height: 1.6; }
.site-notice h2 { margin: 16px 0 0; color: var(--ink); font-size: 26px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.site-notice-dismiss { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 9px; background: var(--ink); color: var(--surface); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.site-notice-dismiss:hover { opacity: .9; filter: none; }
.site-notice button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
body.home-mode .site-notice { --surface-subtle: #182133; --accent-soft: #152d38; }
body.home-mode .site-notice-dismiss { border-color: transparent; background: linear-gradient(105deg,#7de4e4,#86b7ff); color: #071018; }
body.home-mode .site-notice::backdrop, body.inner-dark .site-notice::backdrop { background: #030711b3; }
@media (max-width: 1000px) {
  .main-nav { gap: 16px; } .header-inner { gap: 25px; } .header-actions { gap: 15px; }
}
@media (max-width: 760px) {
  .header-inner { height: auto; min-height: 75px; padding: 17px 20px 13px; flex-wrap: wrap; gap: 14px 22px; }
  .logo { font-size: 20px; }
  .header-actions { margin-left: auto; gap: 13px; font-size: 13px; }
  .header-actions .login-link { padding: 7px 12px; }
  .main-nav { order: 3; width: 100%; flex-basis: 100%; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 7px; }
  .site-footer { margin-top: 38px; padding-top: 30px; }
  .site-footer .container { padding: 0 20px; }
  .footer-main { display: block; }
  .footer-links { gap: 50px; margin-top: 27px; }
  .footer-bottom { display: block; font-size: 12px; }
  .footer-bottom span { display: block; margin-top: 7px; }
}
@media (max-width: 480px) {
  .header-inner { column-gap: 10px; }
  .header-actions { flex: 1; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; font-size: 12px; }
  .header-actions .login-link { padding: 7px 9px; }
}
