/* YASLOGIST DESIGN SYSTEM — source: canonical Home, 2026-10-14.
   Applied identically to all site pages. Header and footer HTML generated
   from templates in /site-components to prevent future divergence. */
:root {

  --signal:  #E8B317;
  --reel-bg: #0B1015;
  --reel-fg: #F1F3F2;

  --display: "Archivo", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;
  --arabic:  "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --ruqaa:   "Aref Ruqaa", "IBM Plex Sans Arabic", serif;
  --ruqaa-ink: "Aref Ruqaa Ink", "Aref Ruqaa", serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;
  --pad-y: clamp(4rem, 9vw, 7.5rem);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #10161C;
  --fg:          #F1F3F2;
  --fg-2:        #C3CBD1;
  --fg-3:        #A9B3BB;
  --fg-4:        #5B6770;
  --rule:        #232C34;
  --signal-text: #E8B317;
  --flip-bg:     #F1F3F2;
  --flip-fg:     #10161C;
  --flip-fg-2:   #333C44;
  --shot-bg:     #0B1015;
  --shot-fade:   rgba(16, 22, 28, 0.72);
  --shot-alpha:  0.8;
  --rules-alpha: 0.45;
  --glass-bg:    rgba(241, 243, 242, 0.06);
  --glass-line:  rgba(241, 243, 242, 0.16);
}

[data-theme="light"] {
  color-scheme: light;
  --bg:          #F1F3F2;
  --fg:          #10161C;
  --fg-2:        #3A444C;
  --fg-3:        #4C565E;
  --fg-4:        #525B62;
  --rule:        #D2D8D6;
  --signal-text: #7A5400;
  --flip-bg:     #10161C;
  --flip-fg:     #F1F3F2;
  --flip-fg-2:   #C3CBD1;
  --shot-bg:     #DDE2E0;
  --shot-fade:   rgba(241, 243, 242, 0.78);
  --shot-alpha:  0.92;
  --rules-alpha: 0.7;
  --glass-bg:    rgba(16, 22, 28, 0.05);
  --glass-line:  rgba(16, 22, 28, 0.14);
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--signal);
  color: #10161C;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: top 140ms ease;
}

.skip-link:focus { top: 1rem; }

[data-lang="en"] [lang="ar"] { display: none; }

[data-lang="ar"] [lang="en"] { display: none; }

[lang="ar"] {
  font-family: var(--arabic);
  font-stretch: normal;
  letter-spacing: 0;
}

.hero__head [lang="ar"],
.band__head [lang="ar"],
.stance__head [lang="ar"],
.reel__line [lang="ar"],
.cap__name [lang="ar"],
.unit__name [lang="ar"],
.panel__head [lang="ar"] {
  font-family: var(--ruqaa);
  font-weight: 700;
  font-size: 0.78em;
  line-height: 1.62;
  padding-bottom: 0.12em;
}

.hero__sub [lang="ar"],
.cap__body [lang="ar"],
.unit__desc [lang="ar"],
.stance__body [lang="ar"],
.split__body [lang="ar"],
.node__label [lang="ar"],
.unit__state [lang="ar"],
.nav-item [lang="ar"],
.contact__meta [lang="ar"] {
  font-family: var(--arabic);
  font-size: 0.96em;
  line-height: 1.85;
}

[data-lang="ar"] .hero__head { max-width: 23ch; }

[data-lang="ar"] .band__head { max-width: 26ch; }

[data-lang="ar"] .stance__head { max-width: 30ch; }

[data-lang="ar"] .reel__caption { max-width: 28ch; }

[data-lang="ar"] .stitch__foot { font-family: var(--arabic); font-weight: 600; letter-spacing: 0; }

.rules {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
  opacity: var(--rules-alpha);
}

.rules span { border-inline-end: 1px solid var(--rule); }

.rules span:last-child { border-inline-end: 0; }

.masthead, main, .foot { position: relative; z-index: 1; }

html, body { direction: ltr; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter) 0;
}

