/* 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-feature { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--tmb-gray-300); scroll-margin-top: 90px; }
.faq-section h2 + .faq-muted + .faq-feature { border-top: 0; }
.faq-feature-text { flex: 1 1 auto; min-width: 0; }
.faq-feature h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; padding: 0; border: 0; }   /* front.css gives an h3 a rule under it */
.faq-feature h3 a { color: var(--tmb-gray-900); }
.faq-feature h3 a:hover { color: var(--tmb-blue); }
.faq-feature p { margin: 0; line-height: 1.5; color: var(--tmb-gray-700); }
.faq-feature-videos { flex: 0 0 auto; display: flex; gap: 8px; }
.faq-video { display: flex; flex-direction: column; gap: 3px; width: 120px; color: var(--tmb-gray-700); text-decoration: none; font-size: 12px; }
.faq-video:hover .faq-video-label { color: var(--tmb-blue); }
.faq-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--tmb-gray-100); }
.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: 28px; height: 28px; border-radius: 50%;
    background: var(--tmb-black-60); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; padding-left: 2px; }
.faq-video:hover .faq-thumb i { background: var(--tmb-blue); }

.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-feature { flex-direction: column; gap: 10px; }
}

/* Beta tag on the Fantasy tools section and each tool (the site's beta orange,
   as .badge-beta / .explore-beta-tag). */
.faq-beta { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 6px; border-radius: 3px; line-height: 1;
    background: color-mix(in srgb, var(--tmb-red), var(--tmb-chart-orange) 57%); color: #fff;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.faq-section h2 .faq-beta { font-size: 11px; }
