/* Both readings show months in chronological order down each column. */
.month-score-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .25rem .8rem;
  padding-block: .3rem;
  border-block: 1px solid #d4cdbb;
  font: 1rem/1.35 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.month-score-chart button {
  --ink: #343b35;
  --surface: transparent;
  --track: #e4dfd2;
  --fill: #668272;
  display: grid;
  grid-template-columns: auto minmax(1rem, 1fr) max-content;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .5rem .7rem;
  border: 1px solid transparent;
  border-bottom-color: #ded8c9;
  border-radius: .35rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.month-score-label {display: inline-flex; align-items: center; gap: .4rem; min-width: 2.5em; white-space: nowrap}
.month-score-chart strong {font-size: 1.05rem; min-width: 3.25em; white-space: nowrap; text-align: right; color: inherit}
.month-score-track {height: .42rem; background: var(--track); border-radius: 1rem; overflow: hidden}
.month-score-track > span {display: block; height: 100%; background: var(--fill); border-radius: inherit}
.month-score-chart [data-rank=high] {
  --ink: #842339; --surface: #fff0ef; --track: #f2d0d0; --fill: #ac3347;
}
.month-score-chart [data-rank=low] {
  --ink: #1b4879; --surface: #edf5ff; --track: #cbddef; --fill: #2a639d;
}
.month-score-chart button[data-rank] {border-bottom-color: transparent}
.month-score-chart [data-rank] strong {font-size: 1.16rem}
.month-score-chart small {background: var(--ink); color: white; padding: .19rem .42rem; border-radius: 1rem; font: 700 .83rem/1.2 system-ui, sans-serif}
.input-preview .month-score-chart button[aria-pressed=true] {background: var(--surface); color: var(--ink); box-shadow: none; border: 2px solid currentColor; padding: calc(.5rem - 1px) calc(.7rem - 1px); font-weight: 700}
.month-score-chart button[data-rank][aria-pressed=true] {border-color: currentColor}
.month-score-chart [aria-pressed=true] strong::before {content: "✓" / ""; margin-right: .15em; font-size: .72em}
.month-score-chart button:focus-visible {outline: 2px dashed currentColor; outline-offset: -5px}
@media (hover:hover) {.month-score-chart button:hover {box-shadow: inset 0 0 0 1px currentColor}}
@container (min-width: 30rem) {
  .month-score-chart {grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(6,auto); grid-auto-flow: column}
}
