/* ConsumersWeek credit quiz. Matches the site's Soft CTA palette. */
body.cwq-page .hero-section.is-width-constrained,
body.cwq-page .entry-content { max-width: var(--cw-measure, 760px); margin-left: auto; margin-right: auto; }
body.cwq-page .entry-content > .cwq { max-width: none; }
/* Mobile H1 inside the 22-24px Grade A band (page-scoped). */
@media (max-width: 689px) { body.cwq-page h1.page-title { font-size: 1.5rem; line-height: 1.25; } }

.cwq { --cwq-ink:#1a1a1a; --cwq-muted:#5a6270; --cwq-line:#d6d9de; --cwq-soft:#f7f8fa; --cwq-brand:#1e3a5f; --cwq-ui:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--cwq-ink); }
.cwq a { text-decoration: underline; text-underline-offset: .15em; }
.cwq a:focus-visible, .cwq button:focus-visible, .cwq-opt input:focus-visible + span { outline: 3px solid #2563eb; outline-offset: 2px; }

.cwq-lede { margin: 0 0 1rem; }
.cwq-facts { list-style: none; margin: 0 0 1.75rem !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.cwq-facts li { margin: 0 !important; padding: .3rem .7rem; border: 1px solid var(--cwq-line); border-radius: 999px; background: #fff; font-family: var(--cwq-ui); font-size: .85rem !important; line-height: 1.3 !important; color: var(--cwq-muted); }

.cwq-card { box-sizing: border-box; margin: 0 0 2.25rem; padding: 1.25rem 1.1rem 1.1rem; border: 1px solid var(--cwq-line); border-radius: 10px; background: var(--cwq-soft); }
.cwq-progress { height: 6px; margin: 0 0 1.1rem; border-radius: 99px; background: #e1e4e8; overflow: hidden; }
.cwq-progress__bar { display: block; height: 100%; border-radius: 99px; background: var(--cwq-brand); transition: width .25s ease; }
.cwq-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.cwq--js .cwq-step[hidden], .cwq [hidden] { display: none !important; }
.cwq-q { display: block; width: 100%; padding: 0; margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--cwq-ink); }
.cwq-q:focus { outline: none; }
.cwq-q__num { display: block; margin: 0 0 .4rem; font-family: var(--cwq-ui); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--cwq-muted); }
.cwq-sub { margin: .25rem 0 .5rem !important; font-family: var(--cwq-ui); font-size: .9rem !important; font-weight: 600; color: var(--cwq-muted); }
.cwq-util { margin-top: 1rem; }

.cwq-opts { display: grid; gap: .6rem; }
.cwq-opts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cwq-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.cwq-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cwq-opt span { display: flex; align-items: center; min-height: 48px; box-sizing: border-box; padding: .75rem 1rem .75rem 2.6rem; border: 1px solid var(--cwq-line); border-radius: 8px; background: #fff; font-family: var(--cwq-ui); font-size: 1rem; line-height: 1.35; color: var(--cwq-ink); position: relative; transition: border-color .15s, box-shadow .15s; }
.cwq-opt span::before { content: ""; position: absolute; left: .95rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -.525rem; border: 2px solid #9aa3ae; border-radius: 50%; background: #fff; box-sizing: border-box; }
.cwq-opts--row .cwq-opt span { justify-content: center; padding-left: 2.3rem; padding-right: .6rem; }
.cwq-opts--row .cwq-opt span::before { left: .7rem; }
.cwq-opt:hover span { border-color: #9aa3ae; }
.cwq-opt input:checked + span { border-color: var(--cwq-brand); box-shadow: 0 0 0 1px var(--cwq-brand); }
.cwq-opt input:checked + span::before { border-color: var(--cwq-brand); background: radial-gradient(circle, var(--cwq-brand) 0 45%, #fff 50%); }

.cwq-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }
.cwq-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.4rem; border: 1px solid var(--cwq-brand); border-radius: 6px; background: var(--cwq-brand); color: #fff; font-family: var(--cwq-ui); font-size: 1rem; font-weight: 600; line-height: 1.2; cursor: pointer; margin-left: auto; }
.cwq-btn[disabled] { opacity: .45; cursor: not-allowed; }
.cwq-btn--ghost { background: #fff; color: var(--cwq-brand); margin-left: 0; }
.cwq-note { font-family: var(--cwq-ui); font-size: .9rem !important; color: var(--cwq-muted); }

.cwq-result { margin: 0 0 2.25rem; }
.cwq-result:focus { outline: none; }
.cwq-kicker { margin: 0 0 .25rem !important; font-family: var(--cwq-ui); font-size: .75rem !important; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--cwq-muted); }
.cwq-result__h { margin: 0 0 1rem; }
.cwq-bucket h3 { margin: 1.75rem 0 .6rem; font-size: 1.15rem; }
.cwq-bucket ol, .cwq-bucket ul { margin: 0 0 0 1.25rem; padding: 0; }
.cwq-bucket li { margin: 0 0 .45rem; }
.cwq-links li { margin-bottom: .55rem; }

.cwq-explain { box-sizing: border-box; margin: 2rem 0 1.25rem; padding: 1.25rem 1.15rem 1rem; border: 1px solid var(--cwq-line); border-radius: 8px; background: var(--cwq-soft); }
.cwq-explain__label { display: block; margin: 0 0 .5rem; font-family: var(--cwq-ui); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cwq-muted); }
.cwq-explain h3 { margin: 0 0 .65rem; font-size: 1.15rem; line-height: 1.3; }
.cwq-explain ul { margin: 0 0 0 1.1rem; padding: 0; }
.cwq-explain li { margin: 0 0 .55rem; font-size: 1rem !important; line-height: 1.55 !important; }
.cwq-explain__actions { margin: 1rem 0 .75rem; }
.cwq .cwq-sc { display: inline-block; padding: .7rem 1.3rem; border-radius: 6px; background: var(--cwq-brand); color: #fff !important; font-family: var(--cwq-ui); font-size: 1rem; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; }
.cwq .cwq-sc:hover { background: #16304f; }
.cwq-explain__foot { margin: .75rem 0 0 !important; padding-top: .75rem; border-top: 1px solid #e1e4e8; font-family: var(--cwq-ui); font-size: .8rem !important; line-height: 1.45 !important; color: var(--cwq-muted); }
.cwq-retake { margin: 0 !important; }
.cwq-retake .cwq-btn { margin-left: 0; }

.cwq-about { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e1e4e8; }
.cwq-about h2 { margin: 0 0 .75rem; font-size: 1.3rem; }

@media (min-width: 690px) {
	.cwq-card { padding: 1.75rem 1.75rem 1.5rem; }
	.cwq-q { font-size: 1.45rem; }
	.cwq-explain { padding: 1.4rem 1.5rem 1.1rem; }
}
@media (max-width: 380px) {
	.cwq-opts--row { grid-template-columns: 1fr; }
}

/* Grade A: always-on underlines in the trust stack on this page. */
body.cwq-page .cw-author-box a,
body.cwq-page .cw-disclaimer a,
body.cwq-page .cw-sources a { text-decoration: underline; text-underline-offset: .15em; }

/* Collections result: smaller, clearly optional SmartCredit mention. */
.cwq-explain--lite { background: #fff; padding: 1rem 1.1rem .9rem; }
.cwq-explain--lite h3 { font-size: 1.05rem; }
.cwq-explain--lite p, .cwq-explain--lite li { font-size: .95rem !important; line-height: 1.55 !important; }
.cwq-explain__textlink { margin: .75rem 0 0 !important; padding-top: .75rem; border-top: 1px solid #e1e4e8; font-family: var(--cwq-ui); color: var(--cwq-muted); }
.cwq .cwq-sc-text { color: var(--cwq-brand); font-weight: 600; }

/* Lede: short version on phones, full version on wider screens. */
.cwq-lede__short { display: none; }
.cwq-facts li::before { content: "\2713"; margin-right: .3rem; color: var(--cwq-brand); font-weight: 700; }

/* Mobile above the fold: Question 1 and its first answers on screen sooner. */
@media (max-width: 689px) {
	body.cwq-page .ct-container-full[data-vertical-spacing*="top"] { padding-top: 28px; }
	body.cwq-page .hero-section[data-type="type-1"] { margin-bottom: .9rem; }
	body.cwq-page .cw-disclaimer--top { margin: .55rem 0 .7rem !important; padding: .3rem .6rem !important; font-size: .78rem !important; line-height: 1.35 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	body.cwq-page .entry-content > .cwq:first-child { margin-top: 0; }
	.cwq-lede__short { display: inline; }
	.cwq-lede__long { display: none; }
	body.cwq-page .cwq .cwq-lede { margin: 0 0 .5rem !important; font-size: 1rem !important; line-height: 1.5 !important; }
	.cwq-facts { gap: .1rem .85rem; margin-bottom: .8rem !important; }
	body.cwq-page .cwq .cwq-facts li { padding: 0; border: 0; border-radius: 0; background: none; white-space: nowrap; font-size: .8rem !important; line-height: 1.45 !important; }
	.cwq-card { padding: .9rem .9rem .9rem; }
	.cwq-progress { margin-bottom: .7rem; }
	.cwq-q { font-size: 1.2rem; margin-bottom: .65rem; }
	.cwq-q__num { margin-bottom: .25rem; }
	.cwq-opts { gap: .45rem; }
	.cwq-opt span { min-height: 46px; padding-top: .55rem; padding-bottom: .55rem; }
}
