.battery-hero { padding-block: clamp(2rem, 5vw, 3.6rem); }
.battery-hero h1 { margin-top: 0; }
.battery-hero .intro { max-width: 42rem; }
.presets { margin-top: 1.4rem; }
.button { font: inherit; font-weight: 700; cursor: pointer; }
.presets [aria-pressed="true"] { border-color: var(--teal); background: #e2f3f0; color: var(--teal); }
nav [aria-current="page"] { color: var(--teal); }

.battery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1.2rem;
  align-items: start;
  margin-block: 1.8rem;
}
.battery-grid h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.inputs, .results { padding: clamp(1rem, 2.5vw, 1.6rem); }
.inputs fieldset { min-width: 0; padding: 0; border: 0; margin: 1.1rem 0 0; }
.inputs legend { padding: 0; font-weight: 750; }
.inputs fieldset p { margin-top: .25rem; font-size: .88rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .6rem; }
.fields label { font-size: .87rem; font-weight: 650; }
.fields label span { color: var(--muted); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.fields input {
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  margin-top: .2rem;
  padding: .4rem .5rem;
  border: 1px solid #a7bbc9;
  border-radius: .4rem;
  background: #fbfdfe;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.fields input[aria-invalid="true"] { border-color: #a42b23; }
#input-error:not(:empty) { margin-top: .8rem; color: #a42b23; font-size: .9rem; }

.runtime-grid, .budget-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.runtime-grid { margin-block: 1rem; }
.runtime-grid > div { padding: .75rem .6rem; background: var(--slate); border: 1px solid var(--line); border-radius: .45rem; }
.runtime-grid .nominal { background: #e8f5f2; border-color: #a5cbc5; }
.runtime-grid h3 { font-size: .9rem; }
.runtime-grid small { display: block; margin-top: .2rem; color: var(--muted); }
.runtime-grid strong { display: block; margin-block: .45rem .15rem; color: var(--teal); font-size: clamp(1.15rem, 2.4vw, 1.65rem); line-height: 1.15; }
.runtime-grid p, .budget-summary dt { font-size: .8rem; }
.runtime-grid strong, .runtime-grid p, .budget-summary dd { overflow-wrap: anywhere; }
.budget-summary { margin: 1rem 0 1.2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.budget-summary dt { color: var(--muted); }
.budget-summary dd { margin: .1rem 0 0; font-weight: 750; }
.runtime-grid, .budget-summary, .budget-table { font-variant-numeric: tabular-nums; }
.budget-bar { display: flex; height: .8rem; overflow: hidden; margin-block: .65rem .7rem; border-radius: .3rem; background: var(--slate); }
.budget-bar span, .budget-key { background: var(--segment); }
.budget-key { display: inline-block; width: .67rem; height: .67rem; margin-right: .4rem; border-radius: .15rem; }
.active { --segment: #006561; }
.tx { --segment: #26578c; }
.sleep { --segment: #397e9e; }
.overhead { --segment: #a6621c; }
.budget-table :is(th, td) { padding-inline: .45rem; }
.budget-table :is(th, td):last-child { text-align: right; }
#download { margin-top: .8rem; }

.methodology details { padding: .65rem .85rem; border: 1px solid var(--line); border-radius: .45rem; }
.methodology details + details { margin-top: .6rem; }
.methodology summary { cursor: pointer; font-weight: 700; }
.methodology ul { margin: .45rem 0 0; padding-left: 1.15rem; }
.methodology li + li { margin-top: .25rem; }
.service-cta { margin-block: 1.4rem 2rem; padding: .9rem 1rem; border-left: 3px solid var(--teal); background: var(--slate); }
.service-cta strong { color: var(--ink); }

@media (max-width: 52rem) {
  .battery-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 26rem) {
  .runtime-grid { grid-template-columns: minmax(0, 1fr); }
}