.wordmark {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.masthead__tag { font-size: 0.8125rem; color: var(--fg-4); }

.switches { display: flex; align-items: center; gap: 0.6rem; }

.seg {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.seg__btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0.45rem 0.75rem;
  color: var(--fg-4);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}

.seg__btn:hover { color: var(--fg); }

.seg__btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.seg--solo {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.45rem 0.75rem;
  min-width: 4.25rem;
  text-align: center;
}

.seg--solo:hover { border-color: var(--fg-4); }

[data-theme="dark"]  .lbl-light { display: none; }

[data-theme="light"] .lbl-dark { display: none; }

/* The root data-theme attribute is the single source of truth on every page.
   Never allow legacy generated icons or a second SVG to overlap the active one. */
[data-toggle-theme]::before,
[data-toggle-theme]::after { content: none !important; display: none !important; }
[data-toggle-theme] .theme-icon--sun { display: none !important; }
[data-toggle-theme] .theme-icon--moon { display: inline-block !important; }
html[data-theme="light"] [data-toggle-theme] .theme-icon--sun { display: inline-block !important; }
html[data-theme="light"] [data-toggle-theme] .theme-icon--moon { display: none !important; }

.btn {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.btn--primary { background: var(--signal); color: #10161C; }

.btn--primary:hover { background: #F2C534; }

.btn--ghost { border-color: var(--rule); color: var(--fg); }

.btn--ghost:hover { border-color: var(--fg-4); }

[data-lang="en"] .node__id--ar { display: block; }

[data-lang="ar"] .stitch__flag {
  font-family: var(--arabic);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  margin: 0 var(--gutter);
  padding: 2rem 0 3rem;
  font-size: 0.8125rem;
  color: var(--fg-4);
}

.foot__social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

.foot__social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--fg-2);
  padding: 0.25rem 0;
  transition: color 140ms ease;
}

.ico { width: 14px; height: 14px; flex: none; fill: currentColor; opacity: 0.8; }

.foot__social a:hover .ico { opacity: 1; }

.foot__social a:hover { color: var(--signal-text); }

.foot__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }

@media (prefers-reduced-motion: reduce) {
.btn, .contact__mail, .unit__link, .shot img, .seg__btn { transition: none; }
}

.suite {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

@media (min-width: 78rem) {
.suite { display: inline-flex; }
}

.suite__item {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--fg-4);
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.suite__item:hover { color: var(--fg); background: var(--glass-bg); }

.suite__item svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.suite__item[aria-current="page"] { color: var(--signal-text); background: rgba(232, 179, 23, 0.14); }

.suite__item[aria-disabled="true"] { opacity: 0.38; cursor: not-allowed; }

.suite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.suite-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.25rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--fg-3);
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  transition: border-color 140ms ease, color 140ms ease;
}

.suite-card:hover { border-color: var(--fg-4); color: var(--fg); }

.suite-card svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.suite-card__name { font-size: 0.75rem; font-weight: 600; line-height: 1; }

[data-lang="ar"] .suite-card__name { font-family: var(--arabic); }

.suite-card[aria-current="page"] {
  border-color: var(--signal);
  background: rgba(232, 179, 23, 0.1);
  color: var(--fg);
}

.suite-card[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.head-tools { display: flex; align-items: center; gap: 0.6rem; }

.seg__btn--ar { font-family: var(--ruqaa-ink); font-weight: 700; font-size: 0.95rem; line-height: 1; padding-top: 0.3rem; }

.wordmark__text { font-family: var(--display); font-stretch: 78%; font-weight: 800; letter-spacing: 0.06em; }

body.is-locked { overflow: hidden; }

@media (max-width: 34rem) {
.wordmark__text { font-size: 1.05rem; }
.menu-btn span[lang] { display: none; }
.menu-btn { padding: 0.55rem 0.7rem; }
}

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }

.mark { width: 30px; height: 30px; flex: none; overflow: visible; }

.mark .yl-globe { display: none; }

.menu-btn {
  appearance: none; -webkit-appearance: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--fg);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 140ms ease;
}

.menu-btn:hover { border-color: var(--fg-4); }

.menu-btn__bars { display: inline-block; width: 14px; }

.menu-btn__bars i {
  display: block; height: 1.5px; background: currentColor; border-radius: 1px;
}

.menu-btn__bars i + i { margin-top: 3px; }

