/* FAQ pop-out, styled to match the register modal. Versioned; bump to v2 rather than editing in place. */
.d-head-faq,
.d-nav-faq,
.d-foot-faq{
  font-family:var(--font);
  font-weight:700;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  background:none;
  border:0;
}
.d-head-faq{
  font-size:16px;
  padding:8px 6px;
  letter-spacing:.02em;
}
.d-head-faq:hover{color:#FF7800}
.d-head-faq:focus-visible,
.d-nav-faq:focus-visible,
.d-foot-faq:focus-visible,
.faq-modal-x:focus-visible{
  outline:3px solid #FF7800;
  outline-offset:3px;
}
@media (min-width:1024px){
  .d-nav .d-nav-faq{display:none}
}
@media (max-width:1023px){
  .d-head-r .d-head-faq{display:none}
  .d-nav .d-nav-faq{
    display:inline-flex;
    margin-top:8px;
    font-size:28px;
    font-weight:800;
  }
}

.faq-modal{
  box-sizing:border-box;
  width:min(720px,calc(100% - 32px));
  max-height:min(90vh,900px);
  margin:auto;
  padding:0;
  border:0;
  border-radius:24px;
  background:#fff;
  color:var(--ink);
  font-family:var(--font);
  box-shadow:0 24px 64px rgba(0,0,0,.28);
}
.faq-modal:focus{outline:none}
.faq-modal:focus-visible{outline:3px solid #FF7800;outline-offset:3px}
.faq-modal::backdrop{background:rgba(8,16,40,.55)}
.faq-modal-inner{
  display:flex;
  flex-direction:column;
  max-height:min(90vh,900px);
}
.faq-modal-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex:0 0 auto;
  padding:20px 20px 12px 24px;
}
.faq-modal-h{
  margin:0;
  font-size:clamp(26px,4vw,34px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.1;
}
.faq-modal-x{
  flex:none;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:var(--grey-10, #eee);
  color:var(--ink);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.faq-modal-x:hover{background:var(--grey-20, #ddd)}
.faq-modal-x svg{width:20px;height:20px;display:block}
.faq-modal-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:4px 24px 28px;
}
.faq-modal .d-faq-list{margin:0}
.faq-modal .d-faq-item summary{font-size:19px}

html.faq-modal-open,body.faq-modal-open{overflow:hidden}

@media (max-width:799px){
  .faq-modal{
    position:fixed;
    inset:0;
    width:100vw;
    height:100dvh;
    max-width:none;
    max-height:none;
    margin:0;
    padding:0;
    border-radius:0;
  }
  .faq-modal-inner{max-height:100dvh;height:100dvh}
  .faq-modal-bar{padding:16px 16px 8px 20px}
  .faq-modal-body{padding:4px 20px calc(20px + env(safe-area-inset-bottom,0px))}
  .faq-modal .d-faq-item summary{font-size:18px;padding:16px 0}
}

@media (prefers-reduced-motion:reduce){
  .faq-modal{animation:none}
}
