/* Theme controls remain compact in the existing homepage navigation. */
.story-home .theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  background: #ffffff05;
  flex: none;
}
.story-home .theme-choice {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}
.story-home .theme-choice svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.story-home .theme-choice:hover { color: #fff; background: #ffffff12; }
.story-home .theme-choice[aria-pressed="true"] { background: #eee; color: #151515; }
.story-home .theme-choice:focus-visible { outline: 2px solid #eee; outline-offset: 4px; }
.story-home .theme-mobile-projects { display: none; }
html[data-mi-theme="light"] .story-home .theme-switch { border-color: #d2d2d2; background: #ededeb; }
html[data-mi-theme="light"] .story-home .theme-choice { color: #656565; }
html[data-mi-theme="light"] .story-home .theme-choice:hover { color: #171717; background: #0000000a; }
html[data-mi-theme="light"] .story-home .theme-choice[aria-pressed="true"] { background: #242424; color: #fff; }
html[data-mi-theme="light"] .story-home .theme-choice:focus-visible { outline-color: #242424; }
@media (min-width: 1600px) {
  .story-home .theme-choice { width: clamp(36px, 1.3vw, 50px); height: clamp(36px, 1.3vw, 50px); }
  .story-home .theme-choice svg { width: clamp(20px, .7vw, 27px); height: clamp(20px, .7vw, 27px); }
}
@media (max-width: 760px) {
  .story-home .header-actions { gap: 10px; }
  .story-home .theme-choice { width: 34px; height: 34px; }
  .story-home .header-projects { display: none; }
  .story-home .site-nav .theme-mobile-projects { display: block; }
}
