/* Isolated shared header: page-specific .nav/.dropdown styles cannot change it. */
.site-header.gft-header {
  position: sticky; top: 0; z-index: 999; width: 100%;
  background: #fff; color: #244131;
  border-bottom: 1px solid #e1e9df; box-shadow: 0 3px 16px rgb(36 65 49 / 5%);
}
.gft-header *, .gft-header *::before, .gft-header *::after { box-sizing: border-box; }
.gft-header .gft-header-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; width: min(1320px, calc(100% - 40px)); min-height: 84px; margin: 0 auto;
}
.gft-header a { text-decoration: none; color: inherit; }
.gft-header .gft-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gft-header .gft-logo img { width: 48px; height: 48px; object-fit: contain; }
.gft-header .gft-logo-text { display: grid; gap: 2px; }
.gft-header .gft-logo-text strong { font-size: 20px; line-height: 1.3; font-weight: 800; }
.gft-header .gft-logo-text > span { font-size: 11px; line-height: 1.6; color: #617264; }
.gft-header ul { list-style: none; padding: 0; margin: 0; }
.gft-header .gft-menu { display: flex; align-items: center; gap: 4px; }
.gft-header .gft-item { padding: 0; margin: 0; }
.gft-header .gft-group { padding: 0; border: 0; margin: 0; background: transparent; }
.gft-header .gft-heading, .gft-header .gft-quote {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 44px; padding: 10px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1.6; white-space: nowrap; cursor: pointer;
}
.gft-header summary { list-style: none; }
.gft-header summary::-webkit-details-marker { display: none; }
.gft-header summary::after, .gft-header summary::before { content: none; }
.gft-header .gft-chevron {
  display: block; width: 14px; height: 14px; flex: 0 0 14px;
  align-self: center; transform-origin: center;
}
.gft-header details[open] > summary .gft-chevron { transform: rotate(180deg); }
.gft-header .gft-heading {
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.gft-header .gft-heading:hover, .gft-header .gft-group[open] > .gft-heading {
  background: #f3f6ef; color: #285639;
}
/* Override the legacy thick underline only inside the shared navigation. */
.gft-header .current-page { border: 0; }
.gft-header .gft-menu .gft-heading.current-page {
  background: linear-gradient(135deg, #f5f8f0, #e7efdf);
  color: #244b36; font-weight: 800;
  box-shadow: inset 0 0 0 1px #cddbc2, 0 3px 10px rgb(36 65 49 / 5%);
}
.gft-header a[aria-current="page"] { font-weight: 800; }
.gft-header .gft-quote { color: #fff; background: #315c3f; }
.gft-header .gft-quote:hover { background: #244131; color: #fff; }
.gft-header .gft-line-label { font-size: 10px; padding: 2px 5px; border-radius: 6px; background: rgb(255 255 255 / 18%); }
.gft-header .gft-panel {
  position: absolute; top: calc(100% - 3px); right: 0;
  width: min(400px, 100%); max-height: calc(100dvh - 100px); overflow-y: auto;
  overscroll-behavior: contain; padding: 16px;
  border: 1px solid #dce6d8; border-radius: 0 0 18px 18px;
  background: #fff; box-shadow: 0 18px 40px rgb(36 65 49 / 14%);
}
.gft-header .gft-panel-wide { width: min(860px, 100%); }
.gft-header .gft-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.gft-header .gft-overview { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #e1e9df; }
.gft-header .gft-section-title { margin: 0 0 8px; padding: 0 10px; font-size: 12px; font-weight: 800; color: #617264; line-height: 1.6; }
.gft-header .gft-panel a { display: block; padding: 10px; min-height: 44px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.gft-header .gft-panel a:hover { background: #edf5eb; color: #285639; }
.gft-header .gft-panel a.current-page {
  background: linear-gradient(100deg, #edf3e7, #f8faf5);
  color: #244b36; font-weight: 700;
  box-shadow: inset 3px 0 0 #a4b582, inset 0 0 0 1px #dce6d3;
}
.gft-header .gft-overview a { font-weight: 800; }
.gft-header .gft-toggle {
  align-items: center; justify-content: center; gap: 8px; min-width: 78px; min-height: 44px;
  padding: 8px 10px; border: 1px solid #dce6d8; border-radius: 10px;
  background: #fff; color: #244131; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.gft-header .gft-toggle, .gft-header .gft-toggle[hidden] { display: none; }
.gft-header .gft-toggle-icon { font-size: 22px; line-height: 1; }
/* Keep page-level gold focus styles from overriding the shared green menu. */
.site-header.gft-header :is(a, summary, button):focus-visible {
  outline: 3px solid #397d4a; outline-offset: 3px;
}
@media (max-width: 1150px) {
  .gft-header .gft-header-inner { flex-wrap: wrap; gap: 0; min-height: 76px; padding: 12px 0; }
  .gft-header[data-enhanced] .gft-toggle:not([hidden]) { display: inline-flex; }
  .gft-header .gft-navigation { width: 100%; padding-top: 12px; }
  .gft-header[data-enhanced] .gft-navigation { display: none; }
  .gft-header[data-enhanced][data-menu-open] .gft-navigation { display: block; }
  .gft-header .gft-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 5px;
    max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px 4px 12px;
  }
  .gft-header .gft-heading, .gft-header .gft-quote { width: 100%; min-height: 48px; font-size: 15px; }
  .gft-header .gft-panel, .gft-header .gft-panel-wide {
    position: static; width: 100%; max-height: none; overflow: visible;
    margin: 5px 0 10px; padding: 12px; border-radius: 12px; box-shadow: none;
  }
  .gft-header .gft-panel-grid { grid-template-columns: 1fr; gap: 14px; }
  .gft-header .gft-quote { justify-content: center; }
}
@media (max-width: 480px) {
  .gft-header .gft-header-inner { width: calc(100% - 24px); }
  .gft-header .gft-logo { gap: 7px; }
  .gft-header .gft-logo img { width: 38px; height: 38px; }
  .gft-header .gft-logo-text strong { font-size: 17px; }
  .gft-header .gft-logo-text > span { font-size: 10px; }
  .gft-header .gft-toggle { min-width: 68px; padding: 8px; }
}
