/* The masthead uses the colors and proportions of the supplied navigation reference. */
.top, .contactbar, .head {
  --notice: #ab241f;
  --sand: #f1ebe3;
  --paper: #fffdf9;
  --rust: #812d13;
  --hairline: #dcd2c7;
}
.top, .contactbar {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink);
}
.top {
  min-height: 36px;
  background: var(--notice);
  color: var(--white);
  font: 750 .75rem/1.35 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.top a {display: block; padding: .55rem 1rem; color: inherit; text-decoration: none}
.contactbar {min-height: 35px; background: var(--sand); font: 700 .82rem/1.4 var(--body)}
.contactbar .wrap {display: flex; justify-content: center; align-items: center; gap: .86rem; padding-block: .4rem}
.contactbar .mail {color: inherit; text-decoration: none}
.contact-divider {color: var(--rust)}
.top a:hover, .contactbar .mail:hover {text-decoration: underline}
.head {position: relative; z-index: 8; background: var(--paper); border-bottom: 1px solid var(--hairline)}
.headinner {
  display: flex; align-items: center; gap: clamp(.75rem,1.2vw,1.15rem);
  width: min(1176px,calc(100% - 48px)); min-height: 74px; margin-inline: auto;
}
.head .wordmark {margin-right: auto; flex: none; min-height:44px; white-space: nowrap}
.head nav {display: flex; align-items: center; gap: clamp(.7rem,1.05vw,1.05rem)}
.head nav a, .head nav summary {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 700 .84rem/1.2 var(--body); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.head nav :is(a,summary):hover, .head nav [aria-current], .head nav .section-active {
  color: var(--rust); text-decoration: underline; text-underline-offset: .36em;
}
.head details {position: relative}
.head summary {list-style: none; cursor: pointer; gap: .52rem}
.head summary::-webkit-details-marker {display: none}
.head summary::after {content: ''; width: .47em; height: .47em; border: solid currentColor; border-width: 0 1.4px 1.4px 0; transform: translateY(-1px) rotate(45deg)}
.head details[open] summary::after {transform: translateY(2px) rotate(225deg)}
.head .submenu {
  position: absolute; top: 100%; left: -.85rem; width: max-content; max-width: 90vw;
  display: grid; padding: .35rem .9rem; border: 1px solid var(--hairline);
  border-radius: 6px; background: var(--paper); box-shadow: 0 10px 22px rgba(21,33,46,.14);
}
.head .headcta {
  flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: .2rem; min-height: 53px; padding: .58rem .95rem; border-radius: 6px;
  background: var(--rust); color: var(--white); font-family: var(--body); text-decoration: none;
}
.headcta small {font-size: .58rem; line-height: 1.15; font-weight: 700; letter-spacing: .11em; text-transform: uppercase}
.headcta strong {font-size: .97rem; font-weight: 800; line-height: 1.2}
.headcta:hover strong, .headcta[aria-current] strong {text-decoration: underline; text-underline-offset: .2em}
.menu-toggle {display: none}
@media (min-width: 830px) and (max-width: 1050px) {
  .headinner {width: calc(100% - 32px); gap: .75rem}
  .head nav {gap: .65rem}
  .head nav a, .head nav summary {font-size: .81rem}
  .head .wordmark {gap: .38rem}
  .head .wordmark img {width: 32px; height: 32px}
  .head .wordmark strong {font-size: .55rem}
  .head .wordmark small {font-size: 1.14rem}
}
@media (max-width: 829px) {
  .headinner {width: calc(100% - 32px); gap: .75rem; min-height: 66px; flex-wrap: wrap; padding-block: .45rem}
  .head .wordmark {gap: .45rem}
  .head .wordmark img {width: 33px; height: 33px}
  .head .wordmark small {font-size: 1.25rem}
  .head .wordmark strong {font-size: .57rem}
  .head .headcta {order: 1; min-height: 44px; padding: .42rem .68rem}
  .headcta small {font-size: .48rem}
  .headcta strong {font-size: .85rem}
  .js .menu-toggle {
    display: grid; place-items: center; order: 2; border: 1px solid var(--hairline); border-radius: 5px;
    width: 44px; height: 44px; background: var(--paper); color: var(--ink);
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {width: 18px; height: 2px; background: currentColor}
  .menu-toggle span {display: block; position: relative}
  .menu-toggle span::before, .menu-toggle span::after {content: ''; position: absolute; left: 0}
  .menu-toggle span::before {top: -6px}
  .menu-toggle span::after {top: 6px}
  .head nav {
    order: 3; flex: 1 0 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: .4rem 0; background: var(--paper);
  }
  .js .head nav {position: absolute; top: 100%; inset-inline: 0; padding: .4rem 1rem; border-bottom: 1px solid var(--hairline); max-height: 65dvh; overflow-y: auto}
  .js .head nav:not(.open) {display: none}
  .head nav a, .head nav summary {min-height: 44px; font-size: .95rem}
  .head .submenu {position: static; width: 100%; max-width: none; border: 0; border-left: 2px solid var(--hairline); box-shadow: none; border-radius: 0; padding: 0 .8rem}
}
@media (max-width: 570px) {
  .headinner {width:calc(100% - 24px); gap:6px}
  .head .wordmark {gap:.36rem}
  .head .wordmark img {width:27px;height:27px}
  .head .wordmark small {font-size:1.04rem;letter-spacing:0}
  .head .wordmark strong {font-size:.55rem;letter-spacing:.12em}
  .head .headcta {padding-inline:.65rem}
  .head .headcta small {font-size:.48rem;letter-spacing:.07em}
  .head .headcta strong {font-size:.84rem}
  .top {min-height: 32px; font-size: .65rem; letter-spacing: .07em}
  .contactbar .wrap {width: calc(100% - 20px); gap: .03rem; flex-direction: column; padding: .22rem 0 .35rem}
  .contactbar .mail {min-height: auto; padding: .25rem 0; font-size: .79rem}
  .contactbar .region {font-size: .7rem; font-weight: 600}
  .contact-divider {display: none}
}
@media (max-width: 360px) {
  .headinner {width: calc(100% - 20px); gap: .4rem}
  .head .wordmark img {width: 27px; height: 27px}
  .head .headcta {padding-inline: .45rem}
  .head .headcta small {font-size:.44rem}
  .head .headcta strong {font-size:.76rem}
  .head .wordmark small {font-size:.96rem}
}

