.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 50;
  padding: 26px 0;
  box-sizing: border-box;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

/*
 * The shared header must not depend on page-specific reset styles. Some legacy
 * pages supplied border-box globally while the modern homepage did not, which
 * made the same header wider on the homepage.
 */
.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header.is-scrolled {
  padding: 14px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header .header-inner {
  width: min(1320px, calc(100% - 32px));
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 12px 30px rgba(95, 81, 111, 0.08);
}

.site-header .brand,
.site-header .main-nav,
.site-header .header-tools {
  min-width: 0;
}

.site-header.is-scrolled .header-inner {
  box-shadow: 0 16px 36px rgba(95, 81, 111, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48));
}

.site-header .brand .mark {
  font-family: var(--theme-font-display, 'Playfair Display', Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  color: #283447;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
  text-decoration: none;
}

.site-header .brand:link,
.site-header .brand:visited,
.site-header .brand:hover,
.site-header .brand:active {
  text-decoration: none;
}

.site-header .brand-logo {
  width: 58px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header .brand small {
  font-size: 9px;
  color: rgba(86, 84, 98, 0.72);
  margin-top: 4px;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header .main-nav .main-nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .main-nav .menu-item {
  display: flex;
  align-items: center;
}

.site-header .main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: rgba(40, 52, 71, 0.78);
  opacity: 0.9;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s, color 0.3s;
}

.site-header .main-nav a:link,
.site-header .main-nav a:visited {
  color: rgba(40, 52, 71, 0.78);
  text-decoration: none;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active,
.site-header .main-nav .current-menu-item > a,
.site-header .main-nav .current-menu-ancestor > a,
.site-header .main-nav .current-lang > a {
  opacity: 1;
  color: #283447;
}

.site-header .main-nav .lang-item > a,
.site-header .main-nav .pll-parent-menu-item > a {
  gap: 8px;
}

.site-header .main-nav .lang-item img,
.site-header .main-nav .pll-parent-menu-item img {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  object-fit: cover;
}

.site-header .header-cta {
	display: inline-flex;
	align-items: center;
	padding: 11px 26px;
	border-radius: 999px;
	background: #d4dac5;
	color: #505f29;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.site-header .header-cta:hover {
  background: #314451;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(46, 57, 68, 0.12);
}

.site-header .header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-header .luna-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 8px 20px rgba(95,81,111,.06);
  direction: ltr;
}

.site-header .luna-language-switcher a {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  padding: 0 6px;
  border-radius: 999px;
  color: rgba(40,52,71,.68);
  font: 750 9px/1 var(--theme-font-ui, Arial, sans-serif);
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.site-header .luna-language-switcher a:hover,
.site-header .luna-language-switcher a.is-current {
  background: var(--luna-theme-cta-bg, #d4dac5);
  color: var(--luna-theme-cta-text, #505f29);
  transform: translateY(-1px);
}

.site-header .header-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(95, 81, 111, 0.08);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header .header-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(214, 181, 110, 0.32);
}

.site-header .header-icon.active {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(214, 181, 110, 0.42);
  box-shadow: 0 10px 24px rgba(214, 181, 110, 0.14);
}

.site-header .header-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.site-header .header-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #283447;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.site-header .header-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  box-shadow: 0 8px 20px rgba(95,81,111,.08);
}

.site-header .header-menu-toggle span {
  width: 17px;
  height: 1.5px;
  border-radius: 99px;
  background: #283447;
  transition: transform .28s ease, opacity .2s ease;
}

.site-header.is-menu-open .header-menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.is-menu-open .header-menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .header-menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-header .header-search-panel {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  width: min(920px, calc(100% - 40px));
  max-height: min(680px, calc(100vh - 126px));
  padding: 22px;
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--luna-theme-cta-bg, #d4dac5) 42%, transparent), transparent 20rem),
    rgba(255,253,250,.94);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
  box-shadow: 0 30px 80px rgba(47,48,43,.17);
  opacity: 0;
  visibility: hidden;
  translate: 0 -10px;
  transition: opacity .24s ease, visibility .24s ease, translate .24s ease;
}

.site-header .header-search-panel[hidden] { display: block; }
.site-header.is-search-open .header-search-panel {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.header-search-form > label {
  display: block;
  margin-bottom: 10px;
  color: #253042;
  font-size: 13px;
  font-weight: 850;
}

.header-search-input-wrap {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 8px 7px 16px;
  border: 1px solid rgba(78,91,55,.13);
  border-radius: 19px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px #fff, 0 10px 25px rgba(61,67,52,.05);
}

.header-search-input-wrap > svg {
  width: 21px;
  fill: none;
  stroke: #66704d;
  stroke-width: 1.8;
}

.header-search-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #253042;
  font-size: 15px;
}

.header-search-input-wrap button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--luna-theme-cta-bg, #d4dac5);
  color: var(--luna-theme-cta-text, #505f29);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.header-search-status {
  padding: 12px 4px 8px;
  color: #7b7d7b;
  font-size: 11px;
}

.header-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.header-search-group {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 22px;
  background: rgba(255,255,255,.58);
}

.header-search-group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #526031;
}

.header-search-group-head > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--luna-theme-cta-bg, #d4dac5) 65%, white);
}

.header-search-group-head strong { font-size: 12px; }
.header-search-group-items { display: grid; gap: 6px; }
.header-search-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 15px;
  color: #253042;
  text-decoration: none;
  transition: background .22s ease, transform .22s ease;
}
.header-search-result:hover { background: rgba(255,255,255,.92); transform: translateX(-2px); }
.header-search-result-media {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: color-mix(in srgb, var(--luna-theme-cta-bg, #d4dac5) 38%, white);
  color: #526031;
}
.header-search-result-media img { width: 100%; height: 100%; object-fit: cover; }
.header-search-result-copy { min-width: 0; }
.header-search-result-copy strong,
.header-search-result-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search-result-copy strong { margin-bottom: 3px; font-size: 12px; }
.header-search-result-copy small { color: #7b7d82; font-size: 10px; }
.header-search-result-arrow { color: #87916d; }
.header-search-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255,255,255,.6);
  text-align: center;
}
.header-search-empty strong,
.header-search-empty span { display: block; }
.header-search-empty strong { margin-bottom: 6px; color: #253042; }
.header-search-empty span { color: #7b7d82; font-size: 12px; }

@media (max-width: 980px) {
  .site-header .main-nav {
    position: absolute;
    top: calc(100% - 10px);
    left: 20px;
    right: 20px;
    display: block;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 26px;
    background: rgba(255,253,250,.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 26px 65px rgba(47,48,43,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s ease, visibility .24s ease, transform .24s ease;
  }

  .site-header.is-menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header .main-nav .main-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .site-header .main-nav .menu-item,
  .site-header .main-nav a { width: 100%; }

  .site-header .main-nav a {
    min-height: 44px;
    padding: 0 14px;
    justify-content: flex-start;
    border-radius: 13px;
    letter-spacing: 0;
    text-transform: none;
  }

  .site-header .main-nav a:hover,
  .site-header .main-nav .current-menu-item > a {
    background: color-mix(in srgb, var(--luna-theme-cta-bg, #d4dac5) 48%, white);
  }

  .site-header .header-menu-toggle { display: inline-flex; }

  .site-header .header-inner { gap: 14px; }

  .site-header .brand { margin-left: auto; }

  .header-search-results { grid-template-columns: 1fr; }
  }

@media (max-width: 760px) {
  .site-header { padding: 14px 10px; }
  .site-header.is-scrolled { padding: 8px 10px; }
  .site-header .header-inner {
    width: 100%;
    padding: 10px 12px;
    gap: 8px;
  }
  .site-header .brand { gap: 8px; }
  .site-header .brand-logo { width: 43px; height: 46px; }
  .site-header .brand .mark { font-size: 18px;}
  .site-header .brand small { font-size: 7px;}
  .site-header .header-tools { gap: 6px; }
  .site-header .header-icon,
  .site-header .header-menu-toggle { width: 38px; height: 38px; }
  .site-header .header-search-panel {
    top: calc(100% - 4px);
    width: calc(100% - 20px);
    max-height: calc(100vh - 104px);
    padding: 14px;
    border-radius: 24px;
  }
  .header-search-input-wrap {
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 8px 13px;
  }
  .header-search-input-wrap button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .site-header .main-nav { left: 10px; right: 10px; top: calc(100% - 4px); }
}

@media (max-width: 560px) {
  .site-header .header-cta { display: none; }
  .site-header .luna-language-switcher { gap: 1px; padding: 2px; }
  .site-header .luna-language-switcher a { min-width: 24px; width: 24px; height: 28px; padding: 0; font-size: 8px; }
  .site-header .main-nav .main-nav-list { grid-template-columns: 1fr; }
}

@media (max-width: 410px) {
  .site-header .brand-text { display: none; }
  .site-header .header-icon:nth-of-type(2) { display: none; }
  .site-header .header-inner { padding-inline: 9px; }
  .site-header .header-tools { gap: 4px; }
  .header-search-result-copy small { display: none; }
  .header-search-result { grid-template-columns: 42px minmax(0, 1fr) 16px; }
  .header-search-result-media { width: 42px; height: 42px; }
}
