/* hdr — underline-tab navigation */
.hdr {
  background: var(--white);
  border-bottom: var(--border) solid var(--navy);
  position: relative;
  z-index: 20;
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 76px;
  padding: var(--s3) 0;
}
.hdr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}
.hdr-brand:hover { color: var(--navy); }
.hdr-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: block;
}
.hdr-plus {
  margin-left: 4px;
}
.hdr-toggle {
  display: none;
  background: var(--cyan);
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.hdr-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.hdr-nav a {
  position: relative;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 12px;
  text-decoration: none;
}
.hdr-nav a:hover { color: var(--blue); }
.hdr-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}
.hdr-nav a[aria-current="page"]::after,
.hdr-nav a.is-active::after {
  transform: scaleX(1);
}

@media (max-width: 860px) {
  .hdr-toggle { display: inline-flex; }
  .hdr-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    flex-direction: column;
    background: var(--white);
    border: var(--border) solid var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--s3);
    z-index: 30;
  }
  .hdr-nav.is-open { display: flex; }
  .hdr-nav a::after { display: none; }
  .hdr-nav a[aria-current="page"] { background: var(--ice); border-radius: 999px; }
}
