/* =========================================================================
   CyberJob — "Security console" design system
   Geist + Geist Mono · near-black / off-white · one signal green
   ========================================================================= */

@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Geist Mono";
    src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
    color-scheme: light;
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --bg: #fafaf9;
    --bg2: #f2f2ef;
    --card: #ffffff;
    --fg: #0b0c0c;
    --fg2: #45494b;
    --fg3: #676c6f;
    --line: #e5e5e1;
    --line2: #d2d2cd;
    --grid: rgba(11, 12, 12, 0.055);
    --acc: #0b7a3b;
    --acc-bg: #e3f4e8;
    --acc-fg: #06592b;
    --btn: #0b0c0c;
    --btn-fg: #fafaf9;
    --amb-bg: #fdf4dc;
    --amb-fg: #704400;
    --amb-line: #e6c873;
    --scrim: rgba(11, 12, 12, 0.28);
    --shadow: 0 24px 64px -28px rgba(11, 12, 12, 0.3);
    --av-l: 0.93;
    --av-c: 0.045;
    --av-fl: 0.4;
    --av-fc: 0.09;

    --hdr-h: 64px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a0b0b;
    --bg2: #131515;
    --card: #0f1111;
    --fg: #ececea;
    --fg2: #a8acaa;
    --fg3: #878c89;
    --line: #1e2121;
    --line2: #2d3131;
    --grid: rgba(236, 236, 234, 0.045);
    --acc: #3ddc7e;
    --acc-bg: #0c2617;
    --acc-fg: #62e99a;
    --btn: #ececea;
    --btn-fg: #0a0b0b;
    --amb-bg: #251b06;
    --amb-fg: #f2c35b;
    --amb-line: #5a4416;
    --scrim: rgba(0, 0, 0, 0.62);
    --shadow: 0 0 0 1px #2d3131, 0 24px 64px -24px rgba(0, 0, 0, 0.8);
    --av-l: 0.31;
    --av-c: 0.05;
    --av-fl: 0.87;
    --av-fc: 0.08;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0a0b0b;
        --bg2: #131515;
        --card: #0f1111;
        --fg: #ececea;
        --fg2: #a8acaa;
        --fg3: #878c89;
        --line: #1e2121;
        --line2: #2d3131;
        --grid: rgba(236, 236, 234, 0.045);
        --acc: #3ddc7e;
        --acc-bg: #0c2617;
        --acc-fg: #62e99a;
        --btn: #ececea;
        --btn-fg: #0a0b0b;
        --amb-bg: #251b06;
        --amb-fg: #f2c35b;
        --amb-line: #5a4416;
        --scrim: rgba(0, 0, 0, 0.62);
        --shadow: 0 0 0 1px #2d3131, 0 24px 64px -24px rgba(0, 0, 0, 0.8);
        --av-l: 0.31;
        --av-c: 0.05;
        --av-fl: 0.87;
        --av-fc: 0.08;
    }
}

/* ------------------------------------------------------------------ base */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--hdr-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::placeholder { color: var(--fg3); opacity: 1; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: var(--acc); color: var(--btn-fg); }

.wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}
.wrap--narrow { max-width: 1200px; }

