/* Conventional job-board base, shared by v4–v6. Themes set the variables and style header, hero and layout. */
:root {
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --head: var(--font);
  --ink: #1C2B3A; --ink-2: #3E4C5B; --muted: #5F6B78; --line: #DDE2E8; --line-2: #C6CED8;
  --bg: #F5F7FA; --surface: #FFFFFF; --soft: #F0F3F7;
  --brand: #0E2A5C; --brand-2: #16387A; --brand-ink: #FFFFFF;
  --accent: #F05A28; --accent-hover: #D94A1B; --accent-ink: #FFFFFF;
  --link: #1B5FC1; --pay: #1D6B34; --pay-bg: #E9F5EC;
  --new-bg: #FDE8E1; --new-ink: #A33A12; --early-bg: #E7F0FD; --early-ink: #1A4C9C; --fit-bg: #FFF4D6; --fit-ink: #7A5200;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07);
  --shadow-lg: 0 10px 30px rgba(16,24,40,.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.loading { padding: 80px 0; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary, .btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-dark { background: var(--brand); color: var(--brand-ink); }
.btn-dark:hover { background: var(--brand-2); color: var(--brand-ink); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn kbd { display: none; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--link); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; color: var(--link); }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { text-decoration: underline; }

/* header basics (themes colour it) */
.site-header { position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px; }
.site-nav .btn { margin-left: 8px; min-height: 40px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.count[hidden] { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid currentColor; background: transparent; align-items: center; justify-content: center; cursor: pointer; color: inherit; }
.menu-toggle svg { width: 22px; height: 22px; }

/* search controls */
.search-row { display: flex; gap: 10px; align-items: stretch; }
.sfield { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; }
.sfield-label { font-size: 14px; font-weight: 600; }
.sinput { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); }
.sinput svg { width: 19px; height: 19px; color: var(--muted); flex: 0 0 auto; }
.sinput input, .sinput select { border: 0; outline: none; background: transparent; width: 100%; font-size: 16px; min-width: 0; color: var(--ink); appearance: none; }
.sinput:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px rgba(27,95,193,.2); }
.search-row .btn { align-self: flex-end; min-height: 50px; padding: 0 28px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.chip:hover { border-color: var(--ink-2); }
select.ctl, .ctl-select select, .filter select, .sort select, .field select { min-height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6B78' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; appearance: none; cursor: pointer; color: var(--ink); width: 100%; font-size: 15px; }
input[type=range] { width: 100%; accent-color: var(--link); height: 26px; cursor: pointer; }
.range-out { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.checks { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--link); }

/* home blocks */
.block { padding-top: 56px; }
.last-block { padding-bottom: 72px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.block-head h2 { font-size: 24px; font-weight: 700; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.cat-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--brand); }
.cat-icon svg { width: 20px; height: 20px; }
.cat-name { font-weight: 600; font-size: 15px; }
.cat-count { font-size: 13px; color: var(--muted); }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.company-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.company-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.company-tile .logo { grid-row: span 2; }
.company-tile-name { font-weight: 600; display: flex; align-items: center; }
.company-tile-meta { font-size: 13px; color: var(--muted); }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.region { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--link); text-decoration: none; font-size: 15px; }
.region:hover { text-decoration: underline; }
.region-count { color: var(--muted); font-size: 14px; }
.inline-input { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
.inline-input input, .skills-form input, .fit-form input { flex: 1 1 220px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.inline-input input:focus, .skills-form input:focus, .fit-form input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(27,95,193,.2); }
.skills-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.skills-form .form-status { flex-basis: 100%; }
.form-status { font-size: 14px; color: var(--pay); font-weight: 600; }
.form-status:empty { display: none; }
.match-list { display: grid; gap: 10px; }
.match-list:empty { display: none; }
.empty-note { color: var(--muted); font-size: 15px; }

/* job card */
.logo { width: 48px; height: 48px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: 0 0 auto; border: 1px solid var(--line); }
.logo.t1 { background: #E8EEF9; color: #23427F; } .logo.t2 { background: #E7F4EE; color: #1D6B4A; } .logo.t3 { background: #FDF0E7; color: #9A4A14; } .logo.t4 { background: #F1ECFA; color: #5B3A9C; }
.logo-lg { width: 60px; height: 60px; font-size: 26px; border-radius: 12px; }
.logo-xl { width: 84px; height: 84px; font-size: 36px; border-radius: 16px; }
.verified { width: 16px; height: 16px; fill: var(--link); stroke: none; flex: 0 0 auto; display: inline-block; margin-left: 5px; vertical-align: -2px; }
.verified .verified-tick { fill: none; stroke: #fff; stroke-width: 2.6; }
.card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main side"; gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card > .logo { display: none; }
.card-main { grid-area: main; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; line-height: 1.6; }
.badge-new { background: var(--new-bg); color: var(--new-ink); }
.badge-early { background: var(--early-bg); color: var(--early-ink); }
.badge-fit { background: var(--fit-bg); color: var(--fit-ink); }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.card-title a:hover { text-decoration: underline; }
.card-company { font-size: 15px; color: var(--ink-2); display: flex; align-items: center; position: relative; z-index: 1; width: fit-content; }
.card-company a { color: var(--ink-2); text-decoration: none; }
.card-company a:hover { text-decoration: underline; color: var(--link); }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg, .card-pay svg { width: 15px; height: 15px; color: var(--muted); }
.card-pay { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.card-points { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.card-summary { font-size: 14px; color: var(--muted); margin-top: 6px; }
.card-side { grid-area: side; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.card-age { font-size: 13px; color: var(--muted); white-space: nowrap; order: 3; }
.save-btn { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--ink-2); }
.save-btn svg { width: 20px; height: 20px; }
.save-btn:hover { background: var(--soft); color: var(--ink); }
.save-btn.is-saved { color: var(--link); }
.save-btn.is-saved svg { fill: currentColor; }
.job-actions .save-btn { width: auto; padding: 0 16px; min-height: 44px; height: auto; border-color: var(--line-2); font-weight: 600; font-size: 15px; color: var(--ink); background: var(--surface); }
.btn-apply { min-height: 38px; padding: 0 14px; font-size: 14px; background: var(--accent); color: var(--accent-ink); }
.btn-apply:hover { background: var(--accent-hover); color: var(--accent-ink); }
.card.is-active { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.card-compact { padding: 16px 18px; }
.card-compact .card-title { font-size: 16px; }
.card-compact .card-side { justify-content: flex-start; }
.card-compact .card-meta span:nth-child(3) { display: none; }

/* results */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.results-head h1 { font-size: 24px; font-weight: 700; }
.results-count { color: var(--muted); font-size: 15px; margin-top: 4px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sort select { width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.active-filters:empty { display: none; }
.pill-active { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; cursor: pointer; }
.pill-active svg { width: 13px; height: 13px; }
.pill-active:hover { border-color: var(--ink-2); }
.pill-understood { border-style: dashed; background: var(--surface); color: var(--ink-2); cursor: default; }
.result-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.inline-alert { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line-2); }
.inline-alert-text { flex: 1 1 240px; display: flex; flex-direction: column; font-size: 15px; }
.inline-alert-text span { color: var(--muted); font-size: 14px; }
.inline-alert input { flex: 1 1 200px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.inline-alert .form-status { flex-basis: 100%; }
.empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 440px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pager-btn { min-width: 42px; min-height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 500; }
.pager-btn:hover:not(:disabled) { border-color: var(--ink-2); }
.pager-btn.is-current { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.pager-btn:disabled { opacity: .4; cursor: default; }
.related { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.related:empty { display: none; }
.related-label { color: var(--muted); }
.filters-toggle { display: none; }

/* job page */
.page-job { padding-top: 20px; padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.job-main { min-width: 0; }
.job-detail { display: flex; flex-direction: column; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.is-preview.job-detail { border: 0; padding: 0; border-radius: 0; }
.job-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.job-company { display: flex; gap: 12px; align-items: center; }
.job-company-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.job-company-name:hover { text-decoration: underline; }
.job-company-meta { display: block; font-size: 14px; color: var(--muted); }
.job-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.is-preview .job-title { font-size: 24px; }
.job-title a { color: inherit; text-decoration: none; }
.job-title a:hover { text-decoration: underline; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.job-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fact dt svg { width: 15px; height: 15px; }
.fact dd { margin: 0 0 0 21px; font-weight: 600; font-size: 15px; }
.signals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reply-signal, .competition { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 14px; color: var(--ink-2); }
.reply-signal svg, .competition svg { width: 20px; height: 20px; color: var(--link); flex: 0 0 auto; margin-top: 1px; }
.reply-signal strong { display: block; color: var(--ink); }
.competition { align-items: center; }
.fit { border-radius: var(--r); padding: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--soft), var(--surface)); }
.fit h2 { font-size: 18px; }
.fit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fit-score { font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--fit-bg); color: var(--fit-ink); }
.fit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.fit-sub { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.fit-have { color: var(--pay); } .fit-gap { color: var(--fit-ink); }
.fit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.fit-list li { display: flex; gap: 8px; align-items: center; }
.fit-list li svg { width: 16px; height: 16px; color: var(--pay); stroke-width: 3; }
.fit-list li.gap::before { content: ''; width: 7px; height: 7px; margin: 0 4px; border-radius: 50%; background: #D9A400; }
.fit-list li.none { color: var(--muted); }
.fit-empty p { color: var(--ink-2); margin: 6px 0 12px; font-size: 15px; }
.fit-form { display: flex; gap: 8px; flex-wrap: wrap; }
.fit .link-btn { margin-top: 10px; }
.job-desc { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.job-desc h2 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.job-desc h3 { font-size: 16px; color: var(--ink); margin: 20px 0 6px; }
.job-desc ul { padding-left: 20px; margin: 0; }
.job-desc li { margin: 3px 0; }
.skill-tags { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags li { margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.similar { margin-top: 32px; }
.similar h2 { font-size: 20px; margin-bottom: 12px; }
.similar-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.job-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 88px; }
.apply { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.apply-head h2 { font-size: 22px; }
.apply-head p { color: var(--muted); margin-top: 2px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { min-height: 46px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); width: 100%; color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(27,95,193,.2); }
[aria-invalid="true"] { border-color: #C42B1C !important; }
.field-error { font-size: 13px; color: #B42318; font-weight: 500; }
.field-error:empty { display: none; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--soft); text-align: center; cursor: pointer; }
.dropzone svg { width: 24px; height: 24px; color: var(--link); }
.dropzone:hover, .dropzone.is-drag { border-color: var(--link); }
.dropzone.has-file { border-style: solid; border-color: var(--pay); background: var(--pay-bg); }
.dropzone-title { font-weight: 600; word-break: break-all; }
.dropzone-hint { font-size: 13px; color: var(--muted); }
.field:focus-within .dropzone { border-color: var(--link); }
.apply-small { font-size: 12.5px; color: var(--muted); text-align: center; }
.apply-done { align-items: center; text-align: center; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--pay-bg); color: var(--pay); display: flex; align-items: center; justify-content: center; }
.done-icon svg { width: 28px; height: 28px; stroke-width: 3; }
.apply-done p { color: var(--ink-2); }
.company-box { display: flex; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.company-box a { font-weight: 600; color: var(--ink); text-decoration: none; }
.company-box p { color: var(--muted); margin: 4px 0 8px; }
.company-box .link-arrow { color: var(--link); }
.apply-bar { display: none; }

/* other pages */
.page-company, .page-salaries, .page-saved, .page-404 { padding-top: 28px; padding-bottom: 72px; }
.page-head { padding: 12px 0 24px; max-width: 760px; }
.page-head h1 { font-size: 32px; font-weight: 800; }
.page-head p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.company-head { display: flex; gap: 20px; align-items: center; padding: 24px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.company-head h1 { font-size: 28px; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; }
.company-head h1 .verified { width: 22px; height: 22px; }
.company-head p { color: var(--ink-2); margin-top: 6px; }
.company-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 32px; }
.company-stats div { padding: 14px 16px; background: var(--surface); }
.company-stats dt { font-size: 13px; color: var(--muted); }
.company-stats dd { margin: 2px 0 0; font-weight: 600; }
.section-title { font-size: 20px; font-weight: 700; }
.salary-chart { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.salary-axis { position: relative; height: 18px; margin-left: 260px; margin-right: 170px; font-size: 12px; color: var(--muted); }
.salary-axis span { position: absolute; transform: translateX(-50%); }
.salary-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 150px; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.salary-row:last-child { border-bottom: 0; }
.salary-name { font-weight: 600; color: var(--link); text-decoration: none; display: flex; flex-direction: column; }
.salary-name:hover { text-decoration: underline; }
.salary-name span { font-weight: 400; font-size: 13px; color: var(--muted); }
.salary-track { position: relative; height: 10px; background: var(--soft); border-radius: 999px; }
.salary-bar { position: absolute; top: 0; bottom: 0; background: var(--brand); opacity: .35; border-radius: 999px; }
.salary-mid { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--brand); }
.salary-value { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; display: flex; flex-direction: column; font-size: 15px; }
.salary-value small { font-weight: 400; color: var(--muted); font-size: 13px; }
.saved-section { margin-bottom: 36px; }
.tracker { list-style: none; margin: 12px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tracker li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tracker li:last-child { border-bottom: 0; }
.tracker a { font-weight: 600; color: var(--ink); }
.tracker span { display: block; font-size: 14px; color: var(--muted); }
.tracker .status { font-size: 13px; font-weight: 600; color: var(--pay); background: var(--pay-bg); padding: 4px 10px; border-radius: 999px; }
.saved-section .empty-note { margin-top: 10px; }

/* employers */
.emp-hero { background: var(--brand); color: var(--brand-ink); padding: 64px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 12px; }
.emp-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; max-width: 760px; }
.lead { font-size: 18px; margin-top: 14px; max-width: 620px; opacity: .92; }
.emp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.emp-hero .btn-secondary { background: transparent; color: var(--brand-ink); border-color: rgba(255,255,255,.5); }
.emp-hero .btn-secondary:hover { border-color: #fff; color: var(--brand-ink); }
.emp-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 48px; }
.why { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.why-num { font-weight: 800; color: var(--accent); font-size: 14px; }
.why h2 { font-size: 18px; margin: 8px 0 6px; }
.why p { color: var(--ink-2); font-size: 15px; }
.section-head { margin-bottom: 22px; max-width: 720px; }
.section-head h2 { font-size: 28px; font-weight: 800; }
.section-head p { color: var(--ink-2); margin-top: 6px; }
.pricing { padding-top: 64px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 20px; }
.plan-price { color: var(--muted); }
.plan-price span { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.plan-pitch { color: var(--ink-2); }
.plan ul { list-style: none; padding: 14px 0 0; margin: 0 0 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; flex: 1; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2.5px solid var(--pay); border-bottom: 2.5px solid var(--pay); transform: rotate(-45deg); }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.small-print { font-size: 13px; color: var(--muted); margin-top: 12px; }
.post { padding-top: 64px; padding-bottom: 72px; scroll-margin-top: 80px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.post-form { display: flex; flex-direction: column; gap: 16px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; }
.pay-row legend { margin-bottom: 6px; }
.ad-preview { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 2px solid var(--link); border-radius: var(--r-lg); scroll-margin-top: 88px; }
.ad-preview[hidden] { display: none; }
.ad-preview-head h3 { font-size: 20px; }
.ad-preview-head p { color: var(--muted); margin-top: 2px; }
.ad-preview-body { font-size: 15px; color: var(--ink-2); }
.ad-preview-body h4 { font-size: 15px; margin: 12px 0 4px; color: var(--ink); }
.ad-preview-body ul { margin: 0; padding-left: 20px; }

/* footer */
.site-footer { margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 32px; }
.footer-brand p { margin-top: 8px; max-width: 280px; font-size: 15px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h2 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.footer-cols a { display: block; text-decoration: none; font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 24px; font-size: 13px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r-sm); font-weight: 500; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1024px) {
  .job-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
  .salary-row { grid-template-columns: 180px minmax(0, 1fr) 130px; }
  .salary-axis { margin-left: 200px; margin-right: 150px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .site-nav { display: none; position: absolute; left: -24px; right: -24px; top: 100%; flex-direction: column; align-items: stretch; padding: 8px 24px 18px; gap: 2px; box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 10px; font-size: 16px; }
  .site-nav .btn { margin: 8px 0 0; }
  .job-layout, .plans, .emp-why, .post-layout { grid-template-columns: 1fr; }
  .job-aside { position: static; }
  .apply-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16,24,40,.08); }
  .apply-bar div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
  .apply-bar strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .apply-bar span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-job { padding-bottom: 110px; }
  .company-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-nav { left: -16px; right: -16px; padding-left: 16px; padding-right: 16px; }
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; align-self: stretch; }
  .card { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .card-side .btn-apply { display: none; }
  .job-detail { padding: 18px; border-radius: var(--r); }
  .job-title { font-size: 24px; }
  .signals, .fit-cols { grid-template-columns: 1fr; }
  .salary-chart { padding: 16px; }
  .salary-axis { display: none; }
  .salary-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .salary-track { grid-column: 1 / -1; grid-row: 2; }
  .company-head { flex-direction: column; align-items: flex-start; }
  .results-head { flex-direction: column; align-items: flex-start; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 8px; }
  .cat-icon { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Version 5: Violet. Familiar layout: violet hero with a centred search card, sidebar filters, rounded and friendly. */
:root {
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --head: var(--font);
  --brand: #4B2A91; --brand-2: #5E37B0; --accent: #E5367A; --accent-hover: #C9256A; --accent-ink: #FFFFFF; --link: #5B3FC7;
  --bg: #F7F5FB; --soft: #F1EDF9; --ink: #221A33; --ink-2: #463D57; --muted: #6A6378; --line: #E4DFEE; --line-2: #CFC7DE;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
}
.btn { border-radius: 999px; font-weight: 700; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #F1EDF9; color: var(--brand); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; }
.brand { color: var(--ink); font-weight: 900; font-size: 27px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #7B4BD6); color: #fff; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 600; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--brand); background: var(--soft); }
.menu-toggle { color: var(--ink); border-color: var(--line-2); }

.hero { background: radial-gradient(120% 140% at 85% 0%, #7B4BD6 0%, transparent 55%), linear-gradient(135deg, #3A1F78, #5A33AE); color: #fff; }
.hero-inner { padding: 64px 24px 56px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 900; letter-spacing: -0.02em; }
.hero-sub { font-size: 18px; color: #E6DEF8; margin-top: 10px; }
.search-card { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 10px; width: 100%; max-width: 980px; margin-top: 30px; background: #fff; color: var(--ink); border-radius: 22px; padding: 12px; box-shadow: 0 20px 50px rgba(20,8,50,.3); text-align: left; }
.search-card-slim { grid-template-columns: 1.4fr 1fr auto; margin-top: 0; max-width: none; box-shadow: 0 12px 30px rgba(20,8,50,.25); }
.sc-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 16px; border-radius: 14px; background: var(--soft); min-width: 0; }
.sc-field:focus-within { box-shadow: 0 0 0 2px var(--link); }
.sc-label { font-size: 12px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.sc-field input, .sc-field select { border: 0; outline: none; background: transparent; width: 100%; font-size: 16px; color: var(--ink); padding: 2px 0; min-width: 0; appearance: none; cursor: pointer; }
.sc-field input { cursor: text; }
.sc-field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B2A91' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px; padding-right: 22px; }
.search-card .btn { align-self: stretch; height: auto; }
.hero-chips { margin-top: 20px; justify-content: center; }
.hero-chips .chips-label { color: #E6DEF8; }
.hero .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.hero .chip:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.search-smart { grid-template-columns: 1.7fr 1fr auto; }
.sc-smart, .sc-where { flex-direction: row; align-items: center; gap: 12px; min-height: 58px; }
.sc-smart svg, .sc-where svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; }
.sc-smart input, .sc-where input { font-size: 17px; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 30px 0 0; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); }
.hero-stats div { padding: 12px 26px; border-right: 1px solid rgba(255,255,255,.22); text-align: center; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats dt { font-size: 13px; color: #D9CEF5; font-weight: 600; }
.hero-stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 900; color: #fff; }
.hero-slim { padding: 22px 0; }

.block-head.center { justify-content: center; text-align: center; margin-bottom: 22px; }
.block-head h2 { font-size: 28px; font-weight: 900; }
.center-link { text-align: center; margin-top: 20px; }
.company-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.company-tile { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; gap: 6px; padding: 22px 16px; border-radius: var(--r-lg); }
.company-tile .logo { grid-row: auto; width: 64px; height: 64px; font-size: 26px; border-radius: 50%; margin-bottom: 6px; }
.company-tile-name { justify-content: center; }
.fresh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.card { border-radius: var(--r-lg); }
.card-title { font-weight: 800; }
.badge { border-radius: 999px; padding: 2px 10px; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cat { border-radius: var(--r-lg); padding: 16px; }
.cat-icon { border-radius: 50%; background: var(--soft); color: var(--brand); }
.cat:hover { border-color: var(--link); }

.alert-band { margin-top: 64px; background: linear-gradient(135deg, #3A1F78, #5A33AE); color: #fff; }
.alert-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.alert-inner h2 { font-size: 26px; font-weight: 900; }
.alert-inner p { color: #E6DEF8; margin-top: 6px; }
.alert-inner .inline-input input { border-radius: 999px; border-color: transparent; padding: 0 18px; }
.alert-inner .form-status { flex-basis: 100%; color: #fff; }

.match-section { display: grid; gap: 16px; }
.match-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; }
.match-box h2 { font-size: 24px; font-weight: 900; }
.match-box p { color: var(--ink-2); margin-top: 6px; }
.match-box .skills-form { margin-top: 0; }
.match-box .skills-form input { border-radius: 999px; padding: 0 18px; }
.match-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.region-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 28px; }
.region { color: var(--brand); font-weight: 600; }
.employer-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 36px 40px; border-radius: 24px; background: linear-gradient(135deg, var(--accent), #F06A9D); color: #fff; }
.employer-strip h2 { font-size: 28px; font-weight: 900; }
.employer-strip p { color: #FFE6F0; margin-top: 6px; }

.side-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 72px; align-items: start; }
.sidebar { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; }
.sidebar-head h2 { font-size: 18px; font-weight: 800; }
.filter { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-weight: 700; font-size: 14px; padding: 0; }
.filter select { border-radius: 999px; }
.results-head h1 { font-weight: 900; }
.pill-active { background: var(--soft); border-color: #D9CFF0; color: var(--brand); font-weight: 600; }

.job-detail { border-radius: 22px; }
.job-head { border-bottom-color: var(--line); }
.job-title { font-weight: 900; }
.apply { border-radius: 22px; }
.field input, .field textarea { border-radius: 12px; }
.field select { border-radius: 12px; }

.emp-hero { background: linear-gradient(135deg, #3A1F78, #5A33AE); }
.plan { border-radius: 22px; }

.site-footer { background: #241447; color: #D9D0EE; }
.site-footer .brand { color: #fff; }
.footer-brand p { color: #BDB1DA; }
.footer-cols h2 { color: #fff; }
.footer-cols a { color: #D9D0EE; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); color: #A99DC8; }

@media (max-width: 900px) {
  .site-nav { background: #fff; }
  .search-card, .search-smart { grid-template-columns: 1fr 1fr; }
  .search-card .btn { grid-column: 1 / -1; }
  .sc-smart { grid-column: 1 / -1; }
  .side-layout { grid-template-columns: 1fr; gap: 14px; }
  .filters-toggle { display: inline-flex; justify-self: start; }
  .sidebar { display: none; position: static; }
  .sidebar.is-open { display: flex; }
  .alert-inner, .match-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 40px 16px; }
  .search-card, .search-smart, .search-card-slim { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-stats { width: 100%; }
  .hero-stats div { flex: 1 1 0; padding: 10px 8px; }
  .hero-stats dt { font-size: 11.5px; }
  .hero-stats dd { font-size: 20px; }
  .company-grid { grid-template-columns: 1fr 1fr; }
  .fresh-grid, .match-list { grid-template-columns: 1fr; }
  .employer-strip { padding: 26px; }
  .region-panel { padding: 6px 18px; }
}
