/* ============================================================================
   Questions page.

   The answers use the homepage's own accordion (.qa, in home.css), so a
   question looks the same on both pages. This file lays out the page around
   them: the search and the topics in a column that stays in view, the
   questions beside it, and the empty search that hands the question to the
   front desk.
   ========================================================================== */

/* Several blocks here set a display; the script's hidden attribute has to
   beat them. */
.fpage [hidden] { display: none !important; }

.fhead { padding-block: clamp(2rem, 4vw, 3.4rem) clamp(.6rem, 1.5vw, 1.2rem); }
.fhead h1 { font-size: var(--t-2xl); margin-bottom: .45em; }
.fhead h1::after {
	content: ''; display: block; width: 58px; height: 2px;
	background: var(--gold); margin-top: .5em;
}
.fhead .lede { max-width: 56ch; }

.fbody {
	display: grid; grid-template-columns: 16rem minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
	padding-block: clamp(1.6rem, 3vw, 2.6rem) var(--band);
}
.fside { position: sticky; top: calc(var(--mast-h) + 1.5rem); }

/* ── Search ───────────────────────────────────────────────────────────────── */
.ffind { margin-bottom: 1.9rem; }
.ffind label { display: block; font: 600 var(--t-sm)/1.3 var(--ui); color: var(--ink); margin-bottom: .5rem; }
.ffind input {
	width: 100%; padding: .8rem .9rem;
	font: 500 var(--t-base)/1.2 var(--ui); color: var(--ink);
	background: var(--paper);
	border: 1.5px solid var(--line-2); border-radius: 2px 2px 0 0;
	transition: border-color .18s var(--ease);
}
.ffind input::placeholder { color: var(--ink-50); }
.ffind input:focus { border-color: var(--ink); }
.ffind__count { margin: .5rem 0 0; font-size: var(--t-xs); color: var(--ink-50); font-variant-numeric: tabular-nums; }

/* ── Topics ───────────────────────────────────────────────────────────────── */
.ftopics ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.ftopics a {
	display: block; padding: .4rem 0 .4rem 1rem; margin-left: -1px;
	border-left: 2px solid transparent;
	font-size: var(--t-sm); line-height: 1.35; color: var(--ink-70); text-decoration: none;
}
.ftopics a:hover { color: var(--ink); border-left-color: var(--gold); }

/* ── The questions ────────────────────────────────────────────────────────── */
.flist { max-width: 46rem; }
.ftopic + .ftopic { margin-top: clamp(2.4rem, 4.5vw, 3.4rem); }
.ftopic h2 { font-size: var(--t-xl); margin-bottom: .6rem; }
/* home.css gives the first .qa its top rule; here the heading comes first. */
.ftopic h2 + .qa { border-top: 1px solid var(--line-2); }
.flist .qa__a p { font-size: var(--t-base); max-width: 62ch; }
.flist .qa__a a { font-weight: 600; }
/* The answer a link was sent for. */
.flist .qa:target > summary { color: var(--brand-ink); }

/* ── Nothing found ────────────────────────────────────────────────────────── */
.fnone {
	background: var(--sand-2); border-left: 3px solid var(--gold);
	padding: clamp(1.3rem, 2.6vw, 1.8rem) clamp(1.3rem, 3vw, 2rem);
}
.fnone p { color: var(--ink-70); margin-bottom: 1.1rem; }
.fnone .fnone__say {
	font-family: var(--disp); font-size: var(--t-lg); line-height: 1.35; color: var(--ink);
	font-variation-settings: 'opsz' 32, 'SOFT' 12; margin-bottom: .4rem;
}
.fnone__say span { overflow-wrap: anywhere; }

.fsmall { margin-top: clamp(2.6rem, 4.5vw, 3.4rem); font-size: var(--t-sm); color: var(--ink-70); }
.fsmall a { font-weight: 600; }

/* ── Narrow screens ───────────────────────────────────────────────────────── */
/* The side column comes to the top: the search full width, the topics as a
   row of links that wraps. */
@media (max-width: 900px) {
	.fbody { grid-template-columns: 1fr; gap: 1.8rem; }
	.fside { position: static; }
	.ftopics ul { display: flex; flex-wrap: wrap; gap: .45rem; border: 0; }
	.ftopics a {
		margin: 0; padding: .5rem .8rem;
		background: var(--paper); border: 1px solid var(--line-2);
	}
	.ftopics a:hover { border-color: var(--ink); }
}
