[data-bw-inline-card] :is(h2,h3){color:inherit}
[data-bw-inline-card]{margin:2rem auto;padding:clamp(1rem,3vw,2rem);max-width:52rem;border:1px solid #70979d;border-radius:1rem;background:#f1f8f8;color:#17373d;line-height:1.55}
[data-bw-inline-card] .bwic-stem{white-space:normal}
/* Shared QBank stem layout: the question is the last sentence of the stem, in the stem's own size and weight. */
[data-bw-inline-card] .bwic-stem :is(.phq-stem-para,.phq-stem-closing){margin:.55rem 0}
[data-bw-inline-card] .bwic-stem .phq-stem-closing{margin-top:1rem}
[data-bw-inline-card] .bwic-stem .phq-stem-lead{font-weight:inherit;font-size:inherit;color:inherit}
[data-bw-inline-card] .bwic-stem .phq-stem-findings{margin:.5rem 0 .9rem;padding-inline-start:1.55rem}
[data-bw-inline-card] .bwic-stem .phq-stem-findings li{margin:.28rem 0;line-height:1.5}
[data-bw-inline-card] .phq-stem-lab-block{max-width:100%;overflow-x:auto;margin:.75rem 0 1rem}
[data-bw-inline-card] .phq-stem-lab-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.91em;line-height:1.4}
[data-bw-inline-card] .phq-stem-lab-table caption{text-align:left;font-weight:700;padding-bottom:.4rem}
[data-bw-inline-card] .phq-stem-lab-table th,[data-bw-inline-card] .phq-stem-lab-table td{padding:7px 9px;border-bottom:1px solid currentColor;text-align:left;overflow-wrap:anywhere;vertical-align:top}
[data-bw-inline-card] .phq-stem-lab-table tr:not(.phq-lab-group) > th:first-child{width:42%}
[data-bw-inline-card] .phq-stem-lab-table tr.phq-lab-group th{font-weight:700;background:rgba(128,128,128,.12)}
[data-bw-inline-card] .phq-stem-lab-table .phq-lab-indent-1{padding-inline-start:22px}
[data-bw-inline-card] .phq-stem-lab-table .phq-lab-indent-2{padding-inline-start:34px}
[data-bw-inline-card] .phq-stem-lab-table thead th{font-weight:700}
[data-bw-inline-card] .bwic-options{display:grid;gap:.6rem}
/* The letter keeps its period in one nowrap token, and wrapped choice text hangs beside it,
   so no host grid or overflow-wrap:anywhere rule can split "A" from its dot (Mo, 2026-11-15). */
