/* Shared page shell: fonts, sky, header, glass panel, footer. Used by every public page and by the admin host
   (nginx alias). Loaded after theme.css and before site.css or admin.css; page specific rules live there. */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

.site { background: var(--bg); font-size: 16px; }
.site :lang(ar) { letter-spacing: 0; }

/* The sky: a fixed canvas under everything. The body colour shows until the first frame. */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }

.shell {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
}
.top, .stage, .foot { width: 100%; max-width: 1200px; margin-inline: auto; }

/* Header: orbit mark, Latin wordmark, language toggle at the end. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 8px; }
.mark span { letter-spacing: .32em; }
.mark img { display: block; flex: none; }
.mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lang { min-height: 44px; min-width: 44px; padding-inline: 18px; font-size: 14px; border-radius: 999px; background: rgba(6,9,21,.35); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Glass panel over the sky, hairline border, no decoration beyond that. */
.panel.card {
  position: relative; padding: clamp(22px, 2.6vw, 32px); border-radius: 16px;
  background: rgba(8,12,32,.62); border: 1px solid rgba(234,241,255,.1);
  box-shadow: inset 0 1px 0 rgba(234,241,255,.05);
  backdrop-filter: blur(18px) saturate(1.15);
}

.foot { padding-block: 20px 24px; font-size: 13px; color: var(--muted); }

/* Short laptop screens: keep the whole panel above the fold. */
@media (min-width: 961px) and (max-height: 780px) {
  .top { padding-block: 10px; }
  .panel.card { padding: 24px 28px; }
}
@media (max-width: 960px) {
  .foot { text-align: center; }
}
@media (max-width: 560px) {
  .top { padding-block: 10px; }
  .mark { gap: 10px; font-size: 13px; }
  .mark span { letter-spacing: .26em; }
  .panel.card { padding: 22px 18px; }
}
