/* Page-local styles for budget.html (Build Council's budget).
 * Uses the shared header, nav, footer and the site's colour system. Every
 * colour pair below is checked for WCAG 2.1 AA text contrast; level and state
 * are always also carried by an icon and a word, never by colour alone.
 */

[hidden] { display: none !important; }

.budget-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 0 10px;
}
.budget-head .kicker {
  margin: 0;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .12em;
  color: #0b6f80;
  text-transform: uppercase;
}
.budget-head h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -.055em;
  color: #0d2b3b;
}
.budget-lede {
  max-width: 850px;
  margin: 0 0 14px;
  font-size: 17.5px;
  line-height: 1.6;
  color: #3d5663;
}
.budget-back {
  margin: 0 0 18px;
  font-size: 14px;
}
.budget-back a {
  color: #0b6072;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.budget-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 70px;
}
.load-error {
  margin: 10px auto 30px;
  padding: 16px 18px;
  border: 1px solid #e2b4ae;
  border-left: 5px solid #b3261d;
  border-radius: 8px;
  background: #fdeceb;
  color: #6d1a13;
  font-weight: 700;
}
.layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid #d5e2e6;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px #1432440a;
}
.panel-h {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #506b77;
}

/* ---------- chart panel ---------- */
/* Sticky under the sticky banner + header, never taller than the space left
   below them, so the headline and the primary action stay in view without
   scrolling inside the panel at 1280x1000. */
