@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&display=swap');

/* ------------------------------------------------------------------
   careers.<domain> — the candidate-facing skin.

   These pages used to wear the portal's clothes: an app surface, an
   app heading, a list. Correct for an internal tool, wrong for the
   first page a stranger sees — a careers page that looks like an admin
   screen reads as a phishing page however honest it is.

   The values below are www.webronic.com's own, read out of that site's
   build rather than guessed:

       --color-primary   #2776ea      ocean blue
       --color-secondary #76ea27      continent green
       headings          Sora         (its --font-sora)

   This loads AFTER style.css and overrides the look, not the plumbing:
   the form controls underneath stay exactly as the portal built and
   tested them.
   ------------------------------------------------------------------ */

:root,
:root[data-theme="light"] {
  --wbr-blue:        #2776ea;
  --wbr-blue-deep:   #1e5ebf;
  --wbr-blue-dark:   #10306b;
  --wbr-green:       #76ea27;
  --wbr-ink:         #0d1b33;
  --wbr-ink-soft:    #53627c;
  --wbr-line:        #e3eaf6;
  --wbr-surface:     #ffffff;
  --wbr-wash:        #f5f8fe;
  --wbr-head:        'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
}

.careers-body {
  /* The full-bleed banner is positioned with 50vw, which counts the scrollbar
     on desktop and would otherwise push a few pixels of horizontal scroll.
     clip rather than hidden: it does not turn the page into a scroll container. */
  overflow-x: clip;
  background: var(--wbr-wash);
  color: var(--wbr-ink);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── the bar ─────────────────────────────────────────────────────── */
.careers-bar {
  background: var(--wbr-surface);
  border-bottom: 1px solid var(--wbr-line);
  position: sticky; top: 0; z-index: 20;
}
.careers-bar-in {
  max-width: 1120px; margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.careers-brand { display: inline-flex; align-items: center; text-decoration: none; }
.careers-brand img { display: block; }

.careers-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.careers-nav a {
  font-size: 14px; font-weight: 500; color: var(--wbr-ink-soft);
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.careers-nav a:hover { color: var(--wbr-blue); background: rgba(39,118,234,.07); }
.careers-nav-here {
  color: var(--wbr-blue) !important; font-weight: 650 !important;
  background: rgba(39,118,234,.09);
}

/* ── hero ────────────────────────────────────────────────────────── */
.careers-hero {
  background:
    radial-gradient(90rem 32rem at 12% -18%, rgba(118,234,39,.20), transparent 55%),
    linear-gradient(135deg, var(--wbr-blue) 0%, var(--wbr-blue-deep) 48%, var(--wbr-blue-dark) 100%);
  color: #fff;
}
.careers-hero-in {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 72px);
}
.careers-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: #d9ffc0; background: rgba(118,234,39,.14);
  border: 1px solid rgba(118,234,39,.34);
  padding: 6px 12px; border-radius: 999px; margin: 0 0 18px;
}
.careers-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wbr-green); }
.careers-hero h1 {
  font-family: var(--wbr-head);
  font-size: clamp(30px, 5vw, 50px); line-height: 1.08; font-weight: 700;
  margin: 0 0 16px; letter-spacing: -.02em; color: #fff; max-width: 17ch;
}
.careers-hero h1 em { font-style: normal; color: var(--wbr-green); }
.careers-hero p {
  margin: 0; font-size: clamp(15px, 1.5vw, 17.5px); line-height: 1.65;
  color: rgba(255,255,255,.90); max-width: 60ch;
}

/* ── the roles ───────────────────────────────────────────────────── */
.careers-main { flex: 1 1 auto; }
.careers-wrap {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 32px) clamp(48px, 7vw, 80px);
}
.careers-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.careers-section-head h2 { font-family: var(--wbr-head); font-size: 22px; font-weight: 650; margin: 0; color: var(--wbr-ink); }
.careers-count { font-size: 13.5px; color: var(--wbr-ink-soft); }

.careers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.careers-role {
  display: flex; align-items: center; gap: 14px;
  background: var(--wbr-surface);
  border: 1px solid var(--wbr-line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,42,90,.04);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  position: relative; overflow: hidden;
}
/* The green edge is the logo's continents — the one place the accent earns
   its keep without competing with the blue. */
.careers-role::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--wbr-green); opacity: 0; transition: opacity .16s ease;
}
.careers-role:hover {
  border-color: rgba(39,118,234,.42);
  box-shadow: 0 10px 28px rgba(16,42,90,.09);
  transform: translateY(-2px);
}
.careers-role:hover::before { opacity: 1; }

