/* Shared header and footer. Page typography stays in site.css / home.css. */
body { padding-block-start: 0; }
html { scroll-padding-block-start: calc(var(--size-home-header) + var(--space-home-24)); }
:where(.yh-header,.yh-footer,.yh-skip) {
  font-family: var(--font-home-latin);
  font-size: var(--step-home-16);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  text-align: start;
}
.yh-header,.yh-footer { flex-shrink: 0; }
.yh-header { color: var(--c-landing-text); }
:where(.yh-header,.yh-footer) :where(h3,p,figure) { margin: 0; }
:where(.yh-header,.yh-footer) h3 { line-height: 1.08; }
:where(.yh-header,.yh-footer) a { color: inherit; text-decoration: none; }
:where(.yh-header,.yh-footer) :where(button,select) { font: inherit; color: inherit; }
:where(.yh-header,.yh-footer) button { cursor: pointer; background: none; }
:where(.yh-header,.yh-footer) :where(button,a,select) { -webkit-tap-highlight-color: transparent; }
:where(.yh-header,.yh-footer) :where(img,svg) { display: block; max-width: 100%; }
:where(.yh-header,.yh-footer) img { height: auto; }
:where(.yh-header,.yh-footer) .icon { width: 24px; height: 24px; flex: none; }
:where(.yh-header,.yh-footer) :is(button,a,select,[tabindex],summary):focus-visible {
  outline: 3px solid var(--c-landing-link);
  outline-offset: 5px;
}
[dir=rtl] :where(.yh-header,.yh-footer,.yh-skip) { font-family: var(--font-home-arabic); line-height: 1.85; }
[dir=rtl] :where(.yh-header,.yh-footer) :is(h3,p,span,a,button,small,strong,div) { letter-spacing: 0; }
[dir=rtl] :where(.yh-header,.yh-footer) h3 { line-height: 1.4; }
[dir=rtl] :where(.yh-header,.yh-footer) .directional { transform: scaleX(-1); }
@font-face {
  font-family: "Home Plex Arabic"; src: url(/static/fonts/plex-sans-arabic-v15-regular.woff2) format('woff2'); font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Home Plex Arabic"; src: url(/static/fonts/plex-sans-arabic-v15-600.woff2) format('woff2'); font-weight: 500 600; font-display: swap;
}
@font-face {
  font-family: "Home Plex Arabic"; src: url(/static/fonts/plex-sans-arabic-v15-700.woff2) format('woff2'); font-weight: 700 800; font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/static/fonts/manrope-variable.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
body.yh-menu-open {
  overflow:hidden
}
.yh-container {
  width:min(1100px,calc(100% - 2 * var(--space-home-gutter)));
  margin-inline:auto
}
.yh-skip {
  position:fixed;
  top:8px;
  inset-inline-start:12px;
  z-index:100;
  background:var(--c-landing-hero-text);
  color:var(--c-landing-navy);
  padding:var(--space-home-12) var(--space-home-20);
  border-radius:var(--radius-home-12);
  transform:translateY(-160%)
}
.yh-skip:focus {
  transform:none
}
.yh-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-home-24);
  padding:var(--space-home-16) var(--space-home-25);
  min-height:54px;
  border:1px solid transparent;
  border-radius:var(--radius-home-100);
  background:var(--c-landing-action);
  color:var(--c-landing-hero-text);
  box-shadow:var(--shadow-home-depth-1);
  font-size:var(--step-home-14);
  font-weight:600;
  line-height:1.4;
  transition:background .2s,color .2s,transform .2s;
  white-space:nowrap
}
.yh-button>.icon {
  width:19px;
  height:19px
}
.yh-button:hover {
  background:var(--c-home-button-2);
  color:var(--c-landing-hero-text);
  transform:translateY(-2px)
}
.yh-header {
  position:sticky;
  top:0;
  z-index:40;
  background:var(--c-landing-header);
  backdrop-filter:blur(16px);
  border-bottom:1px solid transparent;
  transition:border-color .2s
}
.yh-header.is-scrolled {
  border-color:var(--c-landing-line)
}
.yh-header-inner {
  min-height:var(--size-home-header);
  width:calc(100% - 2 * clamp(24px,4vw,60px));
  max-width:1600px;
  margin-inline:auto;
  display:flex;
  align-items:center;
  gap:var(--space-home-30)
}
.yh-logo {
  display:inline-flex;
  align-items:center;
  gap:var(--space-home-9);
  font-size:var(--step-home-27);
  letter-spacing:-1.3px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  color:var(--c-landing-blue);
  flex-shrink:0
}
.yh-logo img {
  width:36px;
  height:36px
}
.yh-navigation {
  display:flex;
  align-items:center;
  gap:var(--space-home-30);
  margin-inline-start:auto
}
.yh-nav-link {
  position:relative;
  padding:var(--space-home-12) 0;
  display:inline-flex;
  gap:var(--space-home-8);
  align-items:center;
  border:0;
  font-size:var(--step-home-13);
  white-space:nowrap;
  line-height:1.5;
  transition:color .2s
}
.yh-nav-link:hover,.yh-nav-link[aria-expanded=true],.yh-nav-link[aria-current=page] {
  color:var(--c-landing-link)
}
.yh-nav-link>.icon {
  width:17px;
  height:17px;
  transition:transform .2s
}
.yh-nav-link[aria-expanded=true]>.icon {
  transform:rotate(180deg)
}
.yh-header-actions {
  display:flex;
  align-items:center;
  gap:var(--space-home-20);
  margin-inline-start:var(--space-home-10)
}
.yh-language-link {
  display:inline-flex;
  align-items:center;
  gap:var(--space-home-8);
  font-family:var(--font-home-arabic);
  font-size:var(--step-home-13);
  padding:var(--space-home-10) 0;
  white-space:nowrap
}
.yh-language-link>.icon {
  width:17px;
  height:17px
}
/* The header's language menu: the current language on the trigger, every
   language in the panel, which opens below the trigger at its end edge. */
