/* help centre (views/site/faq/home.php, listing.php, single.php); classes are prefixed f- (site.css has .faq) */
.f-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.f-hero { padding-block: 64px 40px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.f-hero h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.045em; overflow-wrap: anywhere; }
.f-hero-sm { padding-block: 48px 32px; }
.f-hero-sm h1 { font-size: clamp(32px, 4.4vw, 52px); }

.f-search { display: flex; align-items: center; gap: 12px; width: min(640px, 100%); min-height: 60px; padding: 0 6px 0 20px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-md); margin: 0; }
.f-search:focus-within { border-color: var(--accent); box-shadow: var(--ring), var(--shadow-md); }
.f-search svg { width: 22px; height: 22px; color: var(--ink-faint); flex: none; }
.f-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 17px var(--body); color: var(--ink); }
.f-search .btn { min-height: 46px; padding: 0 20px; }
.f-search-sm { min-height: 48px; padding: 0 16px; box-shadow: none; }
.f-search-sm input { font-size: 15px; }
.f-search-sm svg { width: 18px; height: 18px; }
.f-search-sm .btn { display: none; }
@media (max-width: 520px) { .f-search .btn { display: none; } .f-search { padding-right: 18px; } .f-search input { font-size: 16px; } }

.f-popular { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; color: var(--ink-muted); font-size: 14px; }
.f-popular a { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 6px 12px; font: 500 13px/1.3 var(--body); color: var(--ink); text-decoration: none; }
.f-popular a:hover { background: var(--panel); }
.f-popular a[aria-current] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.f-topic { text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.f-topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.f-count { font: 500 13px var(--mono); color: var(--ink-faint); }

.f-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-bottom: 120px; }
.f-wrap .sec-h { align-self: start; position: sticky; top: 100px; }
.f-group + .f-group { margin-top: 36px; }
.f-cat { font: 600 12px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.f-group { scroll-margin-top: 100px; }
.f-list details { border-bottom: 1px solid var(--line); }
.f-list summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; font: 600 17px/1.35 var(--body); }
.f-list summary::-webkit-details-marker { display: none; }
.f-list summary::after { content: "+"; font: 400 22px/1 var(--body); color: var(--ink-muted); flex: none; }
.f-list details[open] summary::after { content: "−"; }
.f-list summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.f-answer { padding: 0 0 20px; color: var(--ink-muted); max-width: 66ch; }
.f-empty { color: var(--ink-muted); padding: 18px 0; }
.f-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent-hover); text-decoration: none; }
.f-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .f-wrap { grid-template-columns: 1fr; gap: 12px; padding-bottom: 80px; } .f-wrap .sec-h { position: static; } }

/* answers are HTML from the CMS (in the list, the results and an answer's page) */
.f-answer > * + *, .f-excerpt > * + *, .f-prose > * + * { margin-top: .9em; }
.f-answer ul, .f-answer ol, .f-excerpt ul, .f-excerpt ol, .f-prose ul, .f-prose ol { padding-left: 1.3em; margin-bottom: 0; }
.f-answer li + li, .f-excerpt li + li, .f-prose li + li { margin-top: .35em; }
.f-answer a, .f-excerpt a, .f-prose a { color: var(--accent-hover); }
.f-answer img, .f-excerpt img, .f-prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.f-answer p:empty, .f-prose p:empty { display: none; }

/* search results */
.f-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.f-crumbs a { color: inherit; text-decoration: none; }
.f-crumbs a:hover { color: var(--ink); }
.f-results { max-width: 820px; margin: 0 auto; padding-bottom: 120px; }
.f-n { font: 500 13px var(--mono); color: var(--ink-faint); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.f-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.f-item h2 { font-size: 24px; letter-spacing: -.02em; }
.f-item h2 a { text-decoration: none; }
.f-item h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-excerpt { margin-top: 10px; color: var(--ink-muted); }
.f-none { padding: 28px 0; display: grid; gap: 16px; justify-items: start; color: var(--ink-muted); }

/* an answer */
.f-head { max-width: 1040px; margin-inline: auto; padding-block: 48px 8px; display: grid; gap: 16px; }
.f-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.f-body { max-width: 1040px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 32px; }
.f-prose { font-size: 18px; line-height: 1.7; overflow-wrap: break-word; min-width: 0; }
.f-prose h2 { font-size: 26px; letter-spacing: -.025em; margin-top: 1.8em; }
.f-prose h3 { font-size: 21px; margin-top: 1.5em; }
.f-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.f-prose th, .f-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.f-prose code { font: 400 .88em var(--mono); background: var(--panel); padding: 2px 6px; border-radius: 6px; }
.f-prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.f-prose iframe { max-width: 100%; border: 0; border-radius: var(--r-md); }
.f-side { position: sticky; top: 100px; align-self: start; display: grid; gap: 16px; }
.f-side .btn { justify-self: start; margin-top: 6px; }
.f-side .f-search { width: 100%; }
.f-back { max-width: 1040px; margin: 56px auto 120px; }
.f-back a { font-weight: 600; color: var(--accent-hover); text-decoration: none; }
@media (max-width: 860px) { .f-body { grid-template-columns: 1fr; gap: 32px; } .f-side { position: static; } .f-prose { font-size: 17px; } .f-back { margin-bottom: 80px; } }
