/* ═══════════════════════════════════════════════════════════════════════
   FAQ page (/faq/): loaded after fibre.css. Dark search hero, topic cards,
   and a two-column layout (sticky topic list + questions).
   ═══════════════════════════════════════════════════════════════════════ */

.fq-hero { position: relative; background: radial-gradient(ellipse at 80% 0%, rgba(216,38,51,0.28), transparent 55%), #0b0b0d; padding-bottom: 64px; }
/* Photo background (Assets/Imagery/faq-hero-jpg.webp) with the shared shade from fibre.css; keep the question mark in view */
.fq-hero .fh-hero-bg img { object-position: 68% center; }
.fq-hero-head { max-width: 780px; }
.fq-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.fq-eyebrow svg { width: 15px; height: 15px; }
.fq-inline-link { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: #d82633; text-underline-offset: 4px; }

.fq-search { position: relative; display: flex; align-items: center; margin-top: 8px; max-width: 640px; }
.fq-search-icon { position: absolute; left: 20px; width: 20px; height: 20px; color: #9ca3af; pointer-events: none; }
.fq-search input { width: 100%; font: inherit; font-size: 17px; color: #111; background: #fff; border: 2px solid transparent; border-radius: 16px; padding: 18px 52px 18px 54px; outline: none; box-shadow: 0 20px 50px rgba(0,0,0,0.35); transition: border-color .2s; }
.fq-search input:focus { border-color: #d82633; }
.fq-search input::-webkit-search-cancel-button { display: none; }
.fq-clear { position: absolute; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f3f4f6; color: #4b5563; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fq-clear[hidden] { display: none; }
.fq-clear svg { width: 16px; height: 16px; }
.fq-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.fq-popular span { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600; margin-right: 2px; }
.fq-popular button { font: inherit; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all .2s; }
.fq-popular button:hover { border-color: #d82633; background: rgba(216,38,51,0.18); color: #fff; }

/* Topics */
.fq-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fq-topic { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #f0f0f0; transition: transform .25s, border-color .25s, box-shadow .25s; }
.fq-topic:hover { transform: translateY(-3px); border-color: rgba(216,38,51,0.35); box-shadow: 0 16px 36px rgba(0,0,0,0.07); }
.fq-topic-icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(216,38,51,0.10); color: #d82633; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fq-topic-icon svg { width: 21px; height: 21px; }
.fq-topic-txt { flex: 1; min-width: 0; }
.fq-topic-txt strong { display: block; color: #111; font-size: 15px; font-weight: 800; }
.fq-topic-txt small { display: block; color: #6b7280; font-size: 12.5px; line-height: 1.4; }
.fq-topic-n { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #f5f5f6; color: #4b5563; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Layout */
.fq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.fq-side { position: sticky; top: 150px; }
.fq-side-title { color: #9ca3af; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; }
.fq-side ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fq-side a[data-side] { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #4b5563; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.fq-side a[data-side] svg { width: 16px; height: 16px; color: #9ca3af; flex-shrink: 0; }
.fq-side a[data-side]:hover { background: #f5f5f6; color: #111; }
.fq-side a[data-side].is-on { background: #fff4f5; color: #d82633; }
.fq-side a[data-side].is-on svg { color: #d82633; }
.fq-side-help { padding: 16px; border-radius: 16px; background: #111; color: #fff; }
.fq-side-help p { font-weight: 800; margin-bottom: 8px; }
.fq-side-help a { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: rgba(255,255,255,0.8); font-size: 13.5px; font-weight: 600; }
.fq-side-help a:hover { color: #fff; }
.fq-side-help svg { width: 16px; height: 16px; color: #ff4d5a; }

.fq-main { min-width: 0; }
.fq-results { margin-bottom: 18px; color: #4b5563; font-size: 14px; font-weight: 700; }
.fq-section { scroll-margin-top: 150px; }
.fq-section + .fq-section { margin-top: 48px; }
.fq-section[hidden], .fq-section .faq-item[hidden], .fq-empty[hidden], .fq-results[hidden] { display: none; }
.fq-section-title { display: flex; align-items: center; gap: 12px; color: #111; font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; margin-bottom: 18px; }
.fq-main .faq-answer a { color: #d82633; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fq-empty { padding: 40px 28px; border-radius: 22px; background: #fafafa; border: 1px dashed #e5e7eb; text-align: center; color: #6b7280; }
.fq-empty svg { width: 34px; height: 34px; color: #d82633; margin: 0 auto 12px; }
.fq-empty-title { color: #111; font-size: 18px; font-weight: 800; margin-bottom: 6px; overflow-wrap: anywhere; }
.fq-empty a { color: #d82633; font-weight: 700; }

/* Dark theme */
[data-theme="dark"] .fq-topic, [data-theme="dark"] .fq-empty { background: #16171d; border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .fq-topic-txt strong, [data-theme="dark"] .fq-section-title, [data-theme="dark"] .fq-empty-title { color: #fff; }
[data-theme="dark"] .fq-topic-txt small, [data-theme="dark"] .fq-results { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .fq-topic-n { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); }
[data-theme="dark"] .fq-side a[data-side] { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .fq-side a[data-side]:hover { background: rgba(255,255,255,0.05); color: #fff; }
[data-theme="dark"] .fq-side a[data-side].is-on { background: rgba(216,38,51,0.14); color: #ff6b75; }
[data-theme="dark"] .fq-side-help { background: #16171d; border: 1px solid rgba(255,255,255,0.07); }

/* Tablets */
@media (max-width: 1023px) {
    .fq-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fq-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .fq-side { display: none; }
}

/* Phones */
@media (max-width: 767px) {
    .fq-hero { padding-bottom: 40px; }
    .fq-search input { font-size: 16px; padding: 15px 48px 15px 48px; border-radius: 14px; }
    .fq-search-icon { left: 16px; }
    .fq-popular { gap: 6px; }
    .fq-popular button { font-size: 12.5px; padding: 5px 11px; }
    .fq-topics { gap: 8px; }
    .fq-topic { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; position: relative; }
    .fq-topic-icon { width: 38px; height: 38px; border-radius: 11px; }
    .fq-topic-icon svg { width: 18px; height: 18px; }
    .fq-topic-txt strong { font-size: 14px; line-height: 1.25; padding-right: 30px; }
    .fq-topic-txt small { display: none; }
    .fq-topic-n { position: absolute; top: 14px; right: 14px; min-width: 26px; height: 26px; font-size: 12px; }
    .fq-section + .fq-section { margin-top: 36px; }
    .fq-section-title .fq-topic-icon { width: 38px; height: 38px; }
}
@media (max-width: 359px) {
    .fq-topics { grid-template-columns: minmax(0, 1fr); }
}

/* Light mode: small grey labels darkened to #6b7280 for readable contrast (4.8:1 on white; was 2.5:1). Dark mode unchanged. Page audit, 3 Dec 2026 */
:root:not([data-theme="dark"]) .fq-side-title { color: #6b7280; }