.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(4, 7, 10, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.scrim.is-open { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 50;
  width: min(26rem, 92vw);
  background: var(--bg);
  border-inline-start: 1px solid var(--rule);
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.panel > * { flex: 0 0 auto; }

.panel.is-open { transform: none; }

.panel__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.panel__close {
  appearance: none; -webkit-appearance: none;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  color: var(--fg); cursor: pointer;
  font-family: var(--body); font-size: 0.75rem; font-weight: 500;
  padding: 0.45rem 0.8rem;
  min-height: 44px;
}

.panel__close:hover { border-color: var(--fg-4); }

.panel__head {
  margin: 0;
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
}

[data-lang="ar"] .panel__head { text-transform: none; letter-spacing: 0; }

.panel__group { display: flex; flex-direction: column; gap: 0.9rem; }

.nav-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  border-top: 1px solid var(--rule);
  padding-top: 0.85rem;
  min-height: 44px;
}

.nav-item__name {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.15;
}

[data-lang="ar"] .nav-item__name { font-family: var(--ruqaa); font-size: 1.15rem; line-height: 1.6; }

.nav-item__note { font-size: 0.75rem; color: var(--fg-4); flex: none; }

.nav-item--soon { pointer-events: none; opacity: 0.5; }

.nav-item:not(.nav-item--soon):hover .nav-item__name { color: var(--signal-text); }

.glass {
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid var(--glass-line);
  border-radius: 4px;
  padding: 1.15rem 1.25rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.glass::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--signal);
}

.glass:hover { border-color: var(--fg-4); transform: translateY(-1px); }

.glass__kicker { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal-text); }

[data-lang="ar"] .glass__kicker { text-transform: none; letter-spacing: 0; font-family: var(--arabic); }

.glass__name {
  margin: 0.4rem 0 0.35rem;
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: 1.25rem;
}

[data-lang="ar"] .glass__name { font-family: var(--ruqaa); font-size: 1.05rem; line-height: 1.6; }

.glass__body { margin: 0; font-size: 0.8125rem; line-height: 1.6; color: var(--fg-3); }

[data-lang="ar"] .glass__body { font-family: var(--arabic); }

.wa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  background: var(--signal);
  color: #10161C;
  border-radius: 3px;
  padding: 0.9rem 1.15rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 140ms ease;
}