.mono { font-family: var(--mono); }
.muted { color: var(--fg3); }
.label {
    margin: 0;
    color: var(--fg3);
    font: 500 11px/1.2 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.display {
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
.h2 .dim { color: var(--fg3); font-weight: 500; }
.h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.lede {
    max-width: 560px;
    color: var(--fg2);
    font-size: 18px;
    line-height: 1.55;
    text-wrap: pretty;
}

.icon {
    width: 16px;
    height: 16px;
    flex: none;
}

.only-narrow { display: none; }
@media (max-width: 820px) {
    .only-wide { display: none; }
    .only-narrow { display: inline; }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--btn);
    color: var(--btn-fg);
    font-weight: 500;
    text-decoration: none;
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.gridbg {
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
}

.live {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 0 3px var(--acc-bg);
}
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.blink { animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.in { animation: in 0.6s ease-out both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }

kbd,
.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid var(--line2);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--card);
    color: var(--fg2);
    font: 500 11px/1 var(--mono);
}

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: var(--fg);
    font: 500 14px/1 var(--sans);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.btn-p { background: var(--btn); color: var(--btn-fg); }
.btn-p:hover { background: color-mix(in srgb, var(--btn) 84%, var(--bg)); }
.btn-s { background: var(--card); border-color: var(--line2); }
.btn-s:hover { background: var(--bg2); border-color: var(--fg3); }
.btn-g { color: var(--fg2); }
.btn-g:hover { background: var(--bg2); color: var(--fg); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; }
.btn-icon { width: 44px; padding: 0; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: 0.55; pointer-events: none; }

.linkbtn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 6px;
    border: 0;
    background: none;
    color: var(--fg2);
    font: 500 13px/1 var(--sans);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.linkbtn:hover { color: var(--fg); }

.more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--fg2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.more:hover { color: var(--fg); }

/* ----------------------------------------------------------- tags & chips */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 7px;
    border: 1px solid var(--line2);
    border-radius: 5px;
    color: var(--fg2);
    font: 500 11.5px/1 var(--mono);
    white-space: nowrap;
    text-decoration: none;
}
.tag-new {
    border-color: transparent;
    background: var(--acc-bg);
    color: var(--acc-fg);
    font-weight: 600;
    letter-spacing: 0.04em;
}
.tag-new::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.tag-sp { border-color: transparent; background: var(--bg2); }
a.tag-sp:hover { color: var(--fg); background: var(--line); }
.tag-type { border-color: var(--amb-line); color: var(--amb-fg); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 8px 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--fg);
    color: var(--bg);
    font: 500 13px/1 var(--sans);
    text-decoration: none;
    cursor: pointer;
}
.chip .icon { width: 14px; height: 14px; }
.chip:hover { background: color-mix(in srgb, var(--fg) 84%, var(--bg)); }

.qk {
    display: inline-flex;
    align-items: center;
    flex: none;
    height: 32px;
    padding: 0 11px;
    border: 1px solid var(--line2);
    border-radius: 999px;
    background: var(--card);
    color: var(--fg2);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.qk:hover { border-color: var(--fg3); color: var(--fg); }

.badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--acc);
    color: var(--btn-fg);
    font: 600 11.5px/1 var(--mono);
}
:root[data-theme="dark"] .badge { color: #0a0b0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #0a0b0b; } }
.badge[hidden] { display: none; }

.av {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: oklch(var(--av-l) var(--av-c) var(--h));
    color: oklch(var(--av-fl) var(--av-fc) var(--h));
    font: 600 13px/1 var(--mono);
    letter-spacing: 0.02em;
    user-select: none;
}
.av-sm { width: 32px; height: 32px; border-radius: 7px; font-size: 11px; }
.av-lg { width: 56px; height: 56px; border-radius: 12px; font-size: 17px; }

/* ---------------------------------------------------------------- header */

.hdr {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.hdr__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--hdr-h);
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--fg);
    font: 600 15px/1 var(--mono);
    letter-spacing: -0.02em;
    text-decoration: none;
}
.logo .tld { color: var(--fg3); }
.logo-mark {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--fg);
}
.logo-mark i {
    display: block;
    width: 7px;
    height: 11px;
    border-radius: 1px;
    background: var(--acc);
    animation: blink 1.06s steps(1) infinite;
}
.nav { display: flex; gap: 2px; }
.nav a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 7px;
    color: var(--fg2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.nav a:hover { background: var(--bg2); color: var(--fg); }
.nav a[aria-current] { color: var(--fg); }
.nav__post { display: none !important; }
.hdr__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.hdr__post { height: 40px; }
.menu-btn { display: none; }

[data-theme-toggle] .i-sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .i-sun { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) [data-theme-toggle] .i-sun { display: block; }
    :root:not([data-theme="light"]) [data-theme-toggle] .i-moon { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero { border-bottom: 1px solid var(--line); }
.hero__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    align-items: center;
    gap: 64px;
    padding-top: 96px;
    padding-bottom: 96px;
}
.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}
.hero__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line2);
    border-radius: 12px;
    background: var(--card);
}
.sb-f {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: text;
}
.sb-f:hover { background: var(--bg2); }
.sb-f:focus-within { outline: 2px solid var(--acc); outline-offset: -2px; }
.sb-f input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: none;
    color: var(--fg);
    font: 400 15px/1.3 var(--sans);
}
.sb-f input::-webkit-search-cancel-button { display: none; }
.sb-div { width: 1px; margin: 8px 0; background: var(--line); }
.sb .btn { height: 52px; padding: 0 22px; }
.sb kbd { margin-left: auto; }

.quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.quick .label { margin-right: 4px; }

