/* ============================================================
   DPx Careers - jobs.dustedpixels.com
   Light theme. Dark header/footer bands carry the DPx brand
   (the DPx logo asset is white) with a light page in between.
   Radius system: cards/panels 14px, inputs/buttons 8px, chips pill.
   ============================================================ */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #eff1f4;
  --bg-card: #ffffff;
  --bg-band: #e8ebef;
  --line: #dfe3e8;
  --line-strong: #c6cfd6;
  --text: #1c2226;
  --text-soft: #4d565e;
  --text-faint: #758088;
  --accent: #0f8573;          /* buttons, chips: brightest teal that passes AA with white text */
  --accent-ink: #0f8573;      /* links and accent text on light bg */
  --accent-soft: rgba(42, 188, 166, 0.12);  /* light #2abca6 tints for fills */
  --accent-line: rgba(42, 188, 166, 0.55);
  --accent-press: #0d7062;
  --btn-ink: #ffffff;
  --dark: #171a1d;            /* header / footer brand bands */
  --dark-text: #eceff1;
  --dark-text-soft: #a8b0b6;
  --dark-line: rgba(255, 255, 255, 0.1);
  --danger: #d64545;
  --font: 'DM Sans', Helvetica, Arial, sans-serif;
  --r-panel: 14px;
  --r-control: 8px;
  --shadow-card: 0 6px 20px rgba(23, 26, 29, 0.05);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: main grows so the footer sits at the viewport bottom
     even on short pages / tall monitors */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
main { flex: 1; display: flex; flex-direction: column; }
main > * { flex-shrink: 0; }
/* When a form band is the only section (apply.html), let it fill the page */
main > .apply-section:only-child { flex: 1; }

img { max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--text); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }

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

/* ---------- Header (dark brand band) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; display: block; }
.brand a { display: flex; }
.brand .brand-sub {
  font-size: 16px;
  font-weight: 700;
  color: #2abca6; /* brand teal pops on the dark header */
  border-left: 1px solid var(--dark-line);
  padding-left: 10px;
  line-height: 1.2;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--dark-text-soft);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--dark-text); text-decoration: none; }
.lang-toggle {
  background: none;
  border: 1px solid #2abca6;
  color: #2abca6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lang-toggle:hover { background: rgba(42, 188, 166, 0.15); }

.site-nav .nav-label {
  color: var(--dark-text-soft);
  font-size: 15px;
  font-weight: 500;
}
.site-nav .nav-cta {
  color: var(--btn-ink);
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--accent-press); color: var(--btn-ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-office-02.jpg');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.17) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0) 100%);
}
.hero .container {
  position: relative;
  padding-top: 104px;
  padding-bottom: 112px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--accent-ink); }
.hero p {
  max-width: 48ch;
  font-size: 1.06rem;
  color: var(--text-soft);
  margin: 0 0 30px;
}
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-control);
  padding: 13px 26px;
  transition: transform 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--btn-ink); }
.btn-primary:hover { background: var(--accent-press); text-decoration: none; color: var(--btn-ink); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--text); text-decoration: none; }

/* ---------- Job board ---------- */

.board { padding: 56px 0 40px; }
.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.board-head h2 { font-size: 1.7rem; margin: 0; }
.board-count { color: var(--text-faint); font-size: 15px; }
.board-count strong { color: var(--accent-ink); font-weight: 700; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 10px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
}
.toolbar input[type="search"],
.toolbar select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 14px;
  appearance: none;
}
.toolbar select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d565e' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}
.toolbar input::placeholder { color: var(--text-faint); }
.toolbar input:focus,
.toolbar select:focus {
  outline: 2px solid var(--accent-line);
  outline-offset: 0;
  border-color: transparent;
}
.toolbar .clear-btn {
  background: transparent;
  border: 0;
  color: var(--text-faint);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  padding: 0 8px;
}
.toolbar .clear-btn:hover { color: var(--text); }

