/* Appearance (System / Light / Dark) inside the account menu: ONE slim row. The word on the left in the menu's
   muted text style, three icon-only segments on the right (monitor, sun, moon), about 28px tall and 30px wide
   each, a hairline outline, the selected one a slightly lighter fill with a full-strength icon. It is a real
   radio group (the legend names it, each option is named by visually hidden text and a tooltip), so arrow keys
   move within it and focus is visible. The radios are transparent but fill their segment: the segment is the
   pointer target. 28x30px is below the 44px of a primary control on purpose: this is a dense secondary control
   inside a menu, with 0.4rem of air around it. The colours come from the menu's own variables, so the same
   row reads on the light menu and on the dark bar menu (member_bar.css). Not a primary action: no mustard. */
.member-nav__appearance-group {
  margin: 0;
  padding: 0.15rem 0.7rem;
}

.member-nav__appearance {
  display: flow-root;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.member-nav__appearance legend {
  float: left;
  padding: 0;
  color: var(--menu-muted);
  font-size: inherit;
  font-weight: 500;
  line-height: 1.75rem;
}

.member-nav__appearance-options {
  display: flex;
  float: right;
  overflow: hidden;
  border: 1px solid var(--menu-edge);
  border-radius: 0.4rem;
}

.member-nav__appearance-option {
  position: relative;
  display: flex;
  width: 1.875rem;
  height: 1.75rem;
}

.member-nav__appearance-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.member-nav__appearance-icon {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  color: var(--menu-muted);
}

.member-nav__appearance-icon .icon {
  width: 1rem;
  height: 1rem;
  vertical-align: baseline;
}

.member-nav__appearance-option + .member-nav__appearance-option {
  border-left: 1px solid var(--menu-edge);
}

.member-nav__appearance-option:hover .member-nav__appearance-icon {
  color: var(--menu-ink);
}

.member-nav__appearance-option input:checked + .member-nav__appearance-icon {
  color: var(--menu-ink);
  background: var(--menu-selected);
}

.member-nav__appearance-option input:focus-visible + .member-nav__appearance-icon {
  outline: 2px solid var(--menu-focus);
  outline-offset: -2px;
}
