/* Header and footer for the Cloudflare-hosted registration and login pages. */
#nfn-auth-header,
#nfn-auth-footer {
  display: none;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body:has(#app .website-wrapper[ww-page-id="84def987-e20a-4567-8494-8e17e0d378f0"]) #nfn-auth-header,
body:has(#app .website-wrapper[ww-page-id="e5a6dee1-7fff-464e-8427-4b0e1d14468d"]) #nfn-auth-header,
body:has(#app .website-wrapper[ww-page-id="84def987-e20a-4567-8494-8e17e0d378f0"]) #nfn-auth-footer,
body:has(#app .website-wrapper[ww-page-id="e5a6dee1-7fff-464e-8427-4b0e1d14468d"]) #nfn-auth-footer {
  display: block;
}

#nfn-auth-header *,
#nfn-auth-footer * { box-sizing: border-box; }

#nfn-auth-header a,
#nfn-auth-footer a { text-decoration: none; }

#nfn-auth-header a:focus-visible,
#nfn-auth-footer a:focus-visible,
#nfn-auth-header summary:focus-visible {
  outline: 3px solid #245e50;
  outline-offset: 4px;
  border-radius: 4px;
}

.nfn-auth-shell-wrap {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

#nfn-auth-header {
  position: relative;
  z-index: 10;
  background: rgba(247, 245, 239, .96);
  border-bottom: 1px solid #e4e8df;
  color: #193d35;
}

#nfn-auth-header .nfn-auth-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nfn-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}

#nfn-auth-header .nfn-auth-brand { color: #193d35; }

.nfn-auth-brand-mark {
  width: 37px;
  height: 37px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #193d35;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.15em;
  padding-right: 3px;
}

.nfn-auth-desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nfn-auth-desktop-nav > a:not(.nfn-auth-nav-button) {
  color: #193d35;
  font-size: 15px;
  font-weight: 650;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nfn-auth-desktop-nav > a:not(.nfn-auth-nav-button):hover,
.nfn-auth-desktop-nav > a[aria-current="page"]:not(.nfn-auth-nav-button) {
  color: #a9471f;
}

.nfn-auth-nav-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  padding: 13px 24px;
  background: #a9471f;
  box-shadow: 0 4px 0 #7f3519;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
}

.nfn-auth-nav-button:hover { background: #843616; }
.nfn-auth-mobile-nav { display: none; }

#nfn-auth-footer {
  background: #16372f;
  color: #fff;
  padding: 64px 0 28px;
}

#nfn-auth-footer .nfn-auth-footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 48px;
}

#nfn-auth-footer .nfn-auth-brand { color: #fff; }

#nfn-auth-footer .nfn-auth-brand-mark {
  background: #fff;
  color: #193d35;
}

.nfn-auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  max-width: 620px;
}

.nfn-auth-footer-links a {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nfn-auth-footer-links a:hover { text-decoration: underline !important; }

.nfn-auth-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 24px;
}

.nfn-auth-footer-bottom p {
  margin: 0;
  color: #d5e5db;
  font-size: 14px;
}

body:has(#app .website-wrapper[ww-page-id="84def987-e20a-4567-8494-8e17e0d378f0"]) .ww-section:has(> .section-base > form.ww-form-container),
body:has(#app .website-wrapper[ww-page-id="e5a6dee1-7fff-464e-8427-4b0e1d14468d"]) .ww-section:has(> .section-base > form.ww-form-container) {
  min-height: calc(100dvh - 88px) !important;
}

@media (max-width: 900px) and (min-width: 701px) {
  .nfn-auth-desktop-nav { gap: 14px; }
  .nfn-auth-desktop-nav > a:not(.nfn-auth-nav-button) { font-size: 13px; }
}

@media (max-width: 700px) {
  .nfn-auth-shell-wrap { width: min(100% - 36px, 1240px); }
  #nfn-auth-header .nfn-auth-header-inner { min-height: 72px; }
  .nfn-auth-brand { font-size: 17px; }
  .nfn-auth-desktop-nav { display: none; }
  .nfn-auth-mobile-nav { display: block; position: relative; }
  .nfn-auth-mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 44px;
    border: 1px solid #d9e1d8;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
  }
  .nfn-auth-mobile-nav summary::-webkit-details-marker { display: none; }
  .nfn-auth-mobile-nav[open] .nfn-auth-mobile-panel {
    position: absolute;
    z-index: 20;
    right: 0;
    top: 52px;
    width: min(270px, 80vw);
    display: grid;
    gap: 4px;
    background: #fff;
    border: 1px solid #d9e1d8;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 30px rgba(25, 61, 53, .16);
  }
  .nfn-auth-mobile-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 9px;
    color: #193d35;
    font-size: 15px;
    font-weight: 650;
  }
  .nfn-auth-mobile-panel a:hover { background: #e8efe8; }
  #nfn-auth-footer .nfn-auth-footer-main { display: block; }
  .nfn-auth-footer-links { margin-top: 28px; }
  body:has(#app .website-wrapper[ww-page-id="84def987-e20a-4567-8494-8e17e0d378f0"]) .ww-section:has(> .section-base > form.ww-form-container),
  body:has(#app .website-wrapper[ww-page-id="e5a6dee1-7fff-464e-8427-4b0e1d14468d"]) .ww-section:has(> .section-base > form.ww-form-container) {
    min-height: calc(100dvh - 72px) !important;
  }
}
