/* Shared non-homepage header.
   Loaded after each inner-page theme so the firm's chrome has one responsive
   source of truth without changing page content, hero markup, or JS hooks. */

.railhead,
.railhead.is-up {
  height: 136px;
  min-height: 136px;
  display: flex;
  align-items: center;
  padding-inline: clamp(1rem, 3vw, 3rem);
  color: #123d56;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(220, 231, 231, 0.08)),
    rgba(242, 240, 234, 0.92);
  border-bottom: 1px solid rgba(18, 61, 86, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 22px 52px rgba(23, 35, 41, 0.14);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.railhead {
  transform: translateY(-100%);
}

.railhead.is-up {
  transform: none;
}

/* The header is fixed on desktop and absolute on mobile, so it does not reserve
   document flow by itself. Keep every inner-page hero below the chrome rather
   than allowing imagery or headings to render beneath the translucent surface. */
body > .railhead ~ main {
  margin-top: 136px;
  padding-top: 0;
}

.railhead .rh-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  padding: 0;
  line-height: 0;
  transform: translate(-50%, -50%);
}

.railhead .rh-mark img {
  display: block;
  width: auto;
  height: 128px;
  max-width: none;
}

.railhead .rh-name {
  display: none !important;
}

.railhead .rh-menu {
  order: 1;
  margin-right: auto;
}

.railhead .rh-search {
  order: 2;
  margin-left: auto;
}

.railhead .rh-call {
  order: 3;
}

.railhead .rh-call,
.railhead .rh-search,
.railhead .rh-menu {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #123d56;
  font-family: "Atlas Text", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.railhead .rh-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.railhead .rh-search {
  display: inline-flex;
  align-items: center;
}

.railhead .rh-call {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-left: clamp(1rem, 2vw, 1.5rem);
  padding: 0 1.35rem;
  border: 1px solid #e35d2f;
  border-radius: 999px;
  background: #123d56;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: none;
}

.railhead .rh-call:hover,
.railhead .rh-call:focus-visible {
  border-color: #e35d2f;
  background: #216b88;
  color: #fff;
}

.railhead .rh-search:hover,
.railhead .rh-search:focus-visible,
.railhead .rh-menu:hover,
.railhead .rh-menu:focus-visible {
  background: transparent;
  color: #216b88;
}

.railhead .rh-call .ic,
.railhead .rh-search .ic {
  display: none;
}

.railhead .rh-call span,
.railhead .rh-search span,
.railhead .rh-menu span:not(.ico-menu) {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: nowrap;
}

.railhead .rh-call-mobile {
  display: none;
}

.railhead .rh-menu .ico-menu {
  display: block;
  width: 20px;
  height: 12px;
}

.railhead .rh-menu .ico-menu::before,
.railhead .rh-menu .ico-menu::after {
  height: 1px;
}

.railhead .rh-menu .ico-menu::before {
  top: 0;
  box-shadow: 0 6px 0 currentColor;
}

.railhead .rh-menu .ico-menu::after {
  top: auto;
  bottom: 0;
}

@media (max-width: 768px) {
  .railhead,
  .railhead.is-up {
    height: 96px;
    min-height: 96px;
    padding-inline: 1rem;
  }

  .railhead .rh-mark img {
    height: 86px;
  }

  .railhead .rh-search {
    display: none;
  }

  .railhead .rh-call {
    display: inline-flex;
    min-height: 44px;
    margin-left: auto;
    padding-inline: 0.65rem;
    background: #013162;
    font-size: 11px;
  }

  .railhead .rh-call .ic {
    display: block;
    width: 12px;
    height: 12px;
    flex: none;
    margin-right: 0.3rem;
  }

  .railhead .rh-call-number {
    display: none;
  }

  .railhead .rh-call-mobile {
    display: inline;
  }

  .railhead .rh-menu {
    min-height: 44px;
    font-size: 11px;
  }

  body > .railhead ~ main {
    margin-top: 96px;
  }
}

@media (max-width: 340px) {
  .railhead,
  .railhead.is-up {
    padding-inline: 0.75rem;
  }

  .railhead .rh-call {
    padding-inline: 0.2rem;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .railhead .rh-call .ic {
    width: 10px;
    height: 10px;
    margin-right: 0.2rem;
  }
}

@media (min-width: 1600px) {
  .railhead,
  .railhead.is-up {
    height: 144px;
    min-height: 144px;
  }

  .railhead .rh-mark img {
    height: 136px;
  }

  body > .railhead ~ main {
    margin-top: 144px;
  }
}

@media (min-width: 2100px) {
  .railhead,
  .railhead.is-up {
    height: 152px;
    min-height: 152px;
  }

  .railhead .rh-mark img {
    height: 144px;
  }

  body > .railhead ~ main {
    margin-top: 152px;
  }
}
