/* Universal: the [hidden] HTML attribute must always actually hide.
   Any author rule that sets a `display` value can otherwise win over the UA
   `[hidden] { display: none }` because specificities tie. */
[hidden] { display: none !important; }

:root {
  --color-navy: #1f1f1f;
  --color-navy-2: #2a2a2a;
  --color-ink: #1a1a1a;
  --color-accent: #e94b3c;
  --color-accent-2: #f26859;
  --color-accent-soft: #fceae7;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-line: #ececef;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f8;
  --color-bg-card: #ffffff;
  --color-success: #117a4a;
  --color-danger: #b1240b;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(11, 26, 44, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 26, 44, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 26, 44, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--color-ink); margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ====== Utility bar ====== */
.utility-bar {
  background: var(--color-ink);
  color: #c8d2df;
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  height: 36px;
}
.utility-bar a { color: #c8d2df; }
.utility-bar a:hover { color: #fff; }

/* ====== Main nav ====== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-navy);
  color: #fff;
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  color: #fff;
}
.brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-accent), #6fa1ff);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
}
.brand-name { color: #fff; }
.brand-name span { color: #9ec0ff; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
  list-style: none; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  color: #e6edf6;
  background: none; border: 0; font: inherit;
  border-radius: 6px;
  cursor: pointer;
}
.nav-links a:hover, .nav-links button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px;
  height: 2px; background: var(--color-accent-2); border-radius: 2px;
}

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 16px !important;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--color-accent-2); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 0; color: #fff;
  padding: 8px; cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px); left: 0;
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  display: none;
}
.nav-dropdown a {
  display: block; padding: 10px 12px; border-radius: 6px; color: var(--color-text);
}
.nav-dropdown a:hover { background: var(--color-bg-soft); color: var(--color-accent); }
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--color-navy);
    flex-direction: column; align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform 0.2s ease;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a, .nav-links button { padding: 14px; }
  .nav-dropdown { position: static; box-shadow: none; background: rgba(255,255,255,0.05); color: #fff; display: none; }
  .nav-dropdown a { color: #e6edf6; }
  .nav-links > li.is-open .nav-dropdown { display: block; }
}

/* ====== Hero ====== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(14,42,71,0.92), rgba(31,111,235,0.7)),
    linear-gradient(135deg, #0e2a47, #1f6feb);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 64px);
  pointer-events: none;
  opacity: 0.55;
}
.hero .container {
  position: relative; z-index: 1;
  padding-top: 96px; padding-bottom: 112px;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero .subhead {
  font-size: 1.15rem;
  color: #d6e3f5;
  max-width: 680px;
  margin-bottom: 32px;
}

.search-card {
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 10px;
  max-width: 880px;
}
.search-card label {
  font-size: 0.78rem;
  color: var(--color-muted);
  display: block;
  margin-bottom: 4px;
  padding-left: 10px;
}
.search-card .field {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}
.search-card input,
.search-card select {
  width: 100%;
  border: 0; background: transparent;
  font: inherit; color: var(--color-text);
  padding: 6px 0;
  outline: none;
}
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 0;
  font: inherit;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease, color 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--color-accent); border: 1px solid var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent-soft); }
.btn-ghost { background: transparent; color: var(--color-accent); }
.btn-ghost:hover { background: var(--color-accent-soft); }

@media (max-width: 760px) {
  .search-card { grid-template-columns: 1fr; }
}

/* ====== Sections ====== */
section { padding: 72px 0; }
.section-title { max-width: 720px; margin-bottom: 32px; }
.section-title .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-title p { color: var(--color-muted); font-size: 1.05rem; }

.bg-soft { background: var(--color-bg-soft); }
.bg-navy { background: var(--color-navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #d6e3f5; }

/* ====== Cards ====== */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  color: var(--color-text);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cdd6e4; }
.card .card-eyebrow {
  font-size: 0.78rem; color: var(--color-accent);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--color-muted); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid; place-items: center;
  font-weight: 800;
}
.card-link { color: var(--color-accent); font-weight: 600; margin-top: auto; }
.card-link:hover { text-decoration: underline; }

/* ====== Job list cards ====== */
.job-list { display: grid; gap: 16px; }
.job-card {
  background: #fff; border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.job-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.job-card h3 { margin: 0; }
.job-card .meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  color: var(--color-muted); font-size: 0.9rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 3px 10px; font-size: 0.78rem; font-weight: 600;
}
.badge.muted { background: var(--color-bg-soft); color: var(--color-muted); }
.job-card .summary { color: var(--color-text); margin: 6px 0 0; }
.job-card .actions { align-self: center; }

@media (max-width: 640px) {
  .job-card { grid-template-columns: 1fr; }
}

/* ====== Filters layout ====== */
.jobs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filters {
  background: #fff; border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky; top: 88px;
}
.filters h4 {
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-muted); margin: 18px 0 8px;
}
.filters h4:first-of-type { margin-top: 0; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-bg-soft); color: var(--color-text);
  border: 1px solid transparent; border-radius: 999px;
  padding: 6px 12px; margin: 0 6px 6px 0;
  cursor: pointer; font-size: 0.88rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-chip.is-on { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.results-count { color: var(--color-muted); font-size: 0.95rem; }
.empty {
  background: #fff; border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; color: var(--color-muted);
}

@media (max-width: 900px) {
  .jobs-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

/* ====== Job detail ====== */
.job-detail-header {
  background: var(--color-navy); color: #fff;
  padding: 56px 0 40px;
}
.job-detail-header h1 { color: #fff; margin-bottom: 12px; }
.job-detail-header .meta { color: #c2d4eb; }
.job-detail-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.job-body {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
  padding: 56px 0;
}
.job-body h2 { font-size: 1.35rem; margin-top: 1.5em; }
.job-body h2:first-child { margin-top: 0; }
.job-body ul { padding-left: 1.2em; }
.job-body li { margin-bottom: 6px; }
.job-side {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.job-side h4 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 8px; }
.job-side dl { margin: 0 0 16px; }
.job-side dt { font-weight: 600; font-size: 0.85rem; color: var(--color-muted); margin-top: 8px; }
.job-side dd { margin: 0; }

@media (max-width: 900px) {
  .job-body { grid-template-columns: 1fr; }
  .job-side { position: static; }
}

/* ====== Forms ====== */
.form-card {
  background: #fff; border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field-group label {
  display: block; font-weight: 600; font-size: 0.92rem;
  margin-bottom: 6px;
}
.field-group .hint { color: var(--color-muted); font-size: 0.82rem; margin-top: 4px; }
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="url"],
.field-group input[type="number"],
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font: inherit; color: var(--color-text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.18);
}
.field-group textarea { min-height: 130px; resize: vertical; }
.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"],
.field-group textarea[aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: 0.82rem; margin-top: 4px; display: none; }
.field-error.is-visible { display: block; }

.file-drop {
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-md);
  padding: 18px; background: var(--color-bg-soft);
  text-align: center; color: var(--color-muted);
}
.file-drop input[type="file"] { display: block; margin: 8px auto 0; }
.file-drop.has-file { border-style: solid; color: var(--color-text); background: #fff; }

.checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: var(--color-text);
}
.checkbox-row input { margin-top: 4px; }

.form-status {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-success { display: block; background: #e7f6ee; color: var(--color-success); }
.form-status.is-error { display: block; background: #fdecea; color: var(--color-danger); }

.btn-primary.is-loading { pointer-events: none; opacity: 0.75; }
.btn-primary.is-loading::after {
  content: ""; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}

/* ====== Awards / chip strip ====== */
.chip-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.chip {
  background: #fff; border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem; color: var(--color-text);
}
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.award {
  background: #fff; border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 18px; text-align: center; color: var(--color-muted);
}
.award strong { display: block; color: var(--color-ink); margin-bottom: 4px; }

/* ====== FAQ accordion ====== */
.faq { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.faq-item { border-top: 1px solid var(--color-line); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--color-accent); font-size: 1.4rem; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 22px 22px; color: var(--color-text); }

/* ====== Footer ====== */
.site-footer {
  background: var(--color-ink);
  color: #c8d2df;
  padding: 56px 0 32px;
}
.site-footer .container { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.site-footer h5 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer a { color: #c8d2df; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid #1d3454;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid #244266; border-radius: 50%;
}
.footer-social a:hover { border-color: var(--color-accent); color: var(--color-accent-2); }

@media (max-width: 900px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ====== Fraud / notice strip ====== */
.notice {
  background: #fff7e6; border: 1px solid #f3d99a;
  color: #6b4a00;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
}
.notice strong { color: #4f3500; }

/* ====== Breadcrumb ====== */
.crumb {
  font-size: 0.88rem; color: var(--color-muted);
  margin-bottom: 16px;
}
.crumb a { color: var(--color-muted); }
.crumb a:hover { color: var(--color-accent); }
.crumb .sep { margin: 0 6px; opacity: 0.5; }

/* ====== Misc ====== */
.kv { display: flex; gap: 8px; font-size: 0.92rem; color: var(--color-muted); }
.kv strong { color: var(--color-text); }

.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: -10000px; top: auto;
  padding: 10px 16px; background: #fff; color: var(--color-accent);
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 100; }

/* ====== Large hero (homepage) ====== */
.hero-large {
  position: relative;
  min-height: 640px;
  background: #0a1c30;
  color: #fff;
  overflow: hidden;
}
.hero-large .hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(8,22,40,0.85) 0%, rgba(8,22,40,0.55) 55%, rgba(8,22,40,0.2) 100%),
    radial-gradient(1200px 600px at 80% 10%, rgba(31,111,235,0.55), transparent 60%),
    linear-gradient(135deg, #0a1c30 0%, #0f3a6e 60%, #1f6feb 100%);
}
.hero-large .hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px);
  mix-blend-mode: screen;
}
.hero-large .container {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-large h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 16ch;
  margin: 0;
}
.hero-large .hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: #d6e3f5;
  max-width: 56ch;
  margin: 0;
}

.hero-search {
  background: #fff;
  color: var(--color-text);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: stretch;
  max-width: 980px;
}
.hero-search .hs-field {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 10px 44px 10px 14px;
}
.hero-search .hs-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2px;
}
.hero-search .hs-field input,
.hero-search .hs-field select {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0;
  outline: none;
}
.hs-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--color-bg-soft);
  color: var(--color-muted);
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  font-size: 0.95rem; line-height: 1;
}
.hs-field.has-value .hs-clear { display: inline-flex; }
.hs-clear:hover { background: var(--color-line); color: var(--color-text); }

.hero-search button[type="submit"] {
  background: var(--color-accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  padding: 0 28px;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.hero-search button[type="submit"]:hover { background: var(--color-accent-2); }

.hero-large .hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center;
  color: #cfe0f7;
  font-size: 0.95rem;
}
.hero-large .hero-meta a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.hero-large .hero-meta a:hover { border-color: #fff; }

@media (max-width: 820px) {
  .hero-large { min-height: 560px; }
  .hero-large .container { padding-top: 72px; padding-bottom: 56px; }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search button[type="submit"] { padding: 14px; }
}

/* ====== Awards strip (AECOM-style horizontal credentials) ====== */
.credentials {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}
.credentials .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding: 28px 24px;
  align-items: center;
  justify-content: center;
}
.credential {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 140px;
}
.credential .cred-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-bg-soft);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.credential .cred-title { font-weight: 700; font-size: 0.85rem; color: var(--color-ink); }
.credential .cred-sub { font-size: 0.75rem; color: var(--color-muted); }

/* ====== Notice stack (fraud / recruiter / EOE) ====== */
.notice-stack {
  background: var(--color-bg-soft);
}
.notice-stack .container {
  display: grid;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
  max-width: 980px;
}
.notice-block h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  margin-bottom: 10px;
}
.notice-block p { color: var(--color-text); font-size: 0.95rem; line-height: 1.65; margin: 0 0 8px; }
.notice-block a { color: var(--color-accent); text-decoration: underline; }

