/* Swift Staffing Now — site styles. No framework; tokens on :root. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/inter-3100e775e8.woff2') format('woff2-variations'), url('/assets/inter-3100e775e8.woff2') format('woff2');
}

:root {
  --ink: #14171c;
  --ink-2: #262b33;
  --ink-3: #3a414c;
  --text: #1d2128;
  --muted: #59616d;
  --line: #e4e1db;
  --line-strong: #cfcac1;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --paper-3: #efece6;
  --brand: #c8202b;
  --brand-dark: #a0161f;
  --brand-tint: #fbeceb;
  --focus: #1b5fd6;
  --ok: #17643a;
  --ok-tint: #e8f4ec;
  --error: #b3261e;
  --error-tint: #fcebea;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(20 23 28 / 6%), 0 8px 24px rgb(20 23 28 / 6%);
  --container: 1180px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: 'cv11', 'ss01';
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { 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-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 0.9em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-3); max-width: 46ch; }
.arrow { display: inline-block; transition: transform 0.15s ease; }
.preview-banner { background: #fff4d6; color: #5c4400; text-align: center; font-size: 0.88rem; padding: 6px 16px; border-bottom: 1px solid #f0dc9c; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0.7em 1.3em; border-radius: var(--radius-sm);
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-sm { min-height: 40px; padding: 0.45em 1em; font-size: 0.95rem; }
.btn-lg { min-height: 52px; padding: 0.8em 1.5em; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-3); color: var(--ink); }
.btn-outline-light { border-color: rgb(255 255 255 / 70%); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / 10%); color: #fff; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.65; cursor: progress; }
.text-link { font-weight: 650; text-decoration: none; }
.text-link:hover .arrow, .card-link:hover .arrow, .path-card:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--ink); }
.logo img { display: block; height: 56px; width: auto; }
/* The tabs fill the space between the logo and the call to action and sit centered in it, so
   the logo is not isolated with an empty stretch before the first tab (owner direction, 2026-11-13). */
