/* The FAQ page (/faq/, faq/index.php). Colours are tokens. */

.content-wrapper.tmb-page:has(> .faq) { --page-top-mobile: 76px; }
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.faq-title { font-size: 28px; font-weight: 700; margin: 0; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-muted { color: var(--tmb-gray-600); }
.faq-staff-note { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--tmb-purple-bg); color: var(--tmb-gray-900); font-size: 14px; }

.faq-section { background: #fff; border: 1px solid var(--tmb-gray-300); border-radius: 14px; padding: 20px; scroll-margin-top: 90px; }
.faq-section h2 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.faq-section > p:last-child { margin-bottom: 0; }

.faq-item { border-top: 1px solid var(--tmb-gray-300); scroll-margin-top: 90px; }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--tmb-gray-600); font-weight: 400; font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item-staff summary { color: var(--tmb-purple); }
.faq-answer { padding: 0 0 14px; line-height: 1.5; }
.faq-answer p { margin: 0 0 10px; }

.faq-staff { margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: var(--tmb-purple-bg); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.faq-staff-label { width: 100%; font-size: 12px; font-weight: 600; color: var(--tmb-gray-700); text-transform: uppercase; letter-spacing: .03em; }
.faq-reply { width: 100%; margin: 0 0 4px; white-space: pre-wrap; font-family: inherit; font-size: 14px; background: #fff; border: 1px solid var(--tmb-gray-300); border-radius: 6px; padding: 8px 10px; }

.faq-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }
.faq-video { display: flex; flex-direction: column; gap: 3px; color: var(--tmb-gray-900); text-decoration: none; font-size: 14px; }
.faq-video:hover .faq-video-title { color: var(--tmb-blue); }
.faq-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--tmb-gray-100); margin-bottom: 4px; }
.faq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faq-thumb i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
    background: var(--tmb-black-60); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px; }
.faq-video:hover .faq-thumb i { background: var(--tmb-blue); }
.faq-video-title { font-weight: 600; }

.faq-video-modal { position: fixed; inset: 0; z-index: 2000; background: var(--tmb-black-90); display: flex; align-items: center; justify-content: center; padding: 16px; }
.faq-video-frame { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.faq-video-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.faq-video-close { position: absolute; top: -40px; right: 0; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 767px) {
    .faq-section { padding: 16px; }
    .faq-videos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
