/* Deftrial shared public shell v176
   One authoritative layer for public headers, navigation, theme controls,
   connection notices, back-to-top controls, and footers. */

:root {
  --shell-line: var(--border, var(--line, rgba(255, 255, 255, 0.1)));
  --shell-panel: var(--surface-strong, var(--surface, rgba(10, 17, 29, 0.94)));
  --shell-bg: var(--bg, #05070b);
  --shell-text: var(--text, #e0ebf9);
  --shell-muted: var(--muted, #90a2bb);
  --shell-accent: var(--accent, #78b6ff);
  --topbar-height: 96px;
  --mobile-jump-height: 0px;
}

/* Shared focus treatment */
.skip-link,
.topbar a,
.archive-topbar a,
.gallery-topbar a,
.theme-toggle,
.gallery-theme,
.mobile-jump-nav a,
.footer-links a,
.gallery-footer a,
.back-to-top,
.gallery-back-top {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed !important;
  z-index: 10000 !important;
  top: max(0.65rem, env(safe-area-inset-top)) !important;
  left: max(0.65rem, env(safe-area-inset-left)) !important;
  transform: translateY(-180%) !important;
  padding: 0.68rem 0.95rem !important;
  border: 1px solid var(--shell-line) !important;
  border-radius: 0.75rem !important;
  background: var(--shell-panel) !important;
  color: var(--shell-text) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: transform 0.16s ease !important;
}
.skip-link:focus { transform: translateY(0) !important; }

.topbar :is(a, button):focus-visible,
.archive-topbar :is(a, button):focus-visible,
.gallery-topbar :is(a, button):focus-visible,
.mobile-jump-nav a:focus-visible,
.site-footer a:focus-visible,
.gallery-footer a:focus-visible,
.back-to-top:focus-visible,
.gallery-back-top:focus-visible {
  outline: 2px solid var(--shell-accent) !important;
  outline-offset: 3px !important;
}

/* Main-page header */
body .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
  isolation: isolate;
  border-bottom: 1px solid var(--shell-line) !important;
  background: color-mix(in srgb, var(--shell-bg) 88%, transparent) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
body .topbar .topbar-inner {
  display: grid !important;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto !important;
  grid-template-areas: "brand primary theme" !important;
  align-items: center !important;
  gap: clamp(0.8rem, 2.2vw, 1.5rem) !important;
  min-height: 70px !important;
  padding: 0.68rem 0 !important;
}
body .topbar .brand {
  grid-area: brand !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.72rem !important;
  min-width: 0 !important;
  color: var(--shell-text) !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body .topbar .brand .logo,
body .archive-topbar .brand .logo {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
}
body .topbar .brand span,
body .archive-topbar .brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}
body .topbar nav[aria-label="Primary"] {
  grid-area: primary !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.22rem !important;
  min-width: 0 !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
}
body .topbar nav[aria-label="Primary"] a,
body .archive-topbar .archive-nav a,
body .gallery-topbar nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0.52rem 0.72rem !important;
  border: 1px solid transparent !important;
  border-radius: 0.72rem !important;
  color: var(--shell-muted) !important;
  font-size: 0.83rem !important;
  font-weight: 720 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease !important;
}
body .topbar nav[aria-label="Primary"] a:hover,
body .topbar nav[aria-label="Primary"] a:focus-visible,
body .archive-topbar .archive-nav a:hover,
body .archive-topbar .archive-nav a:focus-visible,
body .gallery-topbar nav a:hover,
body .gallery-topbar nav a:focus-visible {
  color: var(--shell-text) !important;
  border-color: color-mix(in srgb, var(--shell-accent) 30%, var(--shell-line)) !important;
  background: color-mix(in srgb, var(--shell-accent) 9%, transparent) !important;
}
body .topbar nav a:is(.is-active, [aria-current="location"]),
body .archive-topbar .archive-nav a[aria-current="page"],
body .gallery-topbar nav a[aria-current="page"],
body .mobile-jump-nav a:is(.is-active, [aria-current="location"]) {
  color: var(--shell-text) !important;
  border-color: color-mix(in srgb, var(--shell-accent) 42%, var(--shell-line)) !important;
  background: color-mix(in srgb, var(--shell-accent) 14%, transparent) !important;
}
body .topbar .theme-toggle,
body .archive-topbar .theme-toggle,
body .gallery-topbar .gallery-theme {
  grid-area: theme !important;
  justify-self: end !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border: 1px solid var(--shell-line) !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--shell-panel) 92%, transparent) !important;
  color: var(--shell-text) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font: inherit !important;
  line-height: 1 !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease !important;
}
body .topbar .theme-toggle:hover,
body .archive-topbar .theme-toggle:hover,
body .gallery-topbar .gallery-theme:hover {
  transform: translateY(-1px) !important;
  border-color: color-mix(in srgb, var(--shell-accent) 45%, var(--shell-line)) !important;
  background: color-mix(in srgb, var(--shell-accent) 10%, var(--shell-panel)) !important;
}

/* Marquee is decorative; its accessible name lives on the container. */
body .topbar .site-marquee {
  position: relative !important;
  display: block !important;
  min-height: 24px !important;
  height: 24px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--shell-line) 72%, transparent) !important;
  background: color-mix(in srgb, var(--shell-bg) 95%, transparent) !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}