.job-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.job-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
  padding: 24px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: inherit;
}
.job-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  text-decoration: none;
}
.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.job-card h3 { font-size: 1.22rem; margin: 0 0 6px; color: var(--accent-ink); }
.job-card:hover h3 { text-decoration: underline; }
.chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--btn-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--text-faint);
  margin: 4px 0 10px;
}
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 15px; height: 15px; stroke: var(--text-faint); flex-shrink: 0; }
.job-card p.summary {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text-soft);
  max-width: 78ch;
}
.job-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-faint);
  margin-top: auto; /* pins the footer row when cards in a grid row differ in height */
}
.job-card-bottom .view {
  color: var(--accent-ink);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-panel);
}
.empty-state h3 { font-size: 1.2rem; }
.empty-state p { margin: 0 0 18px; }

/* ---------- Why apply through DPx ---------- */

.why { padding: 48px 0 72px; }
.why h2 { font-size: 1.7rem; margin-bottom: 26px; }
.why-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}
.why-cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.why-cell.feature {
  grid-row: span 2;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 45%,
      #ffffff 72%),
    url('../images/dpx-02.webp') center top / cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.why-cell h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-cell.feature h3 { font-size: 1.35rem; }
.why-cell p { margin: 0; font-size: 14.5px; }

/* ---------- Talent network band (dark brand moment) ---------- */

.general-band {
  background: var(--dark);
}
.general-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 44px;
  padding-bottom: 44px;
}
.general-band h2 { font-size: 1.4rem; margin: 0 0 4px; color: #2abca6; }
.general-band p { margin: 0; font-size: 15px; color: var(--dark-text-soft); }

/* ---------- Footer (dark brand band) ---------- */

.site-footer { background: var(--dark); border-top: 1px solid var(--dark-line); }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--dark-text-soft);
}
.site-footer img { height: 26px; opacity: 0.9; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--dark-text-soft); }
.site-footer a:hover { color: var(--dark-text); }

/* ---------- Job detail page ---------- */

.detail-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.17) 50%,
      rgba(255, 255, 255, 0.08) 80%,
      rgba(255, 255, 255, 0) 100%),
    url('../images/hero-office-02.jpg') center 52% / cover;
}
.detail-hero .container { padding-top: 44px; padding-bottom: 44px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--text-faint);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}
.back-link:hover { color: var(--text); border-color: var(--text); text-decoration: none; }
.detail-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 24ch; color: var(--accent-ink); }
.detail-hero .job-meta { font-size: 14px; gap: 8px 10px; margin-bottom: 22px; color: var(--text-soft); }
.detail-hero .job-meta span {
  border: 1px solid var(--text-faint);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 48px 0 72px;
}
.detail-body h2 {
  font-size: 1.25rem;
  margin: 34px 0 12px;
}
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin: 0 0 14px; max-width: 72ch; }
.detail-body ul { margin: 0 0 14px; padding-left: 22px; }
.detail-body li { margin-bottom: 8px; max-width: 68ch; }
.detail-body li::marker { color: var(--accent-ink); }