/* ====== Apply page (SmartRecruiters one-click style) ====== */
.apply-header {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}
.apply-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
  max-width: 980px;
}
.apply-header .ah-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  font-size: 1.05rem;
}
.apply-header .ah-brand .brand-mark { width: 30px; height: 30px; font-size: 0.8rem; }
.apply-header .ah-job {
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.4;
}
.apply-header .ah-job-title { font-weight: 700; color: var(--color-ink); }
.apply-header .ah-job-loc { color: var(--color-muted); }
.apply-header .ah-job-loc::before { content: "📍 "; }

.apply-shell {
  background: #f5f5f7;
  min-height: calc(100vh - 64px);
  padding: 32px 0 80px;
}
.apply-shell .container { max-width: 820px; }

.apply-card {
  background: #fff;
  border: 1px solid #e6e6ea;
  border-radius: 6px;
  padding: 32px 36px;
}

.apply-section-block {
  padding: 24px 0;
  border-bottom: 1px solid #ececef;
}
.apply-section-block:first-child { padding-top: 0; }
.apply-section-block:last-child { border-bottom: 0; padding-bottom: 0; }
.apply-section-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 6px;
}
.apply-section-block .req-hint {
  color: #6c757d;
  font-size: 0.78rem;
  margin: 0 0 18px;
}

