/* Free exam sampler first-screen layout, preserving existing site theme tokens. */
.bwf-exam-intro{position:relative;max-width:960px;margin:0 0 30px;padding:clamp(20px,4vw,38px);border:1px solid var(--line,var(--ui-line,#d8d9df));border-radius:16px;background:var(--card,var(--ui-surface,#fff));color:var(--ink,var(--ui-ink,#191923))}
.bwf-exam-intro h1{max-width:820px;margin:0 0 16px;font-size:clamp(2.1rem,5.5vw,3.7rem);line-height:1.1;letter-spacing:-.035em;text-wrap:balance}
.bwf-exam-intro .bwf-exam-eyebrow{margin:0 0 12px;color:var(--muted,var(--ui-muted,#555567));font:700 .78rem/1.3 'Space Grotesk',system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.bwf-exam-intro .bwf-exam-lede{max-width:760px;margin:0 0 20px;color:var(--ink,var(--ui-ink,#191923));font-size:clamp(1.04rem,1.75vw,1.2rem);line-height:1.52}
.bwf-exam-intro .bwf-exam-primary-wrap{margin:0 0 12px}
.bwf-exam-intro a[data-remaster-primary]{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:0;max-width:100%;min-height:54px;padding:12px 22px;text-align:center;text-decoration:none;overflow-wrap:anywhere}
.bwf-nowrap{white-space:nowrap}
.bwf-exam-note{max-width:760px;margin:10px 0 14px;color:var(--muted,var(--ui-muted,#555567));font-size:.91rem;line-height:1.5}
.bwf-exam-account{display:inline-flex;min-height:44px;align-items:center;color:var(--accent,var(--ui-accent,#594285));font-weight:700;text-underline-offset:4px}
.bwf-exam-resources{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;margin:12px 0 22px;color:var(--muted,var(--ui-muted,#555567));font-size:.9rem;line-height:1.5}
.bwf-exam-resources a{display:inline-flex;min-height:44px;align-items:center;color:var(--accent,var(--ui-accent,#594285));font-weight:700;text-underline-offset:4px}
.bwf-exam-page :is(.bwf-exam-account,.bwf-exam-resources a,a[data-remaster-primary]):focus-visible{outline:3px solid var(--accent,var(--ui-accent,#594285));outline-offset:3px}
.bwf-exam-modern .free-hero{max-width:940px;padding-top:22px;padding-bottom:38px}
.bwf-exam-modern .free-hero h1{max-width:900px;margin:0 0 16px;font-size:clamp(2.3rem,6vw,4.9rem);line-height:1.05}
.bwf-exam-modern .free-hero .free-lede{max-width:730px;margin:0 0 20px;font-size:clamp(1.05rem,1.8vw,1.2rem);line-height:1.55}
.bwf-exam-modern .free-hero .hero-actions{margin-bottom:12px}
.bwf-exam-modern .free-hero .free-exam-selector{margin-top:18px;margin-bottom:20px}
.bwf-exam-modern .free-hero .primary-cta{min-height:54px}
.bwf-exam-modern .free-hero .bwf-exam-note{color:var(--ui-muted,var(--page-muted,#aab5c5))}
.bwf-exam-modern .free-hero .bwf-exam-account,.bwf-exam-modern .free-hero .bwf-exam-resources a{color:var(--ui-accent,var(--page-blue-strong,#b8c8ff))}
.bwf-exam-page .free-sampler-coverage{max-width:760px}
@media(max-width:760px){
 body[data-bw-page='qbank-free-step-1'] .free-main{padding-top:28px}
 .bwf-exam-modern .free-hero{padding-top:6px;padding-bottom:30px}
 .bwf-exam-modern .free-hero h1{font-size:clamp(2.15rem,10vw,3.4rem)}
 .bwf-exam-modern .free-hero .hero-actions{gap:10px}
 .bwf-exam-modern .free-hero a[data-remaster-primary]{width:100%}
 .bwf-exam-intro{padding:20px 16px}
 .bwf-exam-intro a[data-remaster-primary]{width:100%}
 .bwf-exam-intro h1{font-size:clamp(2.08rem,9vw,2.85rem)}
}
html[data-bw-theme='night'] .bwf-exam-intro,html[data-bw-theme='lights-out'] .bwf-exam-intro{background:var(--ui-surface,#192133);border-color:var(--ui-line,#3b4354);color:var(--ui-ink,#f6f6fb)}
html[data-bw-theme='night'] .bwf-exam-intro :is(h1,.bwf-exam-lede),html[data-bw-theme='lights-out'] .bwf-exam-intro :is(h1,.bwf-exam-lede){color:var(--ui-ink,#f6f6fb)}
html[data-bw-theme='night'] .bwf-exam-intro :is(.bwf-exam-eyebrow,.bwf-exam-note),html[data-bw-theme='lights-out'] .bwf-exam-intro :is(.bwf-exam-eyebrow,.bwf-exam-note){color:var(--ui-muted,#b7c2d6)}
html[data-bw-theme='night'] .bwf-exam-intro :is(.bwf-exam-account,.bwf-exam-resources a),html[data-bw-theme='lights-out'] .bwf-exam-intro :is(.bwf-exam-account,.bwf-exam-resources a){color:var(--ui-accent,#c2affb)}
@media(prefers-reduced-motion:reduce){.bwf-exam-page a{transition:none}}

/* Contrast 1123: step-1 daily question submit in Night (explicit fill and ink; the inline fill resolved to a dark tone). */
html[data-bw-theme="night"] body form[data-source="free-step1-qbank"] button[type="submit"]{background:#c4b5fd!important;color:#0a1020!important}
/* Contrast 1123: step-1 account link on the dark Paper hero. */
html[data-bw-theme="paper"] body[data-bw-page="qbank-free-step-1"] .free-hero .bwf-exam-account{color:#d6c7fe}
/* Contrast 1123: step-1 email placeholder in Paper (light field). */
html[data-bw-theme="paper"] body form[data-source="free-step1-qbank"] input::placeholder{color:#575768;opacity:1}
.bwf-inline-q{--iq-bg:#fffefa;--iq-ink:#191923;--iq-muted:#454150;--iq-line:#8e7fa3;--iq-accent:#61358e;--iq-on-accent:#fffefa;--iq-good:#1f6b3a;--iq-bad:#8a2b2b;max-width:760px;margin:0 0 30px;padding:clamp(18px,3vw,28px);border:1px solid var(--iq-line);border-radius:14px;background:var(--iq-bg);color:var(--iq-ink);color-scheme:light}
:root[data-bw-scheme='dark'] .bwf-inline-q,body[data-bw-scheme='dark'] .bwf-inline-q{--iq-bg:#1b1d29;--iq-ink:#f5f3ed;--iq-muted:#b8b3c5;--iq-line:#8f80a6;--iq-accent:#d0b5f3;--iq-on-accent:#1b1d29;--iq-good:#7fd69b;--iq-bad:#ffb4b4;color-scheme:dark}
@media (prefers-color-scheme:dark){:root:not([data-bw-scheme='light']) .bwf-inline-q{--iq-bg:#1b1d29;--iq-ink:#f5f3ed;--iq-muted:#b8b3c5;--iq-line:#8f80a6;--iq-accent:#d0b5f3;--iq-on-accent:#1b1d29;--iq-good:#7fd69b;--iq-bad:#ffb4b4;color-scheme:dark}}
.bwf-inline-q [hidden]{display:none!important}
.bwf-inline-q h2{margin:0 0 12px;color:var(--iq-ink);font-size:1.25rem;line-height:1.25}
.bwf-iq-stem{margin:0 0 14px;line-height:1.55}
.bwf-iq-choices{margin:0;padding:0;border:0;min-width:0}
.bwf-iq-choices legend{padding:0;margin:0 0 10px;font-weight:700;line-height:1.45}
.bwf-iq-choice{margin:0 0 8px}
.bwf-iq-choice label{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 10px;min-height:48px;padding:10px 12px;border:1px solid var(--iq-line);border-radius:8px;cursor:pointer;line-height:1.45}
.bwf-iq-choice label:has(input:checked){border-width:2px;border-color:var(--iq-accent)}
.bwf-iq-choice input{appearance:none;-webkit-appearance:none;flex:0 0 20px;width:20px;height:20px;margin:2px 0 0;border:2px solid var(--iq-ink);border-radius:50%;background:var(--iq-bg);display:grid;place-content:center;cursor:pointer}
.bwf-iq-choice input::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--iq-accent);transform:scale(0)}
.bwf-iq-choice input:checked::before{transform:scale(1)}
.bwf-iq-choice input:focus-visible{outline:3px solid var(--iq-accent);outline-offset:3px}
.bwf-iq-letter{flex:0 0 auto;font-weight:700}
.bwf-iq-text{flex:1 1 0;min-width:0;color:var(--iq-ink)}
.bwf-iq-mark:empty{display:none}
.bwf-iq-mark{flex:0 0 100%;padding-left:30px;font-weight:700;font-size:.92rem}
.bwf-iq-mark.is-correct{color:var(--iq-good)}
.bwf-iq-mark.is-wrong{color:var(--iq-bad)}
.bwf-iq-verdict{margin:14px 0 10px;font-weight:700;line-height:1.45}
.bwf-iq-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border-radius:8px;background:var(--iq-accent);color:var(--iq-on-accent);font-weight:700;text-decoration:none;text-align:center}
.bwf-iq-primary:focus-visible{outline:3px solid var(--iq-accent);outline-offset:3px}
.bwf-iq-next{margin:12px 0}
.bwf-iq-explain{margin:14px 0;line-height:1.55;color:var(--iq-ink)}
.bwf-iq-why{margin:14px 0 0}
.bwf-iq-why summary{box-sizing:border-box;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;font-weight:700;cursor:pointer;color:var(--iq-ink);list-style:none}
.bwf-iq-why summary::-webkit-details-marker{display:none}
.bwf-iq-why summary::after{content:"";flex:0 0 auto;width:9px;height:9px;margin-right:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .15s ease}
.bwf-iq-why[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
.bwf-iq-why summary:focus-visible{outline:3px solid var(--iq-accent);outline-offset:3px}
.bwf-iq-why ul{margin:8px 0 0;padding-left:20px}
.bwf-iq-why li{margin:0 0 6px;line-height:1.5}
.bwf-iq-status{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Dark site themes: keep text readable on dark backgrounds (1124). */
html:is([data-bw-theme="night"],[data-bw-theme="lights-out"],[data-bw-theme="exam"]) .bwf-exam-page a:not(.cta){color:#9db4ff}
html:is([data-bw-theme="night"],[data-bw-theme="lights-out"],[data-bw-theme="exam"]) .bwf-exam-intro{background:#192133}
html:is([data-bw-theme="night"],[data-bw-theme="lights-out"],[data-bw-theme="exam"]) body[data-bw-page="qbank-free-step-1"] .bwf-inline-q{--iq-bg:#1b1d29;--iq-ink:#f5f3ed;--iq-muted:#b8b3c5;--iq-line:#8f80a6;--iq-accent:#d0b5f3;--iq-on-accent:#1b1d29;--iq-good:#7fd69b;--iq-bad:#ffb4b4;color-scheme:dark}