.term {
    overflow: hidden;
    border: 1px solid var(--line2);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.term-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    color: var(--fg2);
    font: 500 12.5px/1 var(--mono);
}
.term-bar .muted { margin-left: auto; }
.term-body {
    margin: 0;
    padding: 8px 0;
    list-style: none;
    font: 400 13px/1.4 var(--mono);
}
.tl {
    display: grid;
    grid-template-columns: 30px 12px 92px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 16px;
    color: var(--fg2);
    text-decoration: none;
}
a.tl:hover { background: var(--bg2); color: var(--fg); }
.tl .a, .tl .op { color: var(--fg3); }
.tl .op.new { color: var(--acc); }
.tl .c, .tl .t {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tl .t { color: var(--fg); }
.tl .t .co { display: none; }
.tl .cursor { color: var(--acc); }
.term-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 44px;
    padding: 0 16px;
    border-top: 1px solid var(--line);
    color: var(--fg3);
    font: 400 12.5px/1 var(--mono);
}
.term-foot a { color: var(--fg); text-decoration: none; }
.term-foot a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- stats */

.stats-band { border-bottom: 1px solid var(--line); }
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    margin: 0;
    border-left: 1px solid var(--line);
}
.stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 8px;
    padding: 24px;
    border-right: 1px solid var(--line);
}
.stat dd {
    margin: 0;
    font: 500 30px/1 var(--mono);
    letter-spacing: -0.04em;
}
.stat--live {
    flex-direction: column;
    justify-content: center;
}
.stat--live dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.stat--live dd {
    color: var(--fg3);
    font: 400 12.5px/1.2 var(--mono);
    letter-spacing: 0;
}

/* ------------------------------------------------------- jobs + filters */

.jobs {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 96px;
}

.filters {
    position: sticky;
    top: calc(var(--hdr-h) + 24px);
    max-height: calc(100vh - var(--hdr-h) - 40px);
    overflow-y: auto;
    margin: -4px;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--line2) transparent;
}
.filters__form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 36px;
}
.filters__head .h3 { display: flex; align-items: center; gap: 10px; }
.filters__close,
.filters__foot,
.sheet-handle { display: none; }

.fg {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.fg legend { margin-bottom: 10px; padding: 0; }
.fg--list { gap: 0; }

.seg {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line2);
    border-radius: 9px;
    background: var(--card);
}
.seg label,
.pill { position: relative; display: block; }
.seg input,
.pill input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.seg span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 6px;
    color: var(--fg2);
    font-size: 13px;
}
.seg label:hover span { color: var(--fg); }
.seg input:checked + span { background: var(--fg); color: var(--bg); font-weight: 500; }
.seg input:focus-visible + span,
.pill input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

.ck {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    margin: 0 -8px;
    padding: 0 8px;
    border-radius: 6px;
    color: var(--fg2);
    font-size: 14px;
    cursor: pointer;
}
.ck:hover { background: var(--bg2); color: var(--fg); }
.ck input {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid var(--fg3);
    border-radius: 4px;
    background: var(--card);
    cursor: pointer;
}
.ck input:checked { border-color: var(--fg); background: var(--fg); }
.ck input:checked::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--bg);
    border-bottom: 2px solid var(--bg);
    transform: translateY(-1px) rotate(-45deg);
}
.ck:has(input:checked) { color: var(--fg); }
.ck .n {
    margin-left: auto;
    color: var(--fg3);
    font: 400 12px/1 var(--mono);
}
.show-all {
    display: none !important;
    justify-content: flex-start;
    height: 40px;
    margin-left: -8px;
    padding: 0 8px;
    color: var(--fg);
}

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill span {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line2);
    border-radius: 999px;
    background: var(--card);
    color: var(--fg2);
    font: 500 12.5px/1 var(--mono);
}
.pill:hover span { border-color: var(--fg3); color: var(--fg); }
.pill input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.hint {
    margin: 0;
    color: var(--fg3);
    font-size: 12.5px;
    line-height: 1.45;
}

.input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line2);
    border-radius: 10px;
    background: var(--card);
    color: var(--fg);
    font: 400 15px var(--sans);
}
.input:hover { border-color: var(--fg3); }
.input:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.input::-webkit-search-cancel-button { display: none; }

.selw { position: relative; display: inline-flex; }
.selw--block { display: flex; }
.sel {
    width: 100%;
    height: 36px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--line2);
    border-radius: 8px;
    background: var(--card);
    color: var(--fg);
    font: 500 13px/1 var(--sans);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.sel:hover { border-color: var(--fg3); }
.selw .icon {
    position: absolute;
    top: 50%;
    right: 10px;
    margin-top: -8px;
    color: var(--fg3);
    pointer-events: none;
}

.results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
}
.results-head__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filters-open { display: none; }
.chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
}
.chips:empty { display: none; }

