/* Clickable battery overview and its illustrated learning dialog. */
.battery-visual .battery-topic {
  border:2px solid transparent; font:inherit; cursor:pointer; gap:9px;
  transition:box-shadow .15s, border-color .15s; min-width:0;
}
.battery-visual .battery-topic:hover { border-color:#07192a; box-shadow:0 0 0 3px #fff8; }
.battery-visual .battery-topic:focus-visible { outline:3px solid #fff; outline-offset:5px; }
.battery-visual .battery-topic .battery-explore { font-size:.76rem; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.storage-section .battery-guide-hint { color:#c2d5e1; margin:0 0 18px; font-size:.9rem; }
.protection-chain .protection-topic {
  min-height:132px; min-width:0; display:grid; align-content:center; gap:9px;
  text-align:center; padding:16px 12px; border:1px solid #416276; border-radius:11px;
  background:#0e2d42; color:#fff; font:inherit; cursor:pointer;
}
.protection-chain .protection-topic b { color:#fff; }
.protection-chain .protection-topic small { color:#bcd1df; }
.protection-chain .protection-topic:hover { background:#173e55; border-color:#93cbdc; }
.protection-chain .protection-topic:focus-visible { outline:3px solid #f5b63a; outline-offset:4px; }
.protection-chain .protection-explore { text-decoration:underline; text-underline-offset:3px; font-size:.76rem; font-weight:800; }
.protection-guide-hint { margin:-14px 0 28px; }
.accessory-grid .accessory-title {
  display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%;
  min-height:44px; padding:0; border:0; background:transparent; color:#102238;
  font:inherit; font-weight:800; text-align:left; cursor:pointer;
}
.accessory-grid .accessory-title:hover { color:#0b5e85; }
.accessory-grid .accessory-title > span:last-child { color:#0b5e85; }
.accessory-device-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:20px; }
.accessory-device-links button {
  min-width:0; min-height:44px; padding:9px; border:1px solid #aecbd9; border-radius:9px;
  background:#eef6fa; color:#104b69; font:inherit; font-size:.85rem; font-weight:750;
  line-height:1.5; overflow-wrap:anywhere; cursor:pointer;
}
.accessory-device-links button:hover { background:#d9edf6; border-color:#0b5e85; }
.accessory-grid button:focus-visible { outline:3px solid #087da6; outline-offset:3px; }
.battery-guide-dialog {
  width:min(980px,calc(100vw - 24px)); max-width:none;
  max-height:calc(100dvh - 24px); padding:0; border:1px solid #cad8e1;
  border-radius:18px; color:#102238; background:#fff; box-shadow:0 24px 90px #0005;
}
.battery-guide-dialog[open] { display:flex; flex-direction:column; }
.battery-guide-dialog::backdrop { background:#031421bf; }
.battery-guide-dialog button { font:inherit; cursor:pointer; min-height:44px; border-radius:9px; padding:8px 13px; border:1px solid #b1c6d4; background:#fff; color:#102238; }
.battery-guide-dialog button:hover { background:#eaf4f8; }
.battery-guide-dialog button:focus-visible { outline:3px solid #087da6; outline-offset:2px; }
.battery-guide-dialog button:disabled { opacity:.4; cursor:default; }
.battery-guide-header,.battery-guide-footer { display:flex; align-items:center; gap:12px; padding:14px 22px; flex-shrink:0; }
.battery-guide-header { background:#07192a; color:#fff; }
.battery-guide-header p { margin:0 auto 0 0; min-width:0; overflow-wrap:anywhere; font-size:.82rem; font-weight:800; }
.battery-guide-header > button,.battery-guide-header form { flex-shrink:0; }
.battery-guide-header form { margin:0; }
.battery-guide-header button { border-color:#7190a2; color:#fff; background:transparent; }
.battery-guide-header button:hover { background:#17384e; }
.battery-guide-body { padding:24px; overflow:auto; overscroll-behavior:contain; }
.battery-guide-body h2 { margin:0 0 10px; font-size:clamp(1.45rem,3vw,2rem); line-height:1.4; }
.battery-guide-intro { margin:0 0 22px; color:#455e70; }
.battery-guide-columns { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr); gap:26px; align-items:start; }
.battery-guide-figure { margin:0; padding:12px; background:#f0f6f9; border:1px solid #cfdee7; border-radius:14px; }
.battery-guide-figure svg { display:block; width:100%; height:auto; max-width:420px; margin:0 auto; font-family:inherit; }
.battery-guide-figure figcaption { padding:8px 6px; color:#455e70; font-size:.84rem; }
.battery-guide-copy h3 { font-size:1.04rem; margin:0 0 8px; }
.battery-guide-copy p { margin:0 0 18px; }
.battery-guide-copy ul { padding-left:22px; margin:0 0 18px; }
.battery-guide-copy li { margin:8px 0; }
.guide-ratings { margin:0 0 20px; border:1px solid #cadce5; border-radius:10px; overflow:hidden; }
.guide-ratings > div { padding:12px; background:#f1f7fa; border-bottom:1px solid #cadce5; }
.guide-ratings > div:last-child { border-bottom:0; }
.guide-ratings dt { font-weight:800; color:#104b69; }
.guide-ratings dd { margin:4px 0 0; font-size:.9rem; line-height:1.6; }
.battery-guide-example { padding:16px; border-left:4px solid #e9a51c; border-radius:0 9px 9px 0; background:#fff5d9; }
.battery-guide-example p:last-child { margin-bottom:0; }
.battery-guide-scenarios { margin-top:18px; padding:16px; border:1px solid #b9d5df; border-radius:12px; background:#f4fafb; }
.battery-guide-scenarios h3 { margin:0 0 10px; font-size:1rem; }
.battery-guide-scenario-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.battery-guide-scenario-buttons button[aria-pressed=true] { background:#0b5e85; color:#fff; border-color:#0b5e85; }
.battery-guide-scenario-result { margin:12px 0 0; }
.battery-guide-references { margin-top:22px; padding-top:16px; border-top:1px solid #d9e4eb; font-size:.84rem; }
.battery-guide-references p { margin:0 0 8px; }
.battery-guide-references a { color:#0b5e85; text-underline-offset:3px; }
.battery-guide-footer { justify-content:space-between; border-top:1px solid #d9e4eb; background:#f5f8fb; }
.battery-guide-footer p { margin:0; font-size:.82rem; text-align:center; }
html.battery-guide-open { overflow:hidden; }
@media (min-width:761px) and (max-width:1100px) {
  .battery-visual { grid-template-columns:minmax(0,1fr); }
  .battery-visual .diagram-arrow { transform:rotate(90deg); }
  .protection-chain { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:1100px) { .protection-chain .protection-topic { width:100%; } }
@media (max-width:700px) {
  .battery-guide-columns { grid-template-columns:minmax(0,1fr); gap:22px; }
  .battery-guide-body { padding:18px 16px; }
  .battery-guide-header,.battery-guide-footer { padding:12px; gap:8px; }
  .battery-guide-header p { font-size:.75rem; }
  .battery-guide-header button,.battery-guide-footer button { padding:8px 10px; font-size:.85rem; }
  .battery-guide-figure { max-width:440px; width:100%; margin:auto; }
}
@media (prefers-reduced-motion:reduce) { .battery-visual .battery-topic { transition:none; } }
@media (max-width:380px) { .accessory-device-links { grid-template-columns:minmax(0,1fr); } }
