/* /overtime-pay-calculator/ page layer: loaded after tools.css, tokens only. */
@media (max-width: 760px) {
  .t-top { margin: var(--space-3) 0 var(--space-3); }
  .t-top .lead { font-size: var(--fs-body-sm); line-height: var(--lh-snug); margin-bottom: 0; }
  #example { padding-block: 0; padding-right: 0; }
}
.t-top .lead { text-wrap: pretty; }
.t-example { flex-wrap: wrap; row-gap: 0; }

/* fields */
.input-group > .pre { display: flex; align-items: center; padding-inline: var(--space-3) 0; color: var(--muted); font-family: var(--font-mono); }
#rate { padding-inline-start: var(--space-1); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
#rate, #regHours, #otHours, #dtHours, #multOther { font-variant-numeric: tabular-nums; }
.t-field > .t-seg { margin-top: var(--space-1); }
.t-split { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.t-split[hidden], .t-field[hidden] { display: none; }
.t-split > p { margin: 0; flex: 1 1 12em; min-width: 0; }
#dtToggle { width: 100%; }
@media (max-width: 300px) { .t-split > .btn-secondary { width: 100%; } }

/* result and stub */
.t-result .t-row.t-total { border-top: 0; }
#stub tr[hidden] { display: none; }
#stub :is(th, td) { vertical-align: baseline; }
#stub td.d { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
#stub td.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
#stub tr.is-total td.d:empty { padding: 0; }
.t-chart.t-compare { max-width: var(--compare-max); }
.t-chart.t-compare + .t-chart.t-compare { margin-top: var(--space-4); }
.t-chart + p { margin-top: var(--space-3); }
.t-compare .data-grid caption { text-align: left; padding-bottom: var(--space-1); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.t-compare .data-grid td.d { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.t-compare .data-grid td.n { font-variant-numeric: tabular-nums; }

/* sources (same block as /no-tax-on-overtime-calculator/) */
section.side-block > .section-head { margin-bottom: var(--space-3); }
.t-checked { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.t-checked > .icon { color: var(--ok); }
.t-sources { list-style: none; margin: 0; padding: 0; max-width: var(--compare-max); border-top: var(--border-w) solid var(--border); counter-reset: src; }
.t-sources > li { counter-increment: src; display: grid; grid-template-columns: var(--space-6) minmax(0, 1fr); align-items: baseline; border-bottom: var(--border-w) solid var(--border); }
.t-sources > li::before { content: counter(src); color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.t-sources a {
  display: block; min-height: var(--tap); padding-block: var(--space-3); line-height: var(--lh-snug);
  color: var(--accent-ink); font-weight: var(--fw-medium); text-decoration: underline; text-decoration-color: var(--accent-bd);
  text-underline-offset: 3px; overflow-wrap: anywhere;
}
@media (min-width: 1024px) { section.side-block > .section-head { margin-bottom: 0; } .t-sources { max-width: none; } }
@media (hover: hover) { .t-sources a:hover { text-decoration-color: currentColor; } }

/* largest text: a gross of eight digits must still fit the card */
@container result (max-width: 20em) {
  #outGross { font-size: var(--fs-lg); white-space: normal; overflow-wrap: anywhere; }
}