.easy-apply-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.easy-apply-row .or-divider {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 0 8px;
}
.easy-apply-row .or-divider::before,
.easy-apply-row .or-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: #d0d4dc;
}
.easy-apply-row .or-divider::before { top: 0; bottom: calc(50% + 14px); }
.easy-apply-row .or-divider::after { top: calc(50% + 14px); bottom: 0; }

.dropzone {
  border: 1px dashed #b6c2d6;
  border-radius: 4px;
  padding: 26px 18px;
  text-align: center;
  background: #fff;
  color: var(--color-text);
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100px;
}
.dropzone .dz-main { color: var(--color-accent); font-weight: 600; font-size: 0.95rem; }
.dropzone .dz-main span { color: var(--color-text); font-weight: 400; }
.dropzone .dz-limit { color: var(--color-muted); font-size: 0.78rem; margin-top: 4px; }
.dropzone.has-file { border-style: solid; border-color: var(--color-accent); background: #f7fbff; }
.dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.dropzone .dz-filename { color: var(--color-ink); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }

.quick-apply-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  align-self: center;
  justify-self: center;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}
.quick-apply-btn:hover { filter: brightness(1.05); }
.quick-apply-btn .qa-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 800;
}

/* New DP wrapper — circle clips photo, pencil sits outside */
.dp-wrap {
  position: relative;
  display: inline-block;
  margin: 6px 0 6px;
}
.avatar-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #e6e8ec;
  display: grid; place-items: center;
  position: relative;
  color: #98a0ad;
  cursor: pointer;
  overflow: hidden;        /* clips photo to circle */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.avatar-circle:hover { transform: scale(1.02); box-shadow: 0 4px 14px rgba(233,75,60,0.18); }
.avatar-circle svg.dp-placeholder { width: 56px; height: 56px; }
.avatar-circle .dp-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.dp-wrap.has-dp .avatar-circle { background: transparent; }

.dp-wrap .av-edit {
  position: absolute;
  right: -4px; bottom: -4px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  z-index: 4;
  transition: transform 0.15s ease, background 0.15s ease;
}
.dp-wrap .av-edit:hover { transform: scale(1.06); background: var(--color-accent-2); }
.dp-wrap .av-edit svg { display: block; }

.dp-hint { margin-top: 8px; }

