/* The FAQ page (/faq/, D-203), after ndovuseolabs.com/faq in the site's own blue. Same tokens as site.css. */

/* ---------- Hero panel ---------- */
.nd-fqh-top { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); }
.nd-fqh__hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.75rem) clamp(2rem, 4.5vw, 3rem);
	border-radius: var(--nd-radius); border: 1px solid rgba(141, 181, 255, 0.35);
	background: radial-gradient(120% 140% at 0% 0%, #1d64f0 0%, #0b57e3 38%, #0840b4 70%, #062c82 100%);
	color: #fff;
}
.nd-fqh__hero > * { position: relative; z-index: 1; margin: 0 !important; }
.nd-fqh__marks {
	position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Ctext x='18' y='34' font-family='Inter,Arial,sans-serif' font-size='22' font-weight='600' fill='%23ffffff' fill-opacity='0.16'%3E%3F%3C/text%3E%3Ctext x='60' y='76' font-family='Inter,Arial,sans-serif' font-size='16' font-weight='600' fill='%23ffffff' fill-opacity='0.1'%3E%3F%3C/text%3E%3C/svg%3E"),
		repeating-radial-gradient(circle at 105% 115%, transparent 0 46px, rgba(255, 255, 255, 0.09) 46px 47px);
	-webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 60%);
	mask-image: linear-gradient(100deg, transparent 18%, #000 60%);
}
.nd-fqh__tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.6rem; border-radius: 6px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.18); font-family: var(--wp--preset--font-family--mono); font-size: 0.6875rem !important; letter-spacing: 0.12em; text-transform: uppercase; color: #fff !important; }
.nd-fqh__tag::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: #fff; opacity: 0.85; }
.nd-fqh__hero h1 { margin-top: 1.1rem !important; font-size: clamp(2.25rem, 5.5vw, 3.75rem) !important; line-height: 1.02 !important; letter-spacing: -0.03em; color: #fff !important; max-width: 16ch; }
.nd-fqh__lead { margin-top: 0.85rem !important; font-size: clamp(1rem, 1.4vw, 1.125rem) !important; color: rgba(255, 255, 255, 0.86) !important; max-width: 40rem; }
.nd-fqh__search { margin-top: 1.75rem !important; position: relative; max-width: 34rem; }
.nd-fqh__search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: #52525b; stroke-width: 2; stroke-linecap: round; }
.nd-fqh__search input { width: 100%; box-sizing: border-box; height: 3.25rem; padding: 0 1.25rem 0 3rem; border-radius: 999px; border: 0; background: #fff; color: #09090b; font: inherit; font-size: 1rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6); }
.nd-fqh__search input::placeholder { color: #71717a; }
.nd-fqh__search input:focus { outline: 3px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.nd-fqh__poplabel { margin-top: 1.4rem !important; font-family: var(--wp--preset--font-family--mono); font-size: 0.6875rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75) !important; }
.nd-fqh__chips { margin-top: 0.6rem !important; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nd-fqh__chip { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff !important; font-size: 0.8125rem; text-decoration: none !important; transition: background 0.2s var(--nd-ease); }
.nd-fqh__chip:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Topics: sticky list and cards ---------- */
.nd-fqh__layout { display: grid !important; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.nd-fqh__layout > * { margin: 0 !important; }
.nd-fqh__nav { position: sticky; top: 6rem; }
.nd-fqh__navlabel { margin: 0 0 0.75rem !important; font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem !important; color: var(--nd-muted); }
.nd-fqh__nav ul { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 0.15rem; }
.nd-fqh__nav li { margin: 0 !important; }
.nd-fqh__nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.65rem; border-radius: 8px; border: 1px solid transparent; color: var(--nd-fg-2); font-size: 0.875rem; text-decoration: none !important; }
.nd-fqh__nav a:hover { color: var(--nd-fg); background: rgba(255, 255, 255, 0.03); }
.nd-fqh__nav a.is-active { color: var(--nd-fg); background: #111113; border-color: var(--nd-line-2); }
.nd-fqh__nav a.is-active svg { stroke: var(--nd-blue-text); }
.nd-fqh__nav svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--nd-muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nd-fqh__nav span { flex: 1; }
.nd-fqh__nav b { font-family: var(--wp--preset--font-family--mono); font-weight: 400; font-size: 0.75rem; color: #71717a; }
.nd-fqh__nav li[hidden] { display: none; }

.nd-fqh__topics { display: grid !important; gap: 1.25rem; }
.nd-fqh__topics > * { margin: 0 !important; }
.nd-fqh__topic { padding: clamp(1.1rem, 2.5vw, 1.75rem); border-radius: var(--nd-radius); border: 1px solid var(--nd-line-2); background: linear-gradient(180deg, #0d0d0f, #09090b); scroll-margin-top: 6rem; }
.nd-fqh__topic[hidden] { display: none !important; }
.nd-fqh__topic > * { margin: 0 !important; }
.nd-fqh__topic-head { display: flex; gap: 0.9rem; align-items: flex-start; padding-bottom: 1.1rem; border-bottom: 1px solid var(--nd-line); }
.nd-fqh__topic-icon { flex: none; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: rgba(11, 87, 227, 0.14); border: 1px solid rgba(110, 160, 255, 0.3); }
.nd-fqh__topic-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--nd-blue-text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nd-fqh__topic-title { margin: 0 !important; font-size: clamp(1.25rem, 2.2vw, 1.5rem) !important; line-height: 1.2 !important; color: var(--nd-fg); }
.nd-fqh__topic-sub { margin: 0.25rem 0 0 !important; font-size: 0.9rem; color: var(--nd-muted); }
.nd-fqh__list > * { margin: 0 !important; }
.nd-fqh__list .wp-block-details { border: 0; border-bottom: 1px solid var(--nd-line); padding: 0; margin: 0 !important; background: none; scroll-margin-top: 6rem; }
.nd-fqh__list .wp-block-details:last-child { border-bottom: 0; }
.nd-fqh__list .wp-block-details[hidden] { display: none; }
.nd-fqh__list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; color: var(--nd-fg); font-weight: 500; font-size: 0.975rem; line-height: 1.45; }
.nd-fqh__list summary::-webkit-details-marker { display: none; }
.nd-fqh__list summary::after { content: "+"; flex: none; width: 1.25rem; text-align: center; font-size: 1.25rem; line-height: 1; font-weight: 300; color: var(--nd-muted); transition: transform 0.2s var(--nd-ease), color 0.2s; }
.nd-fqh__list summary:hover::after { color: var(--nd-blue-text); }
.nd-fqh__list details[open] > summary::after { transform: rotate(45deg); color: var(--nd-fg); }
.nd-fqh__list details > p { margin: 0 0 1.1rem !important; color: var(--nd-muted); font-size: 0.9375rem; line-height: 1.7; max-width: 46rem; }
.nd-fqh__list details > p + p { margin-top: -0.4rem !important; }
.nd-fqh__list details > p a { color: var(--nd-blue-text); }
.nd-fqh__list details:target > summary { color: var(--nd-blue-soft); }
.nd-fqh__empty { padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--nd-line-2); border-radius: var(--nd-radius); }
.nd-fqh__empty[hidden] { display: none; }
.nd-fqh__empty h2 { margin: 0 0 0.5rem !important; font-size: 1.5rem !important; }
.nd-fqh__empty p { margin: 0 !important; color: var(--nd-muted); }

/* ---------- Still have a question? ---------- */
.nd-fqh__help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.nd-fqh__helpcard { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem; border-radius: var(--nd-radius); border: 1px solid var(--nd-line-2); background: var(--nd-card); color: var(--nd-muted) !important; text-decoration: none !important; font-size: 0.9375rem; line-height: 1.6; transition: border-color 0.2s, transform 0.25s var(--nd-ease); }
.nd-fqh__helpcard:hover { border-color: rgba(110, 160, 255, 0.45); transform: translateY(-2px); }
.nd-fqh__helpcard strong { margin-top: 0.4rem; color: var(--nd-fg); font-size: 1.0625rem; font-weight: 600; }
.nd-fqh__helpcard em { margin-top: auto; padding-top: 0.4rem; font-style: normal; color: var(--nd-blue-text); font-size: 0.875rem; }
.nd-fqh__helpcard em::after { content: " →"; }

@media (max-width: 900px) {
	.nd-fqh__layout { grid-template-columns: minmax(0, 1fr); }
	.nd-fqh__nav { position: static; }
	.nd-fqh__nav ul { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.2rem !important; scrollbar-width: none; }
	.nd-fqh__nav ul::-webkit-scrollbar { display: none; }
	.nd-fqh__nav a { white-space: nowrap; border-color: var(--nd-line-2); border-radius: 999px; padding: 0.4rem 0.75rem; }
	.nd-fqh__help { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.nd-fqh__chip { font-size: 0.75rem; }
	.nd-fqh__topic-icon { width: 2.1rem; height: 2.1rem; }
}
