@layer reset, base, layout, components, utilities, print;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
  }

  body,
  h1,
  h2,
  h3,
  p,
  dl,
  dd,
  fieldset {
    margin: 0;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
  }

  button,
  summary,
  select,
  input[type="radio"],
  input[type="checkbox"] {
    cursor: pointer;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  [hidden] {
    display: none !important;
  }
}

@layer base {
  :root {
    --paper: #f3f5f7;
    --surface: #ffffff;
    --surface-subtle: #f6f8fa;
    --ink: #0b1725;
    --muted: #526170;
    --line: #dbe1e7;
    --line-strong: #a8b4c0;
    --accent: #0b57a5;
    --accent-dark: #063d78;
    --accent-soft: #eaf2ff;
    --positive: #17683a;
    --positive-soft: #eaf7ef;
    --warning: #8a5200;
    --warning-soft: #fff4da;
    --danger: #9b1c1c;
    --danger-soft: #fff0f0;
    --font-ui: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-data: "IBM Plex Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
    --page: min(1360px, calc(100vw - 48px));
    --radius-control: 8px;
    --radius-panel: 16px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --header-height: 60px;
    --shadow-lift: 0 24px 70px -52px rgb(11 23 37 / 55%);
  }

  body {
    min-width: 320px;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  ::selection {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
  }

  a:hover {
    color: var(--accent);
  }

  button,
  input,
  select {
    color: var(--ink);
  }

  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  summary:focus-visible,
  a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
    outline-offset: 3px;
  }

  h1,
  h2,
  h3 {
    line-height: 1.08;
    text-wrap: balance;
  }

  h1 {
    max-width: 20ch;
    font-size: clamp(2.25rem, 3.7vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.052em;
  }

  h2 {
    font-size: clamp(1.6rem, 2.35vw, 2.8rem);
    font-weight: 660;
    letter-spacing: -0.035em;
  }

  h3 {
    font-size: 1.05rem;
    font-weight: 680;
    letter-spacing: -0.015em;
  }

  small {
    color: var(--muted);
  }

  input,
  select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    padding: 0.72rem 0.85rem;
    transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), background-color 150ms var(--ease);
  }

  input:hover,
  select:hover {
    border-color: var(--ink);
  }

  input:focus,
  select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
    outline: none;
  }

  input[aria-invalid="true"],
  select[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px var(--danger-soft);
  }

  input::placeholder {
    color: #778492;
  }
}

