/* Header-only navigation refinement. Load after theme.css. */
.wlf-site-header .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding-block: 0;
}
.wlf-site-header.header .logo { justify-self: start; min-width: 0; }
.wlf-site-header.header .logo img { display: block; width: 200px; max-width: 100%; height: auto; }
.wlf-site-header nav.wlf-primary-nav {
  display: block;
  order: 0;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.wlf-site-header .wlf-primary-nav > .wlf-primary-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}
.wlf-site-header .wlf-primary-links > li { min-width: 0; }
.wlf-site-header .wlf-primary-nav .wlf-primary-links > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.wlf-site-header .wlf-primary-nav a[aria-current="page"] { color: var(--green); }
.wlf-site-header .wlf-primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.wlf-site-header .header-actions { justify-self: end; min-width: 0; gap: 14px; margin: 0; }
.wlf-site-header .language-switch { justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 4px; font-size: 11px; }
.wlf-site-header .wlf-header-quote { flex-shrink: 0; min-height: 45px; padding: 12px 16px; gap: 10px; font-size: 12px; white-space: nowrap; }
.wlf-site-header.header .wlf-header-quote > span[data-en] { display: inline; }
.wlf-site-header .mobile-menu-toggle { display: none; }
.wlf-site-header a:focus-visible,
.wlf-site-header button:focus-visible,
.wlf-site-header summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

@media (min-width: 1001px) and (max-width: 1180px) {
  .wlf-site-header .header-inner { min-height: 88px; gap: 18px; }
  .wlf-site-header.header .logo img { width: 180px; }
  .wlf-site-header .wlf-primary-nav > .wlf-primary-links { gap: 18px; }
  .wlf-site-header .header-actions { gap: 10px; }
  .wlf-site-header .wlf-header-quote { padding-inline: 13px; font-size: 11px; }
}

@media (max-width: 1000px) {
  .wlf-site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
    min-height: 80px;
    padding-block: 14px;
  }
  .wlf-site-header.header .logo { grid-row: 1; grid-column: 1; }
  .wlf-site-header.header .logo img { width: 180px; }
  .wlf-site-header .header-actions { grid-row: 1; grid-column: 2; gap: 12px; }
  .wlf-site-header .header-actions > .wlf-header-quote { display: none; }
  .wlf-site-header .mobile-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
  }
  .wlf-site-header .mobile-menu-toggle svg { width: 22px; height: 22px; }
  .wlf-site-header nav.wlf-primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .wlf-site-header nav.wlf-primary-nav.is-open { display: block; }
  .wlf-site-header .wlf-primary-nav > .wlf-primary-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }
  .wlf-site-header .wlf-primary-nav .wlf-primary-links > li > a {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.5;
  }
  .wlf-site-header .wlf-primary-nav a::after { display: none; }
  .wlf-site-header .wlf-primary-nav a[aria-current="page"] { font-weight: 800; }
  .wlf-site-header .wlf-primary-nav > a.wlf-header-quote {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px solid transparent;
    background: var(--gold);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    gap: 10px;
    text-align: center;
  }
  .wlf-site-header .wlf-primary-nav > a.wlf-header-quote:hover { background: var(--gold-hover); }
}

@media (max-width: 440px) {
  .wlf-site-header .header-inner { gap: 0 12px; }
  .wlf-site-header.header .logo img { width: 148px; }
  .wlf-site-header .header-actions { gap: 8px; }
  .wlf-site-header .language-switch { min-width: 44px; min-height: 44px; font-size: 11px; }
}

/* Narrow slogan strip: keep its height and the navigation geometry unchanged. */
@media (max-width: 440px) {
  .wlf-topbar .topbar-location { display: none; }
  .wlf-topbar .topbar-inner { justify-content: flex-start; gap: 0; }
  .wlf-topbar .topbar-inner > span:first-child {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}
