@layer components {
  /* Three large choices side by side, at every width: an icon over its words, the chosen one filled. */
  .theme-switcher {
    display: grid;
    gap: var(--inline-space);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-switcher__btn {
    --btn-border-radius: var(--radius-lg);
    --btn-gap: 0.4em;
    --btn-padding: 0.75em 0.5em;
    --icon-size: 1.5em;

    flex-direction: column;
    font-size: var(--text-control);
    min-block-size: 4rem;
    text-align: center;

    > span {
      white-space: normal;
    }

    &:has(input:checked) {
      --btn-background: var(--color-link);
      --btn-border-color: var(--color-link);
      --btn-color: var(--color-ink-inverted);
    }
  }
}
