/* Shared institutional navigation. Kept separate so every route uses one system. */
.global-header,
.global-header * {
  box-sizing: border-box;
}
.global-header {
  width: 100%;
  min-height: 88px;
  height: auto;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 30;
  background: var(--cream, #fbf8f2);
  border-bottom: 1px solid var(--line, #ded6cc);
}
.global-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--wine, #492b32);
  text-decoration: none;
}
.global-brand-mark {
  width: 37px;
  height: 42px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.4;
}
.global-brand-name strong,
.global-brand-name span {
  display: block;
}
.global-brand-name strong {
  font: 400 20px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.global-brand-name span {
  margin-top: 3px;
  font: 700 8px/1.3 Arial, sans-serif;
  letter-spacing: 2.1px;
}
.global-nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vw, 26px);
  min-width: 0;
  color: var(--ink, #302d29);
  font: 500 13px/1.4 Arial, sans-serif;
}
.global-nav > a,
.global-nav-group > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.global-nav a:hover,
.global-mobile-nav a:hover {
  color: var(--wine, #492b32);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.global-nav-group {
  position: relative;
}
.global-nav-group > summary {
  list-style: none;
}
.global-nav-group > summary::-webkit-details-marker {
  display: none;
}
.global-nav-group > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -4px 0 0 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.global-nav-popover {
  position: absolute;
  top: calc(100% + 2px);
  left: -18px;
  z-index: 40;
  width: min(350px, 90vw);
  max-height: min(72vh, 520px);
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 2px;
  background: #fffdf9;
  border: 1px solid #ded6cc;
  box-shadow: 0 14px 30px #302d2920;
}
.global-nav-popover a {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  color: inherit;
  line-height: 1.4;
  text-decoration: none;
}
.global-nav .global-nav-observatory {
  color: var(--wine, #492b32);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #a18357;
  text-underline-offset: 5px;
}
.global-nav .global-nav-consult,
.global-mobile-nav .global-nav-consult {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #bbaa9e;
  text-decoration: none;
}
.global-nav-button {
  display: none;
  min-width: 80px;
  min-height: 44px;
  padding: 7px 10px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #bbaa9e;
  border-radius: 2px;
  background: transparent;
  color: var(--wine, #492b32);
  font: 600 12px/1 Arial, sans-serif;
  cursor: pointer;
}
.global-nav-icon {
  width: 17px;
  display: grid;
  gap: 5px;
}
.global-nav-icon i {
  height: 1px;
  display: block;
  background: currentColor;
}
.global-nav-button-label {
  white-space: nowrap;
}
.global-mobile-nav[hidden] {
  display: none !important;
}
.global-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(78vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px clamp(18px, 4vw, 48px) 22px;
  display: grid;
  gap: 4px;
  background: #fffdf9;
  border: 1px solid #ded6cc;
  box-shadow: 0 16px 30px #302d2920;
  color: var(--ink, #302d29);
  font: 14px/1.5 Arial, sans-serif;
}
.global-mobile-nav > a,
.global-mobile-group > a {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  color: inherit;
  text-decoration: none;
}
.global-mobile-group {
  display: grid;
  gap: 1px;
  padding: 8px 0;
  border-top: 1px solid #e8e0d6;
}
.global-mobile-group > strong {
  padding: 8px 12px 4px;
  color: var(--wine, #492b32);
  font: 700 12px/1.4 Arial, sans-serif;
  letter-spacing: .04em;
}
.global-mobile-group > a {
  padding-left: 20px;
}
.global-header a:focus-visible,
.global-header button:focus-visible,
.global-header summary:focus-visible {
  outline: 3px solid #a18357;
  outline-offset: 3px;
}
@media (max-width: 1120px) {
  .global-header { min-height: 80px; }
  .global-nav { display: none !important; }
  .global-nav-button { display: inline-flex; }
}
@media (max-width: 420px) {
  .global-header { min-height: 74px; gap: 10px; padding: 10px 14px; }
  .global-brand { gap: 7px; }
  .global-brand-mark { width: 31px; height: 37px; }
  .global-brand-name strong { font-size: 17px; letter-spacing: .5px; }
  .global-brand-name span { font-size: 7px; letter-spacing: 1.7px; }
  .global-nav-button { min-width: 72px; padding: 7px 8px; }
  .global-mobile-nav { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .global-header *, .global-header *::before, .global-header *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
