/*
 * The FAQ page (pages/faq.blade.php, redrawn 2 Dec 2026 at the owner's word):
 * a search box in the hero, the questions numbered beside a list of them that
 * stays in view, and the other places an answer is. The site's own tokens,
 * both themes.
 */

/* ---- the hero ------------------------------------------------------------ */
.fq-head { padding-block: 132px 64px; }
.fq-head .eyebrow { justify-self: center; }
.fq-head h1 { max-width: 18ch; }
.fq-search { position: relative; width: min(100%, 620px); margin-top: 10px; }
.fq-search[hidden] { display: none; }
.fq-search svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--jade); pointer-events: none; }
.fq-search input { width: 100%; box-sizing: border-box; height: 60px; padding: 0 22px 0 54px; border-radius: 999px; border: 1px solid var(--deep-line-2); background: rgb(255 255 255 / 0.06); color: var(--deep-fg); font: inherit; font-size: 16.5px; box-shadow: 0 20px 50px -24px rgb(0 0 0 / 0.6); }
.fq-search input::placeholder { color: var(--deep-fg-3); }
.fq-search input:focus { outline: none; border-color: rgb(45 212 191 / 0.6); background: rgb(255 255 255 / 0.09); box-shadow: 0 0 0 4px rgb(45 212 191 / 0.15); }
.fq-count { margin: 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--deep-fg-3) !important; }

/* ---- the questions --------------------------------------------------------- */
.fq-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; }
.fq-side { position: sticky; top: 104px; display: grid; gap: 18px; max-height: calc(100vh - 128px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.fq-side::-webkit-scrollbar { display: none; }

.fq-index { padding: 20px 18px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.fq-index-title { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-text); }
.fq-index ol { list-style: none; margin: 0; padding: 0; }
.fq-index li + li { border-top: 1px solid var(--line); }
.fq-index li[hidden] { display: none; }
.fq-index a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 9px 4px 9px 0; font-size: 14px; line-height: 1.45; color: var(--fg-2); text-decoration: none; }
.fq-index a:hover { color: var(--fg); }
.fq-index a span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); text-align: right; }

.fq-ask { display: grid; gap: 10px; justify-items: start; padding: 22px; border-radius: 18px; border: 1px solid var(--tint-2); background: linear-gradient(135deg, var(--tint), transparent 70%), var(--surface); }
.fq-ask-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--primary-text); }
.fq-ask-ico svg { width: 21px; height: 21px; }
.fq-ask h2 { margin: 0; font-size: 1.15rem; }
.fq-ask p { margin: 0; font-size: 14.5px; color: var(--fg-2); }
.fq-ask .btn { margin-top: 4px; }

.fq-list { min-width: 0; }
.fq-qa { scroll-margin-top: 104px; }
.fq-qa[hidden] { display: none; }
.fq-qa summary { gap: 16px; padding: 20px 22px; font-size: 16.5px; }
.fq-qa summary .qa-q { flex: 1; font-family: var(--font-display); font-weight: 600; line-height: 1.4; }
.fq-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--fg-3); background: var(--surface-2); border: 1px solid var(--line); transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.fq-qa[open] .fq-n { color: var(--primary-text); background: var(--tint); border-color: var(--tint-2); }
.fq-qa .ans { padding: 0 22px 22px 78px; font-size: 15.5px; line-height: 1.75; max-width: none; }
.fq-qa + .fq-qa { margin-top: 12px; }
.fq-none { margin: 0; padding: 28px; border-radius: 16px; border: 1px dashed var(--line-strong, var(--line)); text-align: center; color: var(--fg-2); }
.fq-none[hidden] { display: none; }

/* ---- more ways to an answer ------------------------------------------------- */
.fq-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fq-more a { position: relative; height: 100%; box-sizing: border-box; display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.fq-more a:hover { border-color: var(--tint-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.fq-more a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.fq-more-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--tint); color: var(--primary-text); margin-bottom: 4px; }
.fq-more-ico svg { width: 21px; height: 21px; }
.fq-more-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; }
.fq-more-text { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.fq-more-go { position: absolute; top: 24px; right: 22px; color: var(--fg-3); transition: color 0.2s, transform 0.2s; }
.fq-more-go svg { width: 17px; height: 17px; }
.fq-more a:hover .fq-more-go { color: var(--primary-text); transform: translateX(3px); }

/* ---- narrower screens --------------------------------------------------------- */
@media (max-width: 1000px) {
    .fq-grid { grid-template-columns: 1fr; gap: 28px; }
    .fq-side { position: static; max-height: none; overflow: visible; order: 2; }
    .fq-index { display: none; }
}

@media (max-width: 640px) {
    .fq-head { padding-block: 108px 48px; }
    .fq-search input { height: 54px; font-size: 15.5px; }
    .fq-qa summary { padding: 16px; gap: 12px; font-size: 15.5px; }
    .fq-n { width: 34px; height: 34px; font-size: 12px; }
    .fq-qa .ans { padding: 0 16px 18px; }
}

/* ---- the home page's questions (pages/home.blade.php, #faq) ------------------ */
.hfaq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.hfaq-side { position: sticky; top: 104px; display: grid; gap: 22px; justify-items: start; }
.hfaq-side .head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.hfaq-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary-text); text-decoration: none; }
.hfaq-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.hfaq-all svg { width: 15px; height: 15px; }
.hfaq .fq-ask { width: 100%; box-sizing: border-box; max-width: 420px; }
.fq-ask h3, .fq-ask .fq-ask-h { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--fg); }
@media (max-width: 1000px) {
    .hfaq { grid-template-columns: 1fr; gap: 32px; }
    .hfaq-side { position: static; }
    .hfaq .fq-ask { display: none; }
}
