/* XpatForce public site. Hand-written, no build step. */
:root {
    --brand: #047857;
    --brand-strong: #065f46;
    --brand-ink: #064e3b;
    --brand-soft: #ecfdf5;
    --brand-line: #a7f3d0;
    --accent: #f59e0b;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --danger-soft: #fff1f2;
    --danger: #be123c;
    --warn-soft: #fffbeb;
    --warn-line: #fde68a;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px -12px rgb(15 23 42 / .18);
    --shadow-lg: 0 24px 60px -24px color-mix(in srgb, var(--brand-ink) 35%, transparent);
    --brand-on-dark: #022c22;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #34d399;
        --brand-strong: #6ee7b7;
        --brand-ink: #d1fae5;
        --brand-soft: #052e22;
        --brand-line: #065f46;
        --ink: #f1f5f9;
        --text: #cbd5e1;
        --muted: #94a3b8;
        --line: #1e293b;
        --surface: #0b1220;
        --surface-2: #0f172a;
        --danger-soft: #3b0a17;
        --danger: #fda4af;
        --warn-soft: #2a1f05;
        --warn-line: #713f12;
        --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
        --shadow-lg: 0 24px 60px -24px rgb(0 0 0 / .8);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--surface); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.section { padding: 56px 16px; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.section-tight { padding-top: 28px; padding-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }

/* Logo (shared partial) */
.xf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.xf-logo-mark { width: 36px; height: 36px; flex: none; }
.xf-logo-text { font-weight: 800; font-size: 21px; letter-spacing: -.03em; color: var(--brand-ink); }
.xf-logo-text span { color: var(--brand); }
.xf-logo-suffix { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px var(--brand); }
@media (prefers-color-scheme: dark) { .btn-primary { color: var(--brand-on-dark); } }
.btn-primary:hover { background: var(--brand-strong); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-quiet { color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--surface-2); }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.disabled { opacity: .45; pointer-events: none; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { text-decoration: none; display: inline-flex; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a.active { color: var(--brand); background: var(--brand-soft); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.menu { position: relative; display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel { position: absolute; inset-inline-end: 0; top: 52px; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu-panel a { padding: 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu-panel a:hover { background: var(--brand-soft); }
.flash { margin-top: 16px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }

/* Hero */
.hero { background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(600px 300px at -10% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--brand-soft);
    padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; margin-bottom: 36px; }
.hero h1 { isolation: isolate; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .18em; background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 4px; z-index: -1; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text); max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-inline-end: 6px; }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px; transform: rotate(1.2deg); }
.mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.mock-head > div { display: grid; flex: 1; }
.mock-head strong { color: var(--ink); }
.mock-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--brand-ink); background: linear-gradient(135deg, var(--brand-line), var(--brand-soft)); flex: none; }
.mock-avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.mock-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.mock-steps li { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; padding-top: 30px; position: relative; }
.mock-steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); font-size: 11px; }
.mock-steps li.done { color: var(--brand); }
.mock-steps li.done::before { content: "✓"; background: var(--brand); border-color: var(--brand); color: #fff; }
.mock-steps li.current { color: var(--ink); }
.mock-steps li.current::before { border-color: var(--accent); background: var(--warn-soft); color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; margin-top: 8px; }
.mock-row span { color: var(--muted); }
.mock-row strong { color: var(--ink); text-align: end; }

/* Search */
.search { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 8px; background: var(--surface); padding: 8px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; border-radius: 12px; background: var(--surface-2); min-height: 52px; color: var(--muted); }
.search-field input, .search-field select { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); height: 52px; outline: none; }
.search-field select { cursor: pointer; }
.search-field:focus-within { box-shadow: 0 0 0 2px var(--brand); background: var(--surface); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 0; }
.stats div { background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stats dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.stats dd { margin: 2px 0 0; font-size: 28px; font-weight: 800; color: var(--brand-ink); letter-spacing: -.02em; }

/* Sections */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.band { background: var(--surface-2); border-block: 1px solid var(--line); }
.country-row { display: flex; flex-wrap: wrap; gap: 10px; }
.country-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); transition: border-color .15s, background .15s; }
.country-pill strong { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.country-pill:hover { border-color: var(--brand); }

/* Job cards */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.job-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.job-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.job-card h3 { margin: 4px 0 0; font-size: 17px; }
.job-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.job-trade { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.job-card-bottom { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 10px; }
.salary { color: var(--brand); font-size: 18px; letter-spacing: -.01em; }
.job-oep { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.job-oep svg { color: var(--brand); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.chip-country { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-line); }
.chip-new { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.chip-urgent { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* OEP section */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.oep-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 10px; }
.oep-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px 14px; font-weight: 800; color: var(--ink); flex-wrap: wrap; }
.oep-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; }
.oep-row:nth-child(odd) { background: var(--surface-2); }
.oep-row > div { display: grid; flex: 1; }
.oep-row strong { color: var(--ink); font-size: 15px; }


.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: 20px; }
.empty p { max-width: 460px; margin: 0 auto 16px; color: var(--muted); }

/* Jobs page */
.page-head { background: var(--brand-soft); border-bottom: 1px solid var(--line); padding: 36px 0 28px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 4px; }
.page-head .search { margin-top: 18px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar p { margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 40px; }
/* Below a long list: count, "Load more", numbered pages */
.list-foot { display: grid; justify-items: center; gap: 14px; margin-top: 28px; }
.list-foot > p { margin: 0; }
.list-foot [data-load-more][aria-busy="true"] { opacity: .6; pointer-events: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager-pages { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager-page, .pager-step, .pager-gap { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; font-weight: 700; text-decoration: none; }
.pager-page, .pager-step { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager-page.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-step.is-disabled { opacity: .4; }
.pager-gap { min-width: 20px; padding: 0; color: var(--muted); }
.pager-compact { display: none; }
@media (max-width: 560px) {
    .pager-pages { display: none; }
    .pager-compact { display: inline; padding: 0 6px; }
}

/* "See all jobs" card at the end of the phone strip */
.job-more-card { display: grid; align-content: center; gap: 6px; padding: 24px; border-radius: var(--radius); border: 2px dashed var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; text-align: center; }
.job-more-card strong { font-size: 18px; }
.job-more-card span { color: var(--brand); font-weight: 700; }
@media (min-width: 761px) { .job-more-card { display: none; } }

/* Job detail */
.back { display: inline-block; margin-bottom: 16px; font-weight: 700; text-decoration: none; }
.job-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.job-main h1 { font-size: clamp(26px, 4vw, 40px); margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 32px; }
.facts div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 800; color: var(--ink); }
.prose { white-space: normal; max-width: 68ch; }
.job-side { display: grid; gap: 14px; position: sticky; top: 88px; }
.apply-box, .oep-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.apply-box { box-shadow: var(--shadow); }
.apply-box p { margin: 10px 0 0; }
.applied { font-weight: 800; color: var(--brand); margin: 0 0 10px !important; text-align: center; }
.oep-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mini { display: grid; gap: 6px; margin: 8px 0 12px; font-size: 14px; }
.mini div { display: flex; justify-content: space-between; gap: 10px; }
.mini dt { color: var(--muted); }
.mini dd { margin: 0; font-weight: 700; color: var(--ink); }

.mobile-apply { display: none; }
@media (max-width: 960px) {
    .mobile-apply { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(15 23 42 / .25); }
    .mobile-apply > div { display: grid; line-height: 1.3; }
    .mobile-apply strong { color: var(--brand); font-size: 17px; }
    body:has(.mobile-apply) .site-footer { padding-bottom: 96px; }
}

/* Apply confirm */
.confirm-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); background: var(--surface); }
.confirm-card h1 { font-size: clamp(24px, 3.4vw, 32px); }
.confirm-cv { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface-2); border-radius: var(--radius-sm); margin: 18px 0; }
.confirm-cv > div { display: grid; flex: 1; }
.confirm-cv strong { color: var(--ink); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface-2); padding: 40px 0 20px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--text); text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid p { margin: 12px 0 0; }
.footer-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid, .split, .job-layout { grid-template-columns: 1fr; }
    .hero-card { transform: none; }
    .steps { grid-template-columns: 1fr 1fr; }
    .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .search-q { grid-column: 1 / -1; }
    .search .btn { grid-column: 1 / -1; }
    .job-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav, .hide-sm { display: none; }
    .menu { display: block; }
    .stats, .facts { grid-template-columns: 1fr 1fr; }
    .hero { padding-top: 36px; }
}
@media (max-width: 520px) {
    .steps, .footer-grid { grid-template-columns: 1fr; }
    /* Phones: keyword on top, trade and country side by side, so the first jobs show without scrolling. */
    .search { gap: 6px; padding: 6px; }
    .search-field { min-height: 46px; padding: 0 10px; }
    .search-field input, .search-field select { height: 46px; font-size: 15px; }
    .search .btn { min-height: 46px; padding: 10px; }
    .page-head { padding: 22px 0 18px; }
    .header-actions .btn-primary { padding: 8px 14px; font-size: 14px; min-height: 40px; }
    .xf-logo-text { font-size: 19px; }
    .hero-ctas .btn { width: 100%; }
    .job-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* WhatsApp sharing */
.btn-whatsapp { background: #25d366; color: #052e16; box-shadow: 0 6px 18px -8px #25d366; }
.btn-whatsapp:hover { background: #1fbd59; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.btn-icon { width: 48px; padding: 0; }
.wa-icon { flex: none; }
.share-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.share-title { margin: 0 0 10px; font-weight: 700; color: var(--ink); font-size: 15px; }
.share-row { display: flex; justify-content: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card-share { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #1a9e4b; background: color-mix(in srgb, #25d366 14%, var(--surface)); transition: background .15s, transform .15s; }
.card-share:hover { background: #25d366; color: #052e16; transform: scale(1.06); }
.job-card .job-card-top { padding-inline-end: 44px; }
.invite { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px dashed color-mix(in srgb, #25d366 55%, var(--line)); }
.invite > div { display: grid; gap: 2px; }
.invite strong { color: var(--ink); font-size: 17px; }
.mobile-apply-actions { display: flex; gap: 8px; }
@media (max-width: 520px) { .invite .btn { width: 100%; } }
.nowrap { white-space: nowrap; }
.menu-cta { display: none !important; }
.header-row { min-width: 0; }
@media (max-width: 440px) {
    /* Logo + menu must fit a small phone. */
    .header-actions > .btn-primary { display: none; }
    .menu-cta { display: block !important; color: var(--brand) !important; font-weight: 800 !important; }
}
.mobile-apply > .mobile-apply-actions { display: flex; align-items: center; gap: 8px; }

/* Employer home page */
.pool-card { transform: rotate(-1deg); }
.pool-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); color: var(--ink); }
.pool-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; align-items: center; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.pool-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.pool-row strong { color: var(--brand-ink); min-width: 2.5ch; text-align: end; }
.pool-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pool-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); }
.pool-foot { margin: 10px 0 0; }
.trade-tile { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.trade-tile strong { color: var(--ink); }
.trade-tile-cta { font-size: 13px; font-weight: 700; color: var(--brand); margin-top: 4px; opacity: 0; transition: opacity .15s; }
.trade-tile:hover, .trade-tile:focus-visible { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-1px); }
.trade-tile:hover .trade-tile-cta, .trade-tile:focus-visible .trade-tile-cta { opacity: 1; }
@media (hover: none) { .trade-tile-cta { opacity: 1; } }
.trade-tile-more { background: var(--brand-soft); border-style: dashed; border-color: var(--brand-line); }
.trade-tile-more strong { color: var(--brand-ink); }
.exp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }
.why-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.member-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.member-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.member-head { display: flex; align-items: center; gap: 14px; }
.member-head h3 { margin: 0 0 2px; font-size: 17px; }
.member-logo { width: 56px; height: 56px; flex: none; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.member-initials { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 18px; border-color: var(--brand-line); }
.member-about { margin: 14px 0 0; color: var(--text); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.member-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.member-licence { color: var(--muted); }
.member-licence bdi { color: var(--ink); font-weight: 700; }
.member-more { color: var(--brand); font-weight: 700; white-space: nowrap; }

/* Member agency page */
.member-title { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.member-title h1 { margin-bottom: 4px; }
.member-title .eyebrow { margin-bottom: 4px; }
.member-title p.muted { margin: 0; }
.member-logo-lg { width: 96px; height: 96px; border-radius: 22px; font-size: 32px; }
.member-main h2 { margin-top: 28px; font-size: 22px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-lg { font-size: 14px; padding: 6px 14px; }
.apply-box h3 { margin-bottom: 4px; }
.pool-number { font-size: 34px; font-weight: 800; color: var(--brand-ink); margin: 4px 0 0; letter-spacing: -.02em; }
@media (max-width: 520px) {
    .member-title { flex-direction: column; align-items: flex-start; gap: 12px; }
    .member-logo-lg { width: 72px; height: 72px; font-size: 24px; }
}
.enquiry-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: grid; gap: 0; }
.contact-list a { font-weight: 700; font-size: 17px; text-decoration: none; }
.enquiry-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink); }
.field em { font-style: normal; font-weight: 500; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 46px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); background: var(--surface); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-weight: 600; }
.form-alert { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 700; font-size: 14.5px; }
.filter-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; padding: 0; }
.chip-filter { font-size: 13.5px; padding: 6px 12px; text-decoration: none; background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-line); }
.chip-filter span { font-size: 16px; line-height: 1; margin-inline-start: 2px; }
.chip-filter:hover, .chip-filter:focus-visible { background: var(--surface); border-color: var(--brand); }
.field-wide { grid-column: 1 / -1; }
.enquiry-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.enquiry-sent { text-align: center; padding: 24px 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.worker-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.worker-cta > div { display: grid; gap: 2px; }
.worker-cta strong { color: var(--ink); font-size: 17px; }
[id] { scroll-margin-top: 84px; }
@media (max-width: 960px) {
    .enquiry-grid { grid-template-columns: 1fr; gap: 24px; }
    .pool-card { transform: none; }
}
@media (max-width: 520px) {
    .enquiry-form { grid-template-columns: 1fr; }
    .enquiry-card { padding: 18px; }
    .enquiry-submit .btn, .worker-cta .btn { width: 100%; }
}

/* Scrolling strips (<x-strip>, behaviour in public/js/site.js) */
.strip { position: relative; }
.strip-track { --fade: 44px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 1), auto); grid-auto-columns: var(--item, minmax(280px, 320px)); gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 14px;
    scrollbar-width: thin; scrollbar-color: var(--brand-line) transparent; }
