@font-face {
    font-family: "DM Sans";
    src: url("fonts/dm-sans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #172940;
    --muted: #4a5b6d;
    --paper: #f4f6f9;
    --accent: #224e73;
    --wage-accent: #9c3928;
    --line: #cdd9e5;
    --tint: #e6edf5;
    --surface: #fff;
    --night: #16283d;
    --highlight: #c9e0f3;
    --on-dark: #f6f9fc;
    --brand-gold: #866219;
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: var(--accent); text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin-block: 0; }

.shell { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    position: absolute;
    z-index: 2;
    inset: .75rem auto auto 1rem;
    padding: .625rem .9rem;
    background: var(--surface);
}

.site-header { background: #e2f0fb; border-bottom: 1px solid #bbd4e9; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem clamp(.85rem, 2vw, 2rem); min-height: 4.35rem; }
.brand {
    color: var(--night);
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.4rem;
    font-weight: 750;
    letter-spacing: -.04em;
    text-decoration: none;
}
.brand-name { position: relative; }
.brand-name > span { color: var(--brand-gold); }
.brand-name::after {
    content: "";
    position: absolute;
    inset: auto 3% -.27rem 1%;
    height: .54rem;
    background: #dca41c;
    clip-path: polygon(0 46%, 3% 31%, 14% 20%, 30% 13%, 48% 12%, 66% 19%, 83% 31%, 96% 48%,
        100% 64%, 99% 79%, 96% 80%, 87% 67%, 69% 55%, 51% 47%, 31% 46%, 15% 51%, 4% 64%, 1% 61%);
    pointer-events: none;
}
.brand-mark {
    display: grid;
    place-items: center;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    position: relative;
    border: 1px solid #8ba9c2;
    border-radius: .55rem;
    background: linear-gradient(145deg, #f1f8fe, #bed8ed 76%);
    box-shadow: 0 2px 4px #17294024, inset 0 0 0 1px #ffffffa0;
    transform: rotate(-8deg);
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid transparent;
    border-top-color: var(--brand-gold);
    border-right-color: var(--brand-gold);
    border-radius: .34rem;
    pointer-events: none;
}
.brand-mark i {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--night);
    clip-path: polygon(0 20%, 28% 10%, 28% 44%, 72% 28%, 72% 10%, 100% 0,
        100% 80%, 72% 90%, 72% 54%, 28% 70%, 28% 90%, 0 100%);
    transform: rotate(8deg);
}
.header-menu {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: .55rem;
    padding-inline: .77rem;
    border: 1px solid #a8c3db;
    border-radius: .55rem;
    background: #f2f8fd;
    color: var(--night);
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
}
.header-menu:is(:hover, [aria-expanded="true"]) { background: #c9e1f4; }
.header-menu__icon {
    display: grid;
    place-items: center;
    width: 1rem;
    height: .75rem;
    border-block: 2px solid currentColor;
}
.header-menu__icon::before {
    content: "";
    width: 100%;
    height: 2px;
    background: currentColor;
}
.header-menu[aria-expanded="true"] .header-menu__icon { border-color: transparent; }
.header-menu[aria-expanded="true"] .header-menu__icon::before,
.header-menu[aria-expanded="true"] .header-menu__icon::after {
    content: "";
    grid-area: 1 / 1;
    width: 100%;
    height: 2px;
    background: currentColor;
}
.header-menu[aria-expanded="true"] .header-menu__icon::before { transform: rotate(45deg); }
.header-menu[aria-expanded="true"] .header-menu__icon::after { transform: rotate(-45deg); }
.site-header nav { display: flex; gap: .25rem .35rem; align-items: center; flex-wrap: wrap; }
.site-header nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .4rem .6rem;
    color: #29445e;
    font-size: .95rem;
    line-height: 1.25;
    font-weight: 575;
    text-decoration: none;
    border-radius: .55rem;
}
.site-header nav a:is(:hover, [aria-current], .active-section) { background: #c9e1f4; color: var(--night); }
.site-header nav a:is([aria-current], .active-section) { font-weight: 700; }
.pay-check :focus-visible { outline-color: var(--highlight); }

.hero { padding-block: clamp(2.1rem, 6vw, 4.7rem) 1.9rem; }
h1, h2 { font-weight: 700; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.45rem, 7.4vw, 5rem); line-height: 1.08; }
.hero--long h1 { max-width: 64rem; font-size: clamp(2rem, 5.5vw, 3.65rem); overflow-wrap: anywhere; }
h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; }
.job-band { margin-top: .7rem; line-height: 1.55; }
.job-band strong { white-space: nowrap; }
.intro { max-width: 47rem; margin-top: 1rem; color: var(--muted); line-height: 1.55; font-size: clamp(1rem, 2.3vw, 1.2rem); }
.vintage { display: flex; flex-wrap: wrap; gap: .22rem .38rem; margin-top: 1rem; font-size: .78rem; color: var(--muted); }
.vintage span:not([aria-hidden]) { color: var(--ink); font-weight: 700; }

.home-hero {
    margin-block: clamp(1rem, 3.8vw, 2.35rem) 1.25rem;
    border-radius: .85rem;
    border: 1px solid var(--line);
    background: var(--surface);
}
.home-hero__banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1.1rem;
    padding: .85rem clamp(1rem, 3.5vw, 2rem);
    border-radius: .77rem .77rem 0 0;
    background: var(--night);
    color: var(--on-dark);
}
.home-hero h1 { font-size: clamp(1.45rem, 3vw, 2.125rem); line-height: 1.15; }
.home-hero__banner p { margin-top: .35rem; color: #dce6f0; font-size: .95rem; line-height: 1.45; }
.home-hero__banner .hero-sources { margin-top: .45rem; font-size: .76rem; }
.hero-sources strong { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.home-hero__mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
    .home-hero__touch { display: none; }
    .home-hero__mouse { display: inline; }
}
.home-hero__banner .home-hero__map-prompt { color: var(--on-dark); font-weight: 650; }
.home-hero__wallet { display: flex; align-items: center; flex: 0 0 auto; }
.home-hero__wallet img { width: 4rem; height: auto; }
.home-hero__wallet p {
    margin: 0;
    padding: .32rem .65rem;
    border-radius: .55rem;
    background: var(--highlight);
    color: var(--night);
    font-size: .85rem;
    font-weight: 600;
}
.wage-trend-link {
    display: grid;
    grid-template-columns: clamp(3.75rem, 10vw, 6.5rem) minmax(0, 1fr) auto;
    align-items: center;
    gap: .3rem clamp(.4rem, 2vw, 1.3rem);
    margin: 0 0 1.25rem;
    padding: .4rem clamp(.65rem, 2.6vw, 1.4rem) .55rem;
    border: 1px solid #bdcfe0;
    border-radius: .85rem;
    background: #e2f0fb;
    color: var(--ink);
    text-decoration: none;
}
.wage-trend-link--no-image { grid-template-columns: minmax(0, 1fr) auto; }
.metrics + .wage-trend-link, .state-history .wage-trend-link { margin-top: .85rem; }
.wage-trend-link:hover { border-color: var(--accent); }
.wage-trend-link > img { display: block; width: 100%; height: auto; }
.wage-trend-link :is(h2, h3) { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.wage-trend-link p { margin-top: .15rem; line-height: 1.4; }
.wage-trend-link strong span { color: var(--wage-accent); font-variant-numeric: tabular-nums; }
.wage-trend-link__quip { color: var(--muted); font-size: .93rem; }
.wage-trend-link__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    min-height: 2.75rem;
    padding: .4rem .75rem;
    border-radius: .5rem;
    background: var(--accent);
    color: var(--on-dark);
    font-size: .92rem;
    font-weight: 700;
}
.wage-trend-link:hover .wage-trend-link__cta { background: var(--night); }
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 2.75rem;
    border: 0;
    border-radius: .42rem;
    padding: .55rem .94rem;
    background: var(--highlight);
    color: var(--night);
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.action-button:hover { background: #dcebf7; }

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0;
    padding: .6rem 0;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: var(--surface);
}
.metric { padding: .72rem clamp(.9rem, 3vw, 1.8rem); min-width: 0; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric dt { font-size: .82rem; font-weight: 700; color: var(--muted); }
.metric dd {
    margin: .17rem 0 0;
    color: var(--wage-accent);
    font-size: clamp(1.7rem, 4.25vw, 2.85rem);
    line-height: 1.18;
    letter-spacing: -.05em;
    font-weight: 710;
    font-variant-numeric: tabular-nums;
}
.metric .unit { margin-left: .22rem; font-size: .46em; letter-spacing: 0; color: var(--muted); font-weight: 600; white-space: nowrap; }
.metric .metric-note { margin-top: .35rem; color: var(--muted); font-size: .85rem; letter-spacing: 0; font-weight: 500; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.25rem; }
.feature-card {
    display: grid;
    grid-template-columns: .85fr 1fr;
    grid-template-rows: 1fr;
    min-height: 11rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: .7rem;
    color: var(--ink);
    background: var(--tint);
    text-decoration: none;
}
.feature-card--compare { background: var(--surface); }
.feature-card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.feature-card--states img { object-position: 53% center; }
.feature-card--compare img { object-position: 67% center; }
.feature-card__body { padding: clamp(.9rem, 2.4vw, 1.6rem); align-self: center; }
.feature-card h2 { font-size: clamp(1.2rem, 2.35vw, 1.75rem); line-height: 1.1; letter-spacing: -.04em; }
.feature-card p { margin-top: .45rem; line-height: 1.42; color: var(--muted); font-size: .9rem; }
.feature-card__link { display: block; margin-top: .7rem; color: var(--accent); font-size: .9rem; font-weight: 750; }
.feature-card:hover .feature-card__link { text-decoration: underline; text-underline-offset: .18em; }

.banner-slot {
    display: grid;
    place-items: center;
    min-height: 5rem;
    border: 1px dashed #91a2b4;
    border-radius: .5rem;
    padding: .85rem;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    font-size: .85rem;
    font-weight: 650;
}
.banner-slot--inline { margin-top: 1.25rem; }
.banner-slot--rail { display: none; }
.banner-slot--inline + .rankings { margin-top: 1.65rem; }
@media (min-width: 66rem) {
    .rankings-layout--rail {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 14rem;
        align-items: start;
        gap: 1.25rem;
    }
    .banner-slot--rail { display: grid; min-height: 18rem; margin-top: .85rem; }
}

.rankings { margin-block: 2.25rem 4rem; }
.table-intro { margin-top: .55rem; color: var(--muted); line-height: 1.5; }
.table-panel { min-width: 0; }
.table-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin: .85rem 0; }
.search {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: min(100%, 24rem);
    padding: .25rem .65rem;
    border: 1px solid #899caf;
    border-radius: .22rem;
    background: var(--surface);
    color: var(--muted);
}
.search input { min-width: 0; width: 100%; min-height: 2.2rem; font: inherit; color: var(--ink); border: 0; background: transparent; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search input:focus { outline: none; }
.result-count, .table-note { color: var(--muted); font-size: .85rem; }
.table-swipe { display: none; color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: .55rem; }
.table-swipe span { color: var(--accent); font-weight: 750; }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); margin-top: .8rem; background: var(--surface); }
table { width: 100%; min-width: 44rem; border-collapse: collapse; table-layout: fixed; }
table th, table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: right; }
table tbody tr:last-child > * { border-bottom: 0; }
table td, table tbody th { font-variant-numeric: tabular-nums; }
.col-name, .col-rank { text-align: left; }
table thead { background: var(--tint); }
table thead th { font-size: .8rem; color: var(--muted); vertical-align: middle; }
.col-rank, .col-adjusted-rank { width: 4.65rem; }
.col-name { width: 33%; overflow-wrap: anywhere; }
.col-hourly { font-weight: 700; }
.col-adjusted { background: #eef4fa; color: var(--accent); font-weight: 690; }
thead .col-adjusted { background: #d8e6f3; }
tbody .col-rank { color: var(--muted); }
tbody .col-name { font-weight: 600; }
tbody tr:hover { background: var(--paper); }
tbody tr[data-empty] td { text-align: left; }
.sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    gap: .22rem;
    max-width: 100%;
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}
.col-name .sort-button, .col-rank .sort-button { justify-content: start; }
.sort-arrow::after { content: "↕"; opacity: .72; }
[aria-sort="ascending"] .sort-arrow::after { content: "↑"; opacity: 1; }
[aria-sort="descending"] .sort-arrow::after { content: "↓"; opacity: 1; }
.empty-value { color: var(--muted); }
.table-note { margin-top: .8rem; line-height: 1.55; }
.rankings:has(+ .pay-check) { margin-bottom: 2.75rem; }

.pay-check {
    margin-block: 2.75rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-radius: .9rem;
    color: var(--on-dark);
    background: var(--night);
    scroll-margin-top: 1rem;
}
.pay-check__intro { margin-top: .62rem; max-width: 50rem; color: #e7e9f2; line-height: 1.55; }
.pay-check__intro a { color: var(--highlight); }
.pay-fields {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1fr;
    gap: .8rem;
    margin-block: 1.1rem .85rem;
}
.pay-field { min-width: 0; }
.pay-field label { display: block; font-size: .86rem; font-weight: 650; }
.pay-fields select, .pay-fields input {
    display: block;
    width: 100%;
    min-height: 2.8rem;
    margin-top: .38rem;
    padding: .5rem .55rem;
    border: 1px solid #aab6d2;
    border-radius: .3rem;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}
.pay-result { margin-top: 1rem; padding: 1rem; border-radius: .45rem; background: #263e58; line-height: 1.5; }
.pay-result strong { color: var(--highlight); font-size: 1.18rem; }
.pay-result__rates {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.2rem;
    margin: .55rem 0;
}
.pay-result__rates dt { font-size: .86rem; color: var(--highlight); }
.pay-result__rates dd { margin: 0; font-weight: 700; }
.pay-result__links { display: flex; flex-wrap: wrap; gap: .25rem 1.15rem; }
.pay-result__links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--on-dark); }

.occupation-index { margin-block: 0 4rem; scroll-margin-top: 1.25rem; }
.occupation-index h2 { margin-bottom: .85rem; }
.occupation-index details { border-block-start: 1px solid var(--line); }
.occupation-index details:last-child { border-block-end: 1px solid var(--line); }
.occupation-index summary { padding: .8rem .25rem; font-weight: 650; cursor: pointer; }
.category-count { margin-left: .3rem; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.occupation-index ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
    gap: .55rem 2rem;
    margin: .12rem 0 1.15rem;
    padding-left: 1.45rem;
}
.occupation-index li { line-height: 1.4; overflow-wrap: anywhere; }

.method { max-width: 48rem; margin-block: .2rem 4rem; line-height: 1.65; }
.method section { border-top: 1px solid var(--line); padding-block: 1.4rem; }
.method h2 + p, .method p + p { margin-top: .8rem; }
.sources { margin: 1rem 0 0; display: grid; gap: 1rem; }
.sources dt { color: var(--accent); font-weight: 750; }
.sources dd { margin: .3rem 0 0; }
.calculation { border-left: 3px solid var(--accent); padding: 1rem 1.2rem; margin-block: 1rem; background: var(--tint); }
.calculation p:first-child { font-size: 1.25rem; font-weight: 680; }
.calculation p + p { font-variant-numeric: tabular-nums; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1.5rem;
    min-height: 4rem;
    padding-block: 1rem;
    font-size: .85rem;
    color: var(--muted);
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

@media (48rem < width <= 54rem) {
    .site-header nav a { padding-inline: .36rem; }
}

@media (max-width: 48rem) {
    .header-inner { flex-wrap: wrap; min-height: 3.65rem; padding-block: .45rem; gap: .4rem 1rem; }
    .site-header nav {
        display: grid;
        width: 100%;
        gap: .15rem;
        padding-block: .4rem .15rem;
        border-top: 1px solid #bbd4e9;
    }
    .site-header nav a { padding-inline: .75rem; }
}

@media (max-width: 43rem) {
    .shell { width: calc(100% - 1.5rem); }
    .hero { padding-bottom: 1.35rem; }
    .home-hero__banner { padding: .72rem .85rem; flex-wrap: wrap; gap: .2rem; }
    .home-hero__banner p { font-size: .93rem; }
    .home-hero__wallet img { width: 2.7rem; }
    .home-hero__wallet p { font-size: .8rem; }
    .wage-trend-link { grid-template-columns: 3.75rem minmax(0, 1fr); padding-block: .65rem; }
    .wage-trend-link--no-image { grid-template-columns: minmax(0, 1fr); }
    .wage-trend-link__cta { grid-column: 1 / -1; margin-top: .35rem; }
    .feature-grid { grid-template-columns: 1fr; gap: .8rem; }
    .feature-card { min-height: 9rem; grid-template-columns: .68fr 1fr; }
    .banner-slot--inline { min-height: 4.5rem; }
    .pay-fields { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .metric { padding: .65rem .8rem; }
    .metric:first-child { grid-column: span 2; border-bottom: 1px solid var(--line); }
    .metric:nth-child(2) { border-left: 0; }
    .metric:first-child dd:not(.metric-note) { font-size: 2.2rem; }
    .metric dt { font-size: .76rem; }
    .metric .metric-note { font-size: .77rem; }
    .rankings { margin-top: 1.6rem; }
    .search { width: 100%; }
    .search input { min-height: 2.45rem; }
    .table-scroll {
        --rank-mobile-width: 3.65rem;
        margin-top: .55rem;
        overscroll-behavior-inline: contain;
    }
    table { min-width: 32.5rem; font-size: .87rem; border-collapse: separate; border-spacing: 0; }
    .table-scroll--ranked table { min-width: 27.5rem; }
    table th, table td { padding: .58rem .47rem; }
    table thead th { font-size: .76rem; overflow-wrap: anywhere; }
    table thead .sort-button { min-height: 2.5rem; width: 100%; }
    .col-adjusted-rank { width: 4.25rem; }
    .col-rank { width: var(--rank-mobile-width); }
    .col-name { width: 8rem; }
    .table-scroll--ranked .col-name { width: 6.8rem; }
    .col-hourly { width: 5.15rem; }
    .col-adjusted { width: 6rem; }
    .col-annual { width: 6.5rem; }
    .table-scroll .col-name,
    .table-scroll--ranked .col-rank {
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: var(--surface);
    }
    .table-scroll .col-name { box-shadow: 1px 0 var(--line); }
    .table-scroll--ranked .col-name { left: var(--rank-mobile-width); }
    .table-scroll thead :is(.col-name, .col-rank) { background-color: var(--tint); }
    .table-scroll tbody tr:hover :is(.col-name, .col-rank) { background-color: var(--paper); }
}

@media (max-width: 34.125rem) {
    .table-swipe:not(.table-swipe--ranked) { display: block; }
}

@media (max-width: 29.125rem) {
    .table-swipe--ranked { display: block; }
}

@media (max-width: 22.5rem) {
    .table-scroll { --rank-mobile-width: 3.2rem; }
    .table-scroll--ranked table { min-width: 24.5rem; }
    .col-rank { padding-inline: .32rem; }
    .col-rank .sort-button { gap: .1rem; }
    .col-name { width: 6.45rem; }
    .table-scroll--ranked .col-name { width: 5.3rem; }
    .col-hourly { width: 4.7rem; }
    .col-adjusted { width: 5.4rem; }
}
