/* Advargo Jobs — advargojobs.com (country editions, Indeed-style layout) */
:root {
  --brand: #0B7A63;          /* buttons, links, focus */
  --brand-d: #085E4C;
  --brand-tint: #E6F4F0;
  --ink: #2D2D2D;
  --ink-2: #424242;
  --muted: #595959;
  --muted-2: #767676;
  --line: #E4E2E0;
  --line-2: #D4D2D0;
  --page: #F3F2F1;
  --white: #FFFFFF;
  --pill: #F3F2F1;
  --warn-bg: #FFF8E1;
  --warn: #6B4C00;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --ok-bg: #E6F4F0;
  --info-bg: #EEF1FA;
  --info: #2A3F7A;

  --font: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r: 8px;
  --r-lg: 12px;
  --wrap: 1180px;
  --gutter: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-d); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip: auto; background: var(--white); padding: 8px 12px; z-index: 100; border: 2px solid var(--brand); border-radius: var(--r); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 24px; max-width: none; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 28px; height: 28px; }
.brand-word { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand-word span { color: var(--brand); }
.nav { display: flex; align-self: stretch; }
.nav a { display: flex; align-items: center; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 15px; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); font-weight: 600; }
.nav .mobile-only { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-actions .divider { width: 1px; height: 24px; background: var(--line); margin: 0 10px; }
.link-btn { background: none; border: 0; font: inherit; color: var(--brand); font-weight: 700; cursor: pointer; padding: 8px 10px; text-decoration: none; border-radius: var(--r); }
.link-btn:hover { background: var(--page); color: var(--brand-d); }
.plain-link { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: var(--r); }
.plain-link:hover { background: var(--page); color: var(--ink); }
.country-chip { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; color: var(--muted); padding: 8px 10px; border-radius: var(--r); cursor: pointer; }
.country-chip:hover { background: var(--page); color: var(--ink); }
.country-chip b { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 8px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: 6px 8px; border-radius: var(--r); }
.user-menu > button:hover { background: var(--page); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; min-width: 220px; box-shadow: var(--shadow); }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--page); }
@media (max-width: 900px) {
  .site-header .wrap { padding: 0 12px; gap: 8px; }
  .menu-toggle { display: block; order: 3; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 12px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 0; }
  .nav .mobile-only { display: flex; }
  .header-actions .divider, .header-actions .hide-sm { display: none; }
}

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-d); color: var(--white); }
.btn-outline { background: var(--white); color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-d); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--page); color: var(--ink); }
.btn-grey { background: var(--page); color: var(--ink); }
.btn-grey:hover { background: var(--line); color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r); border: 0; background: var(--page); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--line); }
.icon-btn[aria-pressed="true"] { color: var(--brand); }

/* ---------------------------------------------------------- search pill */
.search-pill { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; border: 1px solid var(--line-2); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); padding: 6px 6px 6px 0; max-width: 1080px; margin: 0 auto; }
.search-pill label { display: flex; align-items: center; gap: 12px; padding: 0 20px; color: var(--ink); }
.search-pill label + label { border-left: 1px solid var(--line-2); }
.search-pill input { border: 0; font: inherit; font-size: 16px; padding: 14px 0; width: 100%; color: var(--ink); background: transparent; }
.search-pill input::placeholder { color: var(--muted-2); }
.search-pill input:focus { outline: none; }
.search-pill:focus-within { border-color: var(--brand); }
.search-pill .btn { padding: 13px 26px; font-size: 16px; border-radius: 10px; }
@media (max-width: 700px) {
  .search-pill { grid-template-columns: 1fr; padding: 0; border-radius: var(--r-lg); }
  .search-pill label { padding: 0 14px; }
  .search-pill label + label { border-left: 0; border-top: 1px solid var(--line); }
  .search-pill .btn { margin: 8px; border-radius: var(--r); }
}