.wa:hover { background: #F2C534; }

.wa__num { font-family: var(--mono); font-size: 0.8125rem; direction: ltr; font-weight: 500; }

.rowlist { display: flex; flex-direction: column; }

.rowlink {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
  min-height: 44px;
  font-size: 0.875rem;
}

.rowlink:last-child { border-bottom: 1px solid var(--rule); }

.rowlink__k { color: var(--fg-2); }

.rowlink__v { font-family: var(--mono); font-size: 0.75rem; color: var(--fg-4); direction: ltr; }

.rowlink:hover .rowlink__k { color: var(--signal-text); }

.switches--panel { display: none; }

@media (max-width: 52rem) {
  .switches--head { display: flex; }
  .switches--panel { display: none; }
}

.nav-inline { display: flex; gap: 1.5rem; margin-inline-start: auto; }

.nav-inline a {
  position: relative; font-size: 0.875rem; color: var(--fg-2);
  text-decoration: none; padding: 0.4rem 0; transition: color 140ms ease;
}

.nav-inline a:hover { color: var(--fg); }

.btn--cta { display: inline-flex; align-items: center; gap: 0.45rem;
            padding: 0.55rem 1rem; font-size: 0.8125rem; white-space: nowrap; }

@media (max-width: 64rem) {
.nav-inline { display: none; }
}

@media (max-width: 30rem) {
.btn--cta span[lang] { display: none; }
.btn--cta::after { content: "\2192"; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sub {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2rem;
}

.sub__head {
  margin: 0 0 0.75rem; font-family: var(--display); font-stretch: 78%;
  font-weight: 800; font-size: 1.375rem; color: var(--fg);
}

.sub__head [lang="ar"] { font-family: var(--ruqaa); font-size: 0.88em; line-height: 1.6; }

.sub__body { margin: 0; font-size: 0.875rem; line-height: 1.7; color: var(--fg-3); max-width: 46ch; }

.sub__body [lang="ar"] { font-family: var(--arabic); }

.sub__form { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.sub__input {
  flex: 1 1 14rem; min-width: 0; min-height: 46px;
  padding: 0.7rem 0.9rem; background: transparent;
  border: 1px solid var(--rule); border-radius: 2px;
  color: var(--fg); font-family: var(--body); font-size: 0.9375rem;
  transition: border-color 140ms ease;
}

.sub__input::placeholder { color: var(--fg-4); }

.sub__input:hover { border-color: var(--fg-4); }

.sub__input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }

.sub__input[aria-invalid="true"] { border-color: #C8553D; }

.sub__btn { min-height: 46px; flex: none; }

.sub__note {
  flex: 1 0 100%; margin: 0.15rem 0 0; min-height: 1.2em;
  font-size: 0.8125rem; color: var(--fg-4);
}

.sub__note[data-state="ok"] { color: var(--signal-text); }

.sub__note[data-state="err"] { color: #C8553D; }

.foot__legal { display: flex; gap: 1.25rem; margin-inline-start: auto; }

.foot__legal a { position: relative; color: var(--fg-4); text-decoration: none; padding: 0.25rem 0; }

.foot__legal a:hover { color: var(--fg-2); }

@media (max-width: 52rem) {
.sub { grid-template-columns: 1fr; }
.foot__legal { margin-inline-start: 0; }
}

.cta-ico { width: 15px; height: 15px; fill: currentColor; display: none; }

@media (max-width: 30rem) {
.btn--cta span[lang] { display: none; }
.btn--cta::after { content: none; }
.cta-ico { display: block; }
.btn--cta { padding: 0.55rem 0.8rem; }
}

@media (max-width: 52rem) {
.switches--head { display: flex; }
.switches--head .seg--solo { display: flex; }
}

@media (max-width: 30rem) {
.masthead { flex-wrap: nowrap; gap: 0.5rem; padding-inline: 1rem; }
.head-tools { gap: 0.4rem; }
.wordmark { gap: 0.45rem; }
.wordmark__text { font-size: 0.95rem; letter-spacing: 0.04em; }
.seg__btn { padding-inline: 0.6rem; }
.menu-btn { padding: 0.55rem 0.6rem; }
}

@media (max-width: 22rem) {
.wordmark__text { display: none; }
}

@media (pointer: coarse) {
.seg__btn,
  .seg--solo,
  .menu-btn,
  .btn--cta,
  .nav-inline a,
  .panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }
.wordmark,
  .nav-inline a,
  .foot__legal a,
  .unit__link,
  .contact__mail,
  .contact__meta a,
  .foot__social a { position: relative; }
.wordmark::after,
  .nav-inline a::after,
  .foot__legal a::after,
  .unit__link::after,
  .contact__mail::after,
  .contact__meta a::after,
  .foot__social a::after {
    content: "";
    position: absolute;
    inset: -14px -10px;
  }
}

@media (max-width: 60rem) {
.rules { display: none; }
}

@media (max-width: 44rem) {
.masthead__tag { display: none; }
}

@media (max-width: 34rem) {
.btn { flex: 1 1 auto; text-align: center; }
.masthead { flex-wrap: wrap; }
}
/* Unification invariants: same shell area, exact visual language and accessible touch targets. */
:root { --yl-edge:clamp(1.25rem,5vw,5rem); --yl-gold:#E8B317; }
html { scroll-padding-top:6rem; }
.masthead { position:relative;z-index:65;min-height:80px;gap:clamp(.65rem,1.4vw,1.5rem);padding:1.35rem var(--yl-edge) 1rem;background:var(--bg);border-bottom:1px solid var(--rule); }
.masthead .wordmark { flex-shrink:0;white-space:nowrap; }
.masthead .masthead__tag { white-space:nowrap; }
.masthead .nav-inline { display:flex;gap:clamp(.7rem,1.2vw,1.5rem);align-items:center; }
.masthead .nav-inline a[aria-current="page"] {color:var(--fg);font-weight:700}
.masthead .nav-inline a[aria-current="page"]::after {content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--signal)}
.masthead .head-tools {flex-shrink:0;gap:clamp(.35rem,.7vw,.65rem)}
.masthead .btn--cta {min-height:42px}
.panel {z-index:100;direction:inherit}
.scrim {z-index:90}
.foot {position:relative;z-index:1;padding:clamp(32px,5vw,70px) var(--yl-edge) 26px;background:var(--bg);color:var(--fg);border-top:1px solid var(--rule);}
.foot .foot__social{margin-top:2rem;margin-bottom:2.2rem;}
.foot .foot__social a,.foot .foot__legal a {min-height:44px;display:inline-flex;align-items:center;}
.foot .foot__meta {padding-top:1.35rem;border-top:1px solid var(--rule);font-size:.875rem;color:var(--fg-3)}
.foot .sub__form{max-width:750px}
.foot .sub__btn{min-height:46px}
.foot .sub__note{flex-basis:100%;}
[data-lang="en"] [lang="ar"]{display:none!important}
[data-lang="ar"] [lang="en"]{display:none!important}
@media(max-width:1400px){.masthead .masthead__tag {display:none}}
@media(max-width:1200px){.masthead .nav-inline {display:none}}
@media(max-width:960px){.masthead .switches--head{display:flex}}
@media(max-width:550px){.masthead{padding:1rem var(--yl-edge) .85rem}.masthead .wordmark__text{font-size:1.08rem}.masthead .head-tools{gap:.35rem}.masthead .btn--cta{padding:.48rem .65rem}.masthead .menu-btn{padding:.5rem .7rem}.foot{padding-top:38px}.foot .foot__social{gap:.25rem 1.1rem}}

/* Shared header geometry at every breakpoint. Scope to the masthead so
   the full-size controls in the panel stay intact. */
.masthead .head-tools,
.masthead .switches--head { display: flex; align-items: center; }
.masthead .switches--head .seg:not(.seg--solo) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 76px;
  height: 38px;
  box-sizing: border-box;
}
.masthead .switches--head .seg__btn[data-set-lang] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}
.masthead .switches--head .seg--solo[data-toggle-theme] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  box-sizing: border-box;
}
.masthead .switches--head .seg--solo .theme-icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.masthead .menu-btn {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  justify-content: center;
}
@media (max-width: 768px) {
  .masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .masthead .head-tools,
  .masthead .switches--head { gap: 6px; }
  .masthead .btn--cta {
    border-color: var(--glass-line);
    background: transparent;
  }
  .masthead .menu-btn {
    border-color: var(--glass-line);
    background: transparent;
  }
  .masthead .switches--head .seg--solo { border-color: var(--glass-line); }
}
@media (max-width: 640px) {
  .masthead .btn--cta { display: none; }
  .masthead .menu-btn { width: 38px; min-width: 38px; padding: 0; }
  .masthead .menu-btn span[lang] { display: none; }
  .masthead .switches--head .seg__btn:focus:not(:focus-visible),
  .masthead .menu-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
  }
}
/* Font & layout bridge for the two newer editorial pages only. */
body.identity-editorial{font-family:var(--body)!important;background:var(--bg);color:var(--fg)}
body.identity-editorial :is(h1,h2,h3) {font-family:var(--display);}
body.identity-editorial [lang="ar"] {font-family:var(--arabic)}
body.identity-editorial :is(h1,h2,h3) [lang="ar"] {font-family:var(--arabic);letter-spacing:0}
body.identity-editorial .masthead {direction:inherit;font-family:var(--body)}
body.identity-editorial .foot {font-family:var(--body)}
body.identity-editorial :is(.cta,.btn-primary):not(.sub__btn){border-radius:2px}
@media(prefers-reduced-motion:reduce){.masthead *, .foot * {transition:none!important}}

