/**
 * Homepage 10: FAQ (dark, on #1a1c22).
 * Desktop E: two-column accordion. Phone: one column, first five questions,
 * the rest behind "Show all questions" (capped only under html.gh-js).
 */

/* ---------- Shared ---------- */

.gs-home .gh-10 { background: var(--surface-foreground); }
.gs-home .gh-10 .s10e-head { display: flex; flex-direction: column; align-items: flex-start; }
.gs-home .gh-10 .s10e-h { margin-top: 16px; }
.gs-home .gh-10 .s10e-intro { margin-top: 12px; color: var(--text-med-em); }

.gs-home .gh-10 .s10e-item { position: relative; border-bottom: 1px solid var(--outline-med-em); }
.gs-home .gh-10 .s10e-q { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 600; color: var(--text-high-em); -webkit-tap-highlight-color: transparent; }
.gs-home .gh-10 .s10e-q::-webkit-details-marker { display: none; }
.gs-home .gh-10 .s10e-q::marker { content: ""; }
.gs-home .gh-10 .s10e-ic { flex: none; width: 20px; height: 20px; color: var(--brand-tan); transition: transform .2s ease; }
.gs-home .gh-10 .s10e-ic line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gs-home .gh-10 .s10e-v { transform-origin: 10px 10px; transition: transform .2s ease; }
.gs-home .gh-10 .s10e-item[open] .s10e-v { transform: scaleY(0); }
.gs-home .gh-10 .s10e-a { margin-top: -4px; color: var(--text-med-em); text-wrap: pretty; }

/* ---------- Desktop (E) ---------- */

@media (min-width: 1024px) {
	.gs-home .gh-10 {
		box-sizing: border-box;
		min-height: 880px;
		display: flex;
		flex-direction: column;
		/* Top-aligned, not centred: the column heights change as questions open and
		   close, and centring in the 880px minimum moved the whole block up and down.
		   With the first answer open (as on load) the section is taller than 880px,
		   so this is exactly where it sat before. */
		justify-content: flex-start;
		padding: 160px 0;
	}

	.gs-home .gh-10 .s10e-head { max-width: 640px; }
	.gs-home .gh-10 .s10e-h { font-size: 44px; line-height: 1.15; }
	.gs-home .gh-10 .s10e-intro { font-size: 18px; line-height: 28px; }

	.gs-home .gh-10 .s10e-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; margin-top: 40px; }
	.gs-home .gh-10 .s10e-list { border-top: 1px solid var(--outline-med-em); }
	.gs-home .gh-10 .s10e-q { gap: 24px; padding: 17px 0; font-size: 18px; line-height: 26px; }
	.gs-home .gh-10 .s10e-q:hover .s10e-ic { transform: rotate(90deg); }
	.gs-home .gh-10 .s10e-item[open] .s10e-q:hover .s10e-ic { transform: none; }
	.gs-home .gh-10 .s10e-a { padding: 0 44px 20px 0; font-size: 16px; line-height: 26px; }
	.gs-home .gh-10 .s10e-cap { display: none; }
}

/* ---------- Phone ---------- */

@media (max-width: 1023px) {
	.gs-home .gh-10 { padding: 112px 0; interpolate-size: allow-keywords; }
	.gs-home .gh-10 .w { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 24px; }
	.gs-home .gh-10 .s10e-head { max-width: 100%; }
	.gs-home .gh-10 .s10e-h { font-size: 32px; line-height: 1.15; }
	.gs-home .gh-10 .s10e-intro { font-size: 16px; line-height: 26px; text-wrap: pretty; }

	.gs-home .gh-10 .s10e-cols { margin-top: 32px; border-top: 1px solid var(--outline-med-em); }
	.gs-home .gh-10 .s10e-q { gap: 16px; min-height: 56px; padding: 16px 0; font-size: 16px; line-height: 24px; }
	.gs-home .gh-10 .s10e-a { padding: 0 36px 20px 0; font-size: 14px; line-height: 22px; }
	.gs-home .gh-10 .s10e-item::details-content { block-size: 0; overflow: hidden; transition: block-size .25s ease, content-visibility .25s allow-discrete; }
	.gs-home .gh-10 .s10e-item[open]::details-content { block-size: auto; }
	/* The answer closed by opening another one shuts instantly (10-faq.js keeps the tapped question in place) */
	.gs-home .gh-10 .s10e-item.s10e-snap::details-content { transition: none; }

	/* Fade over the last shown question while the rest are tucked away */
	.gs-home .gh-10 .s10e-cap { display: block; position: relative; height: 0; pointer-events: none; }
	.gs-home .gh-10 .s10e-cap::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(to bottom, transparent, var(--surface-foreground) 88%); opacity: 0; transition: opacity .25s ease; }

	.gs-home .gh-10 .s10e-more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease, visibility 0s linear 0s; }
	.gs-home .gh-10 .s10e-more-in { min-height: 0; overflow: hidden; }
	.gs-home .gh-10 .s10e-more .s10e-item { opacity: 1; transform: none; transition: opacity .3s ease .05s, transform .3s ease .05s; }

	html.gh-js .gs-home .gh-10 .s10e-capped .s10e-item:not([open]) + .s10e-cap::before { opacity: 1; }
	html.gh-js .gs-home .gh-10 .s10e-capped .s10e-more { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
	html.gh-js .gs-home .gh-10 .s10e-capped .s10e-more .s10e-item { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; }

	.gs-home .gh-10 .s10e-foot { display: flex; justify-content: center; margin-top: 28px; }
	html:not(.gh-js) .gs-home .gh-10 .s10e-foot { display: none; }
	.gs-home .gh-10 .s10e-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px; border-radius: 100px; border: 1px solid var(--outline-high-em); background: transparent; color: var(--text-high-em); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 22px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s ease, background-color .2s ease; }
	.gs-home .gh-10 .s10e-btn:hover,
	.gs-home .gh-10 .s10e-btn:focus { background: transparent; color: var(--text-high-em); }
	.gs-home .gh-10 .s10e-btn:hover,
	.gs-home .gh-10 .s10e-btn:active { border-color: var(--brand-tan); }
	.gs-home .gh-10 .s10e-chev { flex: none; width: 18px; height: 18px; color: var(--brand-tan); transition: transform .3s ease; }
	.gs-home .gh-10 .s10e-open .s10e-chev { transform: rotate(180deg); }
}
