/* Explanation reading hierarchy: metadata → sections → prose → references. */
html[data-theme] .app-body .feedback-analysis-disclosure>summary .feedback-disclosure-label strong{font-size:1.0625rem;font-weight:700;line-height:1.6}
html[data-theme] .app-body .structured-explanation{display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-width:0;font-size:1rem;line-height:1.85;color:var(--ink)}
html[data-theme] .app-body .structured-explanation .exam-badge{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 16px;padding:0;border:0;background:none;box-shadow:none}
html[data-theme] .app-body .structured-explanation .exam-badge span{display:inline-block;min-width:0;max-width:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--muted);font-size:.75rem;font-weight:400;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
html[data-theme] .app-body .structured-explanation .exam-badge .exam-badge-year{color:var(--ink);font-weight:600}
html[data-theme] .app-body .structured-explanation .explanation-section{margin:0;padding:16px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
html[data-theme] .app-body .structured-explanation .explanation-section:last-child{padding-bottom:0;border-bottom:0}
html[data-theme] .app-body .structured-explanation .explanation-section:first-child,html[data-theme] .app-body .structured-explanation :is(.exam-badge,.evidence-grade)+.explanation-section{padding-top:0}
html[data-theme] .app-body .structured-explanation .explanation-section-header{margin:0 0 8px;padding:0;gap:8px;align-items:center}
html[data-theme] .app-body .structured-explanation .explanation-section-header::before{width:3px;height:14px;margin:0;background:var(--accent)}
html[data-theme] .app-body .structured-explanation .explanation-section-header h4{margin:0;font-size:1rem;font-weight:650;line-height:1.6;letter-spacing:0;color:var(--ink);overflow-wrap:anywhere}
html[data-theme] .app-body .structured-explanation .explanation-copy{padding:0;margin:0;min-width:0;max-width:72ch;background:none;border:0;font-size:inherit}
html[data-theme] .app-body .structured-explanation .explanation-copy p{margin:0 0 .75em;font-size:inherit;line-height:1.85;text-align:start;word-break:normal;overflow-wrap:anywhere}
html[data-theme] .app-body .structured-explanation .explanation-copy p:last-child{margin-bottom:0}
html[data-theme] .app-body .structured-explanation .explanation-bullet{grid-template-columns:16px minmax(0,1fr);gap:8px;margin:.5em 0;align-items:start}
html[data-theme] .app-body .structured-explanation .explanation-bullet p{margin:0}
html[data-theme] .app-body .structured-explanation .explanation-bullet i{margin-top:.8em;justify-self:center}
html[data-theme] .app-body .structured-explanation .explanation-num i{margin:0;width:auto;height:auto;font-size:.875em;line-height:2.1;background:none}
html[data-theme] .app-body .structured-explanation .explanation-callout{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);font-size:inherit}
html[data-theme] .app-body .structured-explanation .evidence-grade{grid-template-columns:minmax(0,1fr);gap:4px;margin:0 0 16px;padding:10px 12px;font-size:.8125rem;line-height:1.7;border-radius:8px}
html[data-theme] .app-body .structured-explanation .evidence-grade strong{font-size:inherit;white-space:normal}
html[data-theme] .app-body .structured-explanation .textbook-source-section{margin:20px 0 0;padding:0}
html[data-theme] .app-body .structured-explanation .textbook-source-heading{align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:12px;padding:0}
html[data-theme] .app-body .structured-explanation .textbook-source-heading h4{margin:0;font-size:1rem;line-height:1.6}
html[data-theme] .app-body .structured-explanation .textbook-source-heading>div>span{display:none}
html[data-theme] .app-body .structured-explanation .textbook-source-card>header{grid-template-columns:32px minmax(0,1fr);padding:12px}
html[data-theme] .app-body .structured-explanation .source-book-icon{width:32px;height:32px}
html[data-theme] .app-body .structured-explanation .textbook-source-card>header strong{white-space:normal;overflow-wrap:anywhere;font-size:.875rem;line-height:1.6}
html[data-theme] .app-body .structured-explanation .source-evidence-row{grid-template-columns:minmax(0,1fr)}
html[data-theme] .app-body .structured-explanation .citation-folio{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;padding:8px 12px;background:var(--surface-2);color:var(--muted);font-size:.8125rem;line-height:1.7}
html[data-theme] .app-body .structured-explanation .citation-folio :is(strong,span,small){font-size:inherit;line-height:inherit}
html[data-theme] .app-body .structured-explanation .citation-detail{padding:12px;font-size:.875rem;line-height:1.8;min-width:0;overflow-wrap:anywhere}
html[data-theme] .app-body .structured-explanation>.textbook-citation{margin-top:16px}
html[data-theme] .app-body .structured-explanation .citation-detail :is(p,summary){font-size:inherit;line-height:1.8}
html[data-theme] .app-body .structured-explanation .evidence-context summary{min-height:44px;padding:10px 0;box-sizing:border-box;white-space:normal}
html[data-theme] .app-body .structured-explanation .explanation-table :is(th,td){font-size:.875rem;line-height:1.75;overflow-wrap:anywhere;vertical-align:top}
@media(max-width:760px){
 html[data-theme] .app-body .structured-explanation .explanation-table td{grid-template-columns:minmax(0,1fr);gap:4px;padding:10px 12px}
 html[data-theme] .app-body .structured-explanation .explanation-table td::before{font-size:.75rem;line-height:1.6;color:var(--muted)}
 html[data-theme] .app-body .structured-explanation .explanation-table td:not([data-label])::before{display:none}
}
