/* Shared by every public page (dashboard, astronaut, gallery, videos, boarding pass, live feed).
   Load it after the page's own stylesheet.
   1. Starry night background  2. SUPARCO logo in the header  3. Six-tab navigation */

/* ---------- 1. starry night ----------
   Three star layers (wwwroot/img/stars-*.svg, different tile sizes so the pattern never visibly repeats),
   a faint Milky Way band and soft nebula glows. Fixed behind the page, so it stays put while the page scrolls.
   The bright layer twinkles slowly; switched off for visitors who prefer reduced motion. */
html{background:#02050b}
html body{background:transparent}
body::before,body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none}
body::before{
  background:
    url(/img/stars-mid.svg) 0 0/997px 997px repeat,
    url(/img/stars-far.svg) 0 0/1531px 1531px repeat,
    linear-gradient(118deg,transparent 22%,rgba(120,140,210,.05) 38%,rgba(185,175,225,.085) 47%,rgba(140,190,215,.06) 55%,transparent 70%),
    radial-gradient(900px 520px at 82% 12%,rgba(64,82,170,.16),transparent 65%),
    radial-gradient(800px 600px at 8% 92%,rgba(31,168,90,.09),transparent 65%),
    radial-gradient(1400px 900px at 50% 40%,#071026 0%,#040815 45%,#02050b 100%);
}
body::after{
  background:url(/img/stars-near.svg) 0 0/1613px 1613px repeat;
  animation:twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle{0%{opacity:.55}50%{opacity:1}100%{opacity:.7}}
@media (prefers-reduced-motion:reduce){body::after{animation:none}}

/* Panels let a little of the sky through, so the page reads as one night scene. */
.panel{background:linear-gradient(180deg,rgba(13,26,22,.88),rgba(8,17,15,.9))}
.strip{background:linear-gradient(90deg,rgba(10,20,17,.88) 0%,rgba(13,40,28,.85) 45%,rgba(10,20,17,.88) 100%)}

/* ---------- 2. SUPARCO logo ---------- */
.brand{gap:12px}
.suparco-logo{width:52px;height:auto;max-width:none;object-fit:contain;flex:none;display:block}
.suparco-badge{flex:none;display:inline-grid;place-items:center;height:46px;padding:0 12px;border:1px solid var(--glow-line,rgba(69,229,134,.35));border-radius:8px;
  background:rgba(1,65,28,.55);font-family:var(--f-head,"Saira Condensed",sans-serif);font-weight:700;font-size:17px;letter-spacing:.14em;color:#f6fbf8;text-decoration:none}
.brand-sep{width:1px;height:38px;background:var(--line-2,#23483a);flex:none}
@media (max-width:600px){.suparco-logo{width:36px}.suparco-badge{height:36px;font-size:14px;padding:0 9px}.brand-sep{height:30px}}

/* ---------- 3. navigation with six tabs ---------- */
@media (max-width:1500px){.top .nav a{padding:7px 12px;font-size:13.5px}}
@media (max-width:900px){.top .nav{width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.top .nav::-webkit-scrollbar{display:none}}

/* Urdu text an admin entered (data-ur), shown when a visitor picks اردو */
html[lang="ur"] [data-ur]{font-family:var(--f-ur,"Noto Nastaliq Urdu",serif);letter-spacing:0;text-transform:none;direction:rtl;line-height:1.9}

/* Dashboard panel 4: link to the newest mission update (Astronaut tab) */
.astro-latest{display:flex;flex-direction:column;gap:1px;padding:8px 10px;text-decoration:none;color:var(--ink);border-left:2px solid var(--glow);border-radius:0 6px 6px 0}
.astro-latest b{font-family:var(--f-head);font-weight:700;font-size:15px;letter-spacing:.03em;line-height:1.2}
.astro-latest small{color:var(--mute);font-size:11.5px}
.astro-latest:hover{border-color:var(--glow)}
.astro-latest:hover b{color:var(--glow)}
