:root {
  --bg: #f6f5ff;
  --bg2: #ecebff;
  --card: #ffffff;
  --ink: #16132b;
  --muted: #5d5a78;
  --line: #e2e0f3;
  --brand: #4f3df0;
  --brand2: #7c5cff;
  --sun: #ffb020;
  --a14: #10a35a; --a14bg: #dcf7e8;
  --a15: #0b8f9c; --a15bg: #d8f4f6;
  --a16: #3d63e0; --a16bg: #e1e8ff;
  --a18: #6b6889; --a18bg: #ecebf3;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(22, 19, 43, .05), 0 12px 32px rgba(40, 30, 120, .09);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0b24;
    --bg2: #171236;
    --card: #1a1540;
    --ink: #eceaff;
    --muted: #a7a3c8;
    --line: #2c2660;
    --brand: #a497ff;
    --brand2: #c2b8ff;
    --a14: #5fe0a0; --a14bg: #11352a;
    --a15: #5fd8e3; --a15bg: #0f3238;
    --a16: #9db4ff; --a16bg: #1c2a5c;
    --a18: #b9b6d6; --a18bg: #2a2650;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 18px; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.01em; margin: 40px 0 12px; }
.h { margin-top: 0; }
.meta { color: var(--muted); font-size: 14.5px; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }

/* Header & footer */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
nav.site { display: flex; gap: 16px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
nav.site a:hover { color: var(--brand); }
@media (max-width: 420px) { nav.site a:nth-child(2) { display: none; } }
footer.site { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; }
footer .links a { color: var(--muted); text-decoration: none; }
footer .links a:hover { color: var(--brand); }

/* Hero */
.hero { position: relative; padding: 22px 0 6px; overflow: hidden; }
.hero.home { padding: 48px 0 24px; }
.hero .wrap { position: relative; z-index: 1; }
.crumbs { font-size: 14.5px; color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); }
.blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 360px; height: 360px; background: #b6a8ff; top: -120px; right: -80px; }
.blobs i:nth-child(2) { width: 280px; height: 280px; background: #7ff0c0; bottom: -140px; left: -60px; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 220px; height: 220px; background: #ffd27a; top: 40%; left: 55%; animation-delay: -11s; }
@media (prefers-color-scheme: dark) { .blobs i { opacity: .22; } }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.15); } }

/* Rotating employer names in the home headline */
.rot { display: grid; color: var(--brand); }
.rot > span { grid-area: 1 / 1; white-space: nowrap; }
html.js .rot > span { opacity: 0; transform: translateY(.4em); transition: opacity .45s, transform .45s; }
html.js .rot > span.on { opacity: 1; transform: none; }
html:not(.js) .rot > span:not(:first-child) { display: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.now { display: flex; gap: 22px; align-items: center; padding: 20px; }
.now .lead { font-size: 18.5px; margin: 0 0 12px; }
.dials { display: flex; gap: 10px; align-items: center; flex: none; }
@media (max-width: 600px) { .now { flex-direction: column; align-items: stretch; text-align: left; } .dials { justify-content: center; } }

/* Age dial */
.dial { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--c); }
.dial .ring { position: relative; width: 124px; height: 124px; display: grid; place-items: center; }
.dial.small .ring { width: 88px; height: 88px; }
.dial svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 10; }
.dial .trk { stroke: var(--cbg); }
.dial .arc { stroke: var(--c); stroke-linecap: round; stroke-dasharray: var(--p) 100; transition: stroke-dasharray 1.2s cubic-bezier(.2, .8, .2, 1); }
html.js .dial:not(.in) .arc { stroke-dasharray: 0 100; }
.dial strong { font-size: 52px; line-height: 1; font-weight: 850; letter-spacing: -.04em; }
.dial.small strong { font-size: 34px; }
.dial > span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.a-14 { --c: var(--a14); --cbg: var(--a14bg); }
.a-15 { --c: var(--a15); --cbg: var(--a15bg); }
.a-16 { --c: var(--a16); --cbg: var(--a16bg); }
.a-18, .a-x { --c: var(--a18); --cbg: var(--a18bg); }