.detail-aside { position: relative; }
.aside-panel {
  position: sticky;
  top: 92px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.aside-panel .btn { width: 100%; text-align: center; margin-bottom: 18px; }
.aside-facts { display: flex; flex-direction: column; gap: 0; }
.aside-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}
.aside-facts div + div { border-top: 1px solid var(--line); }
.aside-facts dt { color: var(--text-faint); margin: 0; }
.aside-facts dd { color: var(--text); margin: 0; text-align: right; font-weight: 500; }
.aside-share {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.aside-share button {
  background: none;
  border: 0;
  color: var(--accent-ink);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* ---------- Apply form ---------- */

.apply-section {
  border-top: 1px solid var(--line);
  background: var(--bg-band);
}
.apply-section .container { padding-top: 56px; padding-bottom: 72px; }
.apply-section h2 { font-size: 1.6rem; }
.apply-section .apply-sub { margin: 0 0 30px; max-width: 60ch; }

.apply-form { max-width: 640px; }
.apply-form fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  transition: opacity 0.25s ease;
}
.apply-form fieldset[disabled] { opacity: 0.45; }

.eligibility { max-width: 900px; margin-bottom: 24px; }
.eligibility h3 { font-size: 14px; font-weight: 600; color: var(--text-soft); margin-bottom: 10px; }
.elig-items { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.elig-item {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-soft);
}
.elig-items .btn { padding: 9px 18px; font-size: 14px; }
.eligibility.confirmed .elig-item { border-color: var(--accent-line); }
.eligibility.confirmed .btn { background: var(--bg-band); color: var(--text-faint); cursor: default; transform: none; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.field label .req { color: var(--accent-ink); }
.field input,
.field textarea {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-line);
  outline-offset: 0;
  border-color: transparent;
}
.field .hint { font-size: 12.5px; color: var(--text-faint); }
.field .error-msg { font-size: 13px; color: var(--danger); display: none; }
.field.invalid input,
.field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }

.file-drop {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-control);
  background: var(--bg-card);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
  color: var(--text-faint);
  font-size: 14px;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--accent-line); }
.file-drop strong { color: var(--accent-ink); font-weight: 600; }
.file-drop input { display: none; }
.file-drop .file-name { color: var(--text); font-weight: 600; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#turnstile-holder:empty { display: none; }

.apply-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.form-status { font-size: 14.5px; }
.form-status.ok { color: var(--accent-ink); }
.form-status.err { color: var(--danger); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.apply-success {
  max-width: 640px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-panel);
  padding: 30px;
}
.apply-success h3 { color: var(--text); margin-bottom: 6px; }
.apply-success p { margin: 0; }

/* ---------- Admin page (internal) ---------- */

.admin-gate { max-width: 420px; padding: 40px 0; }
.gate-form { display: flex; gap: 10px; margin: 14px 0; }
.gate-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 14px;
}
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
}
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 14px 18px;
}
.admin-row.saving { opacity: 0.5; pointer-events: none; }
.site-nav .admin-current { color: #2abca6; font-weight: 700; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.admin-toolbar input[type="search"] {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  min-width: 260px;
}
.admin-toolbar select {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 12px;
}
.cand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
}
.cand-head h1 { font-size: 1.7rem; margin-bottom: 2px; }
.cand-head-controls { display: flex; align-items: center; gap: 14px; }
.cand-status-row { margin: 10px 0 24px; }
.cand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cand-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}
.cand-panel h3 { font-size: 1rem; margin-bottom: 12px; }
.cd-summary { margin: 10px 0 0; font-size: 14.5px; white-space: pre-wrap; }
.cand-panel .hr-notes {
  width: 100%;
  min-height: 110px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
  margin-bottom: 10px;
}
.cand-panel .btn { padding: 9px 18px; font-size: 14px; }
@media (max-width: 800px) { .cand-grid { grid-template-columns: 1fr; } }