/* ------------------------------------------------------------- job list */

.jl {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    transition: opacity 0.2s;
}
.results[aria-busy="true"] .jl { opacity: 0.5; }
.jl[hidden] { display: none; }

.jl-head,
.jr {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 290px 124px 44px;
    grid-template-areas: "av main tags sal age";
    align-items: center;
    column-gap: 16px;
}
.jl-head {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
}
.jl-head .r { text-align: right; }
.jr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
    text-decoration: none;
}
.jr:last-child { border-bottom: 0; }
.jr:hover { background: var(--bg2); }
.jr:hover .jr-t {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.jr:focus-visible { outline-offset: -2px; }
.jr.on {
    background: var(--bg2);
    box-shadow: inset 3px 0 0 var(--acc);
}
.jr.in { animation: in 0.4s ease-out both; }
.jr > .av { grid-area: av; }
.jr-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    grid-area: main;
}
.jr-t {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.jr-m {
    display: flex;
    gap: 6px;
    min-width: 0;
    color: var(--fg2);
    font-size: 13.5px;
    white-space: nowrap;
}
.jr-co {
    flex: 0 1 auto;
    max-width: 60%;
    overflow: hidden;
    color: var(--fg);
    font-weight: 500;
    text-overflow: ellipsis;
}
.jr-loc {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jr-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    grid-area: tags;
}
.jr-sal {
    grid-area: sal;
    font: 500 13.5px/1.2 var(--mono);
    letter-spacing: -0.02em;
    text-align: right;
    white-space: nowrap;
}
.jr-sal.none { color: var(--fg3); font-weight: 400; }
.jr-age {
    grid-area: age;
    color: var(--fg3);
    font: 400 12.5px/1 var(--mono);
    text-align: right;
}

.results-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 28px;
}
.results-more[hidden] { display: none; }
.results-more .btn { min-width: 240px; }
.results-more p { color: var(--fg3); font: 400 12.5px/1 var(--mono); }

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 56px 24px;
    border: 1px dashed var(--line2);
    border-radius: 12px;
    text-align: center;
}
.empty[hidden] { display: none; }
.empty p { max-width: 44ch; color: var(--fg2); }

/* -------------------------------------------------------------- sections */

.sec {
    padding-top: 88px;
    padding-bottom: 88px;
    border-top: 1px solid var(--line);
}
.sec--tight { padding-top: 64px; padding-bottom: 32px; }
.sec-h {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.sec-h .lede { margin-top: 10px; font-size: 16px; }

.hair {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--line);
}
.hair--loc { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hair--spec { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hair--co { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hair--cards {
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 0;
    border-right: 0;
    border-bottom: 0;
    background: var(--bg);
}
.hair--cards > * { box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); }
@media (max-width: 1180px) {
    .hair--co { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hair--spec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 14px 20px;
    background: var(--bg);
    color: var(--fg);
    font-weight: 500;
    text-decoration: none;
}
.cell:hover { background: var(--bg2); }
.cell .n {
    flex: none;
    color: var(--fg3);
    font: 400 13px/1 var(--mono);
}
.cell--co {
    justify-content: flex-start;
    gap: 14px;
    min-height: 76px;
}
.cell--co > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cell--co .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cell--fill { background: var(--bg); }

.faq-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}
.faq-wrap__intro {
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    align-self: flex-start;
    gap: 12px;
}
.faq {
    flex: 2 1 600px;
    border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--fg3); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq p { max-width: 640px; margin: 0 0 20px; color: var(--fg2); }

.nl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    align-items: center;
    gap: 32px;
    padding: 48px;
    border: 1px solid var(--line2);
    border-radius: 16px;
    background-color: var(--card);
}
.nl__copy { display: flex; flex-direction: column; gap: 10px; }
.nl__copy .label { display: flex; align-items: center; gap: 10px; }
.nl__copy p:last-child { color: var(--fg2); }
.nl__form { display: flex; flex-direction: column; gap: 8px; }
.nl__row { display: flex; flex-wrap: wrap; gap: 8px; }
.nl__row .input { flex: 1 1 240px; width: auto; height: 48px; }
.nl__row .btn { height: 48px; }
.nl__status { min-height: 1.4em; color: var(--fg3); font: 400 12.5px/1.4 var(--mono); }
.nl__status.ok { color: var(--acc); }
.nl__status.err { color: var(--amb-fg); }
.nl-band { padding-bottom: 88px; }

/* ---------------------------------------------------------------- footer */

.ft { border-top: 1px solid var(--line); }
.ft__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
}
.ft__brand { display: flex; flex-direction: column; gap: 14px; }
.ft__brand p { max-width: 260px; color: var(--fg2); font-size: 14px; }
.ft nav { display: flex; flex-direction: column; gap: 12px; }
.ft ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ft a:not(.logo) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    color: var(--fg2);
    font-size: 14px;
    text-decoration: none;
}
.ft a:not(.logo):hover { color: var(--fg); }
.ft__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 32px;
    border-top: 1px solid var(--line);
    color: var(--fg3);
    font: 400 12.5px/1.4 var(--mono);
}