/* Dropzone — when a file is loaded, swap the placeholder text for the filename */
.dropzone.has-file .dz-main,
.dropzone.has-file .dz-limit { display: none; }
.dropzone.has-file .dz-filename {
  display: block !important;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.dropzone.has-file .dz-filename::before {
  content: "✓  ";
  color: #117a4a;
  font-weight: 800;
}

/* Phone country select — flag + code shown, country name searchable in dropdown */
.with-flag {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
}
.with-flag select {
  width: 100%;
  border: 1px solid #d0d4dc;
  border-radius: 3px;
  padding: 9px 26px 9px 11px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236b6b6b' stroke-width='1.4'/></svg>") no-repeat right 9px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.with-flag select:focus { outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(31,111,235,0.12); }
@media (max-width: 480px) {
  .with-flag { grid-template-columns: 110px 1fr; }
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 12px;
}
.field-row.single { grid-template-columns: 1fr; }
.field-row .field-group { margin: 0; }
.field-row label {
  display: block;
  font-size: 0.82rem;
  color: #3b4860;
  margin-bottom: 4px;
}
.field-row label .req { color: #c2185b; }
.field-row input[type="text"],
.field-row input[type="email"],
.field-row input[type="tel"],
.field-row input[type="url"],
.field-row input[type="number"],
.field-row select,
.field-row textarea {
  width: 100%;
  border: 1px solid #d0d4dc;
  border-radius: 3px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
}
.field-row input:focus, .field-row select:focus, .field-row textarea:focus {
  outline: 0; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.12);
}
.field-row textarea { min-height: 140px; resize: vertical; }
.field-row .with-flag {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 6px;
}
.field-row .with-flag .flag-prefix {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #d0d4dc;
  border-radius: 3px;
  padding: 0 8px;
  font-size: 0.9rem;
  background: #fff;
}

.collapsible {
  border: 1px solid #ececef;
  border-radius: 4px;
  margin-bottom: 12px;
}
.collapsible > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: var(--color-ink);
}
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible .add-cue {
  color: var(--color-accent);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.85rem;
}
.collapsible[open] .add-cue::before { content: "−"; margin-right: 4px; }
.collapsible:not([open]) .add-cue::before { content: "+"; margin-right: 4px; }
.collapsible .coll-body { padding: 0 18px 18px; }

.next-row {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 14px;
  padding-top: 22px;
}
.btn-next {
  background: #e94b3c;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-next:hover { background: #d23a2c; }
.btn-next.is-loading { pointer-events: none; opacity: 0.7; }

.privacy-row {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 14px;
}

@media (max-width: 720px) {
  .apply-card { padding: 22px; }
  .easy-apply-row { grid-template-columns: 1fr; }
  .easy-apply-row .or-divider { padding: 8px 0; }
  .easy-apply-row .or-divider::before, .easy-apply-row .or-divider::after { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   AECOM-style careers homepage: white top nav, dark hero with
   video, two-input search strip overlapping hero, two-column
   body (filter accordions + plain text-row listings), talent
   network CTA panel, floating ask widget.
   ============================================================ */

.top-nav {
  background: #fff;
  border-bottom: 1px solid #ececef;
  position: relative;
  z-index: 50;
}
.top-nav .container {
  display: flex; align-items: center;
  height: 64px;
  max-width: none;
  padding: 0 28px;
  gap: 18px;
}
.top-nav .tn-brand {
  display: flex; align-items: center; gap: 10px;
  color: #1a1a1a;
  margin-right: auto;       /* push everything else to the right */
  flex: 0 0 auto;
}
.top-nav .tn-brand img {
  height: 38px; width: auto; display: block;
}
.top-nav .tn-brand .brand-mark { width: 34px; height: 34px; font-size: 0.85rem; }
.top-nav .tn-links {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
  flex: 0 0 auto;
}
.top-nav .tn-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b1a2c;
  font-weight: 600;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.top-nav .tn-links a:hover, .top-nav .tn-links a.is-active { border-bottom-color: #1f1f1f; color: #1f1f1f; }
.top-nav .tn-utility {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: #0b1a2c;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.top-nav .tn-utility:hover { background: #1f1f1f; transform: translateY(-1px); }
/* Hide the mobile-only "Visit bimqp.com" item from the desktop nav row */
.top-nav .tn-links .tn-utility-li { display: none; }

.top-nav .tn-toggle {
  display: none;
  background: none; border: 0; color: #0b1a2c; padding: 8px; cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.top-nav .tn-toggle:hover { background: #f3f5f9; }
.top-nav .tn-toggle svg { transition: transform 0.2s ease; }
.top-nav .tn-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

@media (max-width: 960px) {
  .top-nav .container { padding: 0 18px; gap: 10px; }
  .top-nav .tn-toggle { display: inline-flex; }
  .top-nav .tn-utility { display: none; }     /* hide pill on mobile, surface inside dropdown via JS */
  .top-nav .tn-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #ececef;
    flex-direction: column; align-items: stretch;
    padding: 8px 18px 16px; gap: 0;
    transform: translateY(-110%);
    opacity: 0; pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    box-shadow: 0 18px 28px -16px rgba(11,26,44,0.22);
    z-index: 60;
  }
  .top-nav .tn-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .top-nav .tn-links li { border-bottom: 1px solid #f1f3f7; }
  .top-nav .tn-links li:last-child { border-bottom: 0; }
  .top-nav .tn-links a {
    padding: 14px 4px;
    font-size: 0.86rem;
    display: block;
    width: 100%;
  }
  .top-nav .tn-links .tn-utility-li { display: list-item; }
  .top-nav .tn-links .tn-utility-mobile {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    margin: 10px 0 4px;
    padding: 12px 16px;
    background: #0b1a2c; color: #fff;
    border-radius: 8px;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: none;
    border-bottom: 0 !important;
  }
}

/* Prevent body scroll while the mobile menu is open */
@media (max-width: 960px) {
  body.menu-open { overflow: hidden; }
  body.menu-open::after {
    content: ""; position: fixed; inset: 64px 0 0 0;
    background: rgba(11,26,44,0.35);
    z-index: 55;
    pointer-events: none;
    animation: nav-fade-in 0.22s ease;
  }
}
@keyframes nav-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ====== Hero (careers landing) ====== */
.hero-careers {
  position: relative;
  background: #0b1a2c;
  color: #fff;
  overflow: hidden;
  min-height: 540px;
}
.hero-careers .hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.30) 0%, rgba(20,20,20,0.82) 90%),
    radial-gradient(900px 480px at 80% 30%, rgba(233,75,60,0.45), transparent 65%),
    linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 55%, #3d1a16 100%);
}
.hero-careers .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px),
                    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px);
  mix-blend-mode: screen;
}
.hero-careers .container {
  position: relative; z-index: 1;
  max-width: 1320px;
  padding: 56px 28px 110px;
}
.hero-careers .hc-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 28px;
}
.hero-careers h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 26ch;
}
.hero-careers .hc-sub {
  color: #d6e3f5;
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0;
}

