/* Job Match Quiz styles (colors come from the shared :root tokens in _inc/site.php) */
.mq-hero { background: var(--navy, #12172a); color: #fff; padding: 56px 24px 70px; text-align: center; }
.mq-tag { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #8fa6f5; margin-bottom: 12px; }
.mq-hero h1 { font-family: var(--font-head, 'Oswald', sans-serif); font-weight: 700; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; margin: 0 auto 14px; max-width: 760px; }
.mq-hero p { font-size: 17px; line-height: 1.6; color: #c7cbdb; max-width: 560px; margin: 0 auto; }
.mq-wrap { max-width: 720px; margin: -40px auto 0; padding: 0 16px 56px; position: relative; }
.mq-card { background: #fff; border: 1px solid var(--border, #e3e6ee); border-radius: 18px; padding: 28px 28px 24px; box-shadow: 0 16px 48px rgba(18,23,42,.12); }
@media (max-width: 560px) { .mq-card { padding: 22px 16px 18px; } }
.q-progress { height: 6px; background: var(--bg-alt, #f4f6fb); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.q-bar { height: 100%; background: var(--accent, #3457e6); border-radius: 99px; transition: width .3s ease; }
.q-step { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-dim, #9aa0b4); margin-bottom: 8px; }
.q-title { font-family: var(--font-head, 'Oswald', sans-serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 8px; }
.q-hint { font-size: 15px; color: var(--text-muted, #5b6272); line-height: 1.55; margin: 0 0 18px; }
.q-sum { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-dim, #9aa0b4); }
.q-options { display: grid; gap: 10px; margin: 16px 0 6px; }
.q-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border: 1.5px solid var(--border, #e3e6ee); border-radius: 12px; background: #fff; font-size: 16px; font-weight: 600; color: var(--text, #12172a); transition: border-color .15s, background .15s, transform .05s; }
.q-opt:hover { border-color: var(--accent, #3457e6); }
.q-opt:active { transform: scale(.995); }
.q-opt:focus-visible, .q-next:focus-visible, .q-back:focus-visible, .m-apply:focus-visible { outline: 3px solid rgba(52,87,230,.4); outline-offset: 2px; }
.q-opt.on { border-color: var(--accent, #3457e6); background: rgba(52,87,230,.07); }
.q-mark { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c5cadb; position: relative; }
.q-opt[role="checkbox"] .q-mark { border-radius: 5px; }
.q-opt.on .q-mark { border-color: var(--accent, #3457e6); background: var(--accent, #3457e6); }
.q-opt.on .q-mark::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.q-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; min-height: 44px; }
.q-back { color: var(--text-muted, #5b6272); font-weight: 600; font-size: 14px; padding: 10px 4px; }
.q-back:hover { color: var(--accent, #3457e6); }
.q-next { background: var(--accent, #3457e6); color: #fff; font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 9px; }
.q-next:hover:not(:disabled) { background: var(--accent-dark, #2942b8); }
.q-next:disabled { opacity: .4; cursor: not-allowed; }
.q-empty { padding: 28px 12px; text-align: center; color: var(--text-muted, #5b6272); }

.q-near { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 17px; color: var(--text-muted, #5b6272); margin: 26px 0 -4px; }
.m-card { border: 1px solid var(--border, #e3e6ee); border-radius: 14px; padding: 18px 18px 16px; margin-top: 14px; background: #fff; }
.m-card.top { border-color: var(--accent, #3457e6); box-shadow: 0 8px 28px rgba(52,87,230,.14); }
.m-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.m-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.m-best { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; background: var(--accent, #3457e6); color: #fff; padding: 4px 9px; border-radius: 99px; }
.m-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: rgba(52,87,230,.10); color: var(--accent, #3457e6); padding: 4px 9px; border-radius: 99px; }
.m-title { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 20px; line-height: 1.25; margin: 0 0 4px; }
.m-suffix { font-weight: 500; color: var(--text-muted, #5b6272); }
.m-pay { font-weight: 700; color: var(--accent, #3457e6); font-size: 15px; }
.m-score { flex: 0 0 auto; text-align: center; background: var(--bg-alt, #f4f6fb); border-radius: 12px; padding: 8px 14px; }
.m-score b { display: block; font-family: var(--font-head, 'Oswald', sans-serif); font-size: 26px; line-height: 1.1; }
.m-score span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--text-dim, #9aa0b4); font-weight: 700; }
.m-reasons { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.m-reasons li { font-size: 14px; line-height: 1.4; padding-left: 24px; position: relative; color: var(--text-muted, #5b6272); }
.m-reasons li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.m-reasons li.ok::before { content: '✓'; color: var(--good, #1f7a3d); }
.m-reasons li.no::before { content: '✕'; color: var(--bad, #c0392b); }
.m-reasons li.maybe::before { content: '?'; color: var(--warn, #b7791f); }
.m-actions { display: flex; gap: 10px; margin-top: 16px; }
.m-apply { flex: 1; text-align: center; background: var(--accent, #3457e6); color: #fff; font-weight: 700; padding: 13px 16px; border-radius: 9px; }
.m-apply:hover { background: var(--accent-dark, #2942b8); }
.m-more { padding: 13px 16px; border: 1px solid var(--border, #e3e6ee); border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-muted, #5b6272); }
.m-more:hover { border-color: var(--accent, #3457e6); color: var(--accent, #3457e6); }
@media (max-width: 480px) { .m-head { flex-direction: column-reverse; } .m-actions { flex-direction: column; } .m-more { text-align: center; } }
.q-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border, #e3e6ee); font-size: 15px; color: var(--text-muted, #5b6272); line-height: 1.6; }
.q-foot a { color: var(--accent, #3457e6); font-weight: 700; text-decoration: underline; }
.q-foot .q-back { margin-top: 8px; }

.mq-info { max-width: 720px; margin: 0 auto; padding: 8px 16px 64px; }
.mq-info h2 { font-family: var(--font-head, 'Oswald', sans-serif); font-size: 26px; margin: 28px 0 10px; }
.mq-info p { color: var(--text-muted, #5b6272); line-height: 1.7; margin-bottom: 12px; }
.mq-info details { border: 1px solid var(--border, #e3e6ee); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.mq-info summary { font-weight: 600; cursor: pointer; }
.mq-info details p { margin: 10px 0 0; }
.mq-noscript { padding: 18px; text-align: center; }