/* ------------------------------------------------- listing page headers */

.phead { border-bottom: 1px solid var(--line); }
.phead__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
}
.phead__title {
    display: flex;
    align-items: center;
    gap: 18px;
}
.phead__copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
}
.code-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--fg);
    color: var(--bg);
    font: 600 15px/1 var(--mono);
    letter-spacing: 0.02em;
}
.code-mark .icon { width: 24px; height: 24px; }
.phead .stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phead .quick { padding-top: 4px; }

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--fg3);
    font: 400 12.5px/1 var(--mono);
}
.crumb a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--fg2);
    text-decoration: none;
}
.crumb a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.crumb [aria-current] {
    max-width: 40ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -------------------------------------------------------------- job page */

.jd-top { border-bottom: 1px solid var(--line); }
.jd-top__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
}
.jd-head {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 860px;
}
.co-line {
    display: flex;
    align-items: center;
    gap: 12px;
}
.co-line > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.co-line .name { font-weight: 600; text-decoration: none; }
.co-line .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.co-line .sub { color: var(--fg2); font-size: 13px; text-underline-offset: 3px; }

.factline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    color: var(--fg2);
    font: 400 13.5px/1.4 var(--mono);
}
.factline .sep { color: var(--line2); }
.factline .hl { color: var(--fg); }

.jd-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
}
.share { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; }
.share .btn { height: 48px; }

.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--amb-line);
    border-radius: 10px;
    background: var(--amb-bg);
    color: var(--amb-fg);
    font-size: 14px;
}
.notice .icon { margin-top: 2px; }

.jd-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 80px;
}
.jd-body > .prose { flex: 999 1 560px; min-width: 0; }

.prose {
    max-width: 68ch;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.prose h2,
.prose h3 {
    margin: 40px 0 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}
.prose h3 { font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; color: var(--fg2); }
.prose ul,
.prose ol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--fg2);
}
.prose li::marker { color: var(--fg3); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-underline-offset: 3px; }
.prose a:hover { color: var(--acc); }
.prose blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 2px solid var(--line2); }
.prose code, .prose pre { font-family: var(--mono); font-size: 0.9em; }
.prose__note {
    margin-top: 32px !important;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--fg3) !important;
    font: 400 12.5px/1.5 var(--mono);
}

.card {
    border: 1px solid var(--line2);
    border-radius: 14px;
    background: var(--card);
}
.jd-aside {
    position: sticky;
    top: calc(var(--hdr-h) + 24px);
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 16px;
}
.overview {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}
.overview__sal { display: flex; flex-direction: column; gap: 8px; }
.overview__sal .v {
    font: 500 30px/1 var(--mono);
    letter-spacing: -0.04em;
}
.overview__sal .v.none {
    color: var(--fg3);
    font-size: 18px;
    letter-spacing: -0.02em;
}
.kv {
    display: grid;
    grid-template-columns: auto 1fr;
    margin: 0;
}
.kv dt,
.kv dd {
    margin: 0;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}
.kv dt { color: var(--fg3); }
.kv dd {
    font-family: var(--mono);
    font-size: 13.5px;
    text-align: right;
    overflow-wrap: anywhere;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.overview__apply { display: flex; flex-direction: column; gap: 8px; }
.overview__apply .btn { height: 48px; }
.overview__apply p {
    color: var(--fg3);
    font: 400 12px/1.4 var(--mono);
    text-align: center;
}
.co-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
}
.co-card > span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.co-card .name { font-weight: 600; }
.co-card .sub { color: var(--fg3); font: 400 12.5px/1.3 var(--mono); }
.co-card .btn { padding: 0 10px; font-size: 13px; }

.rel { display: flex; flex-direction: column; gap: 20px; }
.rel .jl { border-color: var(--line2); border-radius: 14px; }
.rel + .rel { padding-top: 32px; }
.rel-band { border-top: 1px solid var(--line); padding: 64px 0 72px; }