.yh-header-language>.yh-language-link {
  font-family:inherit;
  cursor:pointer
}
.yh-header-language .yh-language-chevron {
  width:14px;
  height:14px;
  transition:transform .2s
}
.yh-header-language[open] .yh-language-chevron { transform:rotate(180deg) }
.yh-header-language .menu__panel {
  min-inline-size:10rem;
  max-inline-size:calc(100vw - 2 * var(--space-home-16));
  inline-size:max-content
}
.yh-header-language .menu__item { min-height:var(--space-home-44); font-size:var(--step-home-14) }
.yh-header-language .menu__item[lang=ar] { font-family:var(--font-home-arabic) }
.yh-mobile-languages { display:none }
.yh-header-cta {
  padding:var(--space-home-13) var(--space-home-22);
  min-height:48px;
  font-size:var(--step-home-13);
  gap:var(--space-home-20)
}
.yh-menu-toggle {
  display:none
}
.yh-mobile-language {
  display:none
}
[dir=rtl] .yh-logo {
  font-size:var(--step-home-29);
  font-weight:700
}
[dir=rtl] .yh-nav-link {
  font-size:var(--step-home-14)
}
[dir=rtl] .yh-navigation {
  gap:var(--space-home-26)
}
@media(max-width:1200px) {
  .yh-header-inner {
    gap:var(--space-home-20)
  }
  .yh-navigation {
    gap:var(--space-home-20)
  }
  .yh-header-actions {
    gap:var(--space-home-15);
    margin-inline-start:0
  }
  .yh-nav-link {
    font-size:var(--step-home-12)
  }
  .yh-header-cta {
    padding-inline:var(--space-home-18);
    gap:var(--space-home-16)
  }
  .yh-logo {
    font-size:var(--step-home-24)
  }
  [dir=rtl] .yh-navigation {
    gap:var(--space-home-18)
  }
  [dir=rtl] .yh-nav-link {
    font-size:var(--step-home-13)
  }
}
@media(max-width:1050px) {
  .yh-language-link {
    gap:var(--space-home-5);
    font-size:var(--step-home-12)
  }
  .yh-language-link>.icon {
    display:none
  }
}
@media(max-width:900px) {
  :root {
    --size-home-header:82px
  }
  .yh-header-inner {
    width:calc(100% - 40px);
    gap:var(--space-home-16)
  }
  .yh-menu-toggle {
    display:grid;
    place-items:center;
    border:0;
    order:-1;
    width:38px;
    height:42px;
    padding:var(--space-home-7)
  }
  .yh-menu-toggle>.icon {
    width:24px;
    height:24px
  }
  .yh-header-actions {
    margin-inline-start:auto;
    gap:var(--space-home-20)
  }
  .yh-language-link {
    font-size:var(--step-home-13)
  }
  .yh-logo {
    font-size:var(--step-home-25)
  }
  .yh-chrome-js .yh-navigation {
    display:none
  }
  .yh-chrome-js .yh-navigation.is-open {
    display:flex;
    position:fixed;
    inset:var(--size-home-header) 0 0;
    height:calc(100dvh - var(--size-home-header));
    overflow-y:auto;
    align-items:stretch;
    flex-direction:column;
    margin:0;
    background:var(--c-landing-canvas);
    padding:var(--space-home-24) var(--space-home-32) var(--space-home-70);
    gap:0;
    border-top:1px solid var(--c-landing-line)
  }
  .yh-features-control {
    width:100%
  }
  .yh-nav-link {
    padding:var(--space-home-22) 0;
    font-size:var(--step-home-21);
    width:100%;
    justify-content:space-between;
    border-bottom:1px solid var(--c-landing-line)
  }
  .yh-mobile-languages {
    display:flex;
    flex-wrap:wrap;
    gap:var(--space-home-16) var(--space-home-24);
    margin-top:var(--space-home-28)
  }
  .yh-mobile-language {
    display:block;
    font-size:var(--step-home-16);
    font-family:var(--font-home-arabic)
  }
  .yh-mobile-language[aria-current] {
    font-weight:600;
    text-decoration:underline;
    text-underline-offset:4px
  }
  [dir=rtl] .yh-nav-link {
    font-size:var(--step-home-23)
  }
  html:not(.yh-chrome-js) .yh-menu-toggle {
    display:none
  }
  html:not(.yh-chrome-js) .yh-header-inner {
    flex-wrap:wrap
  }
  html:not(.yh-chrome-js) .yh-navigation {
    order:3;
    flex-wrap:wrap;
    width:100%;
    margin:0;
    gap:var(--space-home-16)
  }
  html:not(.yh-chrome-js) .yh-nav-link {
    font-size:var(--step-home-14);
    width:auto;
    padding:var(--space-home-10) 0
  }
  html:not(.yh-chrome-js) .yh-features-control {
    display:block;
    width:auto
  }
}
@media(max-width:650px) {
  :root {
    --space-home-gutter:25px;
    --size-home-header:76px
  }
  .yh-header-inner {
    width:calc(100% - 32px);
    gap:var(--space-home-10)
  }
  .yh-logo {
    font-size:var(--step-home-23);
    gap:var(--space-home-7)
  }
  .yh-logo img {
    width:31px;
    height:31px
  }
  .yh-menu-toggle {
    width:32px;
    padding:var(--space-home-4)
  }
  .yh-language-link {
    display:none
  }
  .yh-header-cta {
    font-size:var(--step-home-11);
    padding:var(--space-home-11) var(--space-home-14);
    gap:var(--space-home-10);
    min-height:43px
  }
  .yh-header-cta>.icon {
    width:16px;
    height:16px
  }
  .yh-header-actions {
    margin-inline-start:auto;
    gap:0
  }
  [dir=rtl] .yh-logo {
    font-size:var(--step-home-26)
  }
}
@media(max-width:380px) {
  :root {
    --space-home-gutter:22px
  }
  .yh-header-inner {
    gap:var(--space-home-8)
  }
  .yh-logo {
    font-size:var(--step-home-21)
  }
  .yh-logo img {
    width:29px;
    height:29px
  }
  .yh-menu-toggle {
    width:29px
  }
  .yh-header-cta {
    font-size:var(--step-home-10);
    padding-inline:var(--space-home-12);
    gap:var(--space-home-8)
  }
  .yh-header-cta>.icon {
    width:14px;
    height:14px
  }
  [dir=rtl] .yh-logo {
    font-size:var(--step-home-24)
  }
}
.yh-header-actions {
  gap:var(--space-home-14);
}
.yh-header a:hover {
  color: var(--c-landing-link);
}
.yh-header .yh-button:hover {
  color: var(--c-landing-hero-text);
  transform: none;
}
.yh-chrome-js .yh-nav-fallback {
  display: none;
}
html:not(.yh-chrome-js) .yh-theme-toggle,html:not(.yh-chrome-js) .yh-menu-toggle,html:not(.yh-chrome-js) [data-feature-menu] {
  display: none;
}
html:not(.yh-chrome-js) .yh-header {
  position: static;
}
html:not(.yh-chrome-js) .yh-feature-menu[hidden] {
  display: none !important;
}
.yh-menu-toggle[aria-expanded=true] .icon {
  transform: rotate(90deg);
}
@media (max-width: 1050px) {
  .yh-header-inner {
    gap:var(--space-home-14);
  }
  .yh-navigation {
    gap:var(--space-home-14);
  }
  .yh-header-actions {
    gap:var(--space-home-10);
  }
}
@media (max-width: 650px) {
  .yh-header-actions {
    gap:var(--space-home-8);
  }
  .yh-header-cta {
    padding-inline:var(--space-home-15);
  }
}
@media (max-width: 380px) {
  .yh-header-inner {
    width: calc(100% - 24px);
    gap:var(--space-home-6);
  }
  .yh-header-actions {
    gap:var(--space-home-5);
  }
  .yh-logo {
    font-size:var(--step-home-19);
    gap:var(--space-home-5);
  }
  .yh-logo img {
    width: 26px;
    height: 26px;
  }
  [dir=rtl] .yh-logo {
    font-size:var(--step-home-21);
  }
  .yh-header-cta {
    padding-inline:var(--space-home-10);
    gap:var(--space-home-6);
  }
}
.yh-menu-toggle .yh-menu-close,.yh-menu-toggle[aria-expanded=true] .yh-menu-open {
  display: none;
}
.yh-menu-toggle[aria-expanded=true] .yh-menu-close {
  display: block; transform: none;
}

