/* Shared Frontera masthead, menu and footer. */
@font-face {
  font-family: MotifSocial;
  src: url('/fonts/fontawesome-webfont.woff2') format('woff2');
  font-display: block;
}
.motif-masthead, .motif-colophon, .motif-masthead *, .motif-colophon * { box-sizing: border-box; }
header.motif-masthead {
  --edge: 20px;
  position: relative;
  width: min(95%, 1170px);
  margin: 80px auto;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 23px;
}
.site-wrapper .motif-masthead { margin-bottom: 200px; }
.motif-masthead a, .motif-colophon a { text-decoration: none; border: 0; }
.motif-wordmark img { display: block; width: 264px; height: auto; transition: opacity .2s; }
.motif-wordmark:hover img { opacity: .5; }
.motif-masthead .motif-conversation {
  position: absolute; right: clamp(94px, 8vw, 116px);
  display: inline-flex; min-height: 44px; align-items: center;
  font: italic 400 clamp(18px, 1.45vw, 21px)/1.2 'Playfair Display', Georgia, serif;
  color: #f0ede8;
}
.motif-masthead .motif-conversation:hover { color: #e29578; }
.motif-masthead button {
  appearance: none; display: grid; gap: 6px; align-content: center; justify-content: center;
  width: 44px; min-height: 48px; border: 0; margin: 0; padding: 0;
  background: transparent; box-shadow: none; border-radius: 0; cursor: pointer; touch-action: manipulation;
}
.motif-masthead button span { display: block; width: 22px; height: 3px; background: #999; }
.motif-menu-button span:nth-child(2) { transform: translateX(10px); transition: transform .25s; }
.motif-menu-button:is(:hover,:focus-visible) span:nth-child(2) { transform: none; }
.motif-masthead :is(a,button):focus-visible, .motif-colophon a:focus-visible {
  outline: 2px solid #e29578; outline-offset: 3px;
}
html.motif-menu-open, html.motif-menu-open body { overflow: hidden; }
#motif-menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  padding: 0; margin: 0; border: 0; background: #141414; color: #fff; overflow: auto; overscroll-behavior: contain;
}
#motif-menu:not([open]) { display: none; }
#motif-menu[open] { animation: motif-menu-appear .7s ease both; }
#motif-menu::backdrop { background: #141414; }
#motif-menu .motif-menu-close {
  position: fixed; top: 66px; right: calc(max(2.5vw, (100vw - 1170px) / 2) + 20px);
  z-index: 1; gap: 0; background: #141414;
}
.motif-menu-close span:first-child { transform: translateY(1.5px) rotate(45deg); }
.motif-menu-close span:last-child { transform: translateY(-1.5px) rotate(-45deg); }
#motif-menu nav {
  display: flex; flex-direction: column; align-items: center; width: fit-content;
  max-width: 100%; margin: 0 auto; padding: 120px 18px 50px; text-align: center;
}
#motif-menu[open] nav { animation: motif-menu-arrive .7s ease both; }
@keyframes motif-menu-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes motif-menu-arrive { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
#motif-menu nav > a {
  color: #aaa; padding: 5px 9px; font: 400 30px/40px 'Playfair Display', Georgia, serif;
  transition: color .2s;
}
#motif-menu nav a:is(:hover,:focus-visible) { color: #fff; }
#motif-menu nav > a:not(.motif-diagnostic) { -webkit-tap-highlight-color: transparent; }
#motif-menu nav > a:not(.motif-diagnostic):focus { outline: none; }
#motif-menu nav > a:not(.motif-diagnostic):is(:focus-visible, :active) {
  text-decoration: underline; text-decoration-color: #e29578;
  text-decoration-thickness: 2px; text-underline-offset: .2em;
}
@media (max-width: 899px), (pointer: coarse) {
  #motif-menu[open] { animation-duration: .16s; }
  #motif-menu[open] nav { animation: none; }
}
#motif-menu nav > .motif-diagnostic {
  display: inline-flex; align-items: center; min-height: 38px; padding: 9px 18px; margin: 10px auto 6px;
  border: 1px solid rgba(226,149,120,.58); border-radius: 99px; color: #e29578;
  font: 700 10px/1.2 Raleway, sans-serif; letter-spacing: .16em; text-transform: uppercase;
}
#motif-menu .motif-diagnostic:is(:hover,:focus-visible) { background: rgba(203,109,81,.12); border-color: #e29578; }
.motif-resources { max-width: 100%; font-family: Raleway, sans-serif; }
.motif-resources::before { content: ''; display: block; margin: 18px auto 14px; width: min(180px,50vw); border-top: 1px solid #555; }
.motif-resources > span { color: #aaa; font: 600 10px/1.4 Raleway, sans-serif; text-transform: uppercase; letter-spacing: .2em; }
.motif-resources > div, .motif-footer-meta nav, .motif-social { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; }
.motif-resources > div { gap: 4px 18px; margin-top: 8px; }
#motif-menu .motif-resources a { padding: 5px 0; color: #aaa; font: 500 12px/1.5 Raleway,sans-serif; }
footer.motif-colophon { margin: 0; padding: 42px max(24px,2.5vw); color: #b3b3b3; background: #252525; font: 400 16px/1.8 Raleway,sans-serif; }
.motif-footer-inner { width: min(100%,1170px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.motif-footer-inner img { display: block; width: 132px; height: 12px; margin: 0 0 14px; }
.motif-footer-meta { text-align: right; }
.motif-footer-meta nav { justify-content: flex-end; }
.motif-footer-meta a + a::before { content: '|'; color: #828282; margin: 0 10px; }
.motif-colophon a { color: #b3b3b3; }
.motif-colophon a:hover { color: #fff; }
.motif-footer-meta p { margin: 6px 0 0; color: inherit; font: inherit; }
.motif-social { justify-content: flex-start; }
.motif-social a { display: grid; min-width: 32px; min-height: 32px; place-items: center; }
.motif-social span { font: 18px/1 MotifSocial; }
@media (max-width: 1024px) { .motif-masthead .motif-conversation { display: none; } }
@media (max-width: 640px) {
  header.motif-masthead { --edge: clamp(14px,8vw,34px); margin-top: 22px; margin-bottom: 46px; height: 18px; }
  .site-wrapper .motif-masthead { margin-bottom: 200px; }
  .motif-wordmark img { width: min(200px,52vw); }
  #motif-menu .motif-menu-close { right: calc(2.5vw + var(--edge)); top: max(7px,env(safe-area-inset-top)); }
  #motif-menu nav { padding-top: 70px; }
  #motif-menu nav > a { font-size: 22px; line-height: 32px; }
  .motif-resources > div { max-width: 290px; }
  .motif-footer-inner { flex-direction: column; }
  .motif-footer-meta { text-align: center; }
  .motif-footer-meta nav, .motif-social { justify-content: center; }
  .motif-footer-inner img { margin-inline: auto; }
}
@media (max-height: 520px) { #motif-menu nav { padding-top: 55px; } #motif-menu .motif-menu-close { top: 6px; } }
@media (prefers-reduced-motion: reduce) {
  #motif-menu[open], #motif-menu[open] nav { animation: none; }
  .motif-masthead *, .motif-colophon * { transition: none !important; }
}
