/* Appearance follows the device until a visitor chooses Light or Dark. */
:root { color-scheme: light; }
.theme-logo--dark { display: none; }
@media screen {
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-paper: #071c2c;
  --c-paper-2: #0b2437;
  --c-white: #102c40;
  --c-deep: #eaf3f9;
  --c-deeper: #041320;
  --c-ink: #dde8ef;
  --c-ink-2: #bdcfdd;
  --c-muted: #a1b7c8;
  --c-line: #29485c;
  --c-line-2: #527286;
  --c-teal: #70d1df;
  --c-teal-600: #9be0e9;
  --c-teal-100: #143d4c;
  --c-mint: #62d9c4;
  --c-mint-100: #113d3b;
  --c-gold: #dfb85d;
  --c-gold-700: #efcf88;
  --co-longwave-media: #e3bd6b;
  --co-longwave-media-soft: #3c3320;
  --co-longevity-health-app: #f3a1ac;
  --co-longevity-health-app-soft: #482d3c;
  --co-clinical-intelligence: #6edac5;
  --co-clinical-intelligence-soft: #123f3f;
  --co-emporio-health: #a4c3ff;
  --co-emporio-health-soft: #233b5c;
  --sh-1: 0 4px 16px -8px rgb(0 0 0 / .35);
  --sh-2: 0 16px 40px -16px rgb(0 0 0 / .45);
  --sh-3: 0 24px 64px -20px rgb(0 0 0 / .5);
}

.theme-logo--dark { display: none; }
:root[data-theme="dark"] .theme-logo--light { display: none; }
:root[data-theme="dark"] .theme-logo--dark { display: block; }
.brand { flex-shrink: 0; }
.brand img { height: auto; }
.drawer__brand { display: block; width: 128px; }
.appearance { display: inline-flex; flex-shrink: 0; }
.no-js .appearance { display: none; }
.appearance select {
  min-height: 44px;
  padding: .5rem .55rem;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--c-deep);
  font: 500 .8125rem var(--f-sans);
  cursor: pointer;
}
.appearance select:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 3px; }
@media (max-width: 24em) {
  .site-header__inner { gap: .5rem; }
  .site-header__actions { gap: .5rem; }
  .brand img { width: 130px; }
}

/* Keep light lettering on intentional dark panels as heading tokens change. */
:root[data-theme="dark"] :is(.utility, .on-dark, .skip-link, .event__date, .datacard, .on-dark .rail__dot, .journey__step img) { background-color: #0b3048; }
:root[data-theme="dark"] .door a:hover { background: #17455f; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: #245269; border-color: var(--c-teal); }
:root[data-theme="dark"] :is(.ticker-card, .cta-band) { background: linear-gradient(135deg, #103b54, #102b50); }
:root[data-theme="dark"] .leader__photo--mono { background: linear-gradient(160deg, #0b3048, #0b2a5b); }
:root[data-theme="dark"] .btn--primary { --btn-fg: #071c2c; }
:root[data-theme="dark"] .btn--light { --btn-fg: #082f49; }
:root[data-theme="dark"] .doc-link:hover { color: #071c2c; }
:root[data-theme="dark"] .on-dark .range__you { border-color: #0b3048; }

:root[data-theme="dark"] .site-header { background: rgb(7 28 44 / .9); }
:root[data-theme="dark"] .site-header.is-scrolled { background: rgb(7 28 44 / .97); }
:root[data-theme="dark"] :is(.mega__co:hover, .menu-btn, .drawer__co, .connections__core,
  .flow__link, .sib, .chip, .event__card, .job__link:hover, .table-wrap, .segment label,
  .org__parent, .ir-fact, .contact-card, .co-hero__parent, .comp__card, .rx,
  .journey__step, .xmap__tab, .xmap__panel) { background-color: var(--c-white); }
:root[data-theme="dark"] .segment input:checked + label { background: var(--c-teal-100); }
:root[data-theme="dark"] .xmap__tab[aria-selected="true"] { background: var(--co-soft); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background-color: #245269; }
:root[data-theme="dark"] .empty { background: rgb(16 44 64 / .65); }
:root[data-theme="dark"] :is(.frame__cap, .hero__chip, .fw-label a) { background: rgb(16 44 64 / .96); }
:root[data-theme="dark"] .fw-node__bg { fill: #102c40; }
:root[data-theme="dark"] .connections__core { box-shadow: 0 0 0 10px rgb(16 44 64 / .65), var(--sh-2); }
:root[data-theme="dark"] .matrix__self { background: repeating-linear-gradient(45deg, var(--c-paper), var(--c-paper) 6px, var(--c-white) 6px, var(--c-white) 12px); }
:root[data-theme="dark"] .atmos::after {
  background-image: linear-gradient(rgb(112 209 223 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(112 209 223 / .045) 1px, transparent 1px);
}
:root[data-theme="dark"] .co-hero { background: linear-gradient(180deg, var(--c-paper), var(--c-paper-2)); }
:root[data-theme="dark"] .co-hero__band { background: rgb(16 44 64 / .7); }
:root[data-theme="dark"] .ir-nav { background: rgb(7 28 44 / .96); }
:root[data-theme="dark"] .ir-nav a:is(:hover, .is-active) { background: #245269; color: #fff; }
:root[data-theme="dark"] :is(.field input, .field select, .field textarea) { background: #071c2c; }
:root[data-theme="dark"] :is(.field input, .field textarea)::placeholder { color: #92a9ba; opacity: 1; }
:root[data-theme="dark"] .launch-banner { background: #103539; border-color: #27565b; color: #c4e1e2; }
:root[data-theme="dark"] .launch-banner strong { color: #e7f4f5; }
:root[data-theme="dark"] .launch-banner a { color: #8fe2df; }
:root[data-theme="dark"] :is(.launch-visual-note, .planned-visual small) { color: var(--c-muted); }
:root[data-theme="dark"] :is(.planned-visual, .launch-updates) { background: #0b2838; border-color: var(--c-line); }
:root[data-theme="dark"] :is(.updates-status.is-ok, .form__status.is-ok) { background: #153d36; color: #acf0d3; }
:root[data-theme="dark"] :is(.updates-status.is-err, .form__status.is-err) { background: #472c39; color: #ffb6c3; }

}