.strip-track > * { scroll-snap-align: start; min-width: 0; }
.strip-track:focus-visible { outline-offset: 4px; }
.strip.can-next .strip-track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); }
.strip.can-prev .strip-track { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade)); mask-image: linear-gradient(to right, transparent, #000 var(--fade)); }
.strip.can-prev.can-next .strip-track { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
.strip-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.strip-hint { display: none; margin-inline-end: auto; color: var(--muted); }
.strip-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, color .15s, opacity .15s; }
.strip-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.strip-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.strip-static .strip-nav { display: none; }
/* Trades: one sideways-scrolling line on every screen; about 5 tiles show on a laptop, 2½ on a phone. */
.strip-trades { --item: minmax(170px, 200px); }
@media (max-width: 520px) { .strip-trades { --item: 40%; } }
.strip-trades .strip-track { gap: 10px; }
.strip-why { --item: 82%; }
.strip-jobs { --item: minmax(270px, 84%); }
@media (max-width: 760px) {
    .strip-hint { display: inline; }
    .strip-btn { display: none; }
}
@media (max-width: 520px) {
    .strip-members { --item: 85%; }
}
/* mobile-only strips are ordinary grids on wider screens */
@media (min-width: 761px) {
    .strip-mobile .strip-track { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: var(--grid, repeat(auto-fill, minmax(300px, 1fr)));
        overflow: visible; padding: 0; -webkit-mask-image: none !important; mask-image: none !important; }
    .strip-mobile .strip-nav { display: none; }
    .strip-why { --grid: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 960px) {
    .strip-why { --grid: repeat(2, minmax(0, 1fr)); }
}

/* Rows of chips/pills: one swipeable line on phones */
@media (max-width: 760px) {
    .scroll-row { --fade: 32px; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
    .scroll-row::-webkit-scrollbar { display: none; }
    .scroll-row > * { flex: none; }
    .scroll-row.can-next { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); }
    .scroll-row.can-prev { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade)); mask-image: linear-gradient(to right, transparent, #000 var(--fade)); }
    .scroll-row.can-prev.can-next { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
}

/* Header shadow once scrolled; current section in the menu */
.site-header { transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgb(15 23 42 / .45); }

/* Phone call-to-action bar on the employer page */
.cta-bar { display: none; }
@media (max-width: 760px) {
    .cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px -12px rgb(15 23 42 / .25); transform: translateY(110%); transition: transform .25s ease; }
    .cta-bar span { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; }
    .cta-bar .btn { flex: none; }
    .cta-bar.is-visible { transform: none; }
    body:has(.cta-bar) .site-footer { padding-bottom: 88px; }
}

/* Back to top */
.back-to-top { position: fixed; right: 16px; bottom: 20px; z-index: 35; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
    opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 760px) {
    body:has(.cta-bar) .back-to-top { bottom: 84px; }
}
@media (max-width: 960px) {
    body:has(.mobile-apply) .back-to-top { bottom: 92px; }
}