/* RTL side-panel safety: dismiss away from the INLINE-END edge, not toward the viewport. */
html[dir="ltr"] .panel:not(.is-open){transform:translateX(104%)}
html[dir="ltr"] .panel.is-open{transform:translateX(0)}
/* Hard alignment invariant across the six page templates at identical viewports. */
@media(min-width:551px){.masthead{height:84px;min-height:84px;box-sizing:border-box}}
@media(max-width:550px){.masthead{height:80px;min-height:80px;box-sizing:border-box}}

/* Keep the panel on the correct inline edge even when Platform scopes root paint direction. */
/* Footer is identical on every page, including Signal, independent of page-specific form rules. */
@font-face{font-family:"YAS Unified Arabic";font-style:normal;font-weight:400;font-display:swap;src:url('/atlas-assets/font-1.woff2') format('woff2')}
@font-face{font-family:"YAS Unified Arabic";font-style:normal;font-weight:600 800;font-display:swap;src:url('/atlas-assets/font-3.woff2') format('woff2')}
.foot {margin:0 var(--gutter);padding:2rem 0 3rem;width:auto;max-width:none;gap:1.5rem}
.foot .sub__head [lang="ar"]{font-family:"YAS Unified Arabic",var(--arabic);font-size:1em;font-weight:700;line-height:1.5}
.foot .sub__body [lang="ar"]{font-family:"YAS Unified Arabic",var(--arabic);font-weight:400}
.foot .sub__form{display:flex;gap:.6rem;align-items:stretch}
.foot input.sub__input{box-sizing:border-box!important;min-height:46px!important;max-height:46px!important;height:46px!important;line-height:1.4!important;padding:.7rem .9rem!important;flex:1 1 14rem}
.foot button.sub__btn{box-sizing:border-box;min-height:46px!important;max-height:46px!important;height:46px!important;padding:.55rem 1rem!important;display:inline-flex;align-items:center;justify-content:center}
.foot .sub__note{margin-top:0;min-height:16px}
@media(max-width:550px){.foot{padding-top:2rem;padding-bottom:3rem}}

/* Explicitly neutralize the old Signal page form layout and synchronize footer typography. */
.foot .sub__form{flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important}
.foot .sub__head{min-height:35px;line-height:1.6}
.foot .sub__text{min-height:142px}
