.fluid-header {
  --fluid-header-height: 104px;
  position: relative;
  z-index: 100;
  height: var(--fluid-header-height);
  gap: clamp(12px, 2vw, 34px);
  overflow: visible;
}

.fluid-header .fluid-brand {
  flex: 0 0 auto;
  min-height: 48px;
  margin: 0;
}

.fluid-header .fluid-brand .brand-logo {
  display: block;
  width: 168px;
  height: 63px;
  max-width: none;
  object-fit: contain;
}

.fluid-header .fluid-nav {
  position: relative;
  inset: auto;
  inset-block: auto;
  inset-inline: auto;
  transform: none;
  display: flex !important;
  width: auto;
  max-width: none;
  height: 48px;
  min-height: 48px;
  align-self: center;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 3px;
  flex: 0 1 auto;
  margin-inline: auto;
  margin-block: 0;
  padding: 3px;
  border: 1px solid #d2d0cc;
  border-radius: 6px;
  background: #f8f6f1;
  box-shadow: none;
  font-size: 15px;
  isolation: isolate;
}

.fluid-nav__trigger {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 15px;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 180ms ease;
}

.fluid-nav__trigger:hover,
.fluid-nav__trigger[aria-expanded="true"] { color: var(--accent); }

.fluid-nav__caret,
.fluid-mobile__chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 220ms ease;
}

.fluid-nav__trigger[aria-expanded="true"] .fluid-nav__caret { transform: rotate(225deg) translate(-1px, -1px); }

.fluid-nav__indicator {
  position: absolute;
  z-index: 0;
  inset-block: 4px;
  left: 0;
  width: 0;
  border-radius: 3px;
  background: #ebe1d9;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: left 340ms cubic-bezier(.22,.8,.22,1), width 340ms cubic-bezier(.22,.8,.22,1), opacity 150ms ease;
}

.fluid-nav__indicator.is-visible { opacity: 1; }

.fluid-nav__panel {
  position: absolute;
  z-index: 10;
  top: calc(100% - 1px);
  left: 0;
  width: var(--fluid-panel-width, 490px);
  max-width: calc(100vw - 32px);
  padding-top: 12px;
  opacity: 0;
  transform: translateY(-5px);
  transform-origin: top center;
  pointer-events: none;
  transition: left 340ms cubic-bezier(.22,.8,.22,1), width 340ms cubic-bezier(.22,.8,.22,1), height 340ms cubic-bezier(.22,.8,.22,1), opacity 180ms ease, transform 220ms ease;
  will-change: left, width, height;
}

.fluid-nav__panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fluid-nav__panel-surface {
  position: relative;
  height: calc(100% - 12px);
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper, #f8f6f1);
  box-shadow: 0 12px 28px #302e2b14;
}

.fluid-nav__content { position: absolute; inset: 0; overflow: hidden; padding: 20px 22px 18px; transition: opacity 140ms ease, transform 140ms ease; }
.fluid-nav__content.is-out { opacity: 0; transform: translateY(-4px); }
.fluid-nav__content.is-entering { opacity: 0; transform: translateY(5px); }
.fluid-nav__content[hidden] { display: none !important; }
.fluid-nav__eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.fluid-nav__description { max-width: 34ch; margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.fluid-nav__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }

.fluid-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 46px;
  padding-block: 8px;
  border-top: 1px solid #d2d0cc9c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 160ms ease, padding-inline 180ms ease;
}

.fluid-nav__item:hover { color: var(--accent); padding-inline: 4px; }
.fluid-nav__arrow { flex: 0 0 auto; color: var(--accent); font-size: 15px; }
.fluid-nav__item--all { grid-column: 1 / -1; margin-top: 3px; color: var(--accent); }
.fluid-header .fluid-nav .fluid-nav__trigger { padding: 8px 15px; }

