.wage-page .estimator-intro h1 { text-wrap: balance; }
.wage-entry-column, .wage-result-column { min-width: 0; }
.wage-result-column .privacy { color: var(--muted); font-size: .8rem; line-height: 1.65; margin: .5rem 0 1rem; }
.wage-page .estimate-result { position: static; max-height: none; overflow: visible; }
.wage-page .field-grid { align-items: start; }
.wage-page #hours, .wage-page #weeks, .wage-page #state-rate, .wage-page #overtime-hours { max-width: 7rem; }
.wage-page .wage-settings { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: .5rem; }
.wage-page .wage-hours-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 4.5rem; gap: .75rem; width: 100%; max-width: 20rem; }
.wage-page .overtime-fields { display: contents; }
.wage-page .wage-hours-row .field > label:not(.sr-only) { display: flex; align-items: center; min-height: 44px; }
.wage-page .overtime-toggle { display: block; min-height: 44px; width: 100%; margin: 0 0 .45rem; padding: 0; border: 0; background: none; color: var(--blue-dark); text-align: left; font-size: .875rem; font-weight: 600; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wage-page .overtime-toggle:hover { color: var(--blue); }
.wage-page #overtime-rate { min-width: 0; width: 100%; padding-inline: .5rem 1.2rem; }
.wage-page .balance:first-child strong { color: var(--ink); }
.wage-page .wage-conversion, .wage-page .wage-breakdown { margin: .8rem 0; }
.wage-page .wage-breakdown { margin-top: 0; }
.wage-page .calc-row dd { margin: 0; }
.wage-page .calc-row dt { min-width: 0; }
.wage-page .annual-net { flex-direction: column; gap: .3rem; padding-block: 1rem; }
.wage-page .annual-net dt { color: var(--ink); font-size: 1rem; font-weight: 600; }
.wage-page .annual-net dd { color: var(--blue); font-size: clamp(1.65rem, 2.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.pay-period { position: relative; isolation: isolate; display: flex; min-width: 0; margin: 1.2rem 0 .4rem; padding: 3px; border: 1px solid #a2b1c9; }
.pay-period::before { content: ''; position: absolute; z-index: -1; inset: 3px auto 3px 3px; width: calc(50% - 3px); background: var(--blue); transition: transform var(--ease); }
.pay-period[data-view="alternate"]::before { transform: translateX(100%); }
.pay-period label { position: relative; flex: 1; min-width: 0; cursor: pointer; }
.pay-period input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-period span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .75rem; color: var(--blue-dark); font-size: .85rem; font-weight: 600; transition: color var(--ease); }
.pay-period input:checked + span { color: var(--paper); }
.pay-period input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 4px; }
.pay-period label:hover span { text-decoration: underline; text-underline-offset: .25em; }
@media (min-width: 801px) {
    .wage-result-column { position: sticky; top: 102px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
    .wage-result-column { top: 128px; }
}
@media (prefers-reduced-motion: reduce) {
    .pay-period::before, .pay-period span { transition: none; }
}
@media (max-width: 800px) {
    .wage-entry-column { display: contents; }
    .wage-page .estimator-intro { order: 0; margin-bottom: 0; }
    .wage-result-column { order: 1; }
    .wage-page #wage-form, .wage-entry-column noscript { order: 2; }
    .wage-result-column .privacy { margin-bottom: .25rem; }
    .wage-result-column .privacy br { display: none; }
    .wage-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .wage-page .balance strong { font-size: 1.5rem; }
    .wage-page .balance h3 { font-size: .76rem; }
}
