/* SunTraveling motion: reading progress, scroll reveal, page transitions. Rollback: disable plugin stMotion. */

/* Cross-document page transitions (Chrome/Edge 126+, Safari 18.2+). Other browsers navigate as usual. */
@view-transition{navigation:auto}
.st-progress{view-transition-name:st-progress}
::view-transition-group(root){animation-duration:.32s}
::view-transition-old(root){animation:.16s ease-in both st-vt-out}
::view-transition-new(root){animation:.32s cubic-bezier(.2,.7,.2,1) .04s both st-vt-in}
@keyframes st-vt-out{to{opacity:0;transform:translate3d(0,-8px,0)}}
@keyframes st-vt-in{from{opacity:0;transform:translate3d(0,12px,0)}}

/* Reading progress + navigation indicator */
.st-progress{position:fixed;inset:0 0 auto 0;height:3px;z-index:1090;pointer-events:none;contain:strict}
.st-progress-bar{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--fn-primary,#d85151),#f59f5a);border-radius:0 2px 2px 0;will-change:transform}
.st-progress[hidden]{display:none}
.st-progress.is-nav .st-progress-bar{transition:transform 2.4s cubic-bezier(.1,.6,.2,1);transform:scaleX(.85)!important}

/* Sticky header gets a soft shadow once the page scrolls */
header.navbar{transition:box-shadow .25s ease}
header.navbar.st-scrolled{box-shadow:0 .25rem 1.25rem rgba(34,41,52,.08)}

/* Scroll reveal (home). Only blocks below the first screen are hidden, and only when JS runs. */
.st-rv{opacity:0;transform:translate3d(0,28px,0) scale(.985);transition:opacity .6s cubic-bezier(.2,.7,.2,1) var(--st-d,0ms),transform .75s cubic-bezier(.2,.7,.2,1) var(--st-d,0ms)}
.st-rv.st-in{opacity:1;transform:none}
.st-rv .st-badge{transform:scale(.4);opacity:0;transition:transform .45s cubic-bezier(.3,1.6,.5,1) calc(var(--st-d,0ms) + .3s),opacity .2s calc(var(--st-d,0ms) + .3s)}
.st-rv.st-in .st-badge{transform:none;opacity:1}

/* Hover micro-interactions on cards (pointer devices only) */
@media (hover:hover){
  .st-top,.st-country,.st-row,.st-link,.st-tip{transition:transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s,border-color .2s}
  .st-top:hover,.st-country:hover{transform:translate3d(0,-4px,0);box-shadow:0 .75rem 2rem rgba(34,41,52,.14)}
  .st-row:hover,.st-link:hover,.st-tip:hover{transform:translate3d(0,-2px,0)}
  .st-chip{transition:transform .2s}.st-chip:hover{transform:translate3d(0,-2px,0)}
}
.btn:active,.st-month:active,.st-chip:active{transform:scale(.97)}

/* Back to top */
.st-totop{position:fixed;right:1rem;bottom:1rem;z-index:1040;width:2.75rem;height:2.75rem;border:0;border-radius:50%;background:#fff;color:#222934;box-shadow:0 .375rem 1.25rem rgba(34,41,52,.18);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:translate3d(0,12px,0);transition:opacity .25s,transform .25s,visibility .25s}
.st-totop.show{opacity:1;visibility:visible;transform:none}
.st-totop:hover{color:var(--fn-primary,#d85151)}
.st-totop:focus-visible{outline:2px solid var(--fn-primary,#d85151);outline-offset:2px}
.st-totop svg{width:1.125rem;height:1.125rem}

@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  .st-rv,.st-rv .st-badge{opacity:1!important;transform:none!important;transition:none!important}
  .st-progress.is-nav .st-progress-bar{transition:none}
  .st-top,.st-country,.st-row,.st-link,.st-tip,.st-chip,.st-totop{transition:none!important;transform:none!important}
}
@media print{.st-progress,.st-totop{display:none!important}.st-rv,.st-rv .st-badge{opacity:1!important;transform:none!important}}