.fluid-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.fluid-header .fluid-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.fluid-header .fluid-language:hover { color: var(--accent); border-bottom-color: var(--accent); }
.fluid-header .fluid-start { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: var(--paper) !important; font-size: 14px; font-weight: 700; line-height: 1.35; white-space: nowrap; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
.fluid-header .fluid-start:hover { background: var(--ink); border-color: var(--ink); }
.fluid-mobile-shell { display: none; }

.fluid-menu-icon { display: block; width: 23px; height: 23px; }
.fluid-menu-icon__close { display: none; }
.fluid-mobile-shell[open] .fluid-menu-icon__lines { display: none; }
.fluid-mobile-shell[open] .fluid-menu-icon__close { display: block; }
.fluid-menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; list-style: none; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); }
.fluid-header .menu-toggle.fluid-menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; gap: 0; flex-direction: row; }
.fluid-menu-toggle::-webkit-details-marker { display: none; }
.fluid-menu-toggle::marker { content: ""; }
.fluid-menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.fluid-mobile-drawer { display: none; }

@media (max-width: 820px) {
  .header.wrap.fluid-header { height: 84px; }
  .fluid-header { --fluid-header-height: 84px; gap: 6px; }
  .fluid-header .fluid-brand { min-height: 44px; }
  .fluid-header .fluid-brand .brand-logo { width: 144px; height: 54px; }
  .fluid-header .fluid-nav { display: none !important; }
  .fluid-mobile-shell { display: block; margin: 0; }
  .fluid-header__actions { gap: 4px; }
  .fluid-header .fluid-language { min-width: 34px; width: 34px; min-height: 42px; padding: 0; font-size: 13px; }
  .fluid-header .fluid-start { min-height: 42px; padding: 8px 10px; font-size: 13px; }
  .fluid-header .menu-toggle.fluid-menu-toggle { width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
  .fluid-mobile-shell[open] > .fluid-mobile-drawer {
    position: fixed;
    z-index: 110;
    inset-inline: 0;
    top: var(--fluid-mobile-top, 84px);
    bottom: 0;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px var(--page-gutter, 5%) max(24px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg);
    animation: fluid-drawer-in 220ms cubic-bezier(.22,.68,0,1) both;
  }
  .fluid-header .fluid-mobile__groups { display: block; position: static; inset: auto; width: 100%; max-width: none; height: auto; padding: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; align-items: stretch; font-size: 18px; }
  .fluid-mobile__group { border-bottom: 1px solid var(--line); }
  .fluid-mobile__group > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; padding-block: 10px; list-style: none; font-size: 18px; font-weight: 700; }
  .fluid-mobile__group > summary::-webkit-details-marker { display: none; }
  .fluid-mobile__group > summary::marker { content: ""; }
  .fluid-mobile__group[open] > summary { color: var(--accent); }
  .fluid-mobile__group[open] .fluid-mobile__chevron { transform: rotate(225deg) translate(-1px,-1px); }
  .fluid-mobile__links { display: grid; grid-template-rows: 0fr; padding-bottom: 0; transition: grid-template-rows 230ms cubic-bezier(.22,.8,.22,1), padding-bottom 230ms ease; }
  .fluid-mobile__group[open] .fluid-mobile__links { grid-template-rows: 1fr; padding-bottom: 8px; }
  .fluid-mobile__links-inner { min-height: 0; overflow: hidden; }
  .fluid-mobile__description { margin: 2px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
  .fluid-mobile__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; border-top: 1px solid #d2d0cc80; font-size: 16px; font-weight: 500; }
  .fluid-mobile__links a span { color: var(--accent); }
  .fluid-mobile-open { overflow: hidden; }
}

@media (max-width: 600px) {
  .fluid-header { width: 94%; }
  .fluid-header .fluid-brand .brand-logo { width: 132px; height: 49.5px; }
  .fluid-header .fluid-start { padding-inline: 8px; font-size: 12px; }
}

@media (max-width: 360px) {
  .fluid-header .fluid-brand .brand-logo { width: 108px; height: 40.5px; }
  .fluid-header .fluid-language { min-width: 28px; width: 28px; }
  .fluid-header .fluid-start { min-width: 80px; }
  .fluid-header__actions { gap: 2px; }
  .fluid-header .menu-toggle.fluid-menu-toggle { width: 40px; min-width: 40px; }
}

@keyframes fluid-drawer-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fluid-accordion-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .fluid-nav__trigger, .fluid-nav__caret, .fluid-nav__indicator, .fluid-nav__panel, .fluid-nav__item, .fluid-nav__content, .fluid-header .fluid-start, .fluid-mobile-shell[open] > .fluid-mobile-drawer, .fluid-mobile__links { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.header.wrap.fluid-header {
  width: var(--content-width, min(calc(100% - 40px), 1500px));
  height: var(--fluid-header-height, 104px);
  overflow: visible;
}

/* One paper surface extends from the existing header into the directory. */
@media (min-width: 821px) {
  .fluid-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper, #f8f6f1); opacity: 0; transition: opacity 180ms ease; }
  .fluid-header.fluid-navigation-open::before { opacity: 1; }
  .fluid-header .fluid-nav { position: static; align-self: stretch; height: auto; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; isolation: auto; gap: 6px; }
  .fluid-header .fluid-nav .fluid-nav__trigger { min-height: 48px; height: 100%; padding-inline: 17px; border-radius: 0; }
  .fluid-nav__indicator { inset-block: auto 0; height: 3px; border-radius: 0; background: var(--accent, #98523d); z-index: 1; }
  .fluid-nav__panel { top: calc(100% - 1px); padding-top: 0; max-width: calc(100vw - 32px); transform: translateY(-6px); }
  .fluid-nav__panel-surface { height: 100%; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: 0 18px 28px #302e2b12; }
  .fluid-nav__content { padding: 0; }
  .fluid-nav__spread { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: 30px clamp(24px, 3vw, 48px); }
  .fluid-nav__directory { min-width: 0; }
  .fluid-nav__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--accent); }
  .fluid-nav__eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }
  .fluid-nav__items { display: flex; flex-direction: column; }
  .fluid-nav__item { justify-content: flex-start; min-height: 49px; font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; gap: 15px; }
  .fluid-nav__number { flex: 0 0 19px; color: var(--muted); font-size: 11px; font-weight: 400; }
  .fluid-nav__label { min-width: 0; }
  .fluid-nav__arrow { margin-inline-start: auto; opacity: 0; transform: translateY(3px); transition: opacity 180ms, transform 250ms; }
  .fluid-nav__item:is(:hover, :focus-visible, .is-preview-active) { color: var(--accent); padding-inline-start: 7px; }
  .fluid-nav__item:is(:hover, :focus-visible, .is-preview-active) .fluid-nav__arrow { opacity: 1; transform: none; }
  .fluid-nav__item--all { margin-top: 9px; min-height: 44px; font-size: 14px; }
  .fluid-nav__item--all .fluid-nav__number { visibility: hidden; }
  .fluid-nav__item--all .fluid-nav__arrow { opacity: 1; }
  .fluid-nav__preview { min-width: 0; margin: 0; }
  .fluid-nav__preview img { display: block; width: 100%; height: clamp(220px, 20vw, 315px); object-fit: cover; object-position: center; aspect-ratio: 1.55; background: #f8f6f1; background-size: cover; background-position: center; background-repeat: no-repeat; }
  .fluid-nav__content--experts .fluid-nav__preview img { object-position: center 28%; }
  .fluid-nav__media { height: clamp(220px, 20vw, 315px); background-color: #f8f6f1; background-size: cover; background-position: center; }
  .fluid-nav__media--portrait img { background: transparent; mask-image: url("/images/navigation-v421/original-portrait-mask.svg"); mask-size: auto 100%; mask-position: center; mask-repeat: no-repeat; }
  .fluid-nav__preview figcaption { margin-top: 16px; text-align: start; }
  .fluid-nav__preview strong { display: block; font-size: 21px; font-weight: 700; line-height: 1.5; }
  .fluid-nav__preview p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 4px 0 0; }
  .fluid-nav__trigger:focus-visible, .fluid-nav__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .fluid-header::before, .fluid-nav__arrow { transition: none !important; }
}


/* Keep the header at the beginning of each page while preserving the home hero overlay. */
.immersive-home > .header.wrap.fluid-header { position: absolute; }
.case-page > .header.wrap.fluid-header { position: relative; }