.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 15px; background: var(--cbg); color: var(--c); text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--bg2); color: var(--muted); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conf-high { background: var(--a14bg); color: var(--a14); }
.conf-medium { background: var(--a16bg); color: var(--a16); }
.conf-low { background: #fff1d6; color: #9a5b00; }
@media (prefers-color-scheme: dark) { .conf-low { background: #3a2a0c; color: #ffc768; } }

/* State picker */
.picker { margin-top: 14px; padding: 16px 20px; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.picker label { font-weight: 700; }
.picker select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.pick-out { grid-column: 1 / -1; }
.pick-out:empty { display: none; }
.pick-out .res { display: flex; gap: 14px; align-items: flex-start; animation: pop .35s ease-out; }
.pick-out .big { font-size: 34px; font-weight: 850; line-height: 1; padding: 10px 14px; border-radius: 16px; background: var(--cbg); color: var(--c); }
.pick-out p { margin: 0 0 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
html:not(.js) .picker { display: none; }

.answer { padding: 20px; margin-top: 26px; }
.answer p:last-child { margin-bottom: 0; }

/* Lists */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.bcard .pill { grid-row: 1 / 3; }
.bcard strong { font-size: 16.5px; line-height: 1.25; }
.bcard .sub { color: var(--muted); font-size: 13.5px; }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(60, 40, 180, .16); }
.states { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.states a { display: block; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.states a:hover { border-color: var(--brand); }
.states span { display: block; color: var(--muted); font-size: 13px; }
.agetabs { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; color: var(--muted); font-weight: 600; }
.agetabs .pill { min-width: 52px; padding: 6px 14px; font-size: 17px; transition: transform .15s; }
.agetabs .pill:hover, .agetabs .pill.on { transform: scale(1.08); box-shadow: 0 0 0 2px var(--c); }

/* Search */
.search { position: relative; margin-top: 22px; padding: 6px; }
.search input { width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; border: 0; background: transparent; color: var(--ink); outline: none; }
.results { list-style: none; margin: 0; padding: 6px; border-top: 1px solid var(--line); max-height: 340px; overflow: auto; }
.results a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.results a:hover, .results a.sel { background: var(--bg2); }

/* Tables */
.tablewrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg2); }
table.sortable th { cursor: pointer; user-select: none; }
.ev { font-size: 12.5px; font-weight: 700; color: var(--a14); white-space: nowrap; }
.why { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pay strong { font-size: 26px; }

.btn { display: inline-block; padding: 12px 20px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(79, 61, 240, .3); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .btn { color: #120d33; } }
.perks { padding-left: 20px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--muted); }

.sources { padding-left: 22px; font-size: 15px; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; border-left: 3px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 14px 18px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); }
.timeline time { font-weight: 700; font-size: 14.5px; }
.timeline p { margin: 2px 0 0; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }

/* Reveal on scroll */
html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rv { opacity: 1; transform: none; }
}

/* US map */
.usmap { margin: 0 0 14px; padding: 14px; position: relative; }
.usmap svg { display: block; width: 100%; height: auto; }
.usmap .st path, .usmap .st circle { stroke: var(--card); stroke-width: 1.2; transition: filter .15s, opacity .4s; }
.usmap .st:hover path, .usmap .st:hover circle, .usmap .st:focus path { filter: brightness(1.12) saturate(1.2); }
.usmap .cur path, .usmap .cur circle { stroke: var(--ink); stroke-width: 2.5; }
.m-none { fill: var(--a14); } .m-u16 { fill: var(--a15); } .m-u18 { fill: var(--a16); } .m-16 { fill: var(--a18); }
.m-a14 { fill: var(--a14); } .m-a15 { fill: var(--a15); } .m-a16, .m-a17 { fill: var(--a16); } .m-a18, .m-x { fill: var(--a18); }
.usmap .st.ev path { stroke: #ffd36a; stroke-width: 2.4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend i.m-none, .legend i.m-a14 { background: var(--a14); } .legend i.m-u16, .legend i.m-a15 { background: var(--a15); }
.legend i.m-u18, .legend i.m-a16, .legend i.m-a17 { background: var(--a16); } .legend i.m-16, .legend i.m-a18, .legend i.m-x { background: var(--a18); }
.legend i.m-ev { background: transparent; border: 2.5px solid #ffd36a; }
.maptip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -120%); z-index: 2; }

/* Category icons */
.ico { width: 24px; height: 24px; flex: none; }
.bcard { grid-template-columns: auto 1fr auto; }
.bcard .bico { grid-column: 3; grid-row: 1 / 3; color: var(--muted); opacity: .45; width: 22px; height: 22px; }
.bcard:hover .bico { opacity: .9; color: var(--brand); }
.cath { display: flex; align-items: center; gap: 10px; }
.cath .cico { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: var(--bg2); color: var(--brand); }

/* Age ladder */
.ladder { padding: 22px 22px 16px; margin: 0 0 14px; }
.track { position: relative; height: 10px; border-radius: 99px; background: var(--bg2); margin: 18px 12px 34px; }
.track .fill { position: absolute; left: var(--from); right: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--a14), var(--a15), var(--a16)); transform-origin: left; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
html.js .ladder:not(.in) .fill { transform: scaleX(0); }
.tick { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.tick.on { border-color: var(--c); background: var(--c); box-shadow: 0 0 0 5px var(--cbg); }
.tick span { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 14px; color: var(--muted); }
.tick.on span { color: var(--c); }
.rungs { display: grid; gap: 8px; }
.rung { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: var(--cbg); }
.rung strong { color: var(--c); min-width: 32px; font-size: 17px; }
.rung span { font-size: 15px; }
details.more { margin-top: 6px; }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 6px 0 10px; }

/* Home badge illustration */
.hero.home .wrap { padding-right: 0; }
.badge-ill { position: absolute; right: max(16px, calc(50% - 600px)); top: 20px; width: 210px; z-index: 0; filter: drop-shadow(0 20px 40px rgba(60, 40, 200, .35)); }
.badge-ill .swing { transform-origin: 130px 0; animation: swing 4.5s ease-in-out infinite; }
.badge-arc { stroke-dasharray: 83 100; animation: arc 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes arc { from { stroke-dasharray: 0 100; } }
@media (max-width: 1100px) { .badge-ill { opacity: .18; width: 170px; right: -20px; top: 0; } }
@media (min-width: 1101px) { .hero.home h1, .hero.home .lede { max-width: 640px; } }

/* Job-alert sign-up */
.alert { padding: 20px; margin: 34px 0 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--card)), var(--card)); }
.alert-head { display: flex; gap: 14px; align-items: flex-start; }
.alert-head h2 { font-size: 20px; margin-bottom: 2px; }
.alert-head p { margin: 0 0 14px; }
.aico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand); color: #fff; }
.alert-row { display: grid; grid-template-columns: 1fr 100px 86px auto; gap: 10px; align-items: end; }
.alert label span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.alert input, .alert select { width: 100%; font: inherit; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.alert .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }
.alert .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.alert-msg { margin: 10px 0 0; font-weight: 600; }
.alert-msg:empty { display: none; }
.alert-msg.ok { color: var(--a14); } .alert-msg.err { color: #e5484d; }
.alert .small { font-size: 13px; margin: 8px 0 0; }
.alert.done .alert-row { display: none; }
@media (max-width: 600px) { .alert-row { grid-template-columns: 1fr 1fr; } .alert-row label:first-child, .alert .btn { grid-column: 1 / -1; } }
