/* Preserve the existing paired desktop panels; stack them on narrow screens. */
.HomePage .MainPanel { width: 100%; float: none; }
.HomePage .HomeIndex { float: right; margin-top: 10px; }
.HomePage .HomeIndex a { display: inline-block; padding: 8px 0; }
.HomePage .HomeWelcome { padding-top: 0; clear: both; }
.HomePage .HomeWelcome h1 { font-size: 1.25rem; margin: 8px 0 0; }
.HomePage .HomeWelcome p { margin-top: 0; }
.HomePage .Window table { width: 100%; }
.HomePage .Window td:first-child { width: 56px; }
.HomePage .Window td:first-child img { width: 48px; height: auto; }
.HomePage .Window td:nth-child(2) { overflow-wrap: anywhere; }
.HomePage .Window td:last-child { width: 56px; }
.HomePage .Window td:last-child a { display: inline-block; line-height: 1; }
.HomePage .Window td:last-child img { width: 48px; max-width: none; }
.HomePage .HomePromos { clear: both; max-width: 500px; margin: 16px auto; text-align: right; }
.HomePage #slider { width: 100%; height: auto; aspect-ratio: 500 / 120; background: none; }
.HomePage #slider a { display: block; }
.HomePage #slider a[hidden] { display: none; }
.HomePage #slider img { position: static; display: block; width: 100%; height: auto; padding: 0; }
@media (max-width: 700px) {
  .HomePage div.Window { float: none !important; width: 100% !important; margin: 12px 0 !important; }
  .HomePage .HomeIndex { float: none; }
  .HomePage .HomeWelcome { padding-top: 0; }
}

/* Keep the homepage mascot; tuck it beside the navigation on phones. */
.HomePage .TitleBar > img { display: block; width: 90px; height: 45px; }
@media (max-width: 700px) {
  .HomePage .TitleBar > img { left: auto !important; right: 8px; width: 60px; height: 30px; }
}

/* Native crossfade: all slides share the same space; only the current link is active. */
.HomePage #slider.Crossfade a {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms ease-in-out, visibility 0s 700ms;
}
.HomePage #slider.Crossfade a.CurrentSlide {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .HomePage #slider.Crossfade a { transition: none; }
}