@media (prefers-reduced-motion: reduce) {
  :where(.yh-header,.yh-footer,.yh-skip),
  :where(.yh-header,.yh-footer) *,
  :where(.yh-header,.yh-footer) *::before,
  :where(.yh-header,.yh-footer) *::after { animation: none !important; transition: none !important; }
}

/* Shared footer: brand preferences, two balanced link groups, and legal links. */
.yh-footer {
  background:var(--c-landing-deep);
  color:var(--c-home-footer-top);
  padding-block:var(--space-home-72) var(--space-home-32);
}
body[data-page=home] .yh-footer { padding-block-start:calc(var(--space-home-72) + var(--radius-home-38)); }
.yh-footer-top {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));
  gap:clamp(var(--space-home-32),6vw,var(--space-home-80));
  align-items:start;
}
.yh-footer-brand { display:flex; flex-direction:column; align-items:flex-start; gap:var(--space-home-32); min-width:0; }
.yh-footer-brand>.yh-logo { font-size:var(--step-home-30); color:var(--c-landing-hero-text); }
.yh-footer-brand>.yh-logo img { width:var(--space-home-44); height:var(--space-home-44); }
.yh-footer-social { display:flex; align-items:center; gap:var(--space-home-12); flex:none; }
.yh-footer-social a {
  display:grid;
  place-items:center;
  width:var(--space-home-44);
  height:var(--space-home-44);
  border:1px solid var(--c-home-footer-bottom);
  border-radius:50%;
  color:var(--c-landing-hero-text);
  transition:background-color .2s;
}
.yh-footer-social a:hover { background:var(--c-landing-action); }
.yh-social-icon { width:var(--space-home-20); height:var(--space-home-20); }
.yh-footer-links { min-width:0; }
.yh-footer-links h3 { margin:0 0 var(--space-home-16); font-size:var(--step-home-14); font-weight:600; line-height:1.6; letter-spacing:0; color:var(--c-landing-hero-text); }
.yh-footer-links ul { margin:0; padding:0; list-style:none; }
.yh-footer-links a {
  display:flex;
  align-items:center;
  width:fit-content;
  max-width:100%;
  min-height:var(--space-home-44);
  padding-block:var(--space-home-8);
  font-size:var(--step-home-15);
  line-height:1.6;
  transition:color .2s;
}
.yh-footer-links a:hover,.yh-footer-legal a:hover { color:var(--c-home-footer-top-2); }
.yh-footer a[aria-current=page] { color:var(--c-landing-hero-text); text-decoration:underline; text-underline-offset:4px; }
.yh-footer :focus-visible { outline-color:var(--c-landing-cyan); }
.yh-footer-preferences { display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-home-12); }
.yh-theme-toggle {
  display:grid;
  place-items:center;
  flex:none;
  width:var(--space-home-44);
  height:var(--space-home-44);
  padding:0;
  border:1px solid var(--c-home-footer-bottom);
  border-radius:50%;
  color:var(--c-landing-hero-text);
  background:transparent;
  transition:background-color .2s,color .2s;
}
.yh-footer .yh-theme-toggle .icon { width:19px; height:19px; }
.yh-footer .menu .iconbtn {
  inline-size:auto;
  block-size:auto;
  min-block-size:var(--space-home-44);
  padding-inline:var(--space-home-14);
  gap:var(--space-home-10);
  border:1px solid var(--c-home-footer-bottom);
  border-radius:var(--radius-home-100);
  font-size:var(--step-home-14);
  line-height:1.5;
  color:var(--c-landing-hero-text);
  background:transparent;
}
.yh-footer .iconbtn .icon { width:18px; height:18px; }
.yh-footer .iconbtn .yh-language-chevron { width:14px; height:14px; transition:transform .2s; }
.yh-footer .menu[open] .yh-language-chevron { transform:rotate(180deg); }
.yh-footer .menu .iconbtn:hover,.yh-footer .menu[open] .iconbtn,.yh-theme-toggle:hover { background:var(--c-home-footer-bottom); color:var(--c-home-footer-top-2); }
.yh-footer .menu__panel {
  inset-inline-start:0;
  inset-inline-end:auto;
  inset-block-start:auto;
  inset-block-end:calc(100% + var(--space-home-12));
  min-inline-size:100%;
  max-inline-size:calc(100vw - 2 * var(--space-home-gutter));
  inline-size:max-content;
  transform-origin:center bottom;
}
.yh-footer .menu__item { min-height:var(--space-home-44); color:var(--c-text); font-size:var(--step-home-14); }
.yh-footer .menu__item:hover { color:var(--c-link); }
.yh-footer-bottom {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-home-12) var(--space-home-32);
  margin-top:var(--space-home-40);
  padding-top:var(--space-home-20);
  border-top:1px solid var(--c-home-footer-bottom);
  font-size:var(--step-home-12);
  line-height:1.7;
}
.yh-footer-legal { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-home-8) var(--space-home-24); }
.yh-footer-legal a { display:inline-flex; align-items:center; min-height:var(--space-home-44); transition:color .2s; }
[dir=rtl] .yh-footer-links h3 { font-size:var(--step-home-16); }
[dir=rtl] .yh-footer-links a { font-size:var(--step-home-17); }
[dir=rtl] .yh-footer-bottom { font-size:var(--step-home-14); }
[dir=rtl] .yh-footer .menu .iconbtn,[dir=rtl] .yh-footer .menu__item { font-size:var(--step-home-16); }
@media(max-width:900px) {
  .yh-footer-top { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-home-40); }
  .yh-footer-brand { grid-column:1/-1; flex-direction:row; align-items:center; justify-content:space-between; gap:var(--space-home-24); }
}
@media(max-width:650px) {
  .yh-footer { padding-block:var(--space-home-56) var(--space-home-24); }
  body[data-page=home] .yh-footer { padding-block-start:calc(var(--space-home-56) + var(--radius-home-28)); }
  .yh-footer-top { gap:var(--space-home-36) var(--space-home-24); }
  .yh-footer-brand { flex-direction:column; align-items:flex-start; }
  .yh-footer-brand>.yh-logo { font-size:var(--step-home-28); }
  .yh-footer-bottom { flex-direction:column; align-items:flex-start; margin-top:var(--space-home-32); gap:var(--space-home-8); }
}

/* Features uses the language menu's panel and item styles. */
.yh-features-control { position:relative; }
.yh-feature-menu {
  inset-inline-start:0;
  inset-inline-end:auto;
  inset-block-start:calc(100% + var(--space-2xs));
  inline-size:max-content;
  min-inline-size:100%;
  max-inline-size:calc(100vw - 2 * var(--space-home-gutter));
}
.yh-feature-menu .menu__item { min-height:var(--space-home-44); font-size:var(--step-home-14); color:var(--c-text); }
.yh-feature-menu .menu__item:hover { color:var(--c-link); }
.yh-feature-menu .menu__item::after { content:none; }
[dir=rtl] .yh-feature-menu .menu__item { font-size:var(--step-home-16); }
@media(max-width:900px) {
  .yh-feature-menu { position:static; min-inline-size:0; max-inline-size:100%; margin-block:var(--space-home-8) var(--space-home-20); }
}
