/* One row in every locale. Content fit controls the menu, independently of scroll. */
body.site-ui-refresh .site-header {
  top: 0;
  max-width: var(--home-header-viewport-width, 100%);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.site-ui-refresh .site-header .nav-shell {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "brand . actions links";
  width: 100%;
  max-width: 1600px;
  min-height: 64px;
  gap: 10px;
  padding: 4px 20px;
  isolation: isolate;
}
body.site-ui-refresh .site-header .brand { min-width: 168px; justify-self: start; }
/* Remove only the supplied pale backdrop, preserving the approved artwork. */
body.site-ui-refresh .site-header .brand-lockup {
  width: 168px;
  filter: url("#header-logo-transparent");
}
body.site-ui-refresh .site-header .nav-actions { gap: 4px; margin: 0; justify-self: end; }
body.site-ui-refresh .site-header .nav-links {
  display: none;
  width: max-content;
  gap: 2px;
  transition: column-gap 280ms cubic-bezier(.22, 1, .36, 1);
  padding: 0;
  border: 0;
  overflow: visible;
}
/* The logo remains the homepage link; the menu also retains its Home entry. */
body.site-ui-refresh .site-header .nav-links > .nav-home { display: none; }
body.site-ui-refresh .site-header :is(.nav-home, .nav-trigger) {
  min-height: 44px;
  padding: 8px 6px;
  font-size: .8125rem;
}
body.site-ui-refresh .site-header .mobile-nav { display: block; grid-area: links; padding: 0; justify-self: end; }
body.site-ui-refresh .site-header .mobile-nav > summary { min-height: 44px; gap: 8px; }
body.site-ui-refresh .site-header .home-menu-icon { display: none; }
body.site-ui-refresh .site-header .lang-switch-header > summary { min-width: 44px; min-height: 44px; padding: 8px 6px; gap: 3px; }
body.site-ui-refresh .site-header .nav-cta-inline { padding-inline: 12px; gap: 6px; }
body.site-ui-refresh .site-header .header-email { display: block; justify-self: end; border: 0; }
body.site-ui-refresh .site-header .header-email__copy { width: 44px; height: 44px; padding: 0; border-color: #dde3e5; border-radius: 8px; }
body.site-ui-refresh .site-header .header-email__copy > :is(bdi, .header-email__copy-icon) { display: none; }
body.site-ui-refresh .site-header[data-nav-layout="inline"] .nav-shell {
  /* Equal outer tracks keep the category navigation on the page midpoint. */
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  grid-template-areas: "brand links actions";
}
body.site-ui-refresh .site-header[data-nav-layout="inline"] .nav-links { display: flex; justify-self: center; }
body.site-ui-refresh .site-header[data-nav-layout="inline"] .mobile-nav { display: none; }
/* Measuring intrinsic text width must not affect the visible row or tab order. */
body.site-ui-refresh .site-header[data-nav-measuring] .nav-links { display: flex; position: absolute; visibility: hidden; pointer-events: none; }
body.site-ui-refresh .site-header .nav-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: var(--home-header-viewport-width, 100vw);
  transform: translateX(-50%);
  border: 1px solid transparent;
  border-bottom-color: #dde3e5;
  background: #f7f9f8;
  box-shadow: 0 8px 26px rgba(52, 61, 64, .075);
  pointer-events: none;
  transition: width 280ms cubic-bezier(.22, 1, .36, 1), border-radius 280ms ease, background-color 280ms ease;
}
body.site-ui-refresh .site-header[data-scroll-header] {
  height: var(--home-header-expanded-height);
  pointer-events: none;
  transition: none;
  transition-duration: 0s !important;
}
body.site-ui-refresh .site-header[data-scroll-header] .nav-shell {
  pointer-events: auto;
  transition: width 280ms cubic-bezier(.22, 1, .36, 1), transform 280ms cubic-bezier(.22, 1, .36, 1), column-gap 280ms cubic-bezier(.22, 1, .36, 1), padding-inline 280ms cubic-bezier(.22, 1, .36, 1);
}
body.site-ui-refresh .site-header[data-header-density="compact"] .nav-shell {
  width: var(--home-header-compact-width, calc(100% - 48px));
  column-gap: 8px;
  padding-inline: 16px;
  transform: translateY(8px);
}
body.site-ui-refresh .site-header[data-header-density="compact"] .nav-links { column-gap: 0; }
body.site-ui-refresh .site-header[data-header-density="compact"] .nav-shell::before {
  width: 100%;
  border-color: rgba(100, 116, 123, .18);
  border-radius: 16px;
  background: rgba(247, 249, 248, .76);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 4px 22px rgba(32, 43, 48, .08);
}
body.site-ui-refresh .site-header :is(.mega-menu, .lang-switch-menu, .header-email__feedback, .header-email__reminder) {
  translate: var(--home-menu-shift, 0px) 0;
  /* Viewport corrections must apply immediately, including in reduced motion. */
  transition-property: opacity, transform;
}
body.site-ui-refresh .site-header .mobile-nav-panel { max-height: min(72dvh, 560px); }
@media (max-width: 720px) {
  html.site-ui-refresh, body.site-ui-refresh { overflow-x: clip; }
  body.site-ui-refresh .site-header .nav-shell { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand actions links"; min-height: 60px; gap: 6px; padding: 4px 16px; }
  body.site-ui-refresh .site-header .brand { min-width: 124px; }
  body.site-ui-refresh .site-header .brand-lockup { width: 124px; }
  body.site-ui-refresh .site-header .nav-actions { gap: 0; }
  body.site-ui-refresh .site-header[data-header-density="compact"] .nav-actions { column-gap: 0; }
  body.site-ui-refresh .site-header[data-header-density="compact"] .nav-shell { column-gap: 4px; padding-inline: 12px; }
  body.site-ui-refresh .site-header .mobile-nav > summary { width: 44px; height: 44px; padding: 0; justify-content: center; }
  body.site-ui-refresh .site-header .home-menu-icon { display: block; }
  body.site-ui-refresh .site-header .mobile-nav > summary > :is(.mobile-nav-label, .lucide-icon) { display: none; }
  body.site-ui-refresh .site-header .lang-switch-header > summary { width: 44px; justify-content: center; padding: 0; }
  body.site-ui-refresh .site-header .lang-switch-header :is(.lang-switch-globe, .lang-switch-caret) { display: none; }
  body.site-ui-refresh .site-header .mobile-nav-panel { max-height: calc(100dvh - 160px - env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  body.site-ui-refresh .site-header .nav-shell { column-gap: 4px; padding-inline: 6px; }
  body.site-ui-refresh .site-header[data-header-density="compact"] .nav-shell { column-gap: 4px; padding-inline: 6px; }
}
/* Read intrinsic content at the expanded width, never an animation's current width. */
body.site-ui-refresh .site-header[data-header-width-measuring] .nav-shell { width: 100%; }
body.site-ui-refresh .site-header[data-header-measuring] :is(.nav-shell, .nav-links, .nav-actions),
body.site-ui-refresh .site-header[data-header-measuring] .nav-shell::before { transition: none; transition-duration: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  body.site-ui-refresh .site-header[data-scroll-header] :is(.nav-shell, .nav-links, .nav-actions),
  body.site-ui-refresh .site-header[data-scroll-header] .nav-shell::before { transition: none; transition-duration: 0s !important; }
}

/* Resource discovery uses the existing light surfaces and restrained gold accent. */
.header-resource-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  width: 44px;
  padding: 0;
  border: 1px solid #dde3e5;
  border-radius: 8px;
  color: #4d5c63;
  background: transparent;
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 550;
  white-space: nowrap;
}
.header-resource-search svg { flex-shrink: 0; color: #86550f; }
.header-resource-search:hover { color: #704a10; background: #fff4df; border-color: #dfbd7e; }
.header-resource-search:focus-visible { outline: 3px solid #b77a11; outline-offset: 3px; }
body.site-ui-refresh .resource-search button:focus-visible,
.resource-search-dialog :is(a, button):focus-visible { outline: 2px solid #627c86; outline-offset: 3px; }
body.resource-search-open { overflow: hidden; }
.resource-search [hidden], .resource-search[hidden] { display: none !important; }
.resource-search { width: 100%; min-width: 0; text-align: start; scroll-margin-top: 100px; }
.resource-search-label { display: block; margin: 0 0 9px; color: #343d40; font-size: .875rem; font-weight: 650; }
.resource-search-field { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 7px 6px 16px; padding-inline: 16px 7px; border: 1px solid #d5dde0; border-radius: 12px; background: #f7f9fa; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.resource-search-field:hover { border-color: #aebec5; }
.resource-search-field:focus-within { border-color: #748991; background: #fff; box-shadow: 0 0 0 3px rgba(89, 112, 121, .12); }
.resource-search-field > svg { flex: 0 0 20px; color: #6b818b; }
.resource-search-field input { flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #26383f; font: inherit; font-size: 16px; }
/* The shared field carries input focus; avoid a second square outline inside it. */
body.site-ui-refresh .resource-search .resource-search-field input:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.resource-search-field input::placeholder { color: #6b7478; opacity: 1; }
.resource-search-submit { flex-shrink: 0; min-height: 44px; max-width: 40%; padding: 10px 20px; border: 1px solid #334b55; border-radius: 8px; background: #334b55; color: #fff; font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; }
.resource-search-submit:hover { border-color: #263c46; background: #263c46; }
.resource-search-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px 8px; }
.resource-search-topics button { min-height: 38px; max-width: 100%; padding: 7px 13px; border: 1px solid #d7ddda; border-radius: 20px; background: #fff; color: #58676d; font: inherit; font-size: .8125rem; line-height: 1.4; text-align: start; cursor: pointer; }
.resource-search-topics button:hover { border-color: #bc913f; color: #704a10; }
.resource-search-topics button[aria-pressed="true"] { border-color: #b98424; background: #fff4df; color: #704a10; }
.resource-search-status-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.resource-search .resource-search-status-row p { flex: 1 1 160px; margin: 0; color: #58676d; font-size: .875rem; line-height: 1.6; }
.resource-search-text-button { min-height: 36px; padding: 5px 0; border: 0; color: #86550f; background: transparent; font: inherit; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.resource-search .resource-search-empty-hint { margin: 8px 0 0; color: #58676d; font-size: .875rem; line-height: 1.7; }
body.site-ui-refresh .landing-page--resources .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
body.site-ui-refresh .landing-page--resources .page-hero-grid > div:first-child { width: 100%; max-width: 1040px; gap: 16px; }
body.site-ui-refresh .landing-page--resources .hero-summary { max-width: 880px; }
body.site-ui-refresh .landing-page--resources .resource-search { max-width: 960px; margin-top: 8px; }
body.site-ui-refresh .landing-page--resources .hero-actions { margin-top: 0; }
body.site-ui-refresh .landing-page--resources .hero-actions .button { min-height: 40px; padding: 8px 14px; font-size: .8125rem; }
body.site-ui-refresh .landing-page--resources .landing-hero { padding-bottom: 28px; }
body.site-ui-refresh .landing-page--resources .resource-search-index { padding-top: 22px; scroll-margin-top: 96px; }
.resource-search-result { min-width: 0; overflow-wrap: anywhere; }
.resource-search-dialog { width: min(780px, calc(100% - 32px)); max-height: calc(100dvh - 64px); margin: 32px auto; padding: 0; border: 1px solid #d7ddda; border-radius: 14px; background: #fff; color: #343d40; box-shadow: 0 20px 80px rgba(25, 39, 45, .2); overflow-y: auto; overscroll-behavior: contain; }
.resource-search-dialog::backdrop { background: rgba(24, 35, 41, .5); }
.resource-search-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px 12px; }
.resource-search-dialog-heading h2 { margin: 0; color: #26383f; font-size: 1.35rem; line-height: 1.4; letter-spacing: -.02em; }
.resource-search-dialog-heading > button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #d7ddda; border-radius: 8px; background: #f7f9f8; color: #4d5c63; cursor: pointer; }
.resource-search-dialog-heading > button:hover { background: #fff4df; }
.resource-search-dialog-body { padding: 0 24px 20px; }
.resource-search-dialog-results { display: grid; gap: 0; margin-top: 12px; }
.resource-search-dialog .resource-search-result { display: block; min-height: 0; padding: 17px 0; border: 0; border-top: 1px solid #e4e8e6; border-radius: 0; background: #fff; color: #26383f; text-decoration: none; box-shadow: none; }
.resource-search-dialog .resource-search-result:hover { background: #fffaf0; transform: none; }
.resource-search-dialog .resource-search-result > span { display: block; color: #86550f; font-size: .75rem; }
.resource-search-dialog .resource-search-result > strong { display: block; margin-block: 5px; color: #26383f; font-size: 1rem; line-height: 1.55; }
.resource-search-dialog .resource-search-result > small { display: block; color: #58676d; font-size: .875rem; line-height: 1.6; }
.resource-search-dialog-footer { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid #e4e8e6; background: #f7f9f8; }
.resource-search-dialog-footer a { display: inline-flex; gap: 8px; align-items: center; min-height: 32px; color: #704a10; font-size: .875rem; }
.resource-search-dialog-footer svg { flex-shrink: 0; }
[dir="rtl"] .resource-search-dialog-footer svg { transform: scaleX(-1); }
@media (max-width: 720px) {
  .resource-search-field { gap: 8px; padding-inline: 10px 5px; }
  .resource-search-submit { padding-inline: 12px; }
  .resource-search-topics { gap: 7px; }
  .resource-search-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 24px); margin: 12px auto; border-radius: 10px; }
  .resource-search-dialog-heading { padding: 14px 14px 12px; gap: 8px; }
  .resource-search-dialog-heading h2 { font-size: 1.15rem; }
  .resource-search-dialog-body { padding: 0 14px 14px; }
  .resource-search-dialog-footer { padding: 12px 14px; }
}
@media (pointer: coarse) { .resource-search-topics button, .resource-search-text-button { min-height: 44px; } }
@media (forced-colors: active) { .resource-search-field:focus-within { outline: 2px solid Highlight; outline-offset: 2px; } }
