/* The desktop button and mobile switch share the same moon artwork. */
html[data-theme="dark"] #top #nav #themeBtn[aria-pressed] > .solo-sun,
html[data-theme="dark"] #top #nav #themeBtn[aria-pressed] > .mono-icons > .sun {
  display: none;
}

html[data-theme="dark"] #top #nav #themeBtn[aria-pressed] > .mono-icons {
  display: grid;
  place-items: center;
}

html[data-theme="dark"] #top #nav #themeBtn[aria-pressed] > .mono-icons > .moon {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

/* Match the portfolio's icon button in the case reader's trailing slot. */
#case-reader .case-theme-toggle {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
#case-reader .case-theme-toggle:is(:hover, :focus-visible) {
  background: var(--surface);
}
#case-reader .case-theme-toggle svg { width: 20px; height: 20px; }
html[data-theme="light"] .case-theme-toggle .moon,
html[data-theme="dark"] .case-theme-toggle .solo-sun { display: none; }
