/* Pantry-jar shelf: signature component showing BLS spending shares */
.shelf {
  padding: 1.25rem 1.25rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
}
.shelf__title {
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.3;
}
.jars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .6rem;
  align-items: end;
  padding-bottom: .75rem;
  border-bottom: 4px solid var(--border);
}
.jar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.jar__lid {
  display: block;
  width: 72%;
  height: 10px;
  background: var(--ink);
  opacity: .75;
  border-radius: 4px 4px 2px 2px;
}
.jar__glass {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  border: 2px solid var(--border);
  border-top-width: 1px;
  border-radius: 6px 6px 16px 16px;
  overflow: hidden;
  background: var(--surface);
}
.jar__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill);
  background: var(--brand);
  opacity: .85;
}
.jar--rest .jar__fill { opacity: .35; }
.jar__pct {
  margin-top: .45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.jar__label {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.shelf .note { margin: .75rem 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 480px) {
  .shelf { padding: 1rem .75rem .85rem; }
  .jars { gap: .25rem; }
  .jar__glass { height: 110px; }
  .jar__pct { font-size: .85rem; }
  .jar__label { font-size: .66rem; }
}
#result-main { font-variant-numeric: tabular-nums; }
.tool__result .result-label + .result-list { margin-top: .4rem; }

/* Effort tabs: sub-heading as a small label */
.tab-label {
  margin: 1rem 0 .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Table cells: one consistent text colour */
.section--alt table td { color: var(--ink); }
.section--alt table td:empty { opacity: .5; }

/* Tables: fixed, aligned columns with equal row heights */
lg-table table { table-layout: fixed; width: 100%; }
lg-table td, lg-table th { vertical-align: middle; font-variant-numeric: tabular-nums; }

/* Price chart: every bar grows from the same left zero baseline */
lg-bars .bars__track, lg-bars .bar-row__track { position: relative; display: block; }
lg-bars .bars__fill, lg-bars .bar-row__fill, lg-bars .bar {
  margin-left: 0;
  left: 0;
  transform-origin: left center;
}
lg-bars .bars__note, lg-bars small {
  display: block;
  font-size: .75rem;
  color: var(--muted);
}

/* Price chart on phones: stack name, bar, price */
@media (max-width: 640px) {
  .bars__row, .bar-row, lg-bars .bars li {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .bars__label, .bar-row__label {
    min-width: 6rem;
    white-space: nowrap;
  }
}