/* ------------------------------------------------------------------ home */
.home-top { padding: 28px 0 8px; }
.home-hero { text-align: center; padding: 40px 0 30px; }
.home-hero h1 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 8px; }
.home-hero p { color: var(--ink-2); font-size: 16px; }
.home-hero .btn { margin-top: 6px; }
.popular { text-align: center; margin: 4px auto 0; max-width: 900px; }
.popular a { display: inline-block; margin: 4px; padding: 6px 12px; border-radius: 999px; background: var(--page); color: var(--ink); text-decoration: none; font-size: 14px; }
.popular a:hover { background: var(--line); }
.feed-tabs { display: flex; justify-content: center; border-bottom: 1px solid var(--line); margin-top: 26px; }
.feed-tabs span { padding: 12px 18px; font-weight: 700; border-bottom: 3px solid var(--ink); }
.home-more { border-top: 1px solid var(--line); padding: 40px 0; background: var(--white); }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
.cat-grid a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cat-grid a:hover { color: var(--brand); }
.cat-grid span { color: var(--muted); }
.employer-cta { background: var(--page); border-radius: var(--r-lg); padding: 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 36px; }
.employer-cta h2 { margin: 0 0 4px; }
.employer-cta p { margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------ geo banner */
.geo-banner { background: var(--info-bg); color: var(--info); font-size: 14px; }
.geo-banner .wrap { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px var(--gutter); }
.geo-banner a { font-weight: 700; color: var(--info); }
.geo-banner button { background: none; border: 0; color: var(--info); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------------------------------------------------------- results area */
.results-page { padding: 18px 0 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px auto 0; max-width: 1080px; justify-content: flex-start; }
.filters select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232D2D2D' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 0; border-radius: var(--r); padding: 9px 34px 9px 14px; cursor: pointer; max-width: 220px; }
.filters select:hover { background-color: var(--line); }
.filters select.on { background-color: var(--brand); color: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.filters .clear { background: none; border: 0; font: inherit; font-size: 14px; color: var(--brand); font-weight: 600; cursor: pointer; }
.results-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; padding: 18px 0 10px; }
.results-meta select { font: inherit; font-size: 14px; border: 0; background: none; color: var(--ink); font-weight: 700; cursor: pointer; }
.results-heading { font-size: 14px; color: var(--muted); margin: 0; font-weight: 400; }
.results-heading strong { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; max-width: 1080px; margin: 0 auto; }
.split .detail-pane { position: sticky; top: 76px; height: calc(100vh - 92px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--white); }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } .split .detail-pane { display: none; } }