.chart-panel {
  min-width: 0;
  position: sticky;
  top: calc(var(--cq-banner-h) + var(--cq-header-h) + 10px);
  max-height: calc(100vh - var(--cq-banner-h) - var(--cq-header-h) - 20px);
  overflow-y: auto;
}
.chartwrap { position: relative; }
#chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  overflow: visible;
}
#chart text { font-family: inherit; }
.tip {
  position: absolute;
  z-index: 3;
  max-width: 240px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #10313f;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}
.ctable { margin: 10px 0 0; }
.ctable summary,
.selpanel summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 750;
  color: #0b6072;
  min-height: 32px;
}
.ctable table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.ctable th, .ctable td { padding: 6px 4px; border-bottom: 1px solid #e2ecee; text-align: left; vertical-align: top; }
.ctable td:last-child, .ctable th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctable tr.h th { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #536e7a; padding-top: 12px; }

.bstats { margin-top: 8px; }
.state {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid transparent;
}
.state.ok { background: #e5f4ea; color: #145f2c; border-color: #9dcfae; }
.state.over { background: #fde8e6; color: #8f1f17; border-color: #e3aaa4; }
#leftLabel { margin: 0; font-size: 13px; color: #506b77; font-weight: 700; }
.big {
  font-size: 33px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: #145f2c;
}
.big.over { color: #a3231a; }
.gaphome { margin: 4px 0 8px; font-size: 13.5px; line-height: 1.45; color: #3d5663; }
.statline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid #e2ecee;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.statline span:first-child { color: #506b77; }
.statline span:last-child { white-space: nowrap; font-weight: 700; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 10px 0 4px;
  font-size: 12.5px;
  color: #3f5865;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sw.req { background: #0b4f63; }
.sw.part { background: #3f9aa6; }
.sw.opt { background: #a8d5da; }
.sw.money { background: linear-gradient(90deg, #33528f 25%, #5f7fbf 25% 50%, #93aadb 50% 75%, #c3d0ec 75%); }
.sw.over { background: repeating-linear-gradient(45deg, #c8372d 0 3px, #f0b3ad 3px 6px); }
.sw.room { background: #e5f4ea; border: 1.5px dashed #1e7a3c; }
.sw.lost { background: repeating-linear-gradient(45deg, #c4cfd3 0 3px, #f4f6f7 3px 6px); }
.sw.line { background: none; border-top: 2px dashed #7a5a00; height: 0; border-radius: 0; }
.sw.extra { background: repeating-linear-gradient(45deg, #1e7a3c 0 3px, #cfead7 3px 6px); }
.sw.unc { background: radial-gradient(#7a6a9a 30%, #ece7f4 35%); }
.sw.one { background: repeating-linear-gradient(-45deg, #b7791f 0 3px, #fbe7c4 3px 6px); }
.vt { margin: 0 0 8px; }
.vt button { min-height: 34px; padding: 4px 14px; }
.selpanel { margin-top: 12px; border-top: 1px solid #e2ecee; padding-top: 8px; }
.inlist { display: flex; flex-wrap: wrap; gap: 6px; max-height: 170px; overflow: auto; margin-top: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border: 1px solid #d5e2e6;
  border-radius: 999px;
  background: #eef7f8;
  font-size: 12.5px;
}
.chip.lock { padding-right: 10px; }
.chip button {
  min-width: 26px;
  min-height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3d5663;
  font-size: 15px;
}

/* ---------- controls ---------- */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.controls input[type="search"] {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c6d8dd;
  border-radius: 10px;
  font-size: 16px;
  color: #10313f;
  background: #fff;
}
.seg { display: flex; flex-wrap: wrap; gap: 5px; }
.seg button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c6d8dd;
  border-radius: 8px;
  background: #fff;
  color: #17506b;
  font-size: 13px;
  font-weight: 750;
}
.seg button[aria-pressed="true"] { background: #0d3b50; border-color: #0d3b50; color: #fff; }
.tog {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #d5e2e6;
  border-radius: 10px;
  background: #f7fafb;
  font-size: 13.5px;
  line-height: 1.4;
}
.tog input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.tog b { display: block; color: #10313f; }
.tog .hint { display: block; color: #506b77; font-size: 12.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.btn {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #9dbfc4;
  border-radius: 8px;
  background: #fff;
  color: #0b5567;
  font-size: 13.5px;
  font-weight: 800;
}
.btn:hover { background: #eaf4f6; }
.btn.primary { background: #0b5567; border-color: #0b5567; color: #fff; }
.btn.primary:hover { background: #093f4d; }

/* ---------- service cards ---------- */
.groups { display: grid; gap: 24px; }
.group > h2 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -.02em;
  color: #10313f;
}
.group > h2 small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: #536e7a; letter-spacing: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #d5e2e6;
  border-radius: 12px;
  background: #fff;
}
.svc.in { border-color: #87b7bf; box-shadow: inset 4px 0 0 #0b6f80; }
.svc.np { background: #f2f5f6; border-style: dashed; }
.svc h3 { margin: 0; padding-right: 86px; font-size: 15.5px; line-height: 1.3; color: #10313f; }
.svc .flag {
  position: relative;
  align-self: flex-start;
  margin-top: -26px;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}
.flag.required { background: #e4eef2; color: #0b4f63; border-color: #b4cdd7; }
.flag.partly { background: #e3f2f4; color: #1c5f69; border-color: #a9cdd3; }
.flag.optional { background: #f0f6f6; color: #385661; border-color: #cbdcde; }
.svc .cost { font-size: 19px; font-weight: 850; letter-spacing: -.02em; color: #10313f; }
.svc .cost small { font-size: 12px; font-weight: 600; color: #536e7a; letter-spacing: 0; }
.svc .meta { margin: 0; font-size: 12.5px; line-height: 1.45; color: #3f5865; }
.svc .desc { margin: 0; font-size: 13px; line-height: 1.5; color: #3d5663; }
.svc details { font-size: 13px; }
.svc details summary { cursor: pointer; color: #0b6072; font-weight: 750; min-height: 30px; }
.svc ul { margin: 6px 0; padding-left: 18px; }
.svc li { margin-bottom: 4px; line-height: 1.45; }
.svc a { color: #0b6072; }
.src { font-size: 12px; color: #4f6873; }
.act { margin-top: auto; padding-top: 6px; }
.act button {
  min-height: 42px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #0b5567;
  border-radius: 8px;
  background: #0b5567;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.act button:hover { background: #093f4d; }
.act button[aria-pressed="true"] { background: #fff; color: #0b5567; }
.act button[disabled],
.act button.locked { background: #eef2f3; border-color: #cbd8db; color: #425b65; cursor: not-allowed; }
.warnbox {
  margin: 4px 0;
  padding: 10px 12px;
  border: 1px solid #e2b4ae;
  border-left: 4px solid #a3231a;
  border-radius: 8px;
  background: #fdeceb;
  color: #5d1711;
  font-size: 12.5px;
  line-height: 1.45;
}
.warnbox .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.warnbox button { min-height: 38px; padding: 7px 12px; border-radius: 7px; border: 1px solid #a3231a; background: #fff; color: #8f1f17; font-weight: 800; font-size: 12.5px; }
.warnbox button.go { background: #8f1f17; border-color: #8f1f17; color: #fff; }
.empty { padding: 16px; border: 1px dashed #c6d8dd; border-radius: 10px; color: #3d5663; }

/* ---------- compare / water / how ---------- */
.panel-block { margin-top: 26px; }
.panel-block h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.03em; color: #10313f; }
.panel-block h3 { margin: 18px 0 6px; font-size: 17px; color: #10313f; }
.panel-block p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: #3d5663; }
.panel-block table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 10px; }
.panel-block th, .panel-block td { padding: 8px 6px; border-bottom: 1px solid #e2ecee; text-align: left; vertical-align: top; }
.panel-block td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.panel-block tr.t td { font-weight: 850; border-top: 2px solid #b9cfd5; }
.panel-block ul { padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: #3d5663; }
.panel-block .cards { margin-top: 6px; }
.sep-card .meta { font-size: 13px; }
.how h3 { margin-top: 20px; }
.how .src-list { font-size: 12.5px; line-height: 1.55; }
.how .src-list li { margin-bottom: 5px; overflow-wrap: anywhere; }
.cmp-note { padding: 10px 12px; border-left: 4px solid #0b6f80; background: #eef7f8; font-size: 13px; color: #224551; }

/* ---------- ways to close the gap (5.4.2) ---------- */
.gapbtn {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #a3231a;
  border-radius: 9px;
  background: #fdeceb;
  color: #7d1a13;
  font-size: 13.5px;
  font-weight: 850;
}
.gapbtn.ok { border-color: #9dcfae; background: #e5f4ea; color: #145f2c; }
.gapbtn:hover { filter: brightness(.98); }
.gap { margin: 0 0 18px; border-left: 5px solid #9dcfae; }
.gap.over { border-left-color: #c8372d; }
.gap.ok { border-left-color: #1e7a3c; }
.gaphead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gaphead h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; color: #10313f; }
.gaphead h2:focus { outline: 3px solid #0b6072; outline-offset: 3px; }
.gaphead button {
  min-height: 36px;
  padding: 5px 14px;
  border: 1px solid #9dbfc4;
  border-radius: 8px;
  background: #fff;
  color: #0b5567;
  font-size: 13px;
  font-weight: 800;
}
.gapsum { margin: 8px 0 12px; font-size: 14px; line-height: 1.55; color: #3d5663; }
.gapcols { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gapcols h3 { margin: 0 0 8px; font-size: 17px; color: #10313f; }
.hint { margin: 4px 0 8px; font-size: 13px; line-height: 1.5; color: #506b77; }
.spend { list-style: none; margin: 0; padding: 0; }
.spend li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2ecee;
  font-size: 13.5px;
}
.spend .nm { font-weight: 750; color: #10313f; }
.spend .sv { grid-column: 1; font-size: 12.5px; color: #506b77; font-variant-numeric: tabular-nums; }
.spend .mini {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #9dbfc4;
  border-radius: 7px;
  background: #fff;
  color: #0b5567;
  font-size: 12.5px;
  font-weight: 800;
}
.spend .mini:hover { background: #eaf4f6; }
.spend .pw { grid-column: 1 / -1; }
.spend li.sub-h {
  display: block;
  margin-top: 10px;
  border-bottom: 0;
  background: #f4f8f9;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 800;
  color: #224551;
}
.spend li.empty { display: block; color: #506b77; }

.lever { padding: 12px 0 10px; border-bottom: 1px solid #e2ecee; }
.lever:last-child { border-bottom: 0; }
.lhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.lhead label { flex: 1 1 200px; font-size: 14px; font-weight: 800; color: #10313f; }
.lhead output { font-size: 15px; font-weight: 850; color: #0b5567; font-variant-numeric: tabular-nums; }
.lever input[type="range"] { width: 100%; margin: 8px 0 2px; min-height: 34px; accent-color: #0b5567; }
.tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #cbdcde;
  background: #f0f6f6;
  color: #385661;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  vertical-align: 1px;
  white-space: nowrap;
}
.tag.rec { background: #e5f4ea; border-color: #9dcfae; color: #145f2c; }
.tag.unc { background: #ece7f4; border-color: #c3b8d8; color: #4d347a; }
.tag.one { background: #fbe7c4; border-color: #e0c07a; color: #6a4708; }
.tag.cash { background: #dce7f6; border-color: #a9c1e4; color: #1e3f74; }
.eff { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #3d5663; }
.eff b { color: #10313f; }
.ctx { margin: 6px 0; font-size: 12.5px; line-height: 1.5; color: #506b77; }
.quick { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0; }
.quick button {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #9dbfc4;
  border-radius: 7px;
  background: #fff;
  color: #0b5567;
  font-size: 12.5px;
  font-weight: 750;
}
.quick button:hover { background: #eaf4f6; }
.flagbox { margin: 8px 0; padding: 9px 11px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; }
.flagbox.red { border: 1px solid #e2b4ae; border-left: 4px solid #a3231a; background: #fdeceb; color: #5d1711; }
.chk { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 6px; font-size: 13px; font-weight: 700; color: #10313f; }
.chk input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.lever fieldset { margin: 8px 0 4px; padding: 6px 10px; border: 1px solid #d5e2e6; border-radius: 8px; }
.lever legend { padding: 0 4px; font-size: 12.5px; font-weight: 800; color: #385661; }
.lever fieldset label { margin-right: 14px; font-size: 13px; font-weight: 700; }
.lever fieldset input { width: 18px; height: 18px; vertical-align: -3px; }
.ticks { position: relative; height: 16px; margin: -2px 0 2px; }
.ticks span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: #506b77; white-space: nowrap; }
.greyrow { margin: 8px 0; padding: 8px 10px; border: 1px dashed #c6d8dd; border-radius: 8px; background: #f2f5f6; font-size: 12.5px; line-height: 1.5; color: #3d5663; }
.lever details { font-size: 12.5px; }
.lever details summary { cursor: pointer; min-height: 30px; color: #0b6072; font-weight: 750; }
.lever details ul { margin: 6px 0; padding-left: 18px; line-height: 1.5; }
.lever details p { margin: 0 0 8px; line-height: 1.55; color: #3d5663; }

/* ---------- what to do with money left over (5.4.4) ---------- */
.sp { border-left-color: #0f6f6a; }
.sp .amt { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 13px; }
.sp .amt input {
  width: 122px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #c6d8dd;
  border-radius: 8px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #10313f;
}
.sp .row2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 2px; font-size: 14px; }
.sp .row2 label { font-weight: 750; color: #10313f; }
.sp .row2 select {
  min-height: 40px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #c6d8dd;
  border-radius: 8px;
  background: #fff;
  color: #10313f;
  font-size: 15px;
}
.sp .row2 a { color: #0b6072; font-weight: 750; }
.sp .lever { border-bottom: 1px solid #e2ecee; }
.aldot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.splitbar {
  display: flex;
  height: 24px;
  margin: 8px 0 4px;
  border: 1.5px dashed #1e7a3c;
  border-radius: 8px;
  background: #e5f4ea;
  overflow: hidden;
}
.splitbar span { display: block; height: 100%; transition: width .3s; }
.splitkey { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; font-size: 13px; color: #10313f; }
.splitkey span { display: inline-flex; align-items: center; gap: 5px; }
.undec { font-weight: 750; }
.cmpnote { margin-top: 8px; padding: 8px 10px; border-left: 4px solid #6d4c9f; border-radius: 8px; background: #f3eff9; font-size: 13.5px; line-height: 1.5; color: #3d2a5c; }
.sp .flagbox { border: 1px solid #e0c07a; border-left: 4px solid #b7791f; background: #fdf6e7; color: #5a3d05; }

/* ---------- 10-year strip (5.4.3) ---------- */
#stripBwrap { display: none; }
.strip { margin-top: 12px; padding-top: 8px; border-top: 1px solid #e2ecee; }
.strip h3 { margin: 4px 0 2px; font-size: 15px; color: #10313f; }
.strip svg { display: block; width: 100%; height: auto; }
.strip .ssum { margin: 4px 0; font-size: 13px; line-height: 1.5; color: #3d5663; }
.strip .slegend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: #506b77; }
.strip details { font-size: 12.5px; margin-top: 4px; }
.strip details summary { cursor: pointer; min-height: 30px; color: #0b6072; font-weight: 750; }
.strip table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.strip th, .strip td { padding: 4px; border-bottom: 1px solid #e2ecee; text-align: right; }
.strip th:first-child, .strip td:first-child { text-align: left; }
.strip ul { margin: 4px 0; padding-left: 18px; line-height: 1.5; color: #3d5663; }

@media (min-width: 1100px) {
  .gapcols { grid-template-columns: 1fr 1.25fr; }
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: 350px minmax(0, 1fr); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .chart-panel {
    position: sticky;
    top: calc(var(--cq-banner-h) + var(--cq-header-h));
    z-index: 20;
    padding: 7px 12px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 14px #10313f1f;
    max-height: 298px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #chartPanel .panel-h { display: none; }
  #chartPanel .legend,
  #chartPanel .selpanel,
  #chartPanel .statline { display: none; }
  #chartPanel .bstats { margin-top: 2px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
  #chartPanel .big { font-size: 26px; grid-column: 1; grid-row: 2; }
  #chartPanel #state { grid-column: 1; grid-row: 1; margin: 0; }
  #chartPanel #leftLabel { display: none; }
  #chartPanel .gaphome { grid-column: 2; grid-row: 2; margin: 2px 0; font-size: 11.5px; line-height: 1.35; }
  #chartPanel .gapbtn { margin-top: 4px; min-height: 36px; }
  #chartPanel .ctable { margin: 2px 0 0; }
  #chartPanel .ctable summary { min-height: 26px; }
  #chartPanel .vt { margin: 0 0 2px; }
  #chartPanel .vt button { min-height: 28px; font-size: 12.5px; padding: 2px 12px; }
  #stripAwrap { display: none; }
  #stripBwrap { display: block; }
  /* The project picker's longest option must not widen the grid track (390px). */
  .sp .row2 select { width: 100%; max-width: 100%; flex: 1 1 100%; }
  .sp .amt input { width: 108px; }
  .gaphead h2 { font-size: 19px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-shell { width: calc(100% - 32px); }
  .budget-head { padding-top: 26px; }
  .budget-lede { font-size: 16px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .big { font-size: 28px; }
  .group > h2 { font-size: 19px; }
  .svc h3 { padding-right: 0; }
  .svc .flag { margin-top: 0; margin-left: 0; }
  .controls input[type="search"] { flex-basis: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 44%; }
  .panel-block table { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  #chart rect, .svc { transition: none !important; }
}