.site-nav { display: flex; flex: 1; align-items: center; gap: 28px; }
.site-nav ul { display: flex; flex: 1; justify-content: center; gap: 4px 10px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 9px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 0.95rem; white-space: nowrap; }
.btn { white-space: nowrap; }
.btn-wrap { white-space: normal; }
.site-nav ul a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav ul a[aria-current='page'] { color: var(--brand-dark); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
/* "Copy" beside an email address, for visitors with no email program set up (main.js) */
.copy-email { margin-left: 8px; padding: 3px 10px; min-height: 26px; font: inherit; font-size: 0.8em; font-weight: 600; line-height: 1.6; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 999px; cursor: pointer; vertical-align: 0.1em; white-space: nowrap; }
.copy-email:hover { background: rgb(127 127 127 / 12%); }
.email-with-copy { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #fff; }
.email-with-copy .copy-email { margin-left: 0; }
.phone-link { font-weight: 650; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-toggle { display: none; }

.jump-apply { margin-top: 18px; }
@media (min-width: 1001px) { .jump-apply { display: none; } }
@media (max-width: 1140px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform 0.2s ease; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .site-nav ul a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--brand); padding-left: 12px; }
  .nav-cta { flex-direction: column; align-items: stretch; padding-top: 16px; }
  .nav-cta .btn { width: 100%; }
  .phone-link { padding: 8px 4px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 8vw, 88px); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.section-head-spaced { margin-top: 64px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
}

/* ---------- Heroes ---------- */
.home-hero {
  position: relative; overflow: hidden; color: #e9e6e1; background: var(--ink);
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.home-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 62%, rgb(200 32 43 / 90%) 62% 66%, transparent 66% 69%, rgb(200 32 43 / 35%) 69% 70.5%, transparent 70.5%),
    radial-gradient(1200px 500px at 85% -10%, rgb(255 255 255 / 6%), transparent 60%);
}
.home-hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.home-hero h1 { color: #fff; max-width: 15ch; }
.home-hero .eyebrow { color: var(--brand); }
.home-hero .lead { color: #c9c5be; max-width: 52ch; }
.home-hero .btn-secondary { color: #fff; border-color: rgb(255 255 255 / 75%); }
.home-hero .btn-secondary:hover { background: #fff; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 28px 0 0; margin: 40px 0 0; border-top: 1px solid rgb(255 255 255 / 14%); font-size: 0.92rem; color: #b9b4ac; }
.hero-facts strong { display: block; color: #fff; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.01em; }
.home-paths { display: grid; gap: 16px; }
.path-card {
  display: grid; gap: 8px; padding: 26px 26px 24px; border-radius: var(--radius); text-decoration: none;
  background: #fff; color: var(--ink); box-shadow: 0 20px 40px rgb(0 0 0 / 25%); border-left: 5px solid var(--brand);
}
.path-card:hover { color: var(--ink); transform: translateY(-2px); }
.path-card { transition: transform 0.15s ease; }
.path-card-alt { border-left-color: var(--ink-3); }
.path-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-dark); }
.path-card-alt .path-kicker { color: var(--ink-3); }
.path-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.path-cta { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero::before { background: linear-gradient(115deg, transparent 0 80%, rgb(200 32 43 / 85%) 80% 84%, transparent 84%); }
}
@media (max-width: 560px) {
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-actions .btn { width: 100%; }
}

.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -40px; top: 0; bottom: 0; width: 180px; background: linear-gradient(115deg, transparent 0 40%, rgb(200 32 43 / 12%) 40% 52%, transparent 52%); pointer-events: none; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero-compact h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 30ch; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Cards and lists ---------- */
.card-grid { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { color: var(--muted); flex: 1; }
.card-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-link:hover h3 a { color: var(--brand-dark); }
.card-link:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-link h3 a:focus-visible { outline: none; }
.card-more { font-weight: 600; font-size: 0.92rem; color: var(--brand-dark); }
.section-alt .card { background: #fff; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li { counter-increment: step; position: relative; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-weight: 750; font-size: 1.05rem; color: var(--brand); font-variant-numeric: tabular-nums; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--brand); border-radius: 50%; }
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; color: var(--muted); }
.steps-wide { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps-wide li { padding: 64px 0 0; border-bottom: 0; border-top: 2px solid var(--line); }
.steps-wide li::before { top: 12px; }
@media (max-width: 1040px) { .steps-wide { grid-template-columns: 1fr; gap: 4px; } .steps-wide li { padding: 18px 0 18px 64px; border-top: 0; border-bottom: 1px solid var(--line); } .steps-wide li::before { top: 16px; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.feature-list li { padding-left: 20px; border-left: 3px solid var(--brand); }
.feature-list h3 { margin-bottom: 0.3em; }
.feature-list p { color: var(--muted); margin: 0; }
.feature-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature-list-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-bottom: 28px; }
@media (max-width: 960px) { .feature-list-3, .feature-list-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-list-3, .feature-list-4 { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.link-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.mini-steps { padding-left: 1.2em; color: var(--ink-3); display: grid; gap: 6px; }

.callout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 32px; }
.callout h2 { font-size: 1.35rem; }
.callout-accent { border-top: 5px solid var(--brand); margin-top: 0; box-shadow: var(--shadow); }
.candidate-panel { background: var(--ink); color: #d7d3cc; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.candidate-panel h3 { color: #fff; font-size: 1.4rem; }
.candidate-panel::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 160px; height: 160px; background: linear-gradient(115deg, transparent 0 45%, var(--brand) 45% 55%, transparent 55%); opacity: 0.85; }
.notice { background: #fff8e5; border: 1px solid #f0dc9c; color: #4d3a00; border-radius: var(--radius-sm); padding: 12px 16px; }

.band-dark { background: var(--ink); color: #cfcac2; }
.band-dark h2 { color: #fff; }
.band-split { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band-split p { margin: 0; max-width: 52ch; }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose-narrow { max-width: 74ch; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Jobs ---------- */
/* Jobs page: compact general-resume prompt above the filters and listings. */
.resume-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; margin-bottom: 28px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.resume-strip h2 { font-size: 1.15rem; margin: 0 0 4px; }
.resume-strip p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 72ch; }
.resume-strip .btn { flex: none; }
@media (max-width: 720px) {
  .resume-strip { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 20px; }
}
.jobs-layout { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
.job-filters { position: sticky; top: 96px; display: grid; gap: 16px; padding: 22px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.filter label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink-2); }
.filter-actions { display: flex; align-items: center; gap: 16px; }
.link-reset { font-size: 0.95rem; }
.js .filter-actions .btn { display: none; }
@media (max-width: 900px) {
  .jobs-layout { grid-template-columns: 1fr; gap: 24px; }
  .job-filters { position: static; grid-template-columns: 1fr 1fr; }
  .filter-q { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .job-filters { grid-template-columns: 1fr; } }
.results-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.job-card article { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.job-card article:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.job-card article:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.job-title { font-size: 1.2rem; margin-bottom: 10px; }
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.job-title a:focus-visible { outline: none; }
.job-card article:hover .job-title a { color: var(--brand-dark); }
.job-excerpt { color: var(--muted); margin: 12px 0 6px; }
.job-meta { color: var(--muted); font-size: 0.88rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { font-size: 0.85rem; font-weight: 600; background: var(--paper-3); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; }
.chip-muted { background: transparent; border: 1px solid var(--line-strong); font-weight: 550; }
.page-hero .chips { margin: 6px 0 14px; }
.page-hero .chip { background: #fff; }
/* ---- Jobs: List View / Map View (WD-47) ---- */
.view-toggle { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.view-toggle[hidden] { display: none; }
.view-btn { font: inherit; font-weight: 600; font-size: 0.95rem; padding: 8px 18px; min-height: 40px; background: #fff; color: var(--ink); border: 0; cursor: pointer; }
.view-btn + .view-btn { border-left: 1.5px solid var(--line-strong); }
.view-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.is-map-view { display: none !important; }
.job-map-view[hidden] { display: none; }
.job-map-frame { position: relative; height: min(70vh, 560px); min-height: 380px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.job-map-frame .job-map { position: absolute; inset: 0; height: 100%; }
/* The Remote Jobs hub sits over the Atlantic, fixed to the map frame (not to coordinates). */
.remote-hub { position: absolute; right: 22px; top: 60%; transform: translateY(-50%); z-index: 2; width: 112px; height: 112px; border-radius: 50%; border: 3px solid #fff; background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgb(20 23 28 / 30%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; cursor: pointer; }
.remote-hub:hover { background: var(--brand-dark); }
.remote-hub:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.remote-hub-label { font-size: 0.8rem; font-weight: 700; line-height: 1.1; }
.remote-hub-count { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.map-note { color: var(--muted); font-size: 0.85rem; margin: 8px 0 14px; }
.map-panel { margin: 0 0 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-panel[hidden] { display: none; }
.map-panel:focus { outline: none; }
.map-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-panel-head h2 { font-size: 1.2rem; margin: 0; }
.map-panel h3 { font-size: 1rem; margin: 16px 0 6px; }
.map-panel-close { font: inherit; font-size: 1.5rem; line-height: 1; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.map-panel-note { color: var(--muted); font-size: 0.92rem; margin: 4px 0 8px; }
.map-job-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.map-job { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.map-job-title { font-weight: 650; text-decoration: none; }
.map-job-facts { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.9rem; }
.map-job .btn { grid-column: 2; grid-row: 1 / span 2; }
.map-locations-title { font-size: 1rem; margin: 6px 0 8px; }
.map-locations ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.map-loc-btn { font: inherit; font-size: 0.9rem; padding: 6px 12px; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer; }
.map-loc-btn:hover { border-color: var(--ink); }
@media (max-width: 720px) {
  .job-map-frame { height: 58vh; min-height: 320px; }
  /* On phones the hub becomes a card below the map, clear of the map controls. */
  .remote-hub { position: static; transform: none; width: 100%; height: auto; min-height: 56px; border-radius: var(--radius); border: 0; flex-direction: row; gap: 10px; margin-top: 10px; padding: 10px 16px; }
  .job-map-view .job-map-frame { overflow: visible; border: 0; background: transparent; height: auto; min-height: 0; }
  .job-map-view .job-map-frame .job-map { position: relative; inset: auto; height: 58vh; min-height: 320px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .remote-hub-label { font-size: 1rem; }
  .map-job { grid-template-columns: 1fr; }
  .map-job .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
}
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.load-more[hidden] { display: none; }
.load-more-status { margin: 0; color: var(--muted); font-size: 0.95rem; }
.empty-state { background: var(--paper-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; }
.empty-state h2 { font-size: 1.3rem; }
.job-detail { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
.apply-panel { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.apply-panel h2 { font-size: 1.4rem; margin-bottom: 0.2em; }
.apply-panel .form-grid { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .job-detail { grid-template-columns: 1fr; } .apply-panel { position: static; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-aside h2 { font-size: 1.1rem; margin-top: 1.4em; }
.form-aside h2:first-child { margin-top: 0; }
.big-link { font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { min-width: 0; margin: 0; }
.field-full, .choice-group, .consent { grid-column: 1 / -1; }
.field > label, .choice-group legend { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); margin-bottom: 6px; }
.choice-group { border: 0; padding: 0; }
.choice-group legend { padding: 0; }
.req { color: var(--brand-dark); }
.optional { font-weight: 450; color: var(--muted); font-size: 0.88rem; }
.hint { font-size: 0.88rem; color: var(--muted); margin: -2px 0 6px; }
input[type='text'], input[type='email'], input[type='tel'], input[type='search'], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color 0.15s ease;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[type='file'] { width: 100%; padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-2); font: inherit; font-size: 0.95rem; }
input[type='file']::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink); background: #fff; cursor: pointer; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: 0.98rem; cursor: pointer; padding: 4px 0; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.consent { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.consent .choice, .field > label.choice { font-size: 0.93rem; color: var(--ink-3); font-weight: 450; }
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 550; margin: 6px 0 0; }
.field-error::before { content: '! '; font-weight: 800; }
[aria-invalid='true'] { border-color: var(--error) !important; background-color: var(--error-tint); }
.form-alert { grid-column: 1 / -1; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; background: var(--error-tint); border: 1px solid #efb8b3; color: #6d1510; font-weight: 550; }
.form-alert:focus { outline: 3px solid var(--focus); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: 18px; min-height: 65px; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-success { background: var(--ok-tint); border: 1px solid #b9dcc6; border-radius: var(--radius); padding: 24px; }
.form-success h3 { color: var(--ok); }
.form-success:focus { outline: 3px solid var(--focus); }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / 50%); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8b3ab; padding: 64px 0 0; font-size: 0.95rem; }
.site-footer a { color: #e7e3dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
/* The footer uses the logo's dark-background version (white lettering), directly on the footer. */
.footer-brand .logo img { height: 64px; }
.site-footer .muted { color: #a8a299; }
.footer-brand p { margin-top: 14px; max-width: 32ch; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8d877e; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgb(255 255 255 / 10%); padding-top: 20px; padding-bottom: 28px; font-size: 0.86rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Admin inbox ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.admin-table tr[aria-selected='true'] { background: var(--brand-tint); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.admin-detail dt { font-weight: 600; color: var(--muted); }
.admin-detail dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.status { font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper-3); }
.status-received, .status-forward_failed { background: #fff1d6; color: #6b4a00; }
.status-handled, .status-acknowledged, .status-forwarded { background: var(--ok-tint); color: var(--ok); }
.admin-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .apply-panel, .job-filters, .band-dark, .preview-banner { display: none !important; }
}
.chip-pay { background: var(--ok-tint); color: var(--ok); }

/* ---------- Insurance brokerages and agencies block ---------- */
.brokerage-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.brokerage-block h3 { font-size: 1.4rem; }
.brokerage-block .check-list { margin: 0; }
.candidate-panel h2 { color: #fff; font-size: 1.4rem; }
.candidate-panel > * { position: relative; z-index: 1; }
