/* Only the official Home imports this file. All rules stay inside its header/footer. */
.home-header,
.home-footer {
  --navigation-ink: #201d43;
  --navigation-muted: #535b77;
  --navigation-line: #e5e6f0;
  background: #fff;
  color: var(--navigation-ink);
}

.home-header { border-bottom: 1px solid var(--navigation-line); }
:is(.home-header, .home-footer) > .container { width: min(1888px, calc(100% - clamp(44px, 8vw, 160px))); }
/* Display the approved wordmark from the original PNG, without editing the asset.
   The window selects x=726..1890, y=254..446 in its 2048x682 canvas. */
:is(.home-header, .home-footer) .brand-wordmark {
  position: relative; display: block; overflow: hidden;
  width: clamp(300px, 21.1vw, 432px); aspect-ratio: 1164 / 192;
}
:is(.home-header, .home-footer) .brand-wordmark img {
  position: absolute; width: 175.945%; max-width: none; height: auto;
  left: -62.371%; top: -132.292%;
}
.home-header .header-inner { min-height: clamp(150px, 12.3vw, 252px); gap: 32px; }
.home-header > .container { width: min(1968px, 93%); margin-left: clamp(44px, 4.7vw, 96px); }
.home-header .desktop-nav { gap: clamp(24px, 2.7vw, 55px); font-size: clamp(20px, 1.5625vw, 32px); line-height: 1.35; }
.home-header .desktop-nav > a { white-space: nowrap; }
.home-header .button,
.home-footer .button {
  min-height: clamp(60px, 4.4vw, 90px); border-radius: clamp(14px, 1.05vw, 22px);
  padding: 14px clamp(24px, 2.2vw, 45px); gap: clamp(16px, 1.3vw, 27px);
  font-size: clamp(20px, 1.5625vw, 32px); background: linear-gradient(110deg, #7917ed, #5b08c2);
}
:is(.home-header, .home-footer) .button .icon { width: clamp(24px, 1.65vw, 34px); height: clamp(24px, 1.65vw, 34px); }
.home-header .button { font-size: clamp(20px, 1.45vw, 30px); }
.home-header .desktop-nav > .language-selector { margin-left: 2px; }

:is(.home-header, .home-footer) .language-selector { position: relative; flex: none; font-size: clamp(20px, 1.42vw, 29px); line-height: 1.4; }
:is(.home-header, .home-footer) .language-selector > summary {
  display: flex; align-items: center; justify-content: flex-start; gap: 13px;
  min-height: clamp(60px, 4.4vw, 90px); min-width: clamp(168px, 12.6vw, 258px); padding: 12px clamp(16px, 1.45vw, 30px);
  border: 1px solid var(--navigation-line); border-radius: 13px; background: #fff;
  color: var(--navigation-ink); font-weight: 500;
}
:is(.home-header, .home-footer) .locale-flag { display: block; width: clamp(28px, 2.1vw, 43px); height: auto; aspect-ratio: 28 / 20; flex: none; border-radius: 3px; }
:is(.home-header, .home-footer) .locale-chevron { width: 20px; height: 20px; margin-left: auto; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
:is(.home-header, .home-footer) .language-selector[open] > summary .locale-chevron { transform: rotate(180deg); }
:is(.home-header, .home-footer) .locale-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  width: clamp(286px, 20.3vw, 416px); max-width: calc(100vw - 44px); margin: 0; padding: clamp(10px, .9vw, 18px);
  list-style: none; border: 1px solid var(--navigation-line); border-radius: 17px;
  background: #fff; box-shadow: 0 12px 36px #22204a14;
}
:is(.home-header, .home-footer) .locale-option {
  display: flex; align-items: center; gap: clamp(15px, 1.45vw, 30px); width: 100%; min-height: clamp(54px, 4vw, 82px); padding: 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--navigation-muted);
  font: inherit; font-size: clamp(16px, 1.24vw, 25px); text-align: left; cursor: pointer; white-space: nowrap;
}
:is(.home-header, .home-footer) .locale-option[aria-current] { background: #f7f1ff; color: #7026dd; font-weight: 500; }
:is(.home-header, .home-footer) .locale-option:disabled { opacity: 1; color: #8a8fa5; cursor: not-allowed; }
:is(.home-header, .home-footer) .locale-option:disabled .locale-flag { opacity: .65; }
:is(.home-header, .home-footer) .locale-option.locale-preview:disabled { color: var(--navigation-muted); }
:is(.home-header, .home-footer) .locale-option.locale-preview:disabled .locale-flag { opacity: 1; }
:is(.home-header, .home-footer) .locale-status { width: 20px; height: 20px; margin-left: auto; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.home-footer { padding: clamp(48px, 3.35vw, 69px) 0 clamp(32px, 2.7vw, 55px); border-top: 1px solid var(--navigation-line); }
.home-footer .footer-main { display: grid; grid-template-columns: 1.96fr 1fr 1fr 1.16fr 1.34fr; align-items: stretch; gap: 0; text-align: left; }
.home-footer .footer-brand { min-width: 0; }
.home-footer .footer-brand p { max-width: 90%; margin-top: clamp(25px, 2.3vw, 47px); color: var(--navigation-muted); font-size: clamp(17px, 1.26vw, 26px); line-height: 1.4; }
.home-footer .footer-socials { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.home-footer .social-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--navigation-line); border-radius: 50%; color: #7026dd; background: #fff; }
.home-footer .social-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-footer .social-mark:nth-child(3) svg path { fill: currentColor; stroke: none; }
.home-footer .social-mark:nth-child(4) svg rect,
.home-footer .social-mark:nth-child(4) svg circle,
.home-footer .social-mark:nth-child(4) svg path { fill: currentColor; stroke: none; }
.home-footer .footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; grid-column: auto; grid-row: auto; min-width: 0; min-height: clamp(181px, 12.7vw, 260px); border-left: 1px solid var(--navigation-line); padding-left: clamp(24px, 2.25vw, 46px); }
.home-footer .footer-group h2 { margin: 0 0 12px; font-size: clamp(19px, 1.41vw, 29px); line-height: 1.4; letter-spacing: -.02em; font-weight: 700; }
.home-footer .footer-group a,
.home-footer .footer-pending { display: block; min-height: 30px; padding: 3px 0; color: var(--navigation-muted); font-size: clamp(17px, 1.26vw, 26px); line-height: 1.5; text-align: left; }
.home-footer .footer-group a:hover,
.home-footer .footer-login:hover { color: #7026dd; text-decoration: underline; text-underline-offset: 4px; }
.home-footer .footer-pending { border: 0; background: transparent; opacity: 1; cursor: not-allowed; }
.home-footer .footer-actions { display: flex; flex-direction: column; align-items: stretch; gap: clamp(18px, 1.6vw, 33px); padding-left: clamp(24px, 2.25vw, 46px); border-left: 1px solid var(--navigation-line); min-width: 0; }
.home-footer .footer-actions .button { padding-inline: clamp(16px, 1.5vw, 30px); gap: 14px; font-size: clamp(20px, 1.4vw, 29px); white-space: nowrap; }
.home-footer .footer-login { color: #7026dd; font-size: clamp(19px, 1.35vw, 28px); line-height: 1.5; }
.home-footer .language-selector { margin-top: 6px; }
.home-footer .locale-list { top: auto; bottom: calc(100% + 8px); }
.home-footer .copyright { margin-top: clamp(38px, 3.35vw, 69px); padding: clamp(23px, 1.85vw, 38px) 0 0; border-top: 1px solid var(--navigation-line); color: var(--navigation-muted); font-size: clamp(14px, 1.14vw, 23px); line-height: 1.5; text-align: left; }

@media (max-width: 1199px) {
  .home-header > .container { width: calc(100% - 44px); margin-inline: auto; }
  .home-header .desktop-nav { display: none; }
  .home-header .header-inner { min-height: 88px; gap: 20px; }
  .home-header .brand-wordmark { width: 260px; }
  :is(.home-header, .home-footer) .button { min-height: 56px; border-radius: 14px; padding: 14px 23px; gap: 16px; font-size: 18px; }
  :is(.home-header, .home-footer) .language-selector { font-size: 18px; }
  :is(.home-header, .home-footer) .language-selector > summary { min-height: 54px; min-width: 168px; padding: 12px 16px; }
  :is(.home-header, .home-footer) .locale-flag { width: 28px; }
  :is(.home-header, .home-footer) .locale-option { font-size: 16px; }
  .home-header .mobile-menu { display: block; position: relative; }
  .home-header .mobile-menu > summary { display: flex; align-items: center; justify-content: center; width: 48px; min-height: 48px; color: var(--navigation-ink); }
  .home-header .mobile-menu > summary .icon { width: 26px; height: 26px; }
  .home-header .mobile-menu nav {
    position: absolute; right: 0; top: 64px; z-index: 30; display: grid;
    width: min(320px, calc(100vw - 44px)); max-height: calc(100svh - 120px); overflow-y: auto;
    gap: 9px; padding: 16px; border: 1px solid var(--navigation-line); border-radius: 15px;
    background: #fff; box-shadow: 0 12px 36px #22204a1c;
  }
  .home-header .mobile-menu nav > a:not(.button) { display: flex; align-items: center; min-height: 44px; padding: 7px 10px; font-size: 16px; }
  .home-header .mobile-menu nav > .button { margin: 0; min-height: 52px; font-size: 16px; }
  .home-header .mobile-menu .language-selector { margin-top: 4px; }
  .home-header .mobile-menu .locale-list { position: static; width: 100%; max-width: none; margin-top: 8px; box-shadow: none; padding: 6px; }
  .home-header .mobile-menu .locale-option { gap: 10px; padding: 10px 7px; font-size: 14px; }
  .home-footer .footer-main { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 24px; }
  .home-footer .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 24px; }
  .home-footer .brand { flex: none; }
  .home-footer .brand-wordmark { width: 280px; }
  .home-footer .footer-brand p { max-width: 410px; margin: 0; font-size: 17px; }
  .home-footer .footer-socials { grid-column: 2; margin: 0; }
  .home-footer .footer-group { border: 0; padding: 0; min-height: 0; }
  .home-footer .footer-group h2 { font-size: 19px; }
  .home-footer .footer-group a, .home-footer .footer-pending { font-size: 16px; }
  .home-footer .footer-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--navigation-line); }
  .home-footer .language-selector { margin: 0 0 0 auto; }
}

@media (max-width: 599px) {
  .home-header .brand-wordmark { width: 230px; }
  .home-header .header-inner { min-height: 84px; gap: 14px; }
  .home-header .mobile-menu nav { top: 61px; }
  .home-footer { padding: 32px 0 23px; }
  .home-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 29px 22px; }
  .home-footer .footer-brand { display: block; }
  .home-footer .brand-wordmark { width: 280px; }
  .home-footer .footer-brand p { margin-top: 8px; font-size: 15px; }
  .home-footer .footer-socials { margin: 14px 0 0; }
  .home-footer .footer-group h2 { margin-bottom: 5px; }
  .home-footer .footer-group a,
  .home-footer .footer-pending { min-height: 38px; padding-block: 7px; font-size: 14px; }
  .home-footer .footer-links { grid-column: 1 / -1; }
  .home-footer .footer-actions { display: flex; flex-direction: column; align-items: stretch; gap: 19px; }
  .home-footer .footer-actions .button { font-size: 17px; }
  .home-footer .footer-login { align-self: center; }
  .home-footer .language-selector { margin: 0; }
  .home-footer .language-selector > summary { justify-content: flex-start; }
  .home-footer .language-selector > summary .locale-chevron { margin-left: auto; }
  .home-footer .locale-list { width: 100%; }
  .home-footer .copyright { margin-top: 27px; padding-top: 22px; font-size: 12px; }
}

@media (max-width: 359px) {
  .home-header .brand-wordmark { width: 204px; }
  .home-header .header-inner { gap: 10px; }
  .home-footer .brand-wordmark { width: 255px; }
}
