/* Founding Member FAQs: help icon, slide-out drawer, and the accordion shared with the FAQ page.
   Colours are literal because not every page that includes the drawer loads redesign.css. */

.faq-jump { z-index: 20; position: absolute; top: 16px; right: 24px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e6e6e6; background: #fff; color: #ea580c; box-shadow: 0 4px 12px rgba(24,24,24,.08); transition: border-color .2s, box-shadow .2s; }
.faq-jump:hover { border-color: #fbd9b0; box-shadow: 0 8px 20px rgba(24,24,24,.12); }
.faq-jump svg { width: 22px; height: 22px; }
@media (max-width: 576px) { .faq-jump { top: 10px; right: 12px; width: 38px; height: 38px; } }

/* Drawer */
html.faq-drawer-open { overflow: hidden; }
.faq-drawer { position: fixed; inset: 0 0 0 auto; box-sizing: border-box; width: min(540px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #fff; color: #606060; box-shadow: -12px 0 40px rgba(24,24,24,.18); }
.faq-drawer[open] { animation: faq-drawer-in .28s ease-out; }
.faq-drawer[open]::backdrop { background: rgba(24,24,24,.45); animation: faq-backdrop-in .28s ease-out; }
.faq-drawer.is-closing { animation: faq-drawer-out .22s ease-in forwards; }
.faq-drawer.is-closing::backdrop { animation: faq-backdrop-out .22s ease-in forwards; }
@keyframes faq-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes faq-drawer-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes faq-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes faq-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .faq-drawer[open], .faq-drawer[open]::backdrop, .faq-drawer.is-closing, .faq-drawer.is-closing::backdrop { animation: none; }
}
.faq-drawer__panel { display: flex; flex-direction: column; height: 100%; }
.faq-drawer__header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 16px 24px; border-bottom: 1px solid #ececec; }
.faq-drawer__header h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; color: #181818; }
.faq-drawer__close { flex: 0 0 auto; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #e6e6e6; border-radius: 50%; background: #fff; color: #181818; cursor: pointer; transition: border-color .2s, color .2s; }
.faq-drawer__close:hover { border-color: #fbd9b0; color: #ea580c; }
.faq-drawer__close svg { width: 20px; height: 20px; }
.faq-drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 32px; }
@media (max-width: 576px) {
  .faq-drawer__header { padding: 12px 14px 12px 16px; }
  .faq-drawer__body { padding: 4px 16px 24px; }
}

/* Accordion */
.faq-category-title { margin: 28px 0 14px; font-size: 18px; line-height: 1.3; font-weight: 800; color: #181818; }
.faq-empty { margin: 28px 0; text-align: center; color: #606060; }
.apply-faq-card__list { counter-reset: faq; display: grid; gap: 12px; max-height: none; overflow: visible; margin: 0; padding: 0; }
.apply-faq-item { counter-increment: faq; border: 1px solid #ececec; border-radius: 14px; margin: 0; background: #fff; box-shadow: 0 1px 2px rgba(24,24,24,.04); transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.apply-faq-item:hover { border-color: #fbd9b0; box-shadow: 0 10px 24px rgba(24,24,24,.07); transform: translateY(-1px); }
.apply-faq-item[open] { background: #fffaf5; border-color: #f2c18f; box-shadow: 0 10px 28px rgba(247,136,21,.10); transform: none; }
.apply-faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.45; font-weight: 650; color: #181818; }
.apply-faq-item summary::-webkit-details-marker { display: none; }
.apply-faq-item summary::before { content: counter(faq); flex: 0 0 30px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff3e6; color: #ea580c; font-size: 13px; font-weight: 800; transition: background .2s, color .2s; }
.apply-faq-item[open] summary::before { background: #f78815; color: #fff; }
.apply-faq-item summary::after { content: ''; margin: 0 4px 0 auto; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid #9a9a9a; border-bottom: 2px solid #9a9a9a; transform: rotate(45deg); transition: transform .2s, border-color .2s; }
.apply-faq-item[open] summary { color: #c2570c; }
.apply-faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; border-color: #f78815; }
.apply-faq-answer { padding: 0 20px 18px 62px; font-size: 14px; line-height: 1.7; color: #606060; white-space: pre-wrap; overflow-wrap: anywhere; }
.apply-faq-answer a { color: #df7108; font-weight: 600; }
@media (max-width: 576px) {
  .apply-faq-item summary { padding: 14px; gap: 10px; font-size: 14px; }
  .apply-faq-answer { padding: 0 14px 16px 14px; }
}