.careers-role-link { flex: 1 1 auto; min-width: 0; display: block; padding: 20px 22px; text-decoration: none; color: inherit; }
.careers-role-title { display: block; font-family: var(--wbr-head); font-size: 17.5px; font-weight: 620; color: var(--wbr-ink); letter-spacing: -.01em; }
.careers-role-meta  { display: block; margin-top: 6px; font-size: 13.5px; color: var(--wbr-ink-soft); }
.careers-role-closes{ display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600;
                      color: #8a5a00; background: #fff4df; border-radius: 999px; padding: 3px 10px; }
.careers-role-go { flex: 0 0 auto; padding-right: 22px; display: flex; color: var(--wbr-blue); }
.careers-role-go svg { width: 20px; height: 20px; }
.careers-role:hover .careers-role-go { transform: translateX(2px); transition: transform .16s ease; }

.careers-empty {
  background: var(--wbr-surface); border: 1px solid var(--wbr-line);
  border-radius: 16px; padding: clamp(32px, 5vw, 56px); text-align: center;
}
.careers-empty h2 { font-family: var(--wbr-head); font-size: 20px; margin: 0 0 8px; color: var(--wbr-ink); }
.careers-empty p { margin: 0 auto; max-width: 48ch; color: var(--wbr-ink-soft); font-size: 14.5px; line-height: 1.6; }

.careers-note { margin: 22px 0 0; font-size: 13.5px; color: var(--wbr-ink-soft); }

/* ── the forms, wearing the same clothes ─────────────────────────── */
.careers-body .public-form {
  max-width: 1120px;
  /* No top padding: the role banner is the hero and must meet the nav bar.
     A gap here left a white stripe between them. */
  padding: 0 clamp(16px, 4vw, 32px) 64px;
}
.careers-body .public-form .card {
  border-radius: 16px; border-color: var(--wbr-line);
  box-shadow: 0 1px 2px rgba(16,42,90,.04); max-width: none;
  margin-top: clamp(28px, 4vw, 44px);
}
.careers-body .public-form .card ~ .card { margin-top: 18px; }

/* The role banner IS the hero on an application page, so it gets the hero's
   own treatment. Scoped away from .pf-banner below, because a blanket
   "h1 is ink" rule painted this title dark navy on dark blue. */
.careers-body .pf-banner {
  background:
    radial-gradient(90rem 32rem at 12% -30%, rgba(118,234,39,.18), transparent 55%),
    linear-gradient(135deg, var(--wbr-blue) 0%, var(--wbr-blue-deep) 55%, var(--wbr-blue-dark) 100%);
  /* Full-bleed, so it meets the nav bar edge to edge like the index hero.
     The page column is capped at 1120px, so a plain negative margin only
     reached the padding and left white gutters either side. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(34px, 5vw, 60px) clamp(16px, 4vw, 32px);
  border-radius: 0; border: 0;
}
.careers-body .pf-banner-in { max-width: 1056px; margin: 0 auto; }
.careers-body .pf-banner h1 {
  font-family: var(--wbr-head); letter-spacing: -.02em; color: #fff;
  font-size: clamp(25px, 3.6vw, 38px); line-height: 1.12; margin: 0 0 14px;
}
.careers-body .pf-org {
  color: #d9ffc0; font-size: 12px; font-weight: 650;
  letter-spacing: .09em; text-transform: uppercase; margin: 0 0 10px;
}
.careers-body .pf-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.careers-body .pf-chips li {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26);
  color: #fff; font-size: 13px; font-weight: 500; padding: 5px 13px; border-radius: 999px;
}
.careers-body .pf-closes { color: rgba(255,255,255,.88); font-size: 13.5px; margin: 14px 0 0; }

/* Everything that is NOT the banner reads as page text. */
.careers-body .public-form .card h1,
.careers-body .public-form .card h2 { font-family: var(--wbr-head); letter-spacing: -.015em; color: var(--wbr-ink); }
.careers-body .btn-primary { background: var(--wbr-blue); border-color: var(--wbr-blue); }
.careers-body .btn-primary:hover { background: var(--wbr-blue-deep); border-color: var(--wbr-blue-deep); }
.careers-body a { color: var(--wbr-blue); }

/* ── footer ──────────────────────────────────────────────────────── */
.careers-foot-bar { background: var(--wbr-blue-dark); color: rgba(255,255,255,.72); margin-top: auto; }
.careers-foot-in {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(16px, 4vw, 32px) 24px;
  display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap;
}
.careers-foot-brand p { margin: 12px 0 0; font-size: 13.5px; max-width: 42ch; line-height: 1.6; }
.careers-foot-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.careers-foot-nav a {
  color: rgba(255,255,255,.80) !important; text-decoration: none;
  font-size: 13.5px; padding: 6px 10px; border-radius: 8px;
}
.careers-foot-nav a:hover { color: #fff !important; background: rgba(255,255,255,.10); }
.careers-foot-legal {
  max-width: 1120px; margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 32px) 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; color: rgba(255,255,255,.55);
}

@media (max-width: 760px) {
  .careers-bar-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .careers-nav { gap: 0; margin-left: -12px; }
  .careers-nav a { padding: 7px 12px; font-size: 13.5px; }
  .careers-role { align-items: stretch; }
  .careers-role-link { padding: 17px 18px; }
  .careers-role-go { padding-right: 18px; align-items: center; }
}
