/* Batch 02: keep profile and topic surfaces readable in dark mode. */
html[data-theme=dark] .president-profile{--surface:#102037;--surface-soft:#152a45}
html[data-theme=dark] .president-profile .activity-figure{background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .president-profile .activity-count{color:var(--ink)}
html[data-theme=dark] .president-profile .activity-track{background:#526783}
html[data-theme=dark] .president-profile .profile-actions a{background:#15344b;color:#f5f8ff;border-color:#7187a3}
html[data-theme=dark] .historic-topic-links a{background:#102037;color:#8cc8ff;border-color:#526783}
html[data-theme=dark] .explorer .searchbar label{color:var(--ink)}

/* Remaining Batch 02: shared surfaces, guide status, contents and tables. */
html[data-theme=dark]{--surface:#102037;--surface-soft:#152a45}
html[data-theme=dark] :is(.read-next,.explainer-toc,.batch02-mobile-toc,.batch02-desktop-toc){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .read-next h2,html[data-theme=dark] .latest-home-head h2{color:#f5f8ff}
html[data-theme=dark] .read-next li span{color:#c2cee0;opacity:1}
html[data-theme=dark] :is(.read-next,.explainer-toc,.batch02-mobile-toc,.batch02-desktop-toc) a{color:#8cc8ff}
.batch02-guide .guide-status-line{max-width:80ch;border:1px solid var(--line);border-left:4px solid #297184;background:var(--surface,#fff);padding:.8rem 1rem;line-height:1.5}
.batch02-mobile-toc{display:none;border:1px solid var(--line);border-radius:.5rem;margin:.75rem 0 1.25rem;background:var(--surface,#fff);color:var(--ink);max-width:80ch}
.batch02-mobile-toc>summary,.batch02-embed>summary{cursor:pointer;min-height:44px;padding:.65rem .85rem;font-weight:750}
.batch02-mobile-toc>nav{display:grid;gap:.35rem;padding:.25rem .85rem .85rem}
.batch02-mobile-toc a{display:block;min-height:44px;padding:.5rem .35rem;overflow-wrap:anywhere}
.batch02-desktop-toc{border:1px solid var(--line);border-radius:.5rem;background:var(--surface,#fff);padding:1rem;display:flex;flex-wrap:wrap;gap:.5rem .85rem;margin:1rem 0}
.batch02-desktop-toc strong{flex-basis:100%}.batch02-desktop-toc a{display:inline-flex;align-items:center;min-height:44px}
.batch02-mobile-toc>summary:focus-visible,.batch02-embed>summary:focus-visible,.batch02-mobile-toc a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.batch02-embed{border:1px solid var(--line);border-radius:.4rem;background:var(--surface,#fff)}
.batch02-embed>summary{width:fit-content;text-decoration:underline;text-underline-offset:.2em}
.batch02-embed-content{padding:.25rem 1rem 1rem;min-width:0}.batch02-embed-content textarea{max-width:100%;overflow-wrap:normal;word-break:normal}
.batch02-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.batch02-table-scroll:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.batch02-scroll-hint{display:none}
@media(min-width:960px){
.batch02-guide .orderhead h1{font-size:clamp(1.875rem,3.375vw,3.2625rem);line-height:1.08;max-width:27ch}
.batch02-guide.historic-detail>h1{font-size:clamp(1.875rem,3.75vw,3.3rem);line-height:1.08;max-width:27ch}
}
@media(max-width:959.98px){
.batch02-mobile-toc{display:block}.batch02-desktop-toc,.batch02-guide .aside .jump{display:none!important}
.batch02-guide .detail-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"article" "sidebar"}
.batch02-guide .detail-layout>.aside:has(>.jump:only-child){display:none}
}
@media(max-width:639.98px){
.batch02-guide .orderhead h1,.batch02-guide.historic-detail>h1{font-size:2rem;line-height:1.12;max-width:100%;overflow-wrap:normal;word-break:normal}
.batch02-scroll-hint{display:block;margin:.5rem 0;color:var(--muted);font-size:.875rem;font-weight:700}
:is(.tablewrap,.table-wrap):has(>.batch02-table-scroll){overflow:visible!important}
.batch02-table-scroll{isolation:isolate;border:1px solid var(--line);border-radius:.35rem}
.batch02-table-scroll table{display:table!important;width:100%!important;min-width:52rem!important;table-layout:auto!important;border-collapse:separate;border-spacing:0}
.batch02-table-scroll thead{display:table-header-group!important;position:static!important;clip:auto!important;width:auto!important;height:auto!important;overflow:visible!important;white-space:normal!important;margin:0!important}
.batch02-table-scroll tbody{display:table-row-group!important}
.batch02-table-scroll tr{display:table-row!important;width:auto!important}
.batch02-table-scroll :is(th,td){display:table-cell!important;min-width:8rem;width:auto!important;padding:.65rem .8rem!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none;white-space:normal!important}
.batch02-table-scroll td:before{content:none!important}
.batch02-table-scroll tr>:first-child{position:sticky;left:0;z-index:1;min-width:12rem;max-width:18rem;background:var(--surface,#fff);box-shadow:1px 0 0 var(--line)}
.batch02-table-scroll thead tr>:first-child{z-index:2}
html[data-theme=dark] .batch02-table-scroll :is(th,td){background:var(--surface);color:var(--ink)}
}

/* Contrast findings from the full component-type review. */
html[data-theme=dark] .home-outcome-card time{color:var(--muted)}
html[data-theme=dark] .compare h3{color:#f5f8ff}
