/* hyp/sabia-que — protótipo linhas 410–434, spec 11. */

.hyp-faq {
	background: var(--hyp-bg-alt);
	margin-top: 110px;
	padding: 100px 0;
}

.hyp-faq .hyp-faq__head {
	max-width: 760px;
}

.hyp-faq .hyp-sh__lead {
	margin-top: 20px;
}

.hyp-faq .hyp-faq__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 20px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

/* Estado ABERTO = omissão (também sem JS). */
.hyp-faq .hyp-faq__card {
	position: relative;
	margin: 0;
	list-style: none;
	border-radius: var(--hyp-r-card);
	padding: 30px 28px;
	min-height: 230px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	border: 1px solid var(--hyp-border-ctrl);
	background: #ffffff;
	transition: background 0.3s, color 0.3s;
}

.hyp-faq.is-ready .hyp-faq__card {
	cursor: pointer;
}

.hyp-faq .hyp-faq__tag {
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--hyp-orange);
}

.hyp-faq .hyp-faq__q {
	margin: 0;
}

.hyp-faq .hyp-faq__btn {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--hyp-navy);
	transition: color 0.3s;
}

/* Área clicável = cartão inteiro (como o <button> do protótipo) — só enquanto fechado: aberto, a camada sairia por
   cima da resposta e impedia selecionar/copiar o texto (o clique no cartão aberto continua a fechá-lo, via JS). */
.hyp-faq .hyp-faq__card.is-closed .hyp-faq__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--hyp-r-card);
}

.hyp-faq .hyp-faq__btn:focus-visible {
	outline: none;
}

.hyp-faq .hyp-faq__card:has(.hyp-faq__btn:focus-visible) {
	outline: 2px solid var(--hyp-focus);
	outline-offset: 3px;
}

.hyp-faq .hyp-faq__a {
	font-size: 14px;
	line-height: 1.75;
	color: var(--hyp-text-body);
	font-weight: 300;
}

.hyp-faq .hyp-faq__a[hidden] {
	display: none;
}

.hyp-faq .hyp-faq__cta {
	margin-top: auto;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--hyp-text-meta-3);
}

.hyp-faq .hyp-faq__cta:empty {
	display: none;
}

/* Estado FECHADO (com JS). */
.hyp-faq .hyp-faq__card.is-closed {
	background: var(--hyp-navy);
	border-color: var(--hyp-navy);
}

.hyp-faq .hyp-faq__card.is-closed .hyp-faq__tag {
	color: rgba(255, 255, 255, 0.55);
}

.hyp-faq .hyp-faq__card.is-closed .hyp-faq__btn {
	color: #ffffff;
}

.hyp-faq .hyp-faq__card.is-closed .hyp-faq__cta {
	color: var(--hyp-orange);
}

.hyp-faq .hyp-faq__card.is-closed:has(.hyp-faq__btn:focus-visible) {
	outline-color: var(--hyp-orange);
}
