/* Lithium-interface research, retaining the site's chapter and inset surfaces. */
.battery-section-intro { max-width: 800px; margin-bottom: 30px; }
.battery-section-intro h2 { margin: 0 0 22px; font-size: clamp(28px,3.2vw,42px); line-height: 1.25; font-weight: 500; letter-spacing: -.035em; }
.battery-caption, .battery-credit, .battery-study-main figcaption { color: var(--muted,#655d70); font: 14px/1.8 var(--font); }
.battery-pressure-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.battery-pressure-pair figure { margin: 0; min-width: 0; }
.battery-case-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.battery-case-heading :is(h3,strong) { font-size:24px; font-weight:500; color:#6940ab; margin:0; }
.battery-case-heading span { font-size:14px; color:#655d70; }
.battery-pressure-poster > img { display:block; width:100%; max-height:400px; object-fit:contain; }
.solution-battery .battery-caption { margin-top:22px; }
.battery-recording.recording { background:transparent; border:0; border-radius:0; }
.battery-recording .recording-image { width:100%; height:auto; max-height:660px; object-fit:contain; background:transparent; padding:0; }
.battery-recording .recording-bar { background:transparent; padding:16px 0; gap:12px; }
.battery-pressure-case { min-width:0; padding:24px; border:1px solid var(--panel-inset-line,#ded3e9); border-radius:12px; background:var(--panel-inset-fill,#f6f2fa); }
.battery-pressure-case > p { font-size:16px; margin:12px 0 0; }
.battery-condition-line { display:flex; flex-wrap:wrap; gap:12px 25px; font-size:15px; color:#655d70; margin-bottom:28px; }
.battery-model-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:45px; }
.battery-model-visual, .battery-hero-visual { margin:0; }
.battery-model-visual img, .battery-hero-visual img { width:100%; height:auto; }
.battery-mechanism-tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.battery-mechanism-tabs button { min-height:44px; padding:10px 16px; border:1px solid #b9a7ce; border-radius:8px; font:inherit; font-size:15px; background:transparent; color:#6940ab; cursor:pointer; }
.battery-mechanism-tabs button[aria-selected="true"] { background:#6940ab; color:#fff; border-color:#6940ab; }
.battery-mechanism-tabs button:focus-visible, .battery-disclosure summary:focus-visible { outline:3px solid #9470c6; outline-offset:4px; }
[data-battery-mechanisms] [role="tabpanel"] { min-height:140px; }
[data-battery-mechanisms] [role="tabpanel"] p { margin:0; font-size:17px; line-height:1.85; }
.battery-evidence-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:35px; }
.battery-evidence-pair figure { margin:0; min-width:0; }
.battery-evidence-pair img { width:100%; max-height:560px; object-fit:contain; }
.battery-evidence-pair figcaption { margin-top:20px; }
.battery-disclosure { margin-top:35px; border-top:1px solid #d8cce4; padding-top:20px; }
.battery-disclosure summary { cursor:pointer; color:#6940ab; font-size:16px; line-height:1.8; min-height:44px; }
.battery-disclosure figure { margin:24px 0 0; }
.battery-disclosure img { width:100%; max-width:900px; height:auto; }
.battery-trend-figure { max-width:850px; margin:35px auto; }
.battery-trend-figure img { width:100%; height:auto; }
.battery-scope { border-top:1px solid #d8cce4; padding-top:22px; }
.battery-scope h3 { font-size:22px; font-weight:500; }
.battery-computing-example, .battery-related-model { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:35px; align-items:center; margin-top:35px; padding-top:30px; border-top:1px solid #d8cce4; }
.battery-computing-example figure, .battery-related-model figure { margin:0; }
.battery-computing-example img, .battery-related-model img { width:100%; max-height:260px; object-fit:contain; }
.battery-computing-example h3, .battery-related-model h3 { font-size:24px; line-height:1.35; font-weight:500; margin-top:0; }
.battery-computing-example p, .battery-related-model p { font-size:16px; line-height:1.85; }
.battery-numerics-route { padding:30px 0; border-top:1px solid #d8cce4; }
.battery-numerics-route h2 { font-size:25px; font-weight:500; }
.home-battery-card h3 { margin-bottom:18px; }
.home-battery-result { display:block; align-self:center; margin:auto 0 0; }
.home-battery-result img { width:100%; height:330px; object-fit:contain; display:block; }
.home-battery-card .battery-caption { margin:16px 0 25px; }
@media (max-width:800px) {
 .battery-model-layout { grid-template-columns:minmax(0,1fr); gap:25px; }
 .battery-model-visual { max-width:480px; }
 .battery-pressure-case { padding:20px 16px; }
 .battery-computing-example, .battery-related-model { grid-template-columns:minmax(0,1fr); gap:20px; }
 .battery-computing-example figure, .battery-related-model figure { max-width:360px; }
}
@media (max-width:600px) {
 .battery-pressure-pair, .battery-evidence-pair { grid-template-columns:minmax(0,1fr); gap:30px; }
 .battery-pressure-poster > img { max-height:440px; }
 .battery-pressure-case { padding:20px 14px; }
 .battery-evidence-pair img { max-height:520px; }
 .battery-section-intro h2 { font-size:28px; }
 .battery-study-main .study-hero h1 { font-size:clamp(37px,10vw,48px); }
 .battery-case-heading :is(h3,strong) { font-size:23px; }
 .battery-mechanism-tabs { gap:8px; }
 .battery-mechanism-tabs button { padding:10px 12px; }
 [data-battery-mechanisms] [role="tabpanel"] { min-height:0; }
 .home-battery-result img { height:340px; }
}

/* Keep the opening compact; the mechanism schematic appears once, in its own section. */
.battery-study-main .battery-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:50px; align-items:center; padding-block:8px 45px; }
.battery-study-main .battery-hero h1 { font-size:clamp(40px,5vw,65px); line-height:1.12; max-width:750px; }
.battery-study-main .battery-hero .battery-hero-visual img { max-height:350px; object-fit:contain; }
@media(max-width:800px) { .battery-study-main .battery-hero { grid-template-columns:minmax(0,1fr); gap:30px; padding-block:8px 28px; } .battery-study-main .battery-hero .battery-hero-visual { max-width:430px; } }
/* Preserve the tall scientific plot instead of the shared landscape-video ratio. */
.battery-study-main .battery-recording .recording-image { aspect-ratio:auto; height:auto; max-height:none; min-height:0; }
.battery-study-main .battery-trend-figure img, .battery-study-main .battery-evidence-pair img, .battery-study-main .battery-disclosure img { aspect-ratio:auto; }

.solution-battery h2 { text-wrap:balance; }
