/* Nimble FAQ popup (dialog built by nwd-faq-modal.js) */
html.nwd-faq-open{overflow:hidden}
.nwd-faq-modal{border:0;padding:0;background:transparent;max-width:min(680px,calc(100vw - 2rem));width:100%;max-height:calc(100dvh - 2rem);overflow:visible}
.nwd-faq-modal::backdrop{background:rgba(15,23,42,.55);backdrop-filter:blur(2px)}
.nwd-faq-modal__box{position:relative;background:#fff;border-radius:var(--nwd-faq-radius,16px);padding:clamp(1.5rem,1rem + 2vw,2.5rem);box-shadow:0 30px 60px -20px rgba(15,23,42,.35);max-height:calc(100dvh - 2rem);overflow-y:auto;color:var(--contrast,#0f172a)}
.nwd-faq-modal__close{position:absolute;top:1rem;right:1rem;width:44px;height:44px;border-radius:50%;border:0;background:var(--base-2,#f1f5f9);color:var(--accent,#4f46e5);display:grid;place-items:center;cursor:pointer;padding:0}
.nwd-faq-modal__close:hover,.nwd-faq-modal__close:focus-visible{background:var(--base,#e2e8f0)}
.nwd-faq-modal__close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.nwd-faq-modal__eyebrow{margin:0 0 .5rem;color:var(--accent,#4f46e5);font-size:.8125rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.nwd-faq-modal__title{font-size:clamp(1.35rem,1.1rem + 1vw,1.75rem);margin:0 3rem 1rem 0}
.nwd-faq-modal__body > :last-child{margin-bottom:0}
.nwd-faq-modal__loading{color:var(--contrast-3,#64748b)}
.nwd-faq-modal__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0 0;padding-top:1.5rem;border-top:1px solid var(--base,#e2e8f0)}
.nwd-faq-modal__more{font-weight:600}

/* FAQ link list (pattern "FAQ list with popups" and the /faq/ archive) */
.nwd-faq-list{list-style:none;margin:0 auto;padding:0;max-width:820px;display:grid;gap:.75rem;counter-reset:nwdfaq}
.nwd-faq-list li{margin:0}
.nwd-faq-list a{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;background:#fff;border:1px solid var(--base,#e2e8f0);border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,.05);color:var(--contrast,#0f172a);font-weight:600;text-decoration:none}
.nwd-faq-list a::after{content:"";flex:0 0 28px;height:28px;border-radius:50%;background:var(--base-2,#f1f5f9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat}
.nwd-faq-list a:hover,.nwd-faq-list a:focus-visible{border-color:var(--accent,#4f46e5);color:var(--accent,#4f46e5)}
.nwd-faq-a[hidden]{display:none!important}
.nwd-faq-empty{padding:1rem;border:1px dashed var(--accent,#4f46e5);border-radius:12px;text-align:center;color:var(--contrast-3,#64748b)}

/* FAQ page (/faq/) */
body.post-type-archive-faq .site-main,body.tax-faq_topic .site-main{display:block;padding-block:0}
.nwd-faq-page{padding:3rem 1.25rem;max-width:860px;margin-inline:auto}
.nwd-faq-topics{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-bottom:3rem}
.nwd-faq-topics a{padding:.5rem 1rem;border-radius:999px;background:var(--base-2,#f1f5f9);color:var(--accent,#4f46e5);font-weight:600;text-decoration:none}
.nwd-faq-topics a:hover{background:var(--base,#e2e8f0)}
.nwd-faq-group + .nwd-faq-group{margin-top:3rem}
.nwd-faq-group__title{font-size:clamp(1.35rem,1.1rem + 1vw,1.75rem);margin-bottom:1.5rem}
@media (max-width:640px){.nwd-faq-page{padding-inline:0}}
/* A page's own FAQs (after the content) and the link back from a single FAQ */
.nwd-page-faqs{margin:4rem auto 0;max-width:820px}
.nwd-page-faqs h2{margin-bottom:1.5rem}
.nwd-faq-back{margin-top:1.5rem;font-weight:600}
.nwd-faq-group__title a{color:inherit;text-decoration:none}
.nwd-faq-group__title a:hover{color:var(--accent,#4f46e5);text-decoration:underline}
.nwd-faq-eyebrow{margin:0 0 .5rem;color:var(--accent,#4f46e5);font-size:.8125rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.nwd-faq-modal__cta{display:inline-flex;align-items:center;padding:.75rem 1.25rem;border-radius:999px;background:var(--accent,#4f46e5);color:#fff;font-weight:600;text-decoration:none}
.nwd-faq-modal__cta:hover,.nwd-faq-modal__cta:focus-visible{color:#fff;filter:brightness(1.1)}
