/* Visitor preference wins over profile colors without changing the profile. */
html[data-theme="light"] {
  color-scheme: light;
  --paper: #ffffff !important;
  --paper-2: #fbfbf8 !important;
  --surface: #ffffff !important;
  --ink: #171717 !important;
  --ink-soft: #5c564e !important;
  --ink-mute: #797369 !important;
  --rule: #ece7df !important;
  --rule-soft: #f5f2ec !important;
  --staff-line: rgba(17,19,24,.045) !important;
  --btn: #0f1216 !important;
  --btn-hover: #222834 !important;
  --terra: #285ea8 !important;
  --terra-deep: #1e54c4 !important;
  --terra-wash: #eaf1fe !important;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101e38 !important;
  --paper-2: #162640 !important;
  --surface: #1b2d49 !important;
  --ink: #f7f8fb !important;
  --ink-soft: #dce7f4 !important;
  --ink-mute: #b8c9dd !important;
  --rule: rgba(255,255,255,.2) !important;
  --rule-soft: rgba(255,255,255,.1) !important;
  --staff-line: rgba(255,255,255,.05) !important;
  --btn: #b9d2f2 !important;
  --btn-hover: #dce7f4 !important;
  --terra: #b9d2f2 !important;
  --terra-deep: #e1ecf9 !important;
  --terra-wash: rgba(255,255,255,.12) !important;
}
html[data-theme] .published-profile-title,
html[data-theme] .hero__descriptor { color: var(--ink) !important; }
html[data-theme="light"] .btn--solid { color: #ffffff !important; }
html[data-theme="dark"] .btn--solid { color: #101e38 !important; }
html[data-theme] .lang__btn { color: var(--ink-mute); }
html[data-theme] .lang__btn:hover,
html[data-theme] .lang__btn.is-active { color: var(--ink); }
.nav__theme {
  order: initial; display: inline-grid; place-items: center; flex: 0 0 44px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--rule);
  border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer;
}
.nav__theme[hidden] { display: none; }
.nav__theme:hover { background: var(--terra-wash); }
.nav__theme:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.nav__theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav__theme-sun { display: none; }
html[data-theme="dark"] .nav__theme-moon { display: none; }
html[data-theme="dark"] .nav__theme-sun { display: block; }
