/* J&J light/dark theme. Light is the existing site look. */
.hdr-tools{display:flex;align-items:center;gap:8px;flex:none}
.theme-toggle{flex:none;width:40px;height:40px;padding:0;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;line-height:0}
.theme-toggle:hover,.theme-toggle:focus-visible{border-color:var(--red);color:var(--red);outline:none}
.theme-toggle svg{width:20px;height:20px;display:block}.theme-toggle[aria-pressed="false"] .theme-icon-sun,.theme-toggle[aria-pressed="true"] .theme-icon-moon{display:none!important}
.theme-toggle .theme-icon-sun,.theme-toggle .theme-icon-moon{pointer-events:none}
html[data-theme="dark"] .brand img{max-width:calc(100vw - 180px)}

html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#f2f2f0;
  --ink2:#e6e6e3;
  --mute:#b4b6bb;
  --bg:#121212;
  --soft:#1c1c1c;
  --line:#333333;
  --red-d:#ff5c5c;
}
html[data-theme="dark"] header.site{background:rgba(18,18,18,.97);border-bottom-color:var(--line)}
html[data-theme="dark"] .skip:focus{background:var(--soft);color:var(--ink)}
html[data-theme="dark"] .card,
html[data-theme="dark"] .fam-card,
html[data-theme="dark"] .chips li,
html[data-theme="dark"] .faq details,
html[data-theme="dark"] .kbd,
html[data-theme="dark"] .fs-group,
html[data-theme="dark"] .ind-card{background:var(--soft);color:var(--ink);border-color:var(--line);box-shadow:none}
html[data-theme="dark"] .fam-card{color:var(--ink)}
html[data-theme="dark"] .fam-card span,
html[data-theme="dark"] .ind-sub{color:var(--mute)}
html[data-theme="dark"] .chips li.home,
html[data-theme="dark"] .fam-card .dot,
html[data-theme="dark"] .docs-nav a[aria-current=page]{background:#f2f2f0;color:#111}
html[data-theme="dark"] .btn-line{border-color:var(--ink);color:var(--ink)}
html[data-theme="dark"] .btn-line:hover{background:var(--ink);color:#111}
html[data-theme="dark"] form.quote input,
html[data-theme="dark"] form.quote select,
html[data-theme="dark"] form.quote textarea,
html[data-theme="dark"] .su-form input,
html[data-theme="dark"] #sn-form input:not([type=radio]),
html[data-theme="dark"] #sn-form textarea{background:#1a1a1a;color:var(--ink);border-color:#4a4a4a}
html[data-theme="dark"] .form-msg.ok,
html[data-theme="dark"] .su-msg.ok{color:#5ad68a}
html[data-theme="dark"] .docs-nav{background:var(--soft);border-color:var(--line)}
html[data-theme="dark"] .docs-nav a{color:var(--ink)}
html[data-theme="dark"] .docs-nav a:hover{background:#111;color:var(--red-l)}
html[data-theme="dark"] .docs-body code{background:#2a2a2a;border-color:var(--line);color:#f2f2f0}
html[data-theme="dark"] .docs-body th{background:var(--soft);color:var(--mute)}
html[data-theme="dark"] .su-opt,
html[data-theme="dark"] .su-consent{color:var(--mute)}
html[data-theme="dark"] [style*="color:#6b6f75"]{color:var(--mute)!important}