.apply-bar { display: none; }

/* ---------------------------------------------------------------- drawer */

.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(620px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line2);
    background: var(--bg);
    color: var(--fg);
    box-shadow: var(--shadow);
}
.drawer::backdrop { background: var(--scrim); }
.drawer[open] { animation: dr-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
.drawer[open]::backdrop { animation: fade 0.28s ease; }
.drawer.closing { animation: dr-out 0.18s ease-in forwards; }
.drawer.closing::backdrop { animation: fade 0.18s ease reverse forwards; }
@keyframes dr-in { from { transform: translateX(32px); opacity: 0; } }
@keyframes dr-out { to { transform: translateX(32px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.drawer__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.dr-top {
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
    height: 60px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
}
.dr-top .keys {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    color: var(--fg3);
    font: 400 12px/1 var(--mono);
}
.dr-top .open-page { margin-left: auto; }
.dr-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px 32px 40px;
    outline: none;
}
.dr-body > * { flex-shrink: 0; }
.dr-body .prose { font-size: 15px; line-height: 1.65; }
.dr-body .prose h2,
.dr-body .prose h3 { margin: 28px 0 8px; font-size: 16px; }
.dr-body .prose > :first-child { margin-top: 0; }
.dr-title { font-size: 30px; text-wrap: balance; }
.dr-foot {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.dr-foot .btn { height: 48px; }
.dr-foot .btn-p { flex: 1 1 auto; }
.dr-foot:empty { display: none; }

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--line);
}
.fact {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    padding: 12px 14px;
    background: var(--card);
}
.fact dd {
    margin: 0;
    font: 500 14px/1.3 var(--mono);
    letter-spacing: -0.01em;
}
.fact dd.none { color: var(--fg3); font-weight: 400; }

.skeleton { display: flex; flex-direction: column; gap: 14px; }
.skeleton i {
    display: block;
    height: 14px;
    border-radius: 5px;
    background: var(--bg2);
    animation: shimmer 1.2s ease-in-out infinite;
}
.skeleton i:nth-child(1) { width: 35%; height: 40px; }
.skeleton i:nth-child(2) { width: 85%; height: 32px; }
.skeleton i:nth-child(3) { width: 60%; }
.skeleton i:nth-child(4) { width: 100%; height: 64px; margin-bottom: 10px; }
.skeleton i:nth-child(n + 5) { width: 92%; }
@keyframes shimmer { 50% { opacity: 0.45; } }

/* ------------------------------------------------------------ directory */

.dir-bar {
    position: sticky;
    top: var(--hdr-h);
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.dir-bar .input { max-width: 320px; height: 40px; }
.dir-letters { display: flex; flex-wrap: wrap; gap: 2px; }
.dir-letters a {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 28px;
    border-radius: 6px;
    color: var(--fg3);
    font: 500 12.5px/1 var(--mono);
    text-decoration: none;
}
.dir-letters a:hover { background: var(--bg2); color: var(--fg); }
.dir-group {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--hdr-h) + 80px);
}
.dir-group[hidden] { display: none; }
.dir-letter { font: 500 20px/1.4 var(--mono); }
.dir-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 4 200px;
    column-gap: 16px;
}
.dir-list li { break-inside: avoid; }
.dir-list li[hidden] { display: none; }
.dir-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    color: var(--fg2);
    font-size: 14px;
    text-decoration: none;
}
.dir-list a:hover { background: var(--bg2); color: var(--fg); }
.dir-list .n { color: var(--fg3); font: 400 12px/1 var(--mono); }
.dir-empty { padding: 48px 0; color: var(--fg3); text-align: center; }

.spec-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 22px 24px;
    background: var(--bg);
    color: var(--fg);
    text-decoration: none;
}
.spec-card:hover { background: var(--bg2); }
.spec-card__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.spec-card__top .h3 { font-size: 17px; }
.spec-card__top .n { color: var(--fg3); font: 400 13px/1 var(--mono); white-space: nowrap; }
.spec-card p { color: var(--fg2); font-size: 14px; }
.spec-card--empty .h3 { color: var(--fg3); }

/* ------------------------------------------------------------ error page */

.err {
    padding-top: 96px;
    padding-bottom: 112px;
}
.err__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
    align-items: center;
    gap: 64px;
}
.err__copy { display: flex; flex-direction: column; gap: 24px; }
.err__links { display: flex; flex-wrap: wrap; gap: 8px; }
.term-body .warn { color: var(--amb-fg); }

/* --------------------------------------------------------------- toasts */

