/* IML Travel — hover sheen. Buttons and tabs fade to their hover colour, and a soft band of light
   sweeps across once, like light catching brushed silver. Loaded last so it applies to admin and portal alike. */
.btn,.pp-btn,button.pill,#side .nav a,.pp-nav-a{
  --sheen:rgba(255,255,255,.42);
  position:relative;overflow:hidden;isolation:isolate;
  transition:background-color .25s ease,background .25s ease,color .2s ease,border-color .25s ease,box-shadow .3s ease,filter .25s ease,transform .12s ease}
/* On light surfaces plain white would not show, so the band there is a cool silver. */
.btn-ghost,.pp-nav-a,#side .nav a:not(.on){--sheen:rgba(150,170,200,.28)}
[data-theme="dark"] .btn-ghost,[data-theme="dark"] .pp-nav-a,[data-theme="dark"] #side .nav a:not(.on){--sheen:rgba(255,255,255,.14)}

.btn::after,.pp-btn::after,button.pill::after,#side .nav a::after,.pp-nav-a::after{
  content:'';position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(105deg,transparent 30%,var(--sheen) 47%,rgba(255,255,255,.08) 53%,transparent 70%);
  transform:translateX(-110%);transition:none}
.btn:hover::after,.pp-btn:hover::after,button.pill:hover::after,#side .nav a:hover::after,.pp-nav-a:hover::after{
  transform:translateX(110%);transition:transform .75s cubic-bezier(.4,0,.2,1)}
.btn:disabled::after,.btn[disabled]::after{display:none}

/* A faint metallic lift on hover instead of a flat colour swap. */
.btn-primary:hover,.pp-btn:hover{filter:brightness(1.08) saturate(1.05);box-shadow:0 6px 18px rgba(31,111,235,.28),inset 0 1px 0 rgba(255,255,255,.25)}
.btn-ghost:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 2px 8px rgba(16,32,64,.08)}
[data-theme="dark"] .btn-ghost:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 10px rgba(0,0,0,.3)}

@media(prefers-reduced-motion:reduce){
  .btn::after,.pp-btn::after,button.pill::after,#side .nav a::after,.pp-nav-a::after{display:none}
}

/* Top tabs: the hover pill is drawn behind the label so it can follow the pointer (js/tab-glide.js sets
   --gx/--gy, -1…1 from the tab's centre, and --gp, 1 at the centre and 0 at the edge). It grows a little
   the nearer the centre the pointer is, and leans a few pixels toward it; the label stays put. The sheen is
   painted on the pill itself so it moves and grows with it (the active tab keeps the plain sheen). */
#side .nav a,.pp-nav-a{overflow:visible}
#side .nav a::after,.pp-nav-a::after{border-radius:inherit;transform:none!important;
  background-size:300% 100%;background-position:130% 0;background-repeat:no-repeat}
#side .nav a:hover::after,.pp-nav-a:hover::after{background-position:-30% 0;transition:background-position .75s cubic-bezier(.4,0,.2,1)}
#side .nav a:not(.on)::before,.pp-nav-a:not(.on)::before{
  content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:0;
  background:linear-gradient(105deg,transparent 38%,var(--sheen) 50%,transparent 62%) 130% 0/300% 100% no-repeat,var(--glide-bg,var(--surface));box-shadow:var(--glide-shadow,0 1px 4px rgba(16,32,64,.1));
  transform:translate(calc(var(--gx,0)*5px),calc(var(--gy,0)*2.5px)) scale(calc(1 + var(--gp,0)*.0875));
  transition:opacity .2s ease,transform .18s ease-out}
#side .nav a:not(.on):hover::before,.pp-nav-a:not(.on):hover::before{opacity:1;background-position:-30% 0,0 0;
  transition:opacity .2s ease,transform .18s ease-out,background-position .75s cubic-bezier(.4,0,.2,1)}
#side .nav a:not(.on)::after,.pp-nav-a:not(.on)::after{display:none}
#side .nav a:not(.on):hover,.pp-nav-a:not(.on):hover{background:transparent!important;box-shadow:none!important}
[data-theme="dark"] #side .nav a{--glide-bg:rgba(255,255,255,.09);--glide-shadow:0 2px 10px rgba(0,0,0,.25)}
.pp-nav-a{--glide-bg:var(--pp-surface-2);--glide-shadow:0 1px 4px rgba(16,32,64,.08)}
.portal.at-home .pp-nav-a{--glide-bg:rgba(255,255,255,.14);--glide-shadow:none}
@media(prefers-reduced-motion:reduce){#side .nav a::before,.pp-nav-a::before{transform:none!important}}
