/* Take-home pay tool — page-specific styles. */

@media (min-width: 700px) {
  .calc-grid { grid-template-columns: repeat(3, 1fr); }
}

.state-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-body);
  margin: 0.5rem 0 0;
  grid-column: 1 / -1;
}

/* Paycheck breakdown: stacked bar + rows */
.breakdown { margin-top: 1.2rem; }
.breakdown-bar {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.breakdown-bar span { display: block; min-width: 0; }
#bar-net { background: var(--chart-growth); }
#bar-fed { background: #b5651d; }
#bar-ss { background: var(--chart-contrib); }
#bar-med { background: #8a7fc9; }
#bar-state { background: #c9a13f; }
#bar-pretax { background: var(--muted); }

.breakdown-rows {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  font-size: 0.92rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.25rem 1.4rem;
}
.breakdown-rows li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px dotted var(--border);
  padding: 0.2rem 0;
}
.breakdown-rows i {
  display: inline-block;
  width: 0.7em; height: 0.7em;
  border-radius: 2px;
  margin-right: 0.45em;
  font-style: normal;
  flex-shrink: 0;
  align-self: center;
}
.breakdown-rows .k { color: var(--muted); flex: 1; }
.breakdown-rows output { font-weight: 600; }
li .sw-net { background: var(--chart-growth); }
li .sw-fed { background: #b5651d; }
li .sw-ss { background: var(--chart-contrib); }
li .sw-med { background: #8a7fc9; }
li .sw-state { background: #c9a13f; }
li .sw-pretax { background: var(--muted); }
