/* Local curved image graphics follow both of the light brand palettes. */
html[data-theme] .app-sidebar.starxbullion-header {
  background-image:url('../assets/textures/starxbullion-header-curves.png'),var(--header-surface);
  background-position:center top,center;background-size:cover,cover;background-repeat:no-repeat;
}
html[data-theme] .app-footer {
  position:relative;isolation:isolate;
  background-image:url('../assets/textures/starxbullion-footer-curves.png');
  background-color:var(--footer-surface);background-position:center bottom;background-size:cover;background-repeat:no-repeat;
}
.app-footer .footer-grid,.app-footer .footer-bottom { position:relative; }
/* One curved sweep responds to hover, focus and expanded menu state. */
.starxbullion-header .starxbullion-menu-link,
.starxbullion-header .starxbullion-menu-trigger,
.app-footer .acc-body a {
  position:relative;isolation:isolate;overflow:hidden;border-radius:18px 7px 18px 7px;
  transition:color 180ms ease,background-color 180ms ease;
}
.starxbullion-header .starxbullion-menu-link::before,
.starxbullion-header .starxbullion-menu-trigger::before,
.app-footer .acc-body a::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url('../assets/textures/starxbullion-menu-curve.png') center/100% 100% no-repeat;
  opacity:0;transform:translateX(-24%) skewX(-6deg);
  transition:transform 420ms cubic-bezier(.16,1,.3,1),opacity 220ms ease;
}
.starxbullion-header .starxbullion-menu-link::after,
.starxbullion-header .starxbullion-menu-trigger::after,
.app-footer .acc-body a::after {
  content:"";position:absolute;right:12px;bottom:2px;left:12px;height:8px;z-index:-1;pointer-events:none;
  border-bottom:2px solid var(--accent);border-radius:0 0 50% 50%;
  opacity:0;transform:scaleX(.35);transform-origin:center;
  transition:transform 420ms cubic-bezier(.16,1,.3,1),opacity 180ms ease;
}
.starxbullion-header .starxbullion-menu-link:hover,
.starxbullion-header .starxbullion-menu-link:focus-visible,
.starxbullion-header .starxbullion-menu-trigger:hover,
.starxbullion-header .starxbullion-menu-trigger:focus-visible,
.starxbullion-header .starxbullion-menu-trigger[aria-expanded="true"],
.app-footer .acc-body a:hover,
.app-footer .acc-body a:focus-visible { background:var(--bg-soft);color:var(--accent-strong);text-decoration:none; }
.starxbullion-header :is(.starxbullion-menu-link,.starxbullion-menu-trigger):is(:hover,:focus-visible,[aria-expanded="true"],[aria-current="page"],.is-current)::before,
.app-footer .acc-body a:is(:hover,:focus-visible)::before { opacity:1;transform:none; }
.starxbullion-header :is(.starxbullion-menu-link,.starxbullion-menu-trigger):is(:hover,:focus-visible,[aria-expanded="true"],[aria-current="page"],.is-current)::after,
.app-footer .acc-body a:is(:hover,:focus-visible)::after { opacity:1;transform:scaleX(1); }
.starxbullion-header .starxbullion-menu-link[aria-current="page"],
.starxbullion-header .starxbullion-menu-trigger.is-current { box-shadow:none; }
.app-footer .acc-body a { padding-inline:8px;margin-inline:-8px; }
html[data-appearance="silver"] .starxbullion-header :is(.starxbullion-menu-link,.starxbullion-menu-trigger)::before,
html[data-appearance="silver"] .app-footer .acc-body a::before { filter:saturate(.55); }
.starxbullion-header .starxbullion-menu-account .starxbullion-menu-link { border-radius:18px 7px 18px 7px; }
html[data-theme] .starxbullion-header .starxbullion-submenu { border-radius:16px 7px 16px 7px; }
.starxbullion-header .sidebar-brand-link:hover { text-decoration:none; }
@media(max-width:900px) {
  html[data-theme] .app-sidebar.starxbullion-header { background-size:100% 109px,cover; }
  html[data-theme] .starxbullion-header .starxbullion-submenu { box-shadow:none; }
  .starxbullion-header .starxbullion-menu-link,
  .starxbullion-header .starxbullion-menu-trigger { border-radius:16px 6px 16px 6px; }
}
@media(max-width:760px) {
  html[data-theme] .app-footer { background-size:auto 100%; }
}
@media(prefers-reduced-motion:reduce) {
  .starxbullion-header :is(.starxbullion-menu-link,.starxbullion-menu-trigger),
  .starxbullion-header :is(.starxbullion-menu-link,.starxbullion-menu-trigger)::before,
  .starxbullion-header :is(.starxbullion-menu-link,.starxbullion-menu-trigger)::after,
  .app-footer .acc-body a,.app-footer .acc-body a::before,.app-footer .acc-body a::after { transition:none; }
}
.starxbullion-motion-off .starxbullion-header :is(.starxbullion-menu-link,.starxbullion-menu-trigger)::before,
.starxbullion-motion-off .starxbullion-header :is(.starxbullion-menu-link,.starxbullion-menu-trigger)::after,
.starxbullion-motion-off .app-footer .acc-body a::before,
.starxbullion-motion-off .app-footer .acc-body a::after { transition:none; }
