/* ==========================================================================
   Ask for a quiz: the finder band under the quiz hub hero, and the hub's
   right rail. Mobile-first, transform-only motion, no layout thrash.
   ========================================================================== */

/* ---------- The finder ---------- */
.qf { position: relative; margin-top: -22px; padding: 0 0 6px; z-index: 3; }
.qf-box { position: relative; background: #fff; border: 1px solid #e3e8ef; border-radius: 20px; padding: 20px 18px 18px; box-shadow: 0 4px 12px rgba(15, 30, 60, .06), 0 24px 60px rgba(13, 39, 84, .16); overflow: hidden; }
.qf-box:before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, #0d2754, #ffc107 40%, #7c3aed 75%, #16a34a); }
@media (min-width: 720px) { .qf-box { padding: 26px 28px 24px; } }
.qf-head { margin-bottom: 14px; }
.qf-eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #7c3aed; margin-bottom: 6px; }
.qf-head h2 { margin: 0 0 6px; font-size: clamp(20px, 3vw, 27px); line-height: 1.2; }
.qf-head p { margin: 0; font-size: 13.5px; color: #4b5563; line-height: 1.5; }
.qf-head p em { font-style: normal; background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: 6px; padding: 1px 7px; font-weight: 700; color: #16181d; }

.qf-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .qf-form { grid-template-columns: minmax(0, 1fr) auto; } }
.qf-field { position: relative; display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 10px 0 14px; border: 2px solid #d5dce7; border-radius: 16px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.qf-field:focus-within { border-color: #0d2754; box-shadow: 0 0 0 4px rgba(13, 39, 84, .12); }
.qf-ic { font-size: 20px; flex: 0 0 auto; }
.qf-field input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 600; color: #16181d; height: 54px; padding: 0; position: relative; z-index: 1; }
.qf-field input::-webkit-search-cancel-button { display: none; }
.qf-ghost { position: absolute; left: 44px; right: 96px; top: 50%; transform: translateY(-50%); font-size: 17px; font-weight: 600; color: #9aa3b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.qf-ghost.is-typing:after { content: "|"; animation: qf-caret 1s steps(1) infinite; }
@keyframes qf-caret { 50% { opacity: 0; } }
.qf-field.is-filled .qf-ghost { display: none; }
.qf-mic, .qf-clear { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; border: 1px solid #e3e8ef; background: #f6f8fb; font-size: 16px; cursor: pointer; display: grid; place-items: center; color: #4b5563; transition: background .18s, transform .18s; }
.qf-mic:hover, .qf-clear:hover { background: #eef2f8; transform: translateY(-1px); }
.qf-mic.is-live { background: #fee2e2; border-color: #fecaca; animation: qf-pulse 1.2s ease-in-out infinite; }
@keyframes qf-pulse { 50% { transform: scale(1.08); } }
.qf-go { min-height: 58px; padding: 0 26px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #0d2754, #1e3a6e); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(13, 39, 84, .28); transition: transform .18s, box-shadow .18s; }
.qf-go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13, 39, 84, .34); }

.qf-asks { display: flex; align-items: center; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.qf-asks::-webkit-scrollbar { display: none; }
.qf-asks > span { font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #8a94a3; flex: 0 0 auto; }
.qf-asks button { flex: 0 0 auto; border: 1px solid #e3e8ef; background: #f6f8fb; border-radius: 20px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: #16181d; cursor: pointer; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.qf-asks button:hover { background: #0d2754; border-color: #0d2754; color: #fff; }

/* Output */
.qf-out { margin-top: 16px; border-top: 1px dashed #e3e8ef; padding-top: 14px; }
.qf-out[hidden] { display: none; }
.qf-understood { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 12.5px; color: #4b5563; }
.qf-understood > span:first-child { font-weight: 800; color: #8a94a3; text-transform: uppercase; letter-spacing: .8px; font-size: 11px; }
.qf-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-weight: 800; font-size: 12px; background: #eef2f8; color: #0d2754; border: 1px solid #d5dce7; }
.qf-tag--n { background: #fff8e6; color: #92400e; border-color: #fde68a; }
.qf-tag--m { background: #ecfeff; color: #155e75; border-color: #a5f3fc; }
.qf-tag--l { background: #f5f3ff; color: #4c1d95; border-color: #ddd6fe; }
.qf-tag--x { background: #fff1f2; color: #9f1239; border-color: #fecdd3; text-decoration: line-through; opacity: .8; }

.qf-best { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid #e3e8ef; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(15, 30, 60, .05); animation: qf-in .35s ease both; }
@keyframes qf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 720px) { .qf-best { grid-template-columns: 300px minmax(0, 1fr); } }
.qf-best-cover { position: relative; display: grid; place-items: center; min-height: 170px; overflow: hidden; background: #0d2754 var(--cover, none) center / cover no-repeat; }
.qf-best-cover:before { content: ""; position: absolute; inset: -20px; background: var(--cover, none) center / cover no-repeat; filter: blur(18px) brightness(.7); }
.qf-best-cover img { position: relative; width: 100%; height: auto; object-fit: contain; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.qf-best-cover .qf-best-no { position: relative; font-size: 54px; }
.qf-best-k { position: absolute; left: 12px; top: 12px; background: #ffc107; color: #16181d; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 4px 10px; border-radius: 7px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); z-index: 1; }
.qf-best-body { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.qf-best-body h3 { margin: 0; font-size: 20px; line-height: 1.28; }
.qf-best-body h3 a { color: #16181d; }
.qf-best-body h3 a:hover { color: #0d2754; }
.qf-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.qf-facts span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: #f6f8fb; border: 1px solid #e3e8ef; font-size: 12.5px; font-weight: 700; color: #16181d; }
.qf-facts span.is-easy, .qf-facts span.is-beginner { background: #dcfce7; border-color: #bbf7d0; color: #14532d; }
.qf-facts span.is-intermediate, .qf-facts span.is-medium { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.qf-facts span.is-advanced, .qf-facts span.is-hard { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.qf-why { margin: 0; font-size: 13px; color: #4b5563; line-height: 1.5; }
.qf-why b { color: #16181d; }
.qf-best-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.qf-play { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; background: linear-gradient(135deg, #0d2754, #1e3a6e); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 8px 18px rgba(13, 39, 84, .25); transition: transform .18s; }
.qf-play:hover { text-decoration: none; transform: translateY(-2px); color: #fff; }
.qf-play small { font-weight: 600; opacity: .85; }
.qf-alt { display: inline-flex; align-items: center; padding: 9px 13px; border-radius: 10px; border: 1px solid #e3e8ef; background: #fff; color: #16181d; font-size: 12.5px; font-weight: 700; }
.qf-alt:hover { text-decoration: none; border-color: #0d2754; color: #0d2754; }

.qf-more { margin-top: 12px; }
.qf-more:empty { display: none; }
.qf-more-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #8a94a3; margin: 0 0 8px; }
.qf-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.qf-mini { flex: 0 0 230px; scroll-snap-align: start; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border: 1px solid #e3e8ef; border-radius: 12px; background: #fff; color: #16181d; transition: transform .18s, box-shadow .18s, border-color .18s; }
.qf-mini:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 39, 84, .12); border-color: #0d2754; }
.qf-mini > i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 9px; background: #eef2f8 var(--cover, none) center / cover no-repeat; font-style: normal; font-size: 22px; overflow: hidden; }
.qf-mini strong { display: block; font-size: 13px; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.qf-mini small { display: block; margin-top: 3px; font-size: 11.5px; color: #4b5563; font-weight: 600; }
.qf-mini small b { color: #b45309; }
.qf-empty { padding: 14px; border: 1px dashed #e3e8ef; border-radius: 12px; font-size: 13.5px; color: #4b5563; }
.qf-empty b { color: #16181d; }
.qf-empty .qf-asks { margin-top: 8px; }

/* ---------- The right rail ---------- */
.qh-side .qh-panel { border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 30, 60, .05); }
.qh-side .qh-panel h3 { font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-weight: 800; font-size: 14.5px; letter-spacing: -.1px; padding-bottom: 8px; border-bottom: 2px solid #ffc107; margin-bottom: 12px; }
.qh-panel-note { margin: -4px 0 10px; font-size: 12.5px; color: #4b5563; line-height: 1.45; }
.qh-panel-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; }

.qf-mine { list-style: none; margin: 0; padding: 0; }
.qf-mine li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #e3e8ef; color: #16181d; }
.qf-mine li:last-child a { border-bottom: 0; }
.qf-mine li a:hover { text-decoration: none; color: #0d2754; }
.qf-mine strong { display: block; font-size: 13px; line-height: 1.25; }
.qf-mine small { display: block; font-size: 11.5px; color: #8a94a3; font-weight: 600; margin-top: 2px; }
.qf-mine .qf-mine-bar { display: block; height: 5px; border-radius: 3px; background: #e5e7eb; margin-top: 5px; overflow: hidden; }
.qf-mine .qf-mine-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #16a34a, #eab308); }
.qf-mine b { font-size: 15px; font-weight: 800; color: #0d2754; font-variant-numeric: tabular-nums; }
.qf-mine b small { display: inline; font-size: 10px; color: #8a94a3; margin-left: 2px; }

.qf-quick { display: grid; gap: 8px; }
.qf-quick button { position: relative; display: block; width: 100%; text-align: left; padding: 10px 30px 10px 12px; border: 1px solid #e3e8ef; border-radius: 12px; background: #f6f8fb; font: inherit; cursor: pointer; transition: transform .18s, background .18s, border-color .18s; }
.qf-quick button:after { content: "▸"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; color: #0d2754; }
.qf-quick button:hover { transform: translateY(-2px); background: #fff; border-color: #0d2754; }
.qf-quick button b { display: block; font-size: 13.5px; }
.qf-quick button span { display: block; font-size: 11.5px; color: #4b5563; font-weight: 600; }
.qf-quick button:nth-child(1) { border-left: 4px solid #16a34a; }
.qf-quick button:nth-child(2) { border-left: 4px solid #eab308; }
.qf-quick button:nth-child(3) { border-left: 4px solid #dc2626; }

.qf-top { list-style: none; margin: 0; padding: 0; }
.qf-top li a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #e3e8ef; color: #16181d; }
.qf-top li:last-child a { border-bottom: 0; }
.qf-top li a:hover { text-decoration: none; }
.qf-top li a:hover strong { color: #0d2754; }
.qf-top i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef2f8; color: #4b5563; font-style: normal; font-size: 12px; font-weight: 800; }
.qf-top-1 i { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; }
.qf-top-2 i { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.qf-top-3 i { background: linear-gradient(135deg, #fdba74, #c2410c); color: #fff; }
.qf-top strong { display: block; font-size: 13px; line-height: 1.25; }
.qf-top small { display: block; font-size: 11px; color: #8a94a3; font-weight: 700; margin-top: 2px; }
.qf-top small em { font-style: normal; text-transform: capitalize; padding: 0 6px; border-radius: 6px; margin-right: 3px; }
.qf-top small em.is-beginner { background: #dcfce7; color: #14532d; }
.qf-top small em.is-intermediate { background: #fef3c7; color: #92400e; }
.qf-top small em.is-advanced { background: #fee2e2; color: #991b1b; }
.qf-top-bar { display: block; height: 4px; border-radius: 2px; background: #eef2f8; margin-top: 5px; overflow: hidden; }
.qf-top-bar span { display: block; height: 100%; background: linear-gradient(90deg, #0d2754, #7c3aed); border-radius: 2px; }
.qf-top b { font-size: 15px; font-weight: 800; color: #b45309; font-variant-numeric: tabular-nums; }
.qf-top b small { display: inline; font-size: 9.5px; margin-left: 1px; }

.qf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qf-chips a { display: inline-flex; align-items: center; gap: 6px; background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: 9px; padding: 5px 10px; font-size: 12.5px; color: #16181d; font-weight: 700; line-height: 1.2; }
.qf-chips a b { font-size: 10.5px; font-weight: 800; background: #fff; border-radius: 8px; padding: 1px 6px; color: #4b5563; }
.qf-chips a:hover { background: #0d2754; border-color: #0d2754; color: #fff; text-decoration: none; }
.qf-chips a:hover b { background: #ffc107; color: #16181d; }

.qf-jobs { list-style: none; margin: 0; padding: 0; }
.qf-jobs li { padding: 8px 0; border-bottom: 1px dashed #e3e8ef; }
.qf-jobs li:last-child { border-bottom: 0; }
.qf-job { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; color: #16181d; }
.qf-job:hover { text-decoration: none; }
.qf-job:hover strong { color: #0d2754; }
.qf-job-date { display: grid; place-items: center; height: 42px; border-radius: 9px; background: #fde68a; color: #7c2d12; line-height: 1; }
.qf-job-date b { font-size: 16px; font-weight: 800; }
.qf-job-date small { font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.qf-job-date.is-hot { background: #c2262e; color: #fff; }
.qf-job-date.is-none { background: #eef2f8; }
.qf-job-body em { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #8a94a3; }
.qf-job-body strong { display: block; font-size: 13px; line-height: 1.25; }
.qf-job-body small { display: block; font-size: 11px; font-weight: 800; color: #b45309; margin-top: 2px; }
.qf-job-quiz { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 52px; padding: 5px 10px; border-radius: 8px; background: #f5f3ff; border: 1px solid #ddd6fe; color: #4c1d95; font-size: 12px; font-weight: 800; }
.qf-job-quiz b { font-size: 10.5px; background: #fff; border-radius: 7px; padding: 1px 6px; }
.qf-job-quiz:hover { text-decoration: none; background: #ede9fe; }

.qf-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.qf-grade { display: grid; place-items: center; padding: 8px 4px; border-radius: 10px; background: #f6f8fb; border: 1px solid #e3e8ef; text-align: center; }
.qf-grade b { font-size: 15px; font-weight: 800; }
.qf-grade small { font-size: 10.5px; color: #4b5563; font-weight: 700; }
.qf-grade--a-2, .qf-grade--a { background: #dcfce7; border-color: #bbf7d0; color: #14532d; }
.qf-grade--b { background: #ecfeff; border-color: #a5f3fc; color: #155e75; }
.qf-grade--c { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.qf-grade--d { background: #ffedd5; border-color: #fed7aa; color: #9a3412; }
.qf-grade--f { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

@media (prefers-reduced-motion: reduce) {
	.qf-best, .qf-mic.is-live { animation: none; }
	.qf-go, .qf-play, .qf-mini, .qf-quick button { transition: none; }
}