body .topbar .marquee-track {
  display: flex !important;
  align-items: center !important;
  width: max-content !important;
  min-width: max-content !important;
  gap: 2.8rem !important;
  padding: 0.21rem 0 !important;
  transform: translate3d(0, 0, 0);
  animation: deftrial-shell-marquee 420s linear infinite !important;
  will-change: transform;
}
body .topbar .marquee-item,
body .topbar .marquee-track span {
  flex: 0 0 auto !important;
  color: color-mix(in srgb, var(--shell-text) 64%, transparent) !important;
  font-size: 0.68rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.055em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}
body .topbar .marquee-item::before {
  content: "✦";
  margin-right: 0.72rem;
  color: color-mix(in srgb, var(--shell-accent) 56%, transparent);
}
@keyframes deftrial-shell-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Main-page compact navigation */
body .mobile-jump-nav {
  display: none !important;
  align-items: center !important;
  gap: 0.36rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.44rem max(0.58rem, env(safe-area-inset-left)) !important;
  overflow-x: auto !important;
  overscroll-behavior-inline: contain;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch;
}
body .mobile-jump-nav::-webkit-scrollbar { display: none !important; }
body section[id],
body .section {
  scroll-margin-top: calc(var(--topbar-height) + var(--mobile-jump-height) + 14px) !important;
}

body .mobile-jump-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0.43rem 0.62rem !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: var(--shell-muted) !important;
  font-size: 0.68rem !important;
  font-weight: 780 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* Archive header */
body .archive-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
  border-bottom: 1px solid var(--shell-line) !important;
  background: color-mix(in srgb, var(--shell-bg) 88%, transparent) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
}
body .archive-topbar .archive-topbar__inner {
  display: grid !important;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto !important;
  grid-template-areas: "brand primary theme" !important;
  align-items: center !important;
  gap: 1rem !important;
  min-height: 70px !important;
  padding: 0.68rem 0 !important;
}
body .archive-topbar .brand {
  grid-area: brand !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.72rem !important;
  min-width: 0 !important;
  color: var(--shell-text) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body .archive-topbar .archive-nav {
  grid-area: primary !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.2rem !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
}

/* Local Artwork header */
body .gallery-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
  border-bottom: 1px solid var(--shell-line) !important;
  background: color-mix(in srgb, var(--shell-bg) 88%, transparent) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
}
body .gallery-topbar .gallery-topbar__inner {
  display: grid !important;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto !important;
  grid-template-areas: "brand primary theme" !important;
  align-items: center !important;
  gap: 1rem !important;
  min-height: 70px !important;
  padding: 0.68rem 0 !important;
}
body .gallery-topbar .gallery-brand {
  grid-area: brand !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.72rem !important;
  min-width: 0 !important;
  color: var(--shell-text) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body .gallery-topbar .gallery-brand img {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  display: block !important;
  object-fit: contain !important;
}
body .gallery-topbar nav {
  grid-area: primary !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.2rem !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
}

/* Connection and utility controls */
body .connection-status {
  position: fixed !important;
  z-index: 1500 !important;
  top: calc(var(--topbar-height) + var(--mobile-jump-height) + 0.7rem) !important;
  left: 50% !important;
  width: min(92vw, 520px) !important;
  transform: translateX(-50%) !important;
  padding: 0.7rem 0.95rem !important;
  border: 1px solid var(--shell-line) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--shell-panel) 94%, transparent) !important;
  color: var(--shell-text) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  text-align: center !important;
  font-size: 0.86rem !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body .connection-status[data-state="offline"] {
  border-color: color-mix(in srgb, #f0b45b 62%, var(--shell-line)) !important;
}
body .connection-status[data-state="online"] {
  border-color: color-mix(in srgb, #70d6b4 62%, var(--shell-line)) !important;
}
body .back-to-top,
body .gallery-back-top {
  position: fixed !important;
  z-index: 950 !important;
  right: max(1rem, env(safe-area-inset-right)) !important;
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.42rem !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0.65rem 0.82rem !important;
  border: 1px solid var(--shell-line) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--shell-panel) 94%, transparent) !important;
  color: var(--shell-text) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.16s ease, border-color 0.16s ease !important;
}
body .back-to-top:hover,
body .gallery-back-top:hover {
  transform: translateY(-2px) !important;
  border-color: var(--shell-accent) !important;
}
body .back-to-top[hidden],
body .gallery-back-top[hidden] { display: none !important; }