/* ------------------------------------------------------------ job cards */
.job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.job-card { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 18px; background: var(--white); }
.job-card:hover { border-color: var(--muted-2); }
.job-card.active { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.job-card .new { color: #8B2B2B; font-size: 12px; font-weight: 700; display: block; margin-bottom: 2px; }
.job-card .featured { display: inline-block; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-bottom: 4px; }
.job-card .title { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; padding-right: 40px; }
.job-card .title:hover { text-decoration: underline; }
.job-card .title::after { content: ""; position: absolute; inset: 0; }
.job-card .company { margin-top: 4px; color: var(--ink); }
.job-card .loc { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--pill); color: var(--ink-2); border-radius: 4px; padding: 4px 8px; font-size: 13px; font-weight: 600; }
.pill.pay { background: var(--brand-tint); color: var(--brand-d); }
.job-card .snippet { margin: 10px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .when { margin-top: 10px; color: var(--muted-2); font-size: 13px; }
.job-card .card-action { position: absolute; top: 12px; right: 12px; z-index: 1; }
.verified { display: inline-flex; vertical-align: -3px; color: var(--brand); margin-left: 3px; }
.logo { width: 56px; height: 56px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); object-fit: contain; }
.logo-ph { width: 56px; height: 56px; border-radius: var(--r); background: var(--brand-tint); color: var(--brand-d); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.logo-sm, .logo-sm.logo-ph { width: 40px; height: 40px; font-size: 15px; }

/* ------------------------------------------------------------ job detail */
.jd-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 4px 6px -6px rgba(0,0,0,.25); }
.jd-head h2, .jd-head h1 { font-size: 22px; margin: 0 0 6px; }
.jd-head h1 { font-size: 26px; }
.jd-head .company-line { font-size: 15px; }
.jd-head .company-line a { color: var(--ink); text-decoration: underline; }
.jd-head .loc { color: var(--ink-2); margin-top: 2px; }
.jd-head .pay { font-weight: 600; margin-top: 4px; }
.apply-bar { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.jd-body { padding: 4px 22px 28px; overflow-y: auto; flex: 1; }
.jd-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.jd-section:last-child { border-bottom: 0; }
.jd-section h3 { font-size: 18px; margin-bottom: 12px; }
.jd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; }
.jd-facts dt { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.jd-facts dd { margin: 6px 0 0; }
.prose { max-width: 72ch; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin: 4px 0; }
.prose h4 { margin-top: 18px; }
.notices { list-style: none; margin: 0; padding: 0; }
.notices li { background: var(--info-bg); color: var(--info); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; font-size: 14px; display: flex; gap: 10px; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skills span { background: var(--pill); border-radius: 4px; padding: 4px 8px; font-size: 13px; }
.page-job { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 20px 0 60px; align-items: start; }
.page-job .jd-head { padding: 0 0 16px; box-shadow: none; }
.page-job .jd-body { padding: 0; overflow: visible; }
.aside-box { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list a { font-weight: 700; color: var(--ink); text-decoration: none; }
.mini-list a:hover { text-decoration: underline; }
@media (max-width: 900px) { .page-job { grid-template-columns: 1fr; } }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); }

.notice { border-radius: var(--r); padding: 12px 14px; background: var(--page); margin: 12px 0; font-size: 14px; }
.notice.ok { background: var(--ok-bg); color: var(--brand-d); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.err { background: var(--danger-bg); color: var(--danger); }
.notice.info { background: var(--info-bg); color: var(--info); }

.pager { display: flex; gap: 6px; justify-content: center; padding: 22px 0 6px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 0; background: var(--white); border-radius: var(--r); font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.pager button:hover { background: var(--page); }
.pager button[aria-current="true"] { background: var(--ink); color: var(--white); }
.pager button:disabled { opacity: .35; cursor: default; }
.empty { padding: 28px 4px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* --------------------------------------------------------------- forms */
.form-card { max-width: 460px; margin: 36px auto 64px; }
.form-card h1 { font-size: 26px; }
.field { margin-bottom: 16px; }
.field > label, .field .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .err-msg { font-size: 13px; color: var(--danger); margin-top: 4px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #949494; border-radius: var(--r); padding: 10px 12px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .row2, .row3, .row4 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 12px; font-size: 15px; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: 6px 0 22px; }
.role-switch button { border: 0; background: none; font: inherit; font-weight: 600; padding: 12px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.role-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.file-drop { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rules-box { background: var(--info-bg); color: var(--info); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 18px; font-size: 14px; }
.rules-box h4 { color: var(--info); margin-bottom: 6px; }
.rules-box ul { margin: 0; padding-left: 18px; }
.rules-box li { margin: 4px 0; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.radio-row input { accent-color: var(--brand); width: 18px; height: 18px; }

/* ---------------------------------------------------------- dashboards */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 28px 0 64px; align-items: start; }
.dash-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav .who { padding: 0 12px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.dash-nav .who strong { display: block; font-size: 17px; }
.dash-nav a { padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); display: flex; justify-content: space-between; }
.dash-nav a:hover { background: var(--page); }
.dash-nav a[aria-current="page"] { background: var(--page); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.dash-nav .count { background: var(--brand); color: var(--white); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; }
  .dash-nav .who { display: none; }
  .dash-nav a { white-space: nowrap; }
}
.panel { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; background: var(--white); }
.panel h3 { margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpis div { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 18px; }
.kpis b { display: block; font-size: 30px; line-height: 1.1; }
.kpis span { color: var(--muted); font-size: 14px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td .sub { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table td { border: 0; padding: 4px 0; }
}
.badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 13px; font-weight: 700; background: var(--page); color: var(--ink-2); white-space: nowrap; }
.badge.live, .badge.hired, .badge.offered { background: var(--ok-bg); color: var(--brand-d); }
.badge.pending, .badge.applied, .badge.viewed { background: var(--warn-bg); color: var(--warn); }
.badge.shortlisted, .badge.interview { background: var(--info-bg); color: var(--info); }
.badge.rejected { background: var(--danger-bg); color: var(--danger); }
.applicant { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 12px; }
.applicant .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.applicant .name { font-weight: 700; font-size: 17px; }
.applicant details { margin-top: 10px; }
.applicant summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; }
.applicant .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.applicant select { font: inherit; font-size: 14px; border: 1px solid #949494; border-radius: var(--r); padding: 7px 10px; background: var(--white); }

/* ------------------------------------------------------------- modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal { background: var(--white); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; }
.modal .close { float: right; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.country-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.country-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; }
.country-list a:hover { border-color: var(--brand); color: var(--brand-d); }
.country-list a[aria-current="true"] { border-color: var(--brand); background: var(--brand-tint); }
.country-list .code { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--page); border-radius: 4px; padding: 2px 6px; min-width: 30px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--r); z-index: 80; max-width: calc(100% - 32px); box-shadow: var(--shadow); }

/* ------------------------------------------------------- root picker */
.picker { max-width: 760px; margin: 0 auto; padding: 70px var(--gutter) 60px; text-align: center; }
.picker .brand { justify-content: center; margin-bottom: 24px; }
.picker .brand svg { width: 44px; height: 44px; }
.picker .brand-word { font-size: 32px; }
.picker .country-list { text-align: left; margin-top: 24px; }

/* ----------------------------------------------------------- companies */
.company-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.company-list li { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.company-list a { font-weight: 700; color: var(--ink); text-decoration: none; }
.company-list a:hover { text-decoration: underline; }
.company-hero { padding: 30px 0 22px; border-bottom: 1px solid var(--line); display: flex; gap: 18px; align-items: center; }

.skeleton { background: linear-gradient(90deg, var(--page) 25%, #E9E8E6 50%, var(--page) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; height: 14px; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--muted); font-size: 14px; margin-top: 20px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 26px; }
.site-footer h4 { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .countries { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .legal { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }

.legal-page { max-width: 76ch; padding: 30px 0 60px; }
.legal-page h1 { font-size: 30px; }
.legal-page h2 { font-size: 20px; margin-top: 28px; }
.legal-page table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-page td, .legal-page th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