.star-rating { display: flex; gap: 2px; }
.star-btn {
  background: none;
  border: 0;
  padding: 0 2px;
  font-size: 22px;
  line-height: 1;
  color: var(--line-strong);
  cursor: pointer;
}
.star-btn.on { color: #d99a1b; }
.star-btn:hover { color: #b8860b; }
.cand-name {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--accent-ink);
  text-align: left;
  cursor: pointer;
}
.cand-name:hover { text-decoration: underline; }
.cand-details {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cand-detail dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin: 0 0 2px; }
.cand-detail dd { margin: 0; font-size: 14px; color: var(--text-soft); }
.cand-notes { grid-column: 1 / -1; }
.cand-notes textarea {
  width: 100%;
  min-height: 70px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
  margin-bottom: 8px;
}
.cand-notes .btn { padding: 8px 16px; font-size: 13.5px; }
.status-new { background: rgba(66, 133, 244, 0.12); color: #2f5eb3; }
.status-interview { background: var(--accent-soft); color: var(--accent-ink); }
.status-available { background: rgba(52, 168, 83, 0.14); color: #22703a; }
.status-not-a-fit { background: var(--bg-band); color: var(--text-faint); }
.status-do-not-hire { background: rgba(214, 69, 69, 0.12); color: #a83232; }
.status-employed { background: var(--dark); color: #ffffff; }

.hire-change {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: underline;
}
.hire-picker {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hire-picker label { font-size: 14px; font-weight: 600; color: var(--text); }
.hire-picker .hire-select {
  flex: 1;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 9px 12px;
}
.hire-picker-actions { display: flex; gap: 8px; }
.hire-picker-actions .btn { padding: 9px 16px; font-size: 14px; }
.admin-row { flex-wrap: wrap; }
.admin-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-row-info a { font-weight: 700; font-size: 15.5px; }
.admin-row-meta { font-size: 13px; color: var(--text-faint); }
.status-badge {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.status-active { background: var(--accent-soft); color: var(--accent-ink); }
.status-inactive { background: #e8ebef; color: var(--text-faint); }
.status-hired { background: #ede9f7; color: #5b4a91; }
.status-draft { background: #fdf1dc; color: #8a6116; }
.admin-actions { display: flex; gap: 6px; }
.status-btn {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
}
.status-btn:hover:not(:disabled) { border-color: var(--accent-ink); color: var(--accent-ink); }
.status-btn.current { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); cursor: default; }
@media (max-width: 640px) {
  .admin-row { flex-wrap: wrap; }
  .admin-actions { width: 100%; }
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .job-card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar input[type="search"] { grid-column: 1 / -1; }
  .toolbar .clear-btn { grid-column: 1 / -1; text-align: left; padding: 4px 2px; }
  .detail-layout { grid-template-columns: 1fr; gap: 8px; }
  .detail-aside { order: -1; }
  .aside-panel { position: static; }
  /* The aside "Apply now" button sits right below the hero here,
     so the hero's own apply button would be a duplicate */
  .detail-hero .btn { display: none; }
  /* keep the hero the same height it had with the button visible */
  .detail-hero .container { padding-bottom: 91px; }
  .back-link { color: #ffffff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
  .back-link:hover { color: #ffffff; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-cell.feature { grid-column: 1 / -1; grid-row: auto; min-height: 180px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .site-header .container { height: 60px; }
  .brand img { height: 28px; }
  .brand .brand-sub { display: none; }
  .site-nav { gap: 16px; }
  .site-nav .nav-link, .site-nav .nav-label { display: none; }
  .job-list { grid-template-columns: 1fr; }
  /* Full-fold hero: fills the viewport below the sticky 60px header */
  .hero {
    min-height: calc(100dvh - 60px);
    display: flex;
    align-items: center;
  }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  /* Offset toward the right of the photo so the team stays in frame */
  .hero-bg { background-size: cover; background-position: 74% center; }
  .hero-overlay {
    /* soft glow behind the text block + light vertical fade,
       so the copy reads while the team stays visible on the right */
    background:
      radial-gradient(ellipse 90% 45% at 38% 38%,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.4) 55%,
        rgba(255, 255, 255, 0) 100%),
      linear-gradient(to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.15) 55%,
        rgba(255, 255, 255, 0) 100%);
  }
  .board { padding-top: 40px; }
  .toolbar { grid-template-columns: 1fr; }
  .job-card { padding: 20px 18px; }
  .job-card-top { flex-direction: column; gap: 8px; }
  .why-grid { grid-template-columns: 1fr; }
  .apply-form fieldset { grid-template-columns: 1fr; }
  .general-band .container { flex-direction: column; align-items: flex-start; }
}
