/* W52 — approved A shell + D actions. Header-only; cinematic scenes are out of scope. */
body .site-header.is-light,
body .site-header.is-light.is-scrolled,
body .site-header.is-light.has-mega,
body .site-header.is-light.has-drawer {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body .site-header { isolation: isolate; }
body .site-header.is-light .site-header__inner {
  --brand-s: .57;
  box-sizing: border-box;
  width: min(1496px, calc(100% - 30px));
  max-width: none;
  min-height: 70px;
  height: 70px;
  margin: 7px auto;
  padding-inline: clamp(14px, 1.5vw, 26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.55vw, 26px);
  background: rgb(255 255 255 / .97);
  border: 1px solid #e5ebf5;
  border-radius: 23px;
  box-shadow: 0 14px 36px rgb(12 46 110 / .10), 0 2px 8px rgb(12 46 110 / .035);
}
body .site-header.is-light.is-scrolled .site-header__inner {
  box-shadow: 0 15px 38px rgb(12 46 110 / .13), 0 2px 10px rgb(12 46 110 / .04);
}
body .site-header.is-light :is(.brand,.mega,.site-header__actions) { flex-shrink: 0; }
body .site-header.is-light .mega { margin-inline: auto; flex: 1 1 auto; min-width: 0; }
body .site-header.is-light .mega__list { justify-content: center; gap: clamp(0px,.25vw,6px); }
body .site-header.is-light .mega__top {
  color: #13244b; font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  font-size: clamp(17px, 1.24vw, 18px); line-height: 1.45;
  font-weight: 600; white-space: nowrap; min-height: 45px;
  padding: 7px clamp(10px,.85vw,16px); border-radius: 12px;
}
body .site-header.is-light .mega__top:hover,
body .site-header.is-light .mega__top[aria-expanded="true"] {
  color: #1055d7; background: #eef5ff;
}
body .site-header.is-light .mega__top[aria-current="page"] { color: #0d2a67; }
body .site-header.is-light .mega__caret {
  width: 14px; height: 14px; color: #19315e;
}
body .site-header.is-light .site-header__actions {
  display: flex; align-items: center; gap: 11px;
  padding-inline-start: clamp(10px,1.1vw,20px);
  border-inline-start: 1px solid #e1e8f3;
}
body .site-header.is-light .site-header__login,
body .site-header.is-light .site-header__actions .site-header__login {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; min-height: 46px; padding: 7px 16px;
  white-space: nowrap; border: 1.5px solid #2362ec; border-radius: 14px;
  background: #fff; box-shadow: 0 1px 3px rgb(18 60 140 / .04);
  color: #102957; font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  font-weight: 600; font-size: 16px; line-height: 1.3;
  text-decoration: none;
}
body .site-header.is-light .site-header__login:hover {
  background: #f2f6ff; border-color: #134ac5; color: #134ac5; text-decoration: none;
}
body .site-header.is-light .site-header__login svg {
  width: 20px; height: 20px; color: #1543aa; flex-shrink: 0;
}
body .site-header.is-light .site-header__actions .site-header__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  height: 46px; min-height: 46px; padding: 8px 21px;
  white-space: nowrap; border: 1px solid #1b60e8; border-radius: 14px;
  background: linear-gradient(135deg,#2586ff,#1551e9);
  color: #fff; font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  font-size: 16px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 9px 17px -10px rgb(28 90 214 / .7);
}
body .site-header.is-light .site-header__actions .site-header__cta:hover {
  background: linear-gradient(135deg,#2277f7,#0d40cd);
  box-shadow: 0 10px 24px -9px rgb(28 90 214 / .43);
}
body .site-header.is-light .site-header__cta svg {
  width: 18px; height: 18px; flex-shrink: 0;
}
body .site-header.is-light :is(.site-header__cta,.site-header__login,.mega__top):focus-visible {
  outline: 3px solid #568cff; outline-offset: 3px;
}
/* Static parser-visible header and hydrated header share identical geometry. */
body .site-header[data-header-preload] .mega__top { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
body .site-header[data-header-preload] .site-nav-fallback { color: #14336e; }
/* Desktop navigation becomes the existing drawer before controls can overlap. */
@media (max-width: 1220px) {
  body .site-header.is-light .site-header__inner { --brand-s: .46; min-height: 66px; height: 66px; margin-block: 6px; border-radius: 19px; }
  body .site-header.is-light .mega {
    position: absolute; inset-inline: 0; top: calc(100% + 2px); margin: 0 auto;
    max-width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 95px);
    overflow-y: auto; overscroll-behavior: contain; display: none; z-index: 70;
    background: #fff; border: 1px solid #e3ebf7; border-radius: 19px;
    padding: 16px; box-shadow: 0 26px 55px rgb(9 27 68 / .18);
  }
  body .site-header.is-light .mega.is-open { display: block; }
  body .site-header.is-light .mega__list { flex-direction: column; align-items: stretch; }
  body .site-header.is-light .mega__top { display: flex; justify-content: space-between; width: 100%; min-height: 50px; font-size: 17px; }
  body .site-header.is-light .mega__panel { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; margin-block: 8px 16px; }
  body .site-header.is-light .nav-toggle { display: inline-grid; }
  body .site-header.is-light .site-header__actions { margin-inline-start: auto; }
  body .site-header.is-light .site-header__actions .site-header__login { display: none; }
  body .site-header.is-light .mega__item--system-login {
    display: list-item; margin-top: 9px; padding-top: 11px;
    border-top: 1px solid #dfe6f2; border-bottom: none;
  }
  body .site-header.is-light .mega__system-login { border: 0; background: transparent; color: #16439c; }
  body .site-header[data-header-preload] .mega { display: none; }
  body .site-header[data-header-preload] .site-nav-fallback { display: block; }
}
@media (max-width: 600px) {
  body .site-header.is-light .site-header__inner { --brand-s: .40; width: calc(100% - 16px); padding-inline: 9px; gap: 7px; min-height: 61px; height: 61px; margin-block: 5px; border-radius: 17px; }
  body .site-header.is-light .site-header__actions { border: 0; padding: 0; gap: 5px; }
  body .site-header.is-light .site-header__actions .site-header__cta { height: 40px; min-height: 40px; font-size: 13.5px; padding: 7px 10px; gap: 5px; border-radius: 11px; }
  body .site-header.is-light .site-header__cta svg { width: 15px; height: 15px; }
  body .site-header.is-light .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 359px) {
  body .site-header.is-light .site-header__actions .site-header__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body .site-header.is-light .site-header__inner { transition: none; }
}

/* W54: keep the approved floating navigation visually continuous on same-origin
   full-document navigation. Progressive enhancement; no client-side router. */
@view-transition {
  navigation: auto;
}
body .site-header {
  view-transition-name: cloudysystem-site-header;
}
::view-transition-old(cloudysystem-site-header),
::view-transition-new(cloudysystem-site-header) {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }
}
