/* Shared, public-site-only locale styles. Preserve the repository's Tajawal
   font files, logo, visual assets and existing CSS; no external font requests. */
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid #b8cbdc;
  border-radius: 999px;
  background: #fff;
  color: #174a7e;
  flex-shrink: 0;
  width: max-content;
  font-size: 0.9rem;
  line-height: 1.5;
}
.site-header .header-actions > nav.language-switch, .header-inner .language-switch { display: inline-flex; }
.language-switch a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 999px;
  color: inherit;
  white-space: nowrap;
  text-align: center;
  font-weight: 600;
}
.language-switch a[aria-current="true"] { background: #174a7e; color: #fff; }
.language-switch a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.language-switch a:focus-visible { outline: 3px solid #9e5700; outline-offset: 3px; }
.prelaunch-header { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.header-actions { flex-wrap: wrap; }
html[dir="ltr"] { direction: ltr; }
html[dir="ltr"] body { text-align: start; }
html[dir="ltr"] .phone-pair { direction: ltr; }
html[dir="ltr"] .directional-icon { transform: scaleX(-1); }
html[dir="ltr"] .hero h1 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: 1.12; }
html[dir="ltr"] .prelaunch-intro h1 { line-height: 1.16; }
html[dir="ltr"] .prelaunch-brand small { letter-spacing: normal; }
html[dir="ltr"] .site-header .brand small { max-width: 12rem; }
html[dir="ltr"] .phone-screen { text-align: start; }
html[dir="ltr"] .policy-document { white-space: pre-wrap; }
html[dir="ltr"] .footer p { max-width: 32ch; }
.language-switch + .account-link { margin-inline-start: 0.3rem; }
@media (max-width: 800px) {
  .prelaunch-header { gap: 0.85rem; }
  html[dir="ltr"] .hero h1 { font-size: clamp(2.1rem, 8.3vw, 3.6rem); }
}
@media (max-width: 600px) {
  .header-actions > .btn.primary.compact { display: none; }
  .language-switch { font-size: 0.83rem; }
  .language-switch a { padding-inline: 0.6rem; }
  .header-inner { gap: 0.5rem; }
  .prelaunch-header > .language-switch { margin-inline-start: auto; }
}
@media (max-width: 360px) {
  .header-inner { flex-wrap: wrap; }
  .header-actions { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .language-switch a { transition: none; }
}

/* Complete public pages; isolated from the transactional site and Admin UI. */
.local-review-banner { background:#eef3f7; color:#34546d; padding:7px 18px; text-align:center; font-size:13px; border-bottom:1px solid #d7e2ec; }
.public-document { background:#f8fafc; }
.public-document .prelaunch-main { width:min(1000px,calc(100% - 40px)); margin:38px auto 60px; }
.public-document .prelaunch-support + .prelaunch-support { margin-block-start:24px; }
.public-document .prelaunch-main h1 { font-size:clamp(28px,4vw,42px); color:#174a7e; }
.public-document .prelaunch-main h2 { margin-block:32px 12px; font-size:25px; color:#174a7e; }
.public-document .prelaunch-main p { line-height:2; }
.public-document .prelaunch-intro { margin-block-end:24px; }
.notice-excerpt { padding:26px 0; border-bottom:1px solid #d7e2ec; }
.notice-excerpt p { line-height:2; font-size:16px; }
.notice-excerpt h2 { color:#174a7e; margin-block-end:16px; }
.legal-source-links { margin-block-start:32px; padding:24px; background:#eef5f8; border-radius:16px; }
.legal-source-links h2 { font-size:22px; margin-block-end:12px; }
.legal-source-links a { display:block; padding:10px 0; text-decoration:underline; text-underline-offset:4px; }
.translation-note { max-width:1000px; margin:20px auto; padding:16px 20px; border-inline-start:3px solid #9a620e; background:#fff7e9; color:#654209; line-height:1.7; font-size:14px; }
[dir="ltr"] .public-document .prelaunch-main p, [dir="ltr"] .notice-excerpt p { line-height:1.85; }
@media(max-width:600px) { .notice-excerpt p { font-size:16px; } .public-document .prelaunch-main { width:calc(100% - 28px); margin-block-start:24px; } .local-review-banner { font-size:12px; } }

/* Main navigation: all seven destinations, without squeezing the language switch.
   At medium desktop widths the navigation occupies its own row. The existing
   accessible mobile dialog remains in use at 1020px and below. */
.site-header .desktop-nav a[aria-current="page"],
#mobile-menu nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 2px;
}
@media (min-width: 1021px) {
  .site-header .header-inner {
    max-width: 1480px;
    gap: 20px;
  }
  .site-header .header-inner > .brand,
  .site-header .header-inner > .header-actions {
    flex-shrink: 0;
  }
  .site-header .header-inner > .header-actions {
    flex-wrap: nowrap;
  }
  .site-header .header-inner > .desktop-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px clamp(12px, 1.05vw, 20px);
    font-size: 14px;
    min-width: 0;
  }
  .site-header .desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding-block: 10px;
    white-space: nowrap;
  }
}
@media (min-width: 1021px) and (max-width: 1439px) {
  .site-header .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 8px;
    padding-block: 12px 0;
  }
  .site-header .header-inner > .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .site-header .header-inner > .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .site-header .header-inner > .desktop-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-block: 4px;
    border-block-start: 1px solid #e8eef3;
  }
}