@layer layout {
  .site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
  }

  .site-header__inner {
    width: var(--page);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
  }

  main,
  .site-footer {
    width: var(--page);
    margin-inline: auto;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding: clamp(28px, 3.5vw, 46px) 0 clamp(24px, 3vw, 36px);
  }

  .hero__copy {
    display: grid;
    gap: 9px;
  }

  .hero__intro {
    max-width: 64ch;
    color: var(--muted);
    font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  }

  .hero__trust {
    max-width: 42ch;
    display: grid;
    gap: 5px;
    border-left: 2px solid var(--accent);
    padding: 4px 0 4px 18px;
    color: var(--muted);
    font-size: 0.79rem;
  }

  .hero__trust strong {
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .hero__trust p {
    line-height: 1.45;
  }

  .calculator {
    display: grid;
    grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
    overflow: visible;
    border: 1px solid var(--line-strong);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-panel);
    background: var(--surface);
    box-shadow: var(--shadow-lift);
  }

  .calculator__controls,
  .result-ledger {
    padding: clamp(24px, 2.65vw, 36px);
  }

  .calculator__controls {
    position: relative;
    display: grid;
    align-content: start;
    gap: 17px;
    border-right: 1px solid var(--line-strong);
  }

  .result-ledger {
    min-height: 540px;
    display: grid;
    align-content: start;
    background: var(--surface);
  }

  .workflow-nav {
    display: grid;
    grid-template-columns: 1.15fr repeat(5, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 22px;
    border-block: 1px solid var(--line-strong);
  }

  .workflow-nav p,
  .workflow-nav a {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 1px solid var(--line);
    padding: 12px 16px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 650;
  }

  .workflow-nav p {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .workflow-nav > :last-child {
    border-right: 0;
  }

  .tool-section,
  .saved-section,
  .method-section {
    scroll-margin-top: calc(var(--header-height) + 20px);
    padding: clamp(56px, 6.5vw, 92px) 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .tool-section__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 38px;
  }

  .tool-section__heading > div {
    display: grid;
    gap: 8px;
  }

  .tool-section__heading > p {
    color: var(--muted);
    font-size: 0.94rem;
  }

  .tool-layout {
    display: grid;
    grid-template-columns: minmax(290px, 0.42fr) minmax(0, 1fr);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    background: var(--surface);
  }

  .tool-form,
  .tool-output {
    padding: clamp(24px, 3vw, 40px);
  }

  .tool-form {
    display: grid;
    align-content: start;
    gap: 12px;
    border-right: 1px solid var(--line-strong);
  }

  .tool-form > label:not(.check-row) {
    margin-top: 7px;
  }

  .tool-form .button {
    margin-top: 12px;
  }

  .tool-output {
    min-height: 300px;
    display: grid;
    align-content: center;
  }

  .method-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(48px, 8vw, 120px);
  }

  .method-section > div:first-child {
    display: grid;
    align-content: start;
    gap: 8px;
  }

  .method-grid {
    display: grid;
    gap: 34px;
  }

  .method-grid article {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
    gap: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .method-grid p {
    color: var(--muted);
  }

  .site-footer {
    min-height: 210px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr) auto;
    align-items: start;
    gap: 44px;
    padding: 52px 0 78px;
  }

  .site-footer > div {
    display: grid;
    gap: 10px;
  }

  .site-footer p {
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.85rem;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    align-content: start;
    gap: 8px 24px;
  }

  .site-footer nav a {
    font-size: 0.88rem;
  }

  .site-footer .footer-meta {
    text-align: right;
    white-space: nowrap;
  }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    transform: translateY(-160%);
    border-radius: 6px;
    background: var(--ink);
    color: white;
    padding: 10px 14px;
    transition: transform 120ms var(--ease);
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    text-decoration: none;
    white-space: nowrap;
  }

  .wordmark__mark {
    width: 29px;
    height: 29px;
    color: var(--accent);
  }

  .wordmark--footer {
    font-size: 1.1rem;
  }

  .tool-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.2vw, 34px);
  }

  .tool-nav a {
    position: relative;
    border-radius: 6px;
    color: var(--muted);
    padding: 7px 4px;
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color 120ms var(--ease), background-color 120ms var(--ease);
  }

  .tool-nav a:hover,
  .tool-nav a[aria-current="page"] {
    background: var(--surface-subtle);
    color: var(--ink);
  }

  .tool-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 2px;
    background: var(--accent);
  }

  .data-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--positive) 22%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--positive-soft) 72%, white);
    color: var(--positive);
    padding: 6px 9px;
    font-size: 0.72rem;
    font-weight: 720;
    white-space: nowrap;
  }

  .data-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--positive);
    box-shadow: 0 0 0 3px var(--positive-soft);
  }

  .data-status[data-state="error"] {
    border-color: color-mix(in srgb, var(--warning) 25%, var(--line));
    background: var(--warning-soft);
    color: var(--warning);
  }

  .data-status[data-state="error"] .data-status__dot {
    background: var(--warning);
    box-shadow: 0 0 0 3px var(--warning-soft);
  }

  .hero__trust-label {
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 780;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .eyebrow,
  .section-kicker {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 780;
    letter-spacing: 0.095em;
    text-transform: uppercase;
  }

  .controls-heading {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .controls-heading > div:first-child {
    display: grid;
    gap: 6px;
  }

  .controls-heading h2 {
    font-size: 1.28rem;
  }

  .year-button {
    min-width: 106px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    padding: 8px 10px;
    text-align: left;
  }

  .year-button:hover {
    border-color: var(--ink);
  }

  .year-button span {
    color: var(--muted);
    font-size: 0.68rem;
  }

  .year-button strong {
    font-family: var(--font-data);
    font-size: 0.88rem;
  }

  .year-menu {
    position: absolute;
    z-index: 15;
    top: 58px;
    right: 0;
    width: 150px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    box-shadow: 0 16px 36px rgb(16 26 38 / 13%);
  }

  .year-menu button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: 10px 12px;
    text-align: left;
  }

  .year-menu button:last-child {
    border-bottom: 0;
  }

  .year-menu button:hover,
  .year-menu button[aria-selected="true"] {
    background: var(--accent-soft);
  }

  .field,
  fieldset.field {
    min-width: 0;
    border: 0;
    padding: 0;
  }

  .field-pair {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }

  .field-pair .field-help {
    margin-top: 5px;
    line-height: 1.35;
  }

  .field > label,
  .field > legend,
  .tool-form > label,
  .tool-form legend {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.79rem;
    font-weight: 710;
    letter-spacing: 0.01em;
  }

  .field-help,
  .field-status {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .field-status:not(:empty) {
    color: var(--accent-dark);
  }

  .field-status[data-state="warning"] {
    color: var(--warning);
  }

  .field-status[data-state="error"] {
    color: var(--danger);
  }

  .combobox {
    position: relative;
  }

  .combobox input {
    min-height: 52px;
    padding-right: 74px;
    padding-left: 42px;
    font-size: 1rem;
  }

  .combobox__icon {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 14px;
    width: 20px;
    color: var(--muted);
    pointer-events: none;
  }

  .combobox__clear {
    position: absolute;
    z-index: 3;
    top: 9px;
    right: 9px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
  }

  .combobox__clear:hover {
    background: var(--surface-subtle);
    color: var(--ink);
  }

  .combobox__busy {
    position: absolute;
    z-index: 3;
    top: 17px;
    right: 18px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 650ms linear infinite;
  }

  .combobox__list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    max-height: 310px;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    box-shadow: 0 18px 40px rgb(16 26 38 / 14%);
  }

  .combobox-option {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: 11px 13px;
    text-align: left;
  }

  .combobox-option:last-child {
    border-bottom: 0;
  }

  .combobox-option:hover,
  .combobox-option[aria-selected="true"] {
    background: var(--accent-soft);
  }

  .combobox-option strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .combobox-option small {
    font-family: var(--font-data);
    font-size: 0.7rem;
  }

  .combobox-option--zip {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .combobox-option--zip::before {
    content: "ZIP";
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    padding: 2px 5px;
    font-family: var(--font-data);
    font-size: 0.62rem;
    font-weight: 700;
  }

  .manual-locality {
    margin-top: 7px;
  }

  .manual-locality summary {
    width: fit-content;
    color: var(--muted);
    font-size: 0.74rem;
  }

  .manual-locality select {
    margin-top: 10px;
  }

  .number-grid {
    display: grid;
    gap: 6px;
  }

  .number-grid--grade {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .number-grid--step {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .number-choice {
    position: relative;
  }

  .number-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .number-choice span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-family: var(--font-data);
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
    transition: border-color 120ms var(--ease), background-color 120ms var(--ease), color 120ms var(--ease), transform 120ms var(--ease);
  }

  .number-choice:hover span {
    border-color: var(--ink);
  }

  .number-choice input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    font-weight: 700;
  }

  .number-choice input:focus-visible + span {
    outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
    outline-offset: 2px;
  }

  .compact-select,
  .compact-select-label {
    display: none;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
  }

  .segmented label {
    position: relative;
    min-width: 0;
  }

  .segmented label + label {
    border-left: 1px solid var(--line);
  }

  .segmented input,
  .mini-segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .segmented span {
    min-height: 52px;
    display: grid;
    align-content: center;
    gap: 1px;
    background: var(--surface);
    padding: 8px 10px;
    text-align: center;
    transition: background-color 120ms var(--ease), color 120ms var(--ease);
  }

  .segmented strong {
    font-size: 0.78rem;
  }

  .segmented small {
    font-size: 0.64rem;
  }

  .segmented label:hover span {
    background: var(--surface-subtle);
  }

  .segmented input:checked + span {
    background: var(--accent-soft);
    box-shadow: inset 0 -3px 0 var(--accent);
    color: var(--accent-dark);
  }

  .segmented input:focus-visible + span,
  .mini-segmented input:focus-visible + span {
    outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
    outline-offset: -3px;
  }

  .special-rate-field {
    border-left: 2px solid var(--accent);
    padding-left: 14px;
  }

  .inline-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .form-error {
    border-left: 3px solid var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    padding: 0.72rem 1rem;
    font-size: 0.83rem;
    font-weight: 720;
    text-decoration: none;
    transition: transform 120ms var(--ease), background-color 120ms var(--ease), border-color 120ms var(--ease), color 120ms var(--ease);
  }

  .button:hover {
    transform: translateY(-1px);
  }

  .button:active {
    transform: translateY(0);
  }

  .button:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
  }

  .button svg {
    width: 19px;
    height: 19px;
  }

  .button--primary {
    background: var(--accent);
    color: white;
  }

  .button--primary:hover {
    background: var(--accent-dark);
    color: white;
  }

  .button--secondary {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
  }

  .button--secondary:hover,
  .button--quiet:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
  }

  .button--quiet {
    border-color: var(--line);
    background: var(--surface-subtle);
    color: var(--ink);
  }

  .calculate-button {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
    padding-inline: 18px;
    font-size: 0.92rem;
    box-shadow: 0 10px 22px -18px var(--accent-dark);
  }

  .result-ledger__loading {
    display: grid;
    gap: 20px;
    padding-top: 12px;
  }

  .loading-line {
    width: 100%;
    height: 16px;
    border-radius: 3px;
    background: var(--surface-subtle);
  }

  .loading-line--short {
    width: 30%;
    height: 10px;
  }

  .loading-line--amount {
    width: 72%;
    height: clamp(54px, 7vw, 82px);
  }

  .result-primary {
    position: relative;
    overflow: hidden;
    margin: -8px -8px 0;
    border-radius: 12px;
    background: var(--ink);
    color: white;
    padding: 26px 28px 18px;
    box-shadow: inset 4px 0 0 var(--accent);
  }

  .result-ledger[data-stale="true"] .result-primary::after {
    content: "Inputs changed — recalculate";
    position: absolute;
    right: 14px;
    bottom: 12px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
    color: #ffe2a6;
    padding: 4px 8px;
    font-size: 0.62rem;
    font-weight: 760;
    letter-spacing: 0.03em;
  }

  .result-ledger[data-stale="true"] .salary-amount {
    opacity: 0.72;
  }

  .result-ledger__topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
  }

  .result-ledger__topline > div:first-child {
    min-width: 0;
    display: grid;
    gap: 7px;
  }

  .salary-amount {
    overflow-wrap: anywhere;
    color: white;
    font-family: var(--font-data);
    font-size: clamp(3rem, 5.1vw, 5.35rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: -0.068em;
    line-height: 0.96;
    transition: opacity 140ms var(--ease);
  }

  .salary-caption {
    margin-top: 8px;
    color: #aebdcd;
    font-size: 0.69rem;
  }

  #resultContent.is-entering .result-primary {
    animation: result-in 240ms var(--ease);
  }

  .result-flags {
    max-width: 210px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .flag {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 999px;
    background: rgb(255 255 255 / 8%);
    padding: 4px 8px;
    color: #d6e0ea;
    font-size: 0.63rem;
    font-weight: 740;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .flag--positive {
    border-color: rgb(120 225 165 / 44%);
    background: rgb(23 104 58 / 32%);
    color: #9ce5b9;
  }

  .flag--warning {
    border-color: rgb(255 206 113 / 46%);
    background: rgb(138 82 0 / 30%);
    color: #ffd58d;
  }

  .result-context {
    margin-top: 18px;
    border-top: 1px solid rgb(255 255 255 / 16%);
    padding: 13px 0 0;
    color: #c4cfdb;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .metric-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    border-block: 1px solid var(--line-strong);
  }

  .metric-ledger > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 12px;
    min-height: 50px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-ledger > div:nth-child(odd) {
    padding-right: 18px;
    border-right: 1px solid var(--line);
  }

  .metric-ledger > div:nth-child(even) {
    padding-left: 18px;
  }

  .metric-ledger > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .metric-ledger dt {
    color: var(--muted);
    font-size: 0.72rem;
  }

  .metric-ledger dd {
    font-family: var(--font-data);
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  .delta-positive {
    color: var(--positive);
  }

  .delta-negative {
    color: var(--danger);
  }

  .result-notice {
    margin-top: 18px;
    border-left: 3px solid var(--warning);
    background: var(--warning-soft);
    padding: 12px 14px;
    color: color-mix(in srgb, var(--warning) 85%, black);
    font-size: 0.8rem;
  }

  .result-notice[data-state="danger"] {
    border-left-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
  }

  .pay-breakdown {
    margin-top: 12px;
    border-block: 1px solid var(--line);
  }

  .pay-breakdown summary {
    padding: 13px 0;
    font-size: 0.78rem;
    font-weight: 720;
  }

  .pay-breakdown__body {
    display: grid;
    gap: 10px;
    padding: 2px 0 16px;
  }

  .breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    color: var(--muted);
    font-size: 0.76rem;
  }

  .breakdown-row strong {
    color: var(--ink);
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
  }

  .result-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .result-actions .button:first-child {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
  }

  .result-actions .button:first-child:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
  }

  .source-line {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.68rem;
    overflow-wrap: anywhere;
  }

  .source-line a {
    color: var(--accent-dark);
  }

  .result-ledger__error {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 14px;
    min-height: 460px;
  }

  .result-ledger__error p:not(.section-kicker) {
    max-width: 54ch;
    color: var(--muted);
  }

  .tool-form fieldset {
    min-width: 0;
    border: 0;
    padding: 0;
  }

  .optional {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
  }

  .input-suffix,
  .input-prefix {
    position: relative;
  }

  .input-suffix input {
    padding-right: 42px;
  }

  .input-prefix input {
    padding-left: 36px;
  }

  .input-suffix > span,
  .input-prefix > span {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-family: var(--font-data);
    font-size: 0.8rem;
    pointer-events: none;
  }

  .input-suffix > span {
    right: 14px;
  }

  .input-prefix > span {
    left: 14px;
  }

  .mini-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
  }

  .mini-segmented label {
    position: relative;
  }

  .mini-segmented label + label {
    border-left: 1px solid var(--line);
  }

  .mini-segmented span {
    min-height: 46px;
    display: grid;
    place-items: center;
    background: var(--surface);
    padding: 8px;
    font-size: 0.76rem;
    text-align: center;
  }

  .mini-segmented input:checked + span {
    background: var(--accent-soft);
    box-shadow: inset 0 -3px 0 var(--accent);
    color: var(--accent-dark);
    font-weight: 700;
  }

  .check-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.8rem;
  }

  .check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
  }

  .tool-output__empty {
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.95rem;
  }

  .output-summary {
    display: grid;
    gap: 18px;
  }

  .output-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-strong);
  }

  .output-hero__amount {
    font-family: var(--font-data);
    font-size: clamp(2rem, 4vw, 4.4rem);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.06em;
    line-height: 1;
  }

  .output-hero__label {
    color: var(--muted);
    font-size: 0.75rem;
  }

  .output-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .output-grid > div {
    display: grid;
    gap: 5px;
    border-right: 1px solid var(--line);
    padding: 14px;
  }

  .output-grid > div:first-child {
    padding-left: 0;
  }

  .output-grid > div:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .output-grid span {
    color: var(--muted);
    font-size: 0.7rem;
  }

  .output-grid strong {
    font-family: var(--font-data);
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
  }

  .comparison-bars {
    display: grid;
    gap: 15px;
  }

  .comparison-bar {
    display: grid;
    grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .comparison-bar__label {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .comparison-bar__meter {
    width: 100%;
    height: 10px;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 2px;
    background: var(--surface-subtle);
  }

  .comparison-bar__meter::-webkit-progress-bar {
    border-radius: 2px;
    background: var(--surface-subtle);
  }

  .comparison-bar__meter::-webkit-progress-value {
    border-radius: 2px;
    background: var(--accent);
  }

  .comparison-bar__meter::-moz-progress-bar {
    border-radius: 2px;
    background: var(--accent);
  }

  .comparison-bar__value {
    font-family: var(--font-data);
    font-size: 0.75rem;
  }

  .output-note {
    border-left: 2px solid var(--line-strong);
    padding-left: 12px;
    color: var(--muted);
    font-size: 0.76rem;
  }

  .table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .data-table,
  .saved-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td,
  .saved-table th,
  .saved-table td {
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
  }

  .data-table th,
  .saved-table th {
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 720;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .data-table td[data-number],
  .saved-table td[data-number] {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  .data-table tr[aria-current="true"] td {
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 700;
  }

  .timeline {
    position: relative;
    display: grid;
    gap: 0;
  }

  .timeline::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 8px;
    width: 1px;
    background: var(--line-strong);
  }

  .timeline-row {
    position: relative;
    display: grid;
    grid-template-columns: 18px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
  }

  .timeline-row:last-child {
    border-bottom: 0;
  }

  .timeline-row__dot {
    z-index: 1;
    width: 9px;
    height: 9px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--line-strong);
    box-shadow: 0 0 0 1px var(--line-strong);
  }

  .timeline-row[aria-current="true"] .timeline-row__dot {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
  }

  .timeline-row__step {
    font-family: var(--font-data);
    font-weight: 700;
  }

  .timeline-row__date {
    color: var(--muted);
    font-size: 0.76rem;
  }

  .timeline-row__rate {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  .text-button {
    width: fit-content;
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    padding: 6px 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .saved-section {
    min-width: 0;
    overflow: hidden;
  }

  .saved-section .tool-section__heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .saved-table button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .legal-dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: min(86vh, 900px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    background: var(--surface);
    color: var(--ink);
    padding: 0;
    box-shadow: 0 32px 80px rgb(16 26 38 / 24%);
  }

  .legal-dialog::backdrop {
    background: rgb(16 26 38 / 55%);
    backdrop-filter: blur(3px);
  }

  .legal-dialog__header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface);
    padding: 22px 24px;
  }

  .legal-dialog__header > div {
    display: grid;
    gap: 6px;
  }

  .legal-dialog__header h2 {
    font-size: 1.8rem;
  }

  .dialog-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
  }

  .dialog-close:hover {
    border-color: var(--ink);
    color: var(--ink);
  }

  .legal-dialog__body {
    max-height: calc(min(86vh, 900px) - 96px);
    overflow-y: auto;
    display: grid;
    gap: 13px;
    padding: 24px;
  }

  .legal-dialog__body h3 {
    margin-top: 14px;
  }

  .legal-dialog__body p {
    color: var(--muted);
    font-size: 0.92rem;
  }

  .toast {
    position: fixed;
    z-index: 80;
    right: 20px;
    bottom: 20px;
    max-width: min(380px, calc(100vw - 40px));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--ink);
    color: white;
    padding: 12px 15px;
    box-shadow: 0 12px 32px rgb(16 26 38 / 24%);
    font-size: 0.82rem;
  }

  .toast[data-state="error"] {
    background: var(--danger);
  }

  .mobile-result-bar {
    display: none;
  }

  .print-footnote {
    display: none;
  }

  .not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .not-found__panel {
    width: min(640px, 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    background: var(--surface);
    padding: clamp(28px, 7vw, 64px);
  }

  .not-found__panel h1 {
    margin-top: 10px;
    font-size: clamp(2.4rem, 8vw, 4.8rem);
  }

  .not-found__panel > p:not(.section-kicker) {
    margin-top: 18px;
    color: var(--muted);
  }

  .not-found__panel .button {
    margin-top: 26px;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes result-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@layer utilities {
  .sr-only {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    border: 0 !important;
    padding: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 861px) {
  .result-ledger {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    align-self: start;
  }
}

@media (max-width: 1120px) {
  :root {
    --page: min(100% - 32px, 1120px);
  }

  .site-header__inner {
    gap: 18px;
  }

  .tool-nav {
    justify-content: start;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tool-nav::-webkit-scrollbar {
    display: none;
  }

  .calculator {
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  }

  .calculator__controls,
  .result-ledger {
    padding: 26px;
  }

  .result-ledger {
    min-height: 560px;
  }

  .number-grid--step {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .workflow-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .workflow-nav p {
    grid-column: 1 / -1;
    min-height: 38px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  :root {
    --page: min(100% - 24px, 760px);
    --header-height: 96px;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: var(--header-height);
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 48px 48px;
  }

  .tool-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    align-self: stretch;
    border-top: 1px solid var(--line);
    padding-right: 28px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }

  .tool-nav a[aria-current="page"]::after {
    bottom: -12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 22px;
  }

  .hero__trust {
    max-width: 70ch;
  }

  .calculator {
    grid-template-columns: 1fr;
  }

  .calculator__controls {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .result-ledger {
    min-height: 500px;
  }

  .salary-amount {
    font-size: clamp(3.1rem, 12vw, 5.4rem);
  }

  .workflow-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-nav a:nth-of-type(4),
  .workflow-nav a:nth-of-type(5) {
    border-top: 1px solid var(--line);
  }

  .tool-section__heading,
  .method-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-form {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .method-grid article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .footer-meta {
    grid-column: 1 / -1;
    text-align: left;
  }

  .mobile-result-bar {
    position: fixed;
    z-index: 45;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 13px;
    background: color-mix(in srgb, var(--ink) 96%, transparent);
    color: white;
    padding: 9px 9px 9px 14px;
    box-shadow: 0 18px 48px rgb(11 23 37 / 35%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-result-bar[data-state="stale"] {
    border-color: rgb(255 213 141 / 44%);
  }

  .mobile-result-bar__summary {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  .mobile-result-bar__summary span {
    overflow: hidden;
    color: #aebdcd;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-result-bar__summary strong {
    font-family: var(--font-data);
    font-size: 1.08rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
  }

  .mobile-result-bar button {
    min-width: 104px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    padding: 8px 12px;
    font-size: 0.74rem;
    font-weight: 760;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100% - 20px);
  }

  body {
    font-size: 15px;
  }

  .site-header__inner {
    gap: 12px;
  }

  .data-status span:last-child {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tool-nav {
    gap: 20px;
  }

  .hero {
    padding: 24px 2px 20px;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
  }

  .calculator {
    margin-inline: -2px;
  }

  .calculator__controls,
  .result-ledger,
  .tool-form,
  .tool-output {
    padding: 19px 16px;
  }

  .calculator__controls {
    gap: 16px;
  }

  .controls-heading {
    align-items: center;
  }

  .controls-heading h2 {
    font-size: 1.25rem;
  }

  .number-grid {
    display: none;
  }

  .compact-select-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.79rem;
    font-weight: 710;
  }

  .compact-select {
    display: block;
  }

  .field--grade > legend,
  .field--step > legend {
    display: none;
  }

  .field-pair--grade-step {
    gap: 10px;
  }

  .field-pair--grade-step .field-help {
    display: none;
  }

  .segmented span {
    min-height: 54px;
    padding-inline: 5px;
  }

  .segmented small {
    display: none;
  }

  .result-ledger {
    min-height: 0;
  }

  .result-primary {
    margin: -3px -3px 0;
    padding: 22px 18px 17px;
  }

  .result-ledger[data-stale="true"] .result-primary::after {
    position: static;
    width: fit-content;
    display: block;
    margin-top: 12px;
  }

  .result-ledger__topline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .result-flags {
    max-width: none;
    justify-content: flex-start;
  }

  .salary-amount {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .metric-ledger {
    grid-template-columns: 1fr;
  }

  .metric-ledger > div:nth-child(odd),
  .metric-ledger > div:nth-child(even) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }

  .metric-ledger > div:last-child {
    border-bottom: 0;
  }

  .result-actions {
    gap: 6px;
  }

  .result-actions .button {
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding-inline: 6px;
    font-size: 0.72rem;
  }

  .workflow-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-nav p {
    grid-column: 1 / -1;
  }

  .workflow-nav a {
    min-height: 54px;
  }

  .workflow-nav a:nth-of-type(3),
  .workflow-nav a:nth-of-type(4),
  .workflow-nav a:nth-of-type(5) {
    border-top: 1px solid var(--line);
  }

  .tool-section,
  .saved-section,
  .method-section {
    padding-block: 56px;
  }

  .tool-section__heading {
    gap: 18px;
    margin-bottom: 24px;
  }

  .tool-output {
    min-height: 260px;
  }

  .output-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .output-grid {
    grid-template-columns: 1fr;
  }

  .output-grid > div,
  .output-grid > div:first-child,
  .output-grid > div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
  }

  .output-grid > div:last-child {
    border-bottom: 0;
  }

  .comparison-bar {
    grid-template-columns: 1fr auto;
  }

  .comparison-bar__meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .timeline-row {
    grid-template-columns: 18px 54px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-row__rate {
    grid-column: 3;
    padding-bottom: 10px;
    text-align: left;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer nav {
    grid-template-columns: 1fr 1fr;
  }

  .legal-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .legal-dialog__body {
    max-height: calc(100vh - 112px);
  }

  .mobile-result-bar {
    right: 8px;
    left: 8px;
    border-radius: 11px;
  }

  .mobile-result-bar button {
    min-width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@layer print {
  @media print {
    :root {
      --paper: #ffffff;
      --surface: #ffffff;
      --ink: #000000;
      --muted: #333333;
      --line: #b5b5b5;
      --line-strong: #777777;
      --page: 100%;
    }

    @page {
      size: letter portrait;
      margin: 0.55in;
    }

    body {
      background: white;
      color: black;
      font-size: 10pt;
    }

    [data-print-hide],
    .calculator__controls,
    .tool-section:not([data-print-active="true"]),
    .saved-section,
    .method-section,
    dialog,
    .toast {
      display: none !important;
    }

    main {
      width: 100%;
    }

    .hero {
      display: block;
      padding: 0 0 20px;
    }

    .hero h1 {
      max-width: none;
      font-size: 24pt;
    }

    .hero__intro,
    .hero__trust {
      display: none;
    }

    .calculator {
      display: block;
      border: 1px solid #777;
    }

    .result-ledger {
      min-height: 0;
      padding: 24px;
      background: white;
    }

    .result-primary {
      margin: 0;
      border-radius: 0;
      background: white;
      color: black;
      padding: 0 0 18px;
      box-shadow: none;
    }

    .result-context,
    .salary-caption {
      color: #333;
    }

    .result-context {
      border-top-color: #999;
    }

    .salary-amount {
      color: black;
      font-size: 34pt;
    }

    .flag,
    .flag--positive,
    .flag--warning {
      border-color: #777;
      background: white;
      color: black;
    }

    .result-actions {
      display: none;
    }

    .pay-breakdown {
      break-inside: avoid;
    }

    .tool-section[data-print-active="true"] {
      display: block !important;
      padding: 28px 0 0;
      border-bottom: 0;
      break-before: page;
    }

    .tool-layout {
      display: block;
      border: 0;
    }

    .tool-form {
      display: none;
    }

    .tool-output {
      min-height: 0;
      padding: 0;
    }

    a[href]::after {
      content: " (" attr(href) ")";
      font-size: 8pt;
      font-weight: normal;
      overflow-wrap: anywhere;
    }

    .source-line a[href]::after {
      content: "";
    }

    .print-footnote {
      display: block;
      margin-top: 24px;
      border-top: 1px solid #777;
      padding-top: 8px;
      color: #333;
      font-size: 8pt;
    }
  }
}
