.mwbt-wrap{--mwbt-navy:#092640;--mwbt-border:#dbe2e8;display:grid;grid-template-columns:repeat(var(--mwbt-cols),minmax(0,1fr));gap:20px}.mwbt-card{border:1px solid var(--mwbt-border);border-radius:10px;padding:22px;background:#fff;min-width:0}.mwbt-card h3{margin:8px 0 14px;color:var(--mwbt-navy);font-size:1.25rem}.mwbt-card-top{display:flex;justify-content:flex-end}.mwbt-difficulty{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#516474}.mwbt-question{margin-bottom:16px}.mwbt-wrap button{cursor:pointer}.mwbt-reveal,.mwbt-check,.mwbt-hint-toggle{border:1px solid var(--mwbt-navy);border-radius:6px;padding:9px 14px;background:var(--mwbt-navy);color:#fff;font-size:14px;margin:4px 6px 4px 0}.mwbt-hint-toggle{background:#fff;color:var(--mwbt-navy)}.mwbt-choices{display:grid;gap:8px;margin:12px 0}.mwbt-choice{padding:10px;text-align:left;border:1px solid var(--mwbt-border);border-radius:6px;background:#f7f9fb;color:var(--mwbt-navy)}.mwbt-choice:hover{border-color:var(--mwbt-navy)}.mwbt-typed input{max-width:100%;padding:9px;border:1px solid var(--mwbt-border);border-radius:6px}.mwbt-hint,.mwbt-answer{padding:12px 14px;margin:12px 0;background:#f2f6fa;border-radius:6px}.mwbt-feedback{margin:8px 0}.mwbt-correct{color:#176b39;font-weight:600}.mwbt-explanation{margin-top:10px}.mwbt-layout-list,.mwbt-layout-single{grid-template-columns:1fr}.mwbt-layout-cards .mwbt-card{box-shadow:0 5px 20px rgba(9,38,64,.07)}.mwbt-pagination{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin:24px 0}.mwbt-pagination a,.mwbt-pagination .current{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;padding:0 10px;border:1px solid var(--mwbt-border);border-radius:7px;text-decoration:none;color:var(--mwbt-navy);background:#fff}.mwbt-pagination .current,.mwbt-pagination a:hover{background:var(--mwbt-navy);color:#fff;border-color:var(--mwbt-navy)}@media(max-width:800px){.mwbt-wrap{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.mwbt-wrap{grid-template-columns:1fr}.mwbt-card{padding:18px}}

.mwbt-answer-image{margin:14px 0}.mwbt-answer-image img{display:block;max-width:100%;height:auto;border-radius:8px}

/* Single teaser pages use the theme page heading rather than a duplicate card heading. */
.mwbt-single-page .mwbt-card > h3 { display: none; }

/* Individual teaser pages: remove the outer card treatment. */
.mwbt-single-page .mwbt-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

/* Predictable vertical rhythm for individual teaser pages. */
.mwbt-single-page .mwbt-card-top{margin-bottom:8px}
.mwbt-single-page .mwbt-question{margin:0 0 20px}
.mwbt-single-page .mwbt-question > :first-child{margin-top:0}
.mwbt-single-page .mwbt-question > :last-child{margin-bottom:0}
.mwbt-challenge-image-wrap{margin:0 0 24px;text-align:center}
.mwbt-challenge-image-wrap img{display:block;width:auto;max-width:100%;height:auto;margin:0 auto}
.mwbt-challenge-question{margin:0 0 16px;font-weight:600}
.mwbt-challenge-question p{margin:0 0 12px}
.mwbt-single-page .mwbt-choices{margin:0 0 24px}
.mwbt-single-page .mwbt-hint-toggle,.mwbt-single-page .mwbt-reveal{margin-top:8px;margin-bottom:8px}
.mwbt-single-page .mwbt-answer{margin:24px 0 0;padding:18px 20px}
.mwbt-single-page .mwbt-answer-image{margin:20px 0 24px}
.mwbt-single-page .mwbt-explanation{margin-top:20px}
.mwbt-explanation p{margin:0 0 12px}
.mwbt-explanation p:last-child{margin-bottom:0}

/* Limit challenge and answer images to 400px while preserving aspect ratio. */
.mwbt-wrap .mwbt-challenge-image-wrap img,
.mwbt-wrap .mwbt-answer-image img {
  width: auto;
  max-width: min(400px, 100%);
  height: auto;
}

/* v1.0.11 — refined single-teaser presentation (listing cards unchanged). */
.mwbt-single-page .mwbt-card-top{justify-content:space-between;align-items:center;gap:12px;margin:0 0 20px}
.mwbt-category{display:inline-flex;align-items:center;padding:5px 11px;border-radius:20px;background:#eaf2f5;color:#092640;font-size:11px;font-weight:700;letter-spacing:.075em;text-transform:uppercase}
.mwbt-single-page .mwbt-difficulty{font-size:12px;color:#657887}
.mwbt-single-page .mwbt-question{font-size:16px;line-height:1.7;margin-bottom:24px}
.mwbt-single-page .mwbt-challenge-image-wrap{margin:12px 0 28px}
.mwbt-single-page .mwbt-challenge-image-wrap img{border-radius:8px}
.mwbt-single-page .mwbt-challenge-question{font-size:21px;font-weight:700;line-height:1.4;color:#092640;margin-bottom:18px}
.mwbt-single-page .mwbt-choices{gap:10px;margin-bottom:22px}
.mwbt-single-page .mwbt-choice{width:100%;display:flex;align-items:center;gap:12px;padding:14px 17px;border:1px solid #dce5ec;border-radius:9px;background:#fff;color:#092640;font-size:15px;font-weight:500;line-height:1.5;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;text-align:left}
.mwbt-single-page .mwbt-choice::before{content:"";flex:0 0 16px;width:16px;height:16px;border:2px solid #a8b7c2;border-radius:50%;box-sizing:border-box}
.mwbt-single-page .mwbt-choice:hover,.mwbt-single-page .mwbt-choice:focus-visible{border-color:#092640;background:#f5f9fc}
.mwbt-single-page .mwbt-choice.is-selected{border-color:#092640;background:#eef4f8;box-shadow:0 0 0 1px #092640 inset}
.mwbt-single-page .mwbt-choice.is-selected::before{border-color:#092640;background:#092640;box-shadow:inset 0 0 0 3px #eef4f8}
.mwbt-single-page .mwbt-reveal,.mwbt-single-page .mwbt-hint-toggle{min-height:43px;padding:11px 18px;border-radius:8px;font-weight:600;font-size:14px;line-height:1.4;margin:6px 8px 6px 0;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.mwbt-single-page .mwbt-reveal{background:#092640;color:#fff;border-color:#092640}
.mwbt-single-page .mwbt-reveal:hover{background:#164260;border-color:#164260;color:#fff}
.mwbt-single-page .mwbt-hint-toggle{background:#fff;color:#092640;border-color:#b8cbd7}
.mwbt-single-page .mwbt-hint-toggle:hover{background:#eef4f8}
.mwbt-single-page .mwbt-hint{margin:14px 0;padding:14px 18px;border-left:3px solid #64a59a;background:#f3f8f7;border-radius:0 7px 7px 0;line-height:1.6}
.mwbt-single-page .mwbt-feedback:not(:empty){margin:12px 0;font-size:14px}
.mwbt-single-page .mwbt-answer{margin:28px 0 0;padding:24px 0 0;border-top:1px solid #e0e7ec;border-radius:0;background:transparent;animation:mwbt-enter .25s ease-out}
.mwbt-single-page .mwbt-answer-heading{display:flex!important;align-items:center;gap:10px;color:#092640;font-size:23px;line-height:1.35;margin:0 0 16px}
.mwbt-single-page .mwbt-answer-heading::before{content:"✓";display:inline-grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#e3f2e9;color:#177344;font-size:17px}
.mwbt-single-page .mwbt-answer-text{line-height:1.7;margin-bottom:18px}
.mwbt-single-page .mwbt-answer-image{margin:20px 0 24px}
.mwbt-single-page .mwbt-explanation{padding:20px 22px;background:#f3f7fa;border-radius:10px;line-height:1.7;margin-top:20px}
.mwbt-single-page .mwbt-explanation h4{color:#092640;font-size:17px;margin:0 0 12px}
.mwbt-single-page .mwbt-explanation p{margin:0 0 12px}
.mwbt-single-page .mwbt-explanation p:last-child{margin-bottom:0}
@keyframes mwbt-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:560px){.mwbt-single-page .mwbt-challenge-question{font-size:19px}.mwbt-single-page .mwbt-explanation{padding:16px}.mwbt-single-page .mwbt-answer-heading{font-size:21px}}
@media(prefers-reduced-motion:reduce){.mwbt-single-page .mwbt-answer{animation:none}.mwbt-single-page .mwbt-choice,.mwbt-single-page .mwbt-reveal,.mwbt-single-page .mwbt-hint-toggle{transition:none}}

/* Optional citation at the foot of each teaser. */
.mwbt-citation{margin-top:25px;padding-top:0;border-top:0;color:#687789;font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}
.mwbt-citation-label{font-weight:600;color:#526274}
.mwbt-citation a{color:#245c8a;text-decoration:underline;text-underline-offset:2px}
