:root {
  --action: #b84a22;
  --action-hover: #9e3d19;
}

html { scroll-padding-top: 138px; }
.site-header { background: #fff; backdrop-filter: none; }
.header-top {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  min-height: 76px;
}
.header-top .brand { gap: 10px; font-size: 22px; }
.header-top .brand-light { color: var(--action); font-weight: inherit; }
.header-top .brand small { margin-top: 3px; font-size: 9px; letter-spacing: .08em; }
.header-top .brand-mark { color: var(--action); background: #fff4ed; border: 1px solid #efd2c4; }
.header-top .nav-action, .hero-actions .hero-finder-button {
  min-height: 48px;
  border-radius: 8px;
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
.header-top .nav-action:hover, .hero-actions .hero-finder-button:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}
.header-top .nav-action { padding: 12px 17px; gap: 15px; font-size: 13px; white-space: nowrap; }
.header-calculator { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.35; }
.header-calculator > span:first-child { color: var(--teal); font-size: 26px; line-height: 1; }
.header-calculator small { display: block; color: var(--muted); font-size: 11px; }
.header-calculator:hover strong { text-decoration: underline; }
.header-top .menu-toggle, .nav-search { display: none; }
.site-header[data-nav-ready] .nav-search { display: block; }
.nav-search { position: relative; min-width: 0; z-index: 4; }
.nav-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 42px 10px 14px;
  border: 1px solid #d9e5e7;
  border-radius: 9px;
  background: #f2f7f8;
  color: var(--ink);
  font-size: 14px;
}
.nav-search > svg { position: absolute; right: 13px; top: 12px; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; pointer-events: none; }
.nav-search-results {
  position: absolute;
  inset: calc(100% + 7px) 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px #123c4322;
}
.nav-search-results ul, .nav-column ul { margin: 0; padding: 0; list-style: none; }
.nav-search-results a { display: block; padding: 9px 11px; border-radius: 6px; font-size: 14px; }
.nav-search-empty { margin: 0; padding: 9px 11px; font-size: 13px; }

.nav-row { border-top: 1px solid #e6eeee; }
.primary-nav { display: flex; align-items: center; gap: clamp(12px, 2.3vw, 27px); min-height: 51px; position: relative; }
.primary-nav > .nav-direct, .nav-group > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-nav > .nav-calculator-compact { display: none; }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover, .nav-direct:hover, .nav-group[open] > summary, .nav-group-active > summary { color: var(--teal); }
.nav-chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav-group[open] .nav-chevron { transform: translateY(2px) rotate(225deg); }
.nav-separator { display: none; width: 1px; height: 22px; background: var(--line); }
.nav-panel {
  position: absolute;
  z-index: 2;
  inset: 100% 0 auto;
  padding: 20px 24px 24px;
  max-height: calc(100dvh - 160px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 16px 40px #123c4326;
}
.nav-panel-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 13px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.nav-panel-top p { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.nav-overview { color: var(--teal); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.nav-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); gap: 20px; }
.nav-column { min-width: 0; }
.nav-column p { margin: 0 0 4px; font-size: 12px; font-weight: 750; color: var(--muted); }
.nav-column a { display: block; padding: 8px; border-radius: 7px; font-size: 14px; overflow-wrap: anywhere; }
.nav-column a:hover, .nav-search-results a:hover, .primary-nav a[aria-current="page"] { color: var(--teal); background: #eff7f6; }
.primary-nav > .nav-direct[aria-current="page"] { background: none; }

@media (max-width: 1020px) {
  .header-top { grid-template-columns: auto minmax(170px, 1fr) auto; }
  .header-calculator { display: none; }
  .primary-nav > .nav-calculator-compact { display: flex; }
  .nav-separator { display: block; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 116px; }
  .header-top { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; gap: 8px 12px; padding: 8px 0; }
  .header-top .brand { font-size: 19px; }
  .header-top .brand small { font-size: 8px; }
  .header-top .nav-action { display: none; }
  .site-header[data-nav-ready] .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
  .nav-search { grid-row: 2; grid-column: 1 / -1; }
  .nav-search input { min-height: 40px; font-size: 16px; }
  .nav-search > svg { top: 10px; }
  .site-header[data-nav-ready] .nav-row { position: absolute; inset: 100% 0 auto; background: #fff; box-shadow: 0 14px 24px #123c4322; }
  .primary-nav { display: block; max-height: calc(100dvh - 133px); overflow: auto; padding: 5px 0 14px; }
  .site-header[data-nav-ready] .nav-row:has(.primary-nav:not(.is-open)) { display: none; }
  .primary-nav > .nav-direct, .nav-group > summary { min-height: 46px; border-bottom: 1px solid #e9efef; justify-content: space-between; }
  .nav-separator { display: none; }
  .nav-panel { position: static; max-height: none; padding: 12px; border: 0; border-radius: 8px; background: #f5f9f8; box-shadow: none; }
  .nav-panel-top { margin-bottom: 10px; }
  .nav-panel-top p { font-size: 16px; }
  .nav-columns { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .nav-column a { padding-block: 10px; }
}
