/* ============================================================================
   FAQ — page-only styles (loaded after site.css and company.css)
     .fq-hero     the company subpage cover, a little shorter so the
                  questions start sooner
     .fq-layout   a sticky topic rail beside the topics
     .fq-topic    one topic: a display title and a line about it, over the
                  shared .faq accordion at display size (.c-faq-lg)
   faq.js marks the topic in view, jumps straight to a topic, and opens a
   question named in the address (/faq#delete-account). Without it the rail
   is a plain list of links and every answer opens on a tap as usual.
   ========================================================================== */

/* ---------------------------------------------------------------- cover */
.hero.c-page-hero.fq-hero { min-height: min(72svh, 760px); }

/* --------------------------------------------------------------- layout */
.fq-layout {
	display: grid;
	grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.fq-rail { position: sticky; top: 6.5rem; }

/* ---------------------------------------------------------------- rail */
.fq-toc-label { margin: 0 0 1rem; }
.fq-toc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-2); }
.fq-toc-list a {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--hairline);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text-mute);
	transition: color 0.25s var(--ease);
}
/* the site's slash motif: an accent "/" slides in on hover and on the
   topic in view */
.fq-toc-list a::before {
	content: '/';
	width: 0;
	margin-right: -0.7rem;
	overflow: hidden;
	opacity: 0;
	color: var(--accent-2);
	transition: width 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.25s var(--ease);
}
.fq-toc-list a:hover,
.fq-toc-list a:focus-visible,
.fq-toc-list a.is-active { color: var(--text); }
.fq-toc-list a:hover::before,
.fq-toc-list a:focus-visible::before,
.fq-toc-list a.is-active::before { width: 0.6em; margin-right: 0; opacity: 1; }
.fq-toc-count {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--text-faint);
}

/* -------------------------------------------------------------- topics */
.fq-topic + .fq-topic { margin-top: clamp(4.5rem, 9vw, 8rem); }
.fq-topic-head {
	display: grid;
	gap: 0.7rem;
	margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.fq-topic-title {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 5.6vw, 5.6rem);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 0.92;
	text-wrap: balance;
}
.fq-topic-title:focus:not(:focus-visible) { outline: none; }
.fq-topic-desc { margin: 0; font-size: 1.02rem; color: var(--text-mute); }

/* the accordion runs the column's full width */
.faq.fq-list { max-width: none; margin-inline: 0; }
.fq-list .faq-q { transition: color 0.25s var(--ease); }
.fq-list .faq-q:hover,
.fq-list .faq-q:focus-visible { color: var(--accent-2); }
.fq-list .faq-q .plus-ic::before,
.fq-list .faq-q .plus-ic::after { transition: transform 0.3s var(--ease), background-color 0.25s var(--ease); }
.fq-list .faq-q:hover .plus-ic::before,
.fq-list .faq-q:hover .plus-ic::after,
.fq-list .faq-item.open .plus-ic::before { background: var(--accent-2); }

/* -------------------------------------------------------------- tablet */
@media (max-width: 900px) {
	.fq-layout { grid-template-columns: minmax(0, 1fr); gap: clamp(2.6rem, 7vw, 3.4rem); }
	/* the rail becomes a row of topic chips above the questions */
	.fq-rail { position: static; }
	.fq-toc-list { display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 0; }
	.fq-toc-list a {
		gap: 0.6rem;
		padding: 0.6rem 0.85rem;
		border: 1px solid var(--hairline-2);
		border-radius: 2px;
		font-size: 0.95rem;
		color: var(--text);
	}
	.fq-toc-list a::before { display: none; }
	.fq-toc-list a:hover, .fq-toc-list a:focus-visible { border-color: var(--text-mute); }
	.fq-toc-count { margin-left: 0; }
}