/* search strip overlapping the hero */
.search-strip {
  background: #fff;
  border-bottom: 1px solid #ececef;
  position: relative;
  margin-top: -36px;
  z-index: 2;
}
.search-strip .container {
  max-width: 1320px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 12px;
  align-items: stretch;
  height: 72px;
}
.search-strip .ss-input {
  position: relative;
  display: flex; align-items: center;
}
.search-strip .ss-input input {
  width: 100%; height: 100%;
  border: 1px solid #d4d7dd;
  border-radius: 2px;
  padding: 0 14px;
  font: inherit; font-size: 1rem;
  color: #0b1a2c;
  background: #fff;
}
.search-strip .ss-input input:focus { outline: 0; border-color: #1f1f1f; box-shadow: 0 0 0 3px rgba(20,61,58,0.12); }
.search-strip .ss-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 22px;
  background: #1f1f1f;
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
}
.search-strip .ss-btn::after { content: "›"; font-size: 1.2rem; }
.search-strip .ss-btn:hover { background: #2d2d2d; }
.search-strip .ss-btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 22px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #1f1f1f;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
}
.search-strip .ss-btn-ghost::after { content: "›"; font-size: 1.2rem; }
.search-strip .ss-btn-ghost:hover { background: #fceae7; }

@media (max-width: 900px) {
  .search-strip { margin-top: -20px; }
  .search-strip .container { grid-template-columns: 1fr; height: auto; padding: 14px 28px; }
  .search-strip .ss-input input { height: 48px; }
  .search-strip .ss-btn, .search-strip .ss-btn-ghost { height: 48px; justify-content: center; }
}

/* ====== Search results body ====== */
.search-body {
  background: #fff;
  padding: 40px 0 80px;
}
.search-body .container {
  max-width: 1320px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: start;
}

.filter-accordions {
  border-top: 1px solid #ececef;
}
.filter-accordions details {
  border-bottom: 1px solid #ececef;
}
.filter-accordions summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 12px 18px 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600;
  color: #0b1a2c;
  font-size: 0.98rem;
}
.filter-accordions summary::-webkit-details-marker { display: none; }
.filter-accordions summary::after {
  content: "+";
  color: #1f1f1f;
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 400;
}
.filter-accordions details[open] summary::after { content: "−"; }
.filter-accordions .acc-body {
  padding: 0 12px 16px 8px;
  display: flex; flex-direction: column; gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.filter-accordions .acc-body::-webkit-scrollbar { width: 6px; }
.filter-accordions .acc-body::-webkit-scrollbar-thumb { background: #d4d7dd; border-radius: 3px; }
.filter-accordions .acc-body::-webkit-scrollbar-thumb:hover { background: #b6c2d6; }
.filter-accordions .acc-body label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.92rem;
  color: #3b4860;
  cursor: pointer;
}
.filter-accordions .acc-body input[type="checkbox"] { accent-color: #1f1f1f; }

.talent-cta {
  background: #1f1f1f;
  color: #fff;
  padding: 22px;
  margin-top: 20px;
}
.talent-cta .tc-q { font-weight: 600; font-size: 0.95rem; line-height: 1.5; margin: 0 0 14px; }
.talent-cta .tc-q strong { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: #f8c7c1; margin-top: 8px; }
.talent-cta a.tc-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 2px;
}
.talent-cta a.tc-btn::after { content: "›"; font-size: 1.2rem; }
.talent-cta a.tc-btn:hover { background: #fceae7; }

/* ====== Listings (plain text rows, not cards) ====== */
.listings-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 4px 0 14px;
  border-bottom: 1px solid #ececef;
}
.listings-head .lh-count {
  font-size: 0.95rem;
  color: #0b1a2c;
}
.listings-head .lh-count strong { font-size: 1.05rem; font-weight: 700; }
.listings-head .lh-sort select {
  background: transparent;
  border: 0;
  font: inherit;
  color: #0b1a2c;
  font-size: 0.9rem;
  cursor: pointer;
}

.listings { display: flex; flex-direction: column; }
.listing-row {
  padding: 22px 0;
  border-bottom: 1px solid #ececef;
  display: block;
  text-decoration: none;
  color: inherit;
}
.listing-row:hover .lr-title { color: #1f1f1f; }
.lr-title {
  font-weight: 700;
  color: #0b1a2c;
  font-size: 1.05rem;
  margin: 0 0 6px;
  line-height: 1.35;
}
.lr-loc {
  color: #3b4860;
  font-size: 0.92rem;
  margin: 0 0 6px;
}
.lr-meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  color: #3b4860;
  font-size: 0.92rem;
}
.lr-meta span strong { color: #0b1a2c; font-weight: 600; margin-right: 4px; }

.empty-row {
  padding: 48px 24px;
  text-align: center;
  color: #3b4860;
}

@media (max-width: 900px) {
  .search-body .container { grid-template-columns: 1fr; }
}

/* ====== Floating "Ask BIMQP" widget ====== */
.ask-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex; align-items: center; gap: 10px;
}
.ask-widget .aw-bubble {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: #0b1a2c;
  box-shadow: 0 6px 20px rgba(11,26,44,0.10);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ask-widget.is-open .aw-bubble { opacity: 1; transform: translateY(0); }
.ask-widget .aw-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #1f1f1f;
  color: #fff;
  border: 0;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20,61,58,0.35);
}
.ask-widget .aw-btn:hover { background: #2d2d2d; }

@media (max-width: 600px) {
  .ask-widget .aw-bubble { display: none; }
}

/* ============================================================
   POLISH PASS
   Typography, hero graphics, listing/filter affordances,
   responsiveness, footer logo.
   ============================================================ */

/* ---- Typography refinements ---- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-feature-settings: "ss01" on, "cv11" on, "ss03" on;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-feature-settings: "ss01" on;
}
.top-nav .tn-links a {
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-careers .hc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-careers .hc-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--color-accent); border-radius: 2px;
}
.hero-careers h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.hero-careers .hc-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.lr-title { transition: color 0.15s ease; }
.listings-head .lh-count strong { font-weight: 800; color: var(--color-accent); }

/* Selection */
::selection { background: var(--color-accent); color: #fff; }

/* Focus ring (a11y) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Hero graphics overlay (subtle blueprint motif) ---- */
.hero-careers .hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 600' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'><defs><pattern id='g' x='0' y='0' width='80' height='80' patternUnits='userSpaceOnUse'><path d='M80 0H0V80'/></pattern></defs><rect width='1400' height='600' fill='url(%23g)'/><g stroke-opacity='0.14'><rect x='840' y='80' width='420' height='420'/><rect x='900' y='140' width='300' height='300'/><rect x='960' y='200' width='180' height='180'/><line x1='840' y1='80' x2='1260' y2='500'/><line x1='1260' y1='80' x2='840' y2='500'/></g><g stroke-opacity='0.10'><rect x='80' y='340' width='220' height='160'/><rect x='80' y='340' width='110' height='160'/><line x1='80' y1='340' x2='300' y2='500'/></g></svg>");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* ---- Listing-row chevron + hover animation ---- */
.listing-row {
  position: relative;
  padding-right: 48px;
  transition: padding-right 0.18s ease;
}
.listing-row::after {
  content: "›";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  color: var(--color-accent);
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.listing-row:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.listing-row:hover { background: linear-gradient(90deg, rgba(233,75,60,0.04), transparent 60%); }

/* ---- Filter accordion polish ---- */
.filter-accordions summary {
  transition: background 0.15s ease, color 0.15s ease;
}
.filter-accordions summary:hover { background: var(--color-bg-soft); }
.filter-accordions summary::after {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-accordions summary:hover::after { border-color: var(--color-accent); color: var(--color-accent); }
.filter-accordions details[open] summary::after { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.filter-accordions .acc-body label { padding: 4px 0; }
.filter-accordions .acc-body label:hover { color: var(--color-ink); }

/* ---- Search strip refinement ---- */
.search-strip .ss-btn,
.search-strip .ss-btn-ghost { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.search-strip .ss-input input::placeholder { color: #9aa1ad; }

/* ---- Ask widget icon + pulse ---- */
.ask-widget .aw-btn {
  display: grid; place-items: center;
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
}
.ask-widget .aw-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0;
  animation: aw-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.ask-widget .aw-btn { position: relative; }
@keyframes aw-pulse {
  0% { transform: scale(0.92); opacity: 0.6; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---- Footer with logo ---- */
.site-footer .footer-brand { display: block; max-width: 200px; margin-bottom: 16px; filter: brightness(1.0); }
.site-footer .footer-brand img { width: 100%; height: auto; display: block; background: #fff; padding: 8px 10px; border-radius: 4px; }
.site-footer h5 { letter-spacing: 0.06em; }
.site-footer a { transition: color 0.15s ease; }

/* ---- Responsiveness audit ---- */

/* prevent horizontal overflow on small screens */
html, body { overflow-x: hidden; }

/* tablets */
@media (max-width: 1024px) {
  .hero-careers .container { padding-top: 48px; padding-bottom: 100px; }
  .search-body .container { gap: 28px; }
}

/* mobile */
@media (max-width: 720px) {
  .top-nav .container { height: 56px; padding: 0 18px; }
  .top-nav .tn-utility { display: none; }
  .top-nav .tn-brand img { height: 32px; }

  .hero-careers { min-height: 460px; }
  .hero-careers .container { padding: 36px 18px 100px; }
  .hero-careers .hc-eyebrow { margin-bottom: 18px; font-size: 0.72rem; letter-spacing: 0.15em; }
  .hero-careers h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .hero-careers .hc-sub { font-size: 1rem; }

  .search-strip { margin-top: 0; border-top: 1px solid #ececef; }
  .search-strip .container { padding: 14px 18px; gap: 10px; }
  .search-strip .ss-input input { height: 46px; font-size: 0.95rem; }
  .search-strip .ss-btn, .search-strip .ss-btn-ghost { height: 46px; padding: 0 18px; }

  .search-body { padding: 28px 0 60px; }
  .search-body .container { padding: 0 18px; gap: 20px; }

  .filter-accordions summary { padding: 14px 8px; font-size: 0.95rem; }
  .talent-cta { padding: 18px; }

  .listings-head { padding-bottom: 12px; }
  .listings-head .lh-count strong { font-size: 1rem; }
  .listing-row { padding: 18px 36px 18px 0; }
  .listing-row::after { font-size: 1.5rem; opacity: 0.6; }
  .lr-meta { gap: 14px; font-size: 0.85rem; }
  .lr-title { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-careers h1 { font-size: 2rem; }
  .hero-careers .hc-sub { font-size: 0.95rem; }
  .lr-meta { flex-direction: column; gap: 4px; }
  .ask-widget { right: 14px; bottom: 14px; }
  .ask-widget .aw-btn { width: 56px; height: 56px; font-size: 0.65rem; }
}

/* ============================================================
   POLISH PASS 2 — apply page mobile, modals, sticky submit,
   ask widget z-order, focus traps, scroll padding for sticky.
   ============================================================ */

/* Sticky submit bar wraps on small screens */
@media (max-width: 720px) {
  .apply-sticky {
    flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 18px;
  }
  .apply-sticky .as-note { text-align: center; font-size: 0.82rem; }
  .apply-sticky button { width: 100%; }
}

/* Apply-page section padding tightens on small screens */
@media (max-width: 600px) {
  .apply-card { padding: 18px; }
  .apply-section-block { padding: 18px 0; }
  .apply-section-block h2 { font-size: 1.02rem; }
  .easy-apply-row { gap: 12px; }
  .quick-apply-btn { padding: 11px 18px; font-size: 0.88rem; }
  .avatar-circle { width: 84px; height: 84px; }
  .avatar-circle svg.dp-placeholder { width: 46px; height: 46px; }
}

/* Modal actions wrap on small screens */
@media (max-width: 480px) {
  .modal-card { padding: 28px 22px 22px; }
  .modal-card h2 { font-size: 1.2rem; }
  .modal-actions { flex-direction: column; gap: 8px; }
  .modal-actions .btn-next, .modal-actions .btn-ghost { width: 100%; padding: 12px; }
  .modal-icon { width: 70px; height: 70px; }
  .modal-icon svg { width: 38px; height: 38px; }
}

/* Toasts above the modal */
.toast-host { z-index: 1100; }

/* Better viewport scroll padding so focused inputs aren't hidden by the sticky bar */
html { scroll-padding-bottom: 80px; }

/* Stop iOS from zooming on input focus by ensuring 16px font-size on small screens */
@media (max-width: 640px) {
  .field-row input, .field-row select, .field-row textarea,
  .form-row input, .form-row select, .form-row textarea,
  .with-flag select, .with-flag input,
  .search-strip .ss-input input {
    font-size: 16px;
  }
}

/* Track page — narrower padding on phones */
@media (max-width: 480px) {
  .track-shell { padding: 18px 12px 60px !important; }
  .track-card { padding: 18px !important; }
  .form-lookup { flex-direction: column; }
  .form-lookup input { width: 100%; }
  .form-lookup button { width: 100%; }
  .meta-grid { grid-template-columns: 1fr !important; }
}

/* Search-strip on mobile (homepage / jobs) — guarantee no overflow */
@media (max-width: 600px) {
  .search-strip .container { padding: 12px 14px; }
}

/* Homepage filters on small mobile — full-width inputs in accordions */
@media (max-width: 480px) {
  .search-body { padding: 24px 0 60px; }
  .filter-accordions summary { padding: 14px 6px; }
  .talent-cta { padding: 16px; }
  .lr-title { font-size: 0.95rem; }
}

/* Apply-page header sticky on long forms isn't an issue (no sticky header).
   But ensure apply header doesn't overflow with a long role title. */
.apply-header .ah-job { min-width: 0; }
.apply-header .ah-job-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* Job-list card hover/focus uniform */
.listing-row { outline-offset: 2px; }

/* Card-grid responsive */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
}

/* Footer on phone */
@media (max-width: 600px) {
  .site-footer { padding: 36px 0 18px; }
  .site-footer .container { gap: 18px; }
  .site-footer .footer-legal { flex-direction: column; gap: 6px; font-size: 0.78rem; text-align: center; }
}

/* DP avatar — pencil icon must always stay on top */
.avatar-circle .av-edit { z-index: 3; }

/* Better focus styles for keyboard users on dark surfaces */
.bg-navy :focus-visible, .hero-careers :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   MODERN THEME — applied to public-facing forms
   (Mirrors the admin theme so the brand feels unified.)
   ============================================================ */

/* Apply / talent-pool inputs — pill rounded, branded focus ring */
.field-row input[type="text"],
.field-row input[type="email"],
.field-row input[type="tel"],
.field-row input[type="url"],
.field-row input[type="number"],
.field-row input[type="password"],
.field-row select,
.field-row textarea {
  border-radius: 8px !important;
  padding: 11px 13px !important;
  border-color: #d0d4dc !important;
  font-size: 0.96rem !important;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: 0 !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 4px rgba(233,75,60,0.14) !important;
}
.field-row label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #3b4860;
  margin-bottom: 6px;
}

/* Phone with-flag — modernized too */
.with-flag select {
  border-radius: 8px;
  padding: 11px 28px 11px 13px;
  border-color: #d0d4dc;
  font-size: 0.96rem;
}
.with-flag select:focus { box-shadow: 0 0 0 4px rgba(233,75,60,0.14); }

/* Apply card — softer shadow, slightly larger radius */
.apply-card {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(11,26,44,0.06);
  border-color: #eef0f3;
}
.apply-section-block { border-bottom-color: #eef0f3; }
.apply-section-block h2 { letter-spacing: -0.005em; }

/* Hero search inputs — match the modern look */
.search-strip .ss-input input {
  border-radius: 8px;
  padding: 0 14px;
  border-color: #d0d4dc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-strip .ss-input input:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(233,75,60,0.14);
}
.search-strip .ss-btn { border-radius: 8px; box-shadow: 0 4px 12px rgba(31,31,31,0.18); }
.search-strip .ss-btn:hover { box-shadow: 0 6px 18px rgba(31,31,31,0.24); }
.search-strip .ss-btn-ghost { border-radius: 8px; }

/* Buttons — pill style */
.btn-primary, .btn-secondary, .btn-ghost {
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-primary { box-shadow: 0 4px 12px rgba(233,75,60,0.28); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(233,75,60,0.35); }

/* Next button on apply page */
.btn-next {
  border-radius: 8px !important;
  padding: 12px 26px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(233,75,60,0.28);
}
.btn-next:hover { box-shadow: 0 6px 18px rgba(233,75,60,0.35); }

/* Apply header logo (top bar on apply page) */
.apply-header { border-bottom-color: #eef0f3; box-shadow: 0 1px 2px rgba(11,26,44,0.04); }

/* Talent-pool / track form-lookup field on track.html */
.form-lookup input {
  border-radius: 8px !important;
  padding: 13px !important;
}
.form-lookup input:focus { box-shadow: 0 0 0 4px rgba(233,75,60,0.14); border-color: var(--color-accent); outline: 0; }
.form-lookup button { border-radius: 8px !important; box-shadow: 0 4px 12px rgba(233,75,60,0.28); }

/* Dropzone — match the rounded scheme */
.dropzone { border-radius: 8px; transition: border-color 0.15s ease, background 0.15s ease; }
.resume-pickup { border-radius: 10px; }

/* Easy-apply quick button — slight refinement */
.quick-apply-btn { border-radius: 10px; box-shadow: 0 6px 18px rgba(233, 30, 99, 0.30); }

/* Listings hover refinements */
.listing-row { border-radius: 0; transition: background 0.18s ease, padding-right 0.18s ease; }

/* Section spacing — apply page sticky bar shadow */
.apply-sticky { box-shadow: 0 -4px 12px rgba(11,26,44,0.06); }

/* Skip overall iOS zoom on inputs by ensuring 16px on small screens (re-affirmed) */
@media (max-width: 640px) {
  .field-row input, .field-row select, .field-row textarea,
  .with-flag select, .with-flag input,
  .search-strip .ss-input input,
  .form-lookup input { font-size: 16px; }
}

/* container max-width applied to apply page consistently */
.apply-shell .container { padding-left: 18px; padding-right: 18px; }

/* heading underline accent for marketing pages (career-paths, why-bimqp, etc.) */
.section-title h2,
.bg-navy h2 { position: relative; }
.section-title .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section-title .eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--color-accent); border-radius: 2px;
}

/* refine card hover for BIMQP red brand */
.card:hover { border-color: var(--color-accent); }
.card-link:hover { color: var(--color-accent); }

/* listing focus state for keyboard a11y */
.listing-row:focus-visible {
  outline-color: var(--color-accent);
  background: rgba(233,75,60,0.04);
}
.listing-row:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============================================================
   Toast notifications (top-right slide-in)
   ============================================================ */
.toast-host {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast {
  pointer-events: auto;
  background: #1a1a1a; color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(11,26,44,0.25);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem;
  min-width: 240px; max-width: 380px;
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.toast.is-in { transform: translateX(0); opacity: 1; }
.toast .t-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.8rem;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.18);
}
.toast-success { background: #117a4a; }
.toast-error   { background: #d23a2c; }
.toast-warn    { background: #c2810b; }
.toast-info    { background: #1f6feb; }

@media (max-width: 600px) {
  .toast-host { left: 16px; right: 16px; }
  .toast { min-width: auto; width: 100%; max-width: none; }
}

/* ============================================================
   Success modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 20, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1001;
  display: grid; place-items: center;
  padding: 20px;
  animation: modal-fade 0.2s ease;
}
.modal-overlay[hidden] { display: none !important; }
.modal-icon > svg { width: 44px !important; height: 44px !important; max-width: 44px; max-height: 44px; display: block; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff;
  border-radius: 14px;
  width: 100%; max-width: 460px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  animation: modal-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-pop {
  from { transform: translateY(20px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-icon {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94b3c, #f26859);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(233, 75, 60, 0.32);
  position: relative;
}
.modal-icon::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%; border: 2px solid rgba(233, 75, 60, 0.25);
  animation: modal-ring 1.2s ease 0.1s both;
}
.modal-icon svg {
  width: 44px; height: 44px;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: modal-check 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
}
@keyframes modal-check {
  from { transform: scale(0.4) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes modal-ring {
  from { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.15); opacity: 0; }
}
.modal-card h2 { margin: 0 0 10px; font-size: 1.4rem; color: #1a1a1a; font-weight: 800; }
.modal-card .modal-sub { color: #5b6776; font-size: 0.95rem; margin: 0 0 22px; line-height: 1.55; }
.modal-card .modal-sub strong { color: #1a1a1a; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-actions .btn-next, .modal-actions .btn-ghost { padding: 11px 22px; }
