/* Ramadan & Eid navigation loader (components/layout/nav-loader.php): a
   cream sheet under the string of lights; in it a brass-edged pointed
   arch onto the night, a crescent and stars, and a lantern swaying on its
   chain with its glow breathing on the dark. */
#navigationLoader .re-loader__scrim { position: absolute; inset: 0; background: rgba(8, 32, 39, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#navigationLoader .re-loader__panel {
  position: relative; width: 100%; max-width: 19.5rem; overflow: hidden;
  padding-top: 34px;
  border-radius: 20px;
  background: var(--girih), var(--paper-2);
  box-shadow: var(--frame-inset), 0 0 0 1px rgba(var(--theme-500-rgb), .35), 0 28px 64px rgba(8, 32, 39, .55);
  text-align: center;
  font-family: var(--font-ui);
}
#navigationLoader .re-loader__panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: var(--lantern-string) repeat-x; background-size: 72px 30px; }
/* The arch: a brass edge, then the night inside it (the window's
   outline from --arch-window, filled solid to serve as a mask) */
#navigationLoader { --re-arch: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'><path d='M6 130 V58 C6 34 30 18 50 2 C70 18 94 34 94 58 V130 Z'/></svg>"); }
#navigationLoader .re-loader__arch {
  position: relative; isolation: isolate; width: 128px; height: 160px; margin: 0 auto;
  background: var(--brass-metal);
  -webkit-mask: var(--re-arch) center / 100% 100% no-repeat; mask: var(--re-arch) center / 100% 100% no-repeat;
}
#navigationLoader .re-loader__arch::before {
  content: ''; position: absolute; inset: 4px 4px 0; z-index: -1;
  background: var(--stars-field), var(--night-panel);
  -webkit-mask: var(--re-arch) center / 100% 100% no-repeat; mask: var(--re-arch) center / 100% 100% no-repeat;
}
#navigationLoader .re-loader__moon {
  position: absolute; top: 42px; inset-inline-end: 18px; width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset -5px 3px 0 0 #f6d27a;
  transform: rotate(-20deg);
}
[dir="rtl"] #navigationLoader .re-loader__moon { transform: scaleX(-1) rotate(-20deg); }
#navigationLoader .re-loader__star {
  position: absolute; width: 9px; height: 9px; background: #f4cf7e;
  -webkit-mask: var(--star-mask); mask: var(--star-mask);
  animation: re-loader-twinkle 2.4s ease-in-out infinite;
}
#navigationLoader .re-loader__star--1 { top: 52px; inset-inline-start: 18px; }
#navigationLoader .re-loader__star--2 { top: 80px; inset-inline-end: 22px; width: 7px; height: 7px; animation-delay: -.8s; }
#navigationLoader .re-loader__star--3 { top: 104px; inset-inline-start: 26px; width: 6px; height: 6px; animation-delay: -1.6s; }
#navigationLoader .re-loader__glow {
  position: absolute; left: 50%; top: 92px; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 195, 92, .5), rgba(246, 195, 92, .14) 60%, transparent);
  animation: re-loader-breathe 2.6s ease-in-out infinite;
}
/* The lantern hangs from the crown of the arch and sways from there */
#navigationLoader .re-loader__lantern.loader-spinner {
  position: absolute; left: 50%; top: 22px; width: 132px; height: 99px; margin-left: -66px;
  border: 0; border-radius: 0; background: none;
  transform-origin: 50% 0;
  animation: re-loader-sway 2.6s ease-in-out infinite;
}
#navigationLoader .re-loader__lantern::before { content: ''; position: absolute; left: 50%; top: -18px; width: 1.5px; height: 22px; margin-left: -.75px; background: #c9922f; }
#navigationLoader .re-loader__lantern svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
#navigationLoader .re-loader__body { padding: .9rem 1.25rem 1.35rem; }
#navigationLoader .re-loader__kicker { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--theme-700); }
html.dark #navigationLoader .re-loader__kicker { color: var(--theme-300); }
html:is([lang="ar"], [lang="ur"], [lang="bn"], [lang="zh-CN"]) #navigationLoader .re-loader__kicker { letter-spacing: 0; font-size: 12px; }
#navigationLoader .re-loader__title { margin: .3rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
#navigationLoader .re-loader__desc { margin: .35rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }
#navigationLoader .re-loader__track {
  margin: 1rem auto 0; max-width: 11rem; height: 8px; overflow: hidden; border-radius: 999px;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-500-rgb), .35);
}
#navigationLoader .re-loader__track .loader-bar { width: 60%; border-radius: 999px; background: var(--brass-leaf); }
@keyframes re-loader-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes re-loader-breathe { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes re-loader-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* Still: the lantern hangs straight, lit, under steady stars. */
@media (prefers-reduced-motion: reduce) {
  #navigationLoader .re-loader__glow, #navigationLoader .re-loader__star { animation: none; }
  #navigationLoader .re-loader__star { opacity: .9; }
}