.toasts {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 90;
    display: grid;
    gap: 8px;
    transform: translateX(-50%);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--fg);
    color: var(--bg);
    font: 500 13px/1.3 var(--mono);
    box-shadow: var(--shadow);
    animation: in 0.25s ease-out;
}
.toast .live { box-shadow: none; }

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: 100%;
    height: 2px;
    background: var(--acc);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    pointer-events: none;
}
.loading-bar.on {
    opacity: 1;
    animation: loading 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes loading { to { transform: scaleX(0.85); } }

.scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--scrim);
    animation: fade 0.25s ease;
}
.scrim[hidden] { display: none; }

/* ============================================================ responsive */

@media (max-width: 1023px) {
    .jobs {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 28px;
    }
    .filters-open { display: inline-flex; }

    /* Filters become a bottom sheet */
    .filters {
        position: fixed;
        inset: auto 0 0;
        top: auto;
        z-index: 60;
        display: flex;
        flex-direction: column;
        max-height: min(86vh, 760px);
        margin: 0;
        padding: 0;
        border-top: 1px solid var(--line2);
        border-radius: 22px 22px 0 0;
        background: var(--bg);
        box-shadow: var(--shadow);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s;
    }
    .filters.open {
        transform: none;
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    .filters__form {
        flex: 1;
        gap: 26px;
        min-height: 0;
        overflow-y: auto;
        padding: 0 20px 20px;
    }
    .sheet-handle {
        display: flex;
        justify-content: center;
        padding-top: 8px;
    }
    .sheet-handle span {
        width: 40px;
        height: 4px;
        border-radius: 4px;
        background: var(--line2);
    }
    .filters__head {
        position: sticky;
        top: 0;
        z-index: 1;
        height: auto;
        margin: 0 -20px;
        padding: 4px 8px 4px 20px;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
    }
    .filters__head .h3 { font-size: 18px; }
    .filters__head .reset { display: none; }
    .filters__close { display: inline-flex; margin-left: auto; }
    .filters__foot {
        position: sticky;
        bottom: -20px;
        display: flex;
        gap: 10px;
        margin: 0 -20px -20px;
        padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: var(--bg);
    }
    .filters__foot .btn-p { flex: 1; }
    .fg--list:not(.expanded) .ck--more:not(:has(input:checked)) { display: none; }
    .fg--list:not(.expanded) .show-all { display: inline-flex !important; }
    .seg span { height: 44px; font-size: 14px; }
    .ck { min-height: 44px; font-size: 15px; }
    .pill span { height: 44px; padding: 0 16px; font-size: 13px; }

    .jd-aside { position: static; }
    .apply-bar {
        position: fixed;
        inset: auto 0 0;
        z-index: 25;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line2);
        background: var(--bg);
    }
    .apply-bar__sal { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .apply-bar__sal .label { font-size: 10px; }
    .apply-bar__sal .v { font: 500 14px/1.2 var(--mono); white-space: nowrap; }
    .apply-bar .btn { flex: 1; height: 50px; }
    .page-job .ft { padding-bottom: 80px; }
}

@media (max-width: 960px) {
    .jl-head { display: none; }
    .jr {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        grid-template-areas: "av main age" "av tags sal";
        align-items: start;
        row-gap: 10px;
    }
    .jr-tags { justify-content: flex-start; }
    .jr-sal { line-height: 22px; }
    .jr-age { line-height: 1.6; }
}

@media (max-width: 820px) {
    :root { --hdr-h: 60px; }
    .wrap { padding-left: 20px; padding-right: 20px; }
    .nav {
        position: absolute;
        top: var(--hdr-h);
        left: 0;
        right: 0;
        z-index: 2;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a {
        height: 48px;
        padding: 0 4px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }
    .nav a:hover { background: none; }
    .nav .nav__post { display: inline-flex !important; border-bottom: 0; }
    .hdr__inner { gap: 4px; }
    .hdr__post { display: none; }
    .menu-btn { display: inline-flex; }

    .hero__grid { gap: 28px; padding-top: 32px; padding-bottom: 28px; }
    .hero__copy { gap: 20px; }
    .hero .display { font-size: 38px; line-height: 1.04; }
    .hero .lede { font-size: 16px; }
    .sb { flex-direction: column; padding: 0; border: 0; background: none; gap: 10px; }
    .sb-f { flex: none; padding: 0; gap: 6px; }
    .sb-f:hover { background: none; }
    .sb-f:focus-within { outline: none; }
    .sb-f input {
        height: 50px;
        padding: 0 14px;
        border: 1px solid var(--line2);
        border-radius: 10px;
        background: var(--card);
        font-size: 16px;
    }
    .sb-f input:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
    .sb-div, .sb kbd { display: none; }
    .sb .btn { width: 100%; height: 48px; margin-top: 4px; font-size: 15px; }
    .quick { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
    .quick .qk { height: 40px; padding: 0 14px; font-size: 14px; }
    .tl { grid-template-columns: 24px 10px minmax(0, 1fr); min-height: 44px; height: auto; padding: 0 14px; font-size: 12.5px; }
    .tl .c { display: none; }
    .tl .t .co { display: inline; }
    .term-body li:nth-last-child(n + 6) { display: none; }
    .term-bar .muted { display: none; }

    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
    .stat { padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:nth-child(odd):not(.stat--live) { border-right: 1px solid var(--line); }
    .stat:not(.stat--live) dd { font-size: 26px; }
    .stat--live { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 0; }
    .stats-band .wrap, .phead .stats-wrap { padding-left: 0; padding-right: 0; }

    .h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
    .results-head { padding-bottom: 14px; }
    .results-head__actions { width: 100%; gap: 8px; }
    .results-head__actions > * { flex: 1; }
    .results-head__actions .label { display: none; }
    .filters-open { height: 44px; }
    .sel { height: 44px; font-size: 14px; }
    .jl { margin: 0 -20px; border-left: 0; border-right: 0; border-radius: 0; }
    .jr { grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; padding: 14px 20px; }
    .jr .av { width: 36px; height: 36px; border-radius: 8px; font-size: 12px; }
    .jr-co { max-width: 55%; }
    .results-more .btn { width: 100%; }

    .sec { padding-top: 40px; padding-bottom: 0; border-top: 0; }
    .sec-h { margin-bottom: 16px; }
    .sec-h .more { display: none; }
    .hair { margin: 0 -20px; border-left: 0; border-right: 0; border-radius: 0; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .cell { min-height: 56px; padding: 12px 20px; font-size: 14.5px; }
    .hair--spec .cell { font-size: 13.5px; }
    .cell--co { min-height: 64px; gap: 10px; }
    .cell--co .av { width: 32px; height: 32px; border-radius: 7px; font-size: 11px; }
    .faq-wrap { gap: 16px; }
    .faq { margin: 0 -20px; }
    .faq summary { min-height: 56px; padding: 12px 20px; font-size: 15px; }
    .faq p { padding: 0 20px 18px; margin: 0; font-size: 14.5px; }
    .nl-band { padding-top: 40px; padding-bottom: 0; }
    .nl { gap: 12px; padding: 24px 20px; border-radius: 14px; }
    .nl__row .btn { width: 100%; }
    .ft { margin-top: 40px; }
    .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-top: 28px; }
    .ft__brand { grid-column: 1 / -1; }
    .ft a:not(.logo) { min-height: 44px; font-size: 14.5px; }

    .phead__inner { gap: 20px; padding-bottom: 28px; }
    .jd-top__inner { gap: 18px; padding-top: 20px; padding-bottom: 28px; }
    .jd-head .h1 { font-size: 30px; line-height: 1.08; }
    .factline { font-size: 12.5px; }
    .share { margin-left: 0; }
    .share .btn { height: 44px; }
    .jd-actions .btn-lg { width: 100%; }
    .jd-body { gap: 32px; padding-top: 28px; padding-bottom: 40px; }
    .prose { font-size: 15.5px; line-height: 1.65; }
    .prose h2 { margin-top: 28px; font-size: 18px; }
    .rel-band { padding: 40px 0; }
    .rel .jl { border-radius: 0; }

    .drawer { width: 100vw; border-left: 0; }
    .dr-top .keys { display: none; }
    .dr-body { padding: 22px 20px 32px; }
    .dr-title { font-size: 26px; }

    .dir-letters { display: none; }
    .dir-group { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .dir-bar .input { max-width: none; }
    .err { padding-top: 40px; padding-bottom: 56px; }
}

@media (max-width: 420px) {
    .facts { grid-template-columns: minmax(0, 1fr); }
    .hair { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (hover: none) {
    .sb kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pulse, .blink, .in, .logo-mark i, .jr.in, .drawer[open], .drawer.closing, .toast { animation: none !important; }
    .filters { transition: none !important; }
}

@media print {
    .hdr, .ft, .jd-aside, .apply-bar, .nl-band, .rel-band, .jd-actions, .crumb { display: none !important; }
    body { background: #fff; color: #000; }
    .gridbg { background: none; }
}