[data-bw-inline-card] .bwic-options button{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.55rem;align-items:baseline}
[data-bw-inline-card] .bwic-options .bwic-letter{white-space:nowrap;font-weight:700;overflow-wrap:normal;word-break:keep-all;hyphens:none}
[data-bw-inline-card] .bwic-options .bwic-choice-text{min-width:0;overflow-wrap:break-word;hyphens:none}
[data-bw-inline-card] button{display:block;padding:.75rem 1rem;border:1px solid #577e84;border-radius:.6rem;background:white;color:#17373d;text-align:left;font:inherit;cursor:pointer}
[data-bw-inline-card] .bwic-options button{width:100%}
[data-bw-inline-card] button:focus-visible{outline:2px solid #075e67;outline-offset:2px}
[data-bw-inline-card] button[data-result="correct"]{border-color:#176a42;background:#e1f4e9}
[data-bw-inline-card] button[data-result="incorrect"]{border-color:#9b3a33;background:#fff0ed}
[data-bw-inline-card] .bwic-links{display:grid;gap:.35rem;list-style:none;margin:1rem 0 0;padding:0}
[data-bw-inline-card] .bwic-links li{margin:0;padding:0}
[data-bw-inline-card] .bwic-links a{color:#075e67;text-decoration:underline}
[data-bw-inline-card] [hidden]{display:none!important}
:is(body .bwcr,body main,body) [data-bw-inline-card] .bwic-options button:not([data-result]){background:#fff;color:#17373d;border-color:#577e84}
@media (prefers-color-scheme:dark){
  [data-bw-inline-card] :is(h2,h3,h4,strong,.bwic-stem){color:#f4f2fb}
  [data-bw-inline-card] .bwic-links{color:#c6cfe2}
  :root:has(meta[name="color-scheme"][content="light dark"]):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card]{
    background:#222532;color:#eef1f8;border-color:#8f7fae;color-scheme:dark
  }
  :root:has(meta[name="color-scheme"][content="light dark"]):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card] .bwic-options button{
    background:#303345;color:#eef1f8;border-color:#9a8db1
  }
  :root:has(meta[name="color-scheme"][content="light dark"]):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card] .bwic-options button[data-result="correct"]{
    background:#203f36;color:#e8fff4;border-color:#54d6a0
  }
  :root:has(meta[name="color-scheme"][content="light dark"]):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card] .bwic-options button[data-result="incorrect"]{
    background:#4b292b;color:#fff1f0;border-color:#ee918f
  }
  :root:has(meta[name="color-scheme"][content="light dark"]):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card] .bwic-links a{color:#d6bcff}
}
html[data-bw-embed="app"] [data-bw-inline-card]{background:var(--bw-embed-surface);color:var(--bw-embed-text);border-color:var(--bw-embed-rule)}
html[data-bw-embed="app"] [data-bw-inline-card] .bwic-options button{background:var(--bw-embed-bg);color:var(--bw-embed-text);border-color:var(--bw-embed-rule)}
html[data-bw-embed="app"] :is(body .bwcr,body main,body) [data-bw-inline-card] .bwic-options button:not([data-result]){background:var(--bw-embed-bg);color:var(--bw-embed-text);border-color:var(--bw-embed-rule)}
/* Dark card for pages without the opt-in meta (the page still darkens via its own prefers-color-scheme rules). */
@media (prefers-color-scheme: dark){
  :root:not(:has(meta[name="color-scheme"][content="light dark"])):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card]{
    background:#191f20;color:#f1f5f2;border-color:#485755;color-scheme:dark
  }
  :root:not(:has(meta[name="color-scheme"][content="light dark"])):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card] .bwic-options button{
    background:#121919;color:#f1f5f2;border-color:#576563
  }
  :root:not(:has(meta[name="color-scheme"][content="light dark"])):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card] .bwic-options button[data-result="correct"]{
    background:#213e2c;color:#d8f2df;border-color:#78a888
  }
  :root:not(:has(meta[name="color-scheme"][content="light dark"])):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card] .bwic-options button[data-result="incorrect"]{
    background:#42252d;color:#ffd5d0;border-color:#c87978
  }
  :root:not(:has(meta[name="color-scheme"][content="light dark"])):not([data-bw-app-mode="1"]):not([data-bw-embed="app"]) [data-bw-inline-card] .bwic-links a{color:#d6bcff}
}
/* The reading explanation mirrors the QBank; stepwise Reveal is optional. */
[data-bw-inline-card] .bwic-explanation{font-size:1rem;line-height:1.55;overflow-wrap:anywhere}
[data-bw-inline-card] .bwic-explanation p{margin:.65rem 0}
[data-bw-inline-card] .bwic-explanation h3{font-size:.95rem;margin:1rem 0 .4rem}
[data-bw-inline-card] .bwic-why{padding:.65rem 0;border-bottom:1px solid currentColor}
[data-bw-inline-card] .bwic-objective{margin-top:1rem;padding:.7rem .8rem;border:1px solid currentColor;border-inline-start-width:3px;border-radius:.3rem}
[data-bw-inline-card] .bwic-objective h3{margin:0 0 .4rem}
[data-bw-inline-card] .bwic-objective p{margin:0}
[data-bw-inline-card] .bwic-refs{font-size:.8rem}
[data-bw-inline-card] .bwic-reveal summary{cursor:pointer;min-height:44px;align-content:center}
[data-bw-inline-card] .bwic-explanation table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
[data-bw-inline-card] .bwic-explanation :is(th,td){padding:.35rem;border:1px solid currentColor}
[data-bw-inline-card] .bwic-explanation a{color:inherit;text-decoration:underline}

/* Embedded reading keeps the card's theme-aware body ink across host layouts. */
[data-bw-inline-card] :is(.bwic-stem,.bwic-lead,.bwic-explanation,.bwic-explanation p,.bwic-why,.bwic-rationale){color:inherit!important}

/* The authored homepage preview is not a canonical inline question. */
[data-bw-local-reveal]{padding:1rem;line-height:1.55;overflow-wrap:anywhere}
[data-bw-local-reveal] .bwic-options{display:grid;gap:.6rem;margin-bottom:.75rem}
[data-bw-local-reveal] button{min-height:44px;padding:.75rem 1rem;border:1px solid currentColor;border-radius:.6rem;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
[data-bw-local-reveal] .bwic-options button{width:100%}
[data-bw-local-reveal] button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
[data-bw-local-reveal] button[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:-3px}
[data-bw-local-reveal] button:disabled{cursor:default}
[data-bw-local-reveal] [data-bw-preview-submit]:disabled{opacity:.6}
[data-bw-local-reveal] [data-bw-preview-reset]{margin-top:1rem}
[data-bw-local-reveal] [hidden]{display:none!important}
