/* calc-accord (Erik t8147u): equal smaller accordion cards, ink-centered titles, condensed More Tools, 5 unit pills on one row */
/* 1) Closed top accordion cards: same smaller height, single-line, + absolute, title ink-centered (balanced ghost +) */
html body[data-page="calc"] :is(#calcTools,#howItWorks,#calcFaq,#calcSources).cc-closed{
  padding-top:6px!important;padding-bottom:6px!important;margin-top:8px!important;
  box-sizing:border-box!important
}
html body[data-page="calc"] :is(#calcTools,#howItWorks,#calcFaq,#calcSources).cc-closed>.cc-collh{
  display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;position:relative!important;
  margin:0!important;padding:0 26px!important;box-sizing:border-box!important;
  height:28px!important;min-height:0!important;max-height:28px!important;
  font-size:13.5px!important;line-height:1.15!important;font-weight:700!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
html body[data-page="calc"] :is(#calcTools,#howItWorks,#calcFaq,#calcSources)>.cc-collh::before{
  content:'+'!important;position:absolute!important;left:4px!important;top:50%!important;
  transform:translateY(-50%)!important;font-weight:800!important;font-size:18px!important;
  visibility:hidden!important;pointer-events:none!important;color:#00DDEB!important
}
html body[data-page="calc"] :is(#calcTools,#howItWorks,#calcFaq,#calcSources)>.cc-collh::after{
  content:'–'!important;position:absolute!important;right:4px!important;left:auto!important;top:50%!important;
  transform:translateY(-50%)!important;margin:0!important;font-weight:800!important;font-size:18px!important;
  color:#00DDEB!important
}
html body[data-page="calc"] :is(#calcTools,#howItWorks,#calcFaq,#calcSources).cc-closed>.cc-collh::after{content:'+'!important}
/* open headers keep same centering + size row */
html body[data-page="calc"] :is(#calcTools,#howItWorks,#calcFaq,#calcSources):not(.cc-closed)>.cc-collh{
  display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;position:relative!important;
  margin:0 0 6px!important;padding:0 28px!important;box-sizing:border-box!important;
  min-height:28px!important;height:auto!important;max-height:none!important;
  font-size:14px!important;line-height:1.2!important
}

/* 2) More Calculator Tools: condense vertical spacing (was missed vs other cards) */
html body[data-page="calc"] #calcTools:not(.cc-closed){padding-top:8px!important;padding-bottom:8px!important}
html body[data-page="calc"] #calcTools .cp-sec{
  padding:3px 0!important;border-top-color:rgba(255,255,255,.08)!important
}
html body[data-page="calc"] #calcTools .cp-sec>summary{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;list-style:none!important;
  min-height:28px!important;height:28px!important;max-height:28px!important;
  padding:0 28px!important;margin:0!important;box-sizing:border-box!important;
  font-size:13.5px!important;font-weight:700!important;line-height:1.15!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
html body[data-page="calc"] #calcTools .cp-sec>summary::-webkit-details-marker{display:none!important}
html body[data-page="calc"] #calcTools .cp-sec.cc-sec>summary::after,
html body[data-page="calc"] #calcTools .cp-sec.cc-sec>summary::before{
  position:absolute!important;top:50%!important;transform:translateY(-50%)!important;
  font-weight:700!important;font-size:16px!important;color:#00DDEB!important;margin:0!important
}
html body[data-page="calc"] #calcTools .cp-sec.cc-sec>summary::before{
  content:'+'!important;left:6px!important;visibility:hidden!important;pointer-events:none!important
}
html body[data-page="calc"] #calcTools .cp-sec.cc-sec>summary::after{
  content:'+'!important;right:6px!important;left:auto!important
}
html body[data-page="calc"] #calcTools .cp-sec.cc-sec[open]>summary::after{content:'–'!important}
html body[data-page="calc"] #calcTools .cp-hint{
  margin:3px 0 0!important;font-size:.78rem!important;line-height:1.35!important
}
html body[data-page="calc"] #calcTools .cp-row{
  margin-top:4px!important;gap:6px!important
}
html body[data-page="calc"] #calcTools .cp-big{
  margin:6px 0 4px!important;font-size:.92rem!important;line-height:1.35!important
}
html body[data-page="calc"] #calcTools .cp-stats{gap:6px!important;margin-top:6px!important}
html body[data-page="calc"] #calcTools .cp-stats>div{padding:7px!important}
html body[data-page="calc"] #calcTools .cp-list{margin-top:6px!important;gap:4px!important}
html body[data-page="calc"] #calcTools .cp-list li{padding:6px!important}
html body[data-page="calc"] #calcTools .cp-math{margin:4px 0 0!important;line-height:1.4!important}

/* 3) Reverse Mode unit pills: all five on ONE row at 390 and 360 */
html body[data-page="calc"] #calcTools .cp-marks.chips,
html body[data-page="calc"] #cpWater .chips.cp-marks{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:4px!important;margin-top:4px!important;align-items:stretch
}
html body[data-page="calc"] #calcTools .cp-marks .chip,
html body[data-page="calc"] #cpWater .cp-marks .chip{
  min-width:0!important;width:auto!important;
  min-height:28px!important;height:28px!important;max-height:28px!important;
  padding:0 2px!important;margin:0!important;box-sizing:border-box!important;
  font-size:11.5px!important;line-height:16px!important;font-weight:700!important;
  border-radius:10px!important;white-space:nowrap!important;
  display:flex!important;align-items:center!important;justify-content:center!important
}
@media (max-width:370px){
  html body[data-page="calc"] :is(#calcTools,#howItWorks,#calcFaq,#calcSources).cc-closed>.cc-collh{font-size:12.5px!important;padding:0 22px!important}
  html body[data-page="calc"] #calcTools .cp-marks .chip,
  html body[data-page="calc"] #cpWater .cp-marks .chip{font-size:10.5px!important;padding:0 1px!important}
  html body[data-page="calc"] #calcTools .cp-sec>summary{font-size:12.5px!important;padding:0 24px!important}
}