/* Shared expanded footer */
body .site-footer.site-footer--expanded {
  position: relative !important;
  z-index: 1 !important;
  margin-top: clamp(2rem, 5vw, 4rem) !important;
  padding: clamp(1.8rem, 4vw, 2.8rem) 0 !important;
  border-top: 1px solid var(--shell-line) !important;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--shell-panel) 48%, transparent)) !important;
}
body .site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr) !important;
  grid-template-areas: "note links" "bottom bottom" !important;
  align-items: start !important;
  gap: clamp(1.25rem, 3vw, 2.2rem) !important;
  width: min(100% - 1.15rem, var(--page-width, 940px)) !important;
  margin-inline: auto !important;
  padding: 0 !important;
  color: var(--shell-muted) !important;
}
body .site-footer .footer-note {
  grid-area: note !important;
  max-width: 46rem !important;
  margin: 0 !important;
  text-align: left !important;
}
body .site-footer .footer-kicker {
  margin: 0 0 0.5rem !important;
  color: var(--shell-accent) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}
body .site-footer .footer-note h2 {
  margin: 0 0 0.65rem !important;
  color: var(--shell-text) !important;
  font-size: clamp(1.65rem, 3.8vw, 2.75rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.045em !important;
}
body .site-footer .footer-note p:last-child {
  max-width: 56ch !important;
  margin: 0 !important;
  color: var(--shell-muted) !important;
  line-height: 1.65 !important;
}
body .site-footer .footer-links {
  grid-area: links !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start !important;
  gap: 0.58rem !important;
}
body .site-footer .footer-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0.62rem 0.78rem !important;
  border: 1px solid var(--shell-line) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--shell-panel) 72%, transparent) !important;
  color: var(--shell-text) !important;
  font-size: 0.78rem !important;
  font-weight: 780 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease !important;
}
body .site-footer .footer-links a:hover {
  transform: translateY(-1px) !important;
  border-color: color-mix(in srgb, var(--shell-accent) 46%, var(--shell-line)) !important;
  background: color-mix(in srgb, var(--shell-accent) 7%, var(--shell-panel)) !important;
}
body .site-footer .footer-bottom {
  grid-area: bottom !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding-top: 1rem !important;
  border-top: 1px solid color-mix(in srgb, var(--shell-line) 74%, transparent) !important;
  color: var(--shell-muted) !important;
  font-size: 0.78rem !important;
}
body .site-footer .footer-bottom p { margin: 0 !important; }

/* Local Artwork compact footer */
body .gallery-footer {
  position: relative !important;
  z-index: 1 !important;
  border-top: 1px solid var(--shell-line) !important;
  background: color-mix(in srgb, var(--shell-bg) 92%, transparent) !important;
}
body .gallery-footer .gallery-shell {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  min-height: 82px !important;
  color: var(--shell-muted) !important;
}
body .gallery-footer nav {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  flex-wrap: wrap !important;
}
body .gallery-footer a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 0.45rem 0.66rem !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: var(--shell-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 760 !important;
  text-decoration: none !important;
}
body .gallery-footer a:hover {
  color: var(--shell-text) !important;
  border-color: var(--shell-line) !important;
}

/* Responsive shell */
@media (max-width: 900px) {
  body .topbar .topbar-inner {
    grid-template-columns: minmax(140px, auto) minmax(0, 1fr) auto !important;
    gap: 0.72rem !important;
  }
  body .topbar nav[aria-label="Primary"] a,
  body .archive-topbar .archive-nav a,
  body .gallery-topbar nav a {
    padding-inline: 0.58rem !important;
    font-size: 0.78rem !important;
  }
  body .archive-topbar .archive-topbar__inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand theme" "primary primary" !important;
    gap: 0.4rem 0.7rem !important;
    padding-block: 0.58rem !important;
  }
  body .archive-topbar .archive-nav {
    justify-content: flex-start !important;
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  body .archive-topbar .archive-nav::-webkit-scrollbar { display: none !important; }
}

@media (max-width: 760px) {
  :root { --mobile-jump-height: 48px; }
  body .topbar .topbar-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand theme" !important;
    min-height: 54px !important;
    gap: 0.65rem !important;
    padding: 0.42rem 0 !important;
  }
  body .topbar .brand .logo,
  body .archive-topbar .brand .logo,
  body .gallery-topbar .gallery-brand img {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }
  body .topbar .brand,
  body .archive-topbar .brand,
  body .gallery-topbar .gallery-brand {
    gap: 0.58rem !important;
    font-size: 0.94rem !important;
  }
  body .topbar .theme-toggle,
  body .archive-topbar .theme-toggle,
  body .gallery-topbar .gallery-theme {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
  body .topbar nav[aria-label="Primary"] { display: none !important; }
  body .topbar .site-marquee {
    min-height: 20px !important;
    height: 20px !important;
  }
  body .topbar .marquee-track {
    gap: 2.35rem !important;
    padding-block: 0.12rem !important;
    animation-duration: 520s !important;
  }
  body .topbar .marquee-item,
  body .topbar .marquee-track span {
    font-size: 0.62rem !important;
    letter-spacing: 0.04em !important;
  }
  body .mobile-jump-nav {
    position: sticky !important;
    top: var(--topbar-height) !important;
    z-index: 110 !important;
    display: flex !important;
    border-bottom: 1px solid var(--shell-line) !important;
    background: color-mix(in srgb, var(--shell-bg) 96%, transparent) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
  }
  body .archive-topbar .archive-topbar__inner {
    min-height: 0 !important;
  }
  body .archive-topbar .archive-nav a,
  body .gallery-topbar nav a {
    min-height: 36px !important;
    padding: 0.45rem 0.58rem !important;
    font-size: 0.72rem !important;
  }
  body .gallery-topbar .gallery-topbar__inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand theme" "primary primary" !important;
    gap: 0.34rem 0.65rem !important;
    padding: 0.48rem 0 0.38rem !important;
  }
  body .gallery-topbar nav {
    justify-content: flex-start !important;
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  body .gallery-topbar nav::-webkit-scrollbar { display: none !important; }
  body .site-footer.site-footer--expanded {
    margin-top: 1.4rem !important;
    padding: 1.25rem 0 !important;
  }
  body .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: "note" "links" "bottom" !important;
    gap: 0.9rem !important;
    width: min(100% - 1.1rem, var(--page-width, 940px)) !important;
    text-align: center !important;
  }
  body .site-footer .footer-note {
    display: grid !important;
    justify-items: center !important;
    text-align: center !important;
  }
  body .site-footer .footer-note h2 {
    font-size: clamp(1.4rem, 7vw, 1.85rem) !important;
  }
  body .site-footer .footer-note p:last-child {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }
  body .site-footer .footer-links {
    gap: 0.44rem !important;
  }
  body .site-footer .footer-links a {
    min-height: 40px !important;
    padding: 0.5rem !important;
    font-size: 0.69rem !important;
  }
  body .site-footer .footer-bottom {
    justify-content: center !important;
    font-size: 0.7rem !important;
  }
  body .gallery-footer .gallery-shell {
    min-height: 74px !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-block: 0.8rem !important;
    text-align: center !important;
  }
  body .gallery-footer nav { justify-content: center !important; }
  body .connection-status {
    width: min(calc(100vw - 1rem), 520px) !important;
    font-size: 0.78rem !important;
  }
  body .back-to-top,
  body .gallery-back-top {
    right: max(0.72rem, env(safe-area-inset-right)) !important;
    bottom: max(0.72rem, env(safe-area-inset-bottom)) !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0.58rem !important;
  }
  body .back-to-top span:last-child { display: none !important; }
  section[id],
  .section {
    scroll-margin-top: calc(var(--topbar-height) + var(--mobile-jump-height) + 12px) !important;
  }
}

@media (max-width: 390px) {
  body .site-footer .footer-links { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  body .topbar .marquee-track {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }
  body .topbar :is(a, button),
  body .archive-topbar :is(a, button),
  body .gallery-topbar :is(a, button),
  body .site-footer a,
  body .gallery-footer a,
  body .back-to-top,
  body .gallery-back-top,
  .skip-link {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

body.data-saver .topbar .marquee-track {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

@media (prefers-reduced-data: reduce) {
  body .topbar .marquee-track {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}
