/* ============================================================
   theme.css — CyberEthic Careers / Shared Design System
   Minimal black & white aesthetic. Load AFTER main.css.
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Override main.css variables for complete light mode conversion */
  --bg-dark: #ffffff;
  --bg-panel: #fafafa;
  --bg-code: #f1f5f9;
  --border-color: #e2e8f0;
  --border-muted: #f1f5f9;
  --border-accent: #000000;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #000000;
  --accent-hover: #333333;

  /* Palette — light theme white & black */
  --c-black:   #0a0a0a;
  --c-white:   #ffffff;
  --c-grey-1:  #fafafa;  /* lightest surface */
  --c-grey-2:  #f8fafc;  /* card/panel bg */
  --c-grey-3:  #000000;  /* border, divider */
  --c-grey-4:  #000000;  /* secondary border */
  --c-grey-5:  #64748b;  /* muted text */
  --c-grey-6:  #475569;  /* secondary text */
  --c-grey-7:  #1e293b;  /* body text */

  /* Semantic aliases */
  --bg:        var(--c-white);
  --bg-panel:  var(--c-grey-1);
  --bg-card:   var(--c-grey-2);
  --border:    var(--c-grey-3);
  --border-lt: var(--c-grey-4);
  --text:      var(--c-black);
  --text-body: var(--c-grey-7);
  --text-mute: var(--c-grey-5);
  --text-sub:  var(--c-grey-6);

  /* Typography */
  --font:      'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Layout */
  --max-w: 1120px;
  --nav-h: 60px;
  --radius: 12px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

h1, h2, h3 {
  font-family: var(--font-serif);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }

p { color: var(--text-body); }

.label-caps {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.mono { font-family: var(--font-mono); }

/* ── Layout Helpers ────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

main { flex: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── Site Header / Nav ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: none;
  height: var(--nav-h);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-logo .nav-sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-mute);
  font-weight: 400;
  margin-left: var(--sp-1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155; /* Slate 700 */
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-link:hover {
  color: #2563eb; /* Blue 600 */
  background: rgba(37, 99, 235, 0.06);
}

.nav-link.active {
  color: #ffffff !important; /* White text */
  background: #0f172a !important; /* Deep charcoal */
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--sp-2);
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-sub);
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Site Footer ───────────────────────────────────────────── */
.site-footer {
  border-top: 2px solid var(--border);
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: var(--sp-7);
  align-items: start;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: var(--sp-3);
}

.footer-brand-name svg { width: 16px; height: 16px; }

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-mute);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--sp-3);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }

.footer-col a {
  font-size: 0.82rem;
  color: var(--text-sub);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom span {
  font-size: 0.75rem;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85em 2em;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 99px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background: #00d28e;
  color: #000000;
  border-color: #00d28e;
  box-shadow: 0 4px 14px rgba(0, 210, 142, 0.2);
}

.btn-primary:hover {
  background: #00b87c;
  border-color: #00b87c;
  box-shadow: 0 6px 20px rgba(0, 210, 142, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #000000;
  border-color: #000000;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #000000;
  transform: translateY(-2px);
}

.btn:disabled, .btn.btn-disabled {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border-color: transparent;
}

.btn-ghost:hover {
  color: #2563eb;
}

/* ── Tags / Badges ────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.85em;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tag:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #000;
}

.tag-solid {
  background: var(--bg-card);
  border-color: var(--border-lt);
  color: var(--text);
  font-weight: 500;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-7) 0;
}

/* ── Page Header Band ──────────────────────────────────────── */
.page-band {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-8) 0 var(--sp-6);
}

.page-band .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--sp-3);
}

.page-band h1 { margin-bottom: var(--sp-3); }

.page-band .lead {
  font-size: 0.95rem;
  color: var(--text-sub);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-mute);
  transition: color 0.15s;
}

.breadcrumb:hover { color: var(--text-sub); }

/* ── Loading / Empty States ────────────────────────────────── */
.state-loading,
.state-empty {
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
}

.state-loading p,
.state-empty p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

.state-empty h3 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

/* ── Alert / Notice Bars ───────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-body);
  background: var(--bg-card);
}

.alert-error {
  border-color: #3a1a1a;
  background: #1a0a0a;
  color: #ff9999;
}

/* ── Responsive Nav ────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-links.open { display: flex; }

  .nav-link {
    display: block;
    padding: var(--sp-3) var(--sp-5);
    font-size: 0.9rem;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.15s ease;
  }

  .nav-link:last-child {
    border-bottom: none !important;
  }

  .nav-link:hover {
    background: rgba(37, 99, 235, 0.03) !important;
    color: #2563eb !important;
    border-left: 3px solid #2563eb !important;
    padding-left: calc(var(--sp-5) - 3px) !important;
  }

  .nav-link.active {
    background: rgba(37, 99, 235, 0.05) !important;
    color: #2563eb !important;
    border-left: 3px solid #2563eb !important;
    padding-left: calc(var(--sp-5) - 3px) !important;
    box-shadow: none !important;
  }
}

/* ── Responsive Footer ─────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
}

/* ── Form Inputs & Selects Overrides ─────────────────────────── */
.form-control {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  background-color: var(--bg-panel) !important;
  color: var(--text-primary) !important;
  font-size: 0.88rem !important;
  padding: 12px 16px !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
}

.select-terminal {
  width: 100% !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  background-color: var(--bg-panel) !important;
  color: var(--text-primary) !important;
  font-size: 0.88rem !important;
  padding: 12px 16px !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 12px !important;
}

.select-terminal:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
}

/* ── Glassmorphic Elevated Cards ──────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: var(--radius) !important;
  padding: var(--sp-6) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

/* ── Selection Process Section ────────────────────────────────── */
.selection-process-header {
  text-align: center;
  margin-bottom: var(--sp-7);
}

.selection-process-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #004ecc !important;
  margin-bottom: var(--sp-2);
}

.selection-process-underline {
  width: 48px;
  height: 4px;
  background-color: #004ecc;
  margin: 0 auto var(--sp-4);
  border-radius: 2px;
}

.selection-card {
  background: #ffffff !important;
  border: 1px dashed rgba(0, 78, 204, 0.15) !important;
  border-radius: 12px !important;
  padding: var(--sp-6) var(--sp-4) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01) !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}

.selection-card:hover {
  transform: translateY(-4px) !important;
  border-color: #004ecc !important;
  border-style: solid !important;
  box-shadow: 0 12px 24px rgba(0, 78, 204, 0.08) !important;
}

.step-badge {
  width: 36px;
  height: 36px;
  background-color: #004ecc;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.selection-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #004ecc !important;
  margin: 0 !important;
}

.selection-card p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 !important;
}

/* ── Common Grid & Layouts ──────────────────────────────────── */
.props-section {
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--sp-6);
  display: block;
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.props-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .props-grid, .props-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--sp-5);
  }
}

@media (max-width: 768px) {
  .props-grid, .props-grid.grid-3 {
    grid-template-columns: 1fr !important;
    gap: var(--sp-5);
  }
}

.prop-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.prop-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
}

.prop-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.prop-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-sub);
}

/* ── Hero Block Layouts ──────────────────────────────────────── */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-9) 0 var(--sp-8);
  border-bottom: 1px solid var(--border);
}

.hero-left {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--sp-4);
  display: block;
}

.hero-left h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: var(--sp-6);
}

.btn-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .hero-grid {
    padding: var(--sp-6) 0 var(--sp-5);
  }
}

/* ── Common Listings Table ─────────────────────────────────────── */
.listings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.listings-table thead th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: left;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}

.listings-table thead th:last-child { text-align: right; }

.listings-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.listings-table tbody tr:hover { background: var(--bg-card); }

.listings-table td {
  padding: 18px 12px 18px 0;
  vertical-align: top;
}

.listings-table td:last-child {
  text-align: right;
  padding-right: 0;
}

.listing-title-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: opacity 0.15s;
}

.listing-title-link:hover { opacity: 0.75; }

.listing-arrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-left: 6px;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.listing-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-sub);
}

.deadline-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-sub);
}

.deadline-text.expired { color: #cc4444; }

@media (max-width: 640px) {
  .listings-table thead { display: none; }

  .listings-table tbody tr {
    display: block;
    padding: 18px 0;
  }

  .listings-table td {
    display: block;
    padding: 2px 0;
  }

  .listings-table td:last-child {
    text-align: left;
    margin-top: 8px;
  }
}

/* ── Viewport Spacing Variables Scales ────────────────────────── */
@media (max-width: 640px) {
  :root {
    --sp-5: 16px;
    --sp-6: 24px;
    --sp-7: 32px;
    --sp-8: 40px;
    --sp-9: 48px;
  }
  .wrap {
    padding-inline: var(--sp-4);
  }
}

/* ── Contracts Section Layouts ─────────────────────────────── */
.contracts-section {
  padding: var(--sp-8) 0 var(--sp-9);
}

.contracts-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
/* ── Position Cards Grid ───────────────────────────────────────── */
.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.position-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) * 1.25);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.position-card:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
  border-color: #0f172a;
}

.pos-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
}

.pos-dept-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(37,99,235,0.07);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.15);
  padding: 0.2em 0.65em;
  border-radius: 99px;
  white-space: nowrap;
}

.pos-deadline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.pos-deadline.expired {
  color: #cc4444;
}

.pos-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.pos-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-size: 0.78rem;
  color: var(--text-body);
}

.pos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}

.pos-card-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.pos-btn {
  flex: 1;
  text-align: center;
  padding: 0.5em 0.8em !important;
  font-size: 0.8rem !important;
  min-width: 100px;
}

.pos-closed-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  padding: 0.4em 0.8em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
}

/* Skeleton loader */
.position-card-skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid var(--border);
  height: 220px;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error state inside grid */
.position-card-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.position-card-error h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: var(--sp-2);
}

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

/* ── Clarity Inspired Footer ──────────────────────────────── */
.clarity-footer {
  background: #ffffff;
  border-top: 2px solid var(--border);
  padding: 4rem 0 2rem;
  color: #333;
  font-family: var(--font-sans, "Inter", sans-serif);
}
.clarity-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 2px solid var(--border);
}
.clarity-footer-brand {
  max-width: 320px;
}
.clarity-footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
}
.clarity-footer-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.clarity-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.clarity-footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
}
.clarity-footer-contact a:hover {
  text-decoration: underline;
}
.clarity-footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}
.clarity-footer-col h4 {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 1.25rem;
}
.clarity-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.clarity-footer-col a {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.clarity-footer-col a:hover {
  color: #2563eb;
  transform: translateX(4px);
}
.clarity-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.clarity-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  color: #0f172a;
  transition: all 0.2s;
}
.clarity-socials a:hover {
  border-color: #0f172a;
  background: rgba(0,0,0,0.02);
}
.clarity-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.clarity-bottom-left {
  display: flex;
  align-items: center;
}
.clarity-bottom-left strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}
.clarity-bottom-left span {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}
.clarity-bottom-right {
  text-align: right;
}
.clarity-bottom-right strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

@media (max-width: 768px) {
  .clarity-footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
  .clarity-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem var(--sp-4);
  }
  .clarity-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .clarity-bottom-right {
    text-align: left;
  }
}

/* --- Global Position Listing Cards (from opportunities) --- */
.pos-card {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: none;
  padding: var(--sp-6) 0;
  width: 100%;
}
.pos-card:last-child {
  border-bottom: none;
}
.pos-card-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pos-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-2);
}
.pos-dept {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.pos-deadline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-mute);
  white-space: nowrap;
}
.pos-deadline.expired { color: #f87171; }

.pos-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-family: var(--font-serif);
  line-height: 1.3;
  text-decoration: none;
  display: block;
  transition: color 0.15s;
}
.pos-title:hover { color: #2563eb; }

.pos-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px var(--sp-5);
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 2px;
}
.pos-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pos-meta-row svg { opacity: 0.6; flex-shrink: 0; }

.pos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.pos-tags .tag {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.pos-card-foot {
  border-top: none;
  padding: var(--sp-4) 0 0 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  background: transparent;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .pos-card {
    flex-direction: row;
    align-items: center;
    padding: var(--sp-5) var(--sp-4);
    margin: 0 calc(var(--sp-4) * -1);
    border-radius: var(--radius);
  }
  .pos-card:hover {
    background: rgba(15, 23, 42, 0.04);
    border-bottom-color: transparent;
  }
  .pos-card-body {
     padding: 0;
     padding-right: var(--sp-6);
     justify-content: center;
  }
  .pos-card-foot {
     border: none;
     flex-direction: row;
     justify-content: flex-end;
     align-items: center;
     width: auto;
     min-width: 220px;
     flex-shrink: 0;
     background: transparent;
     padding: 0;
  }
}

.pos-btn {
  flex: 0 0 auto;
  text-align: center;
  padding: 0.6em 1.2em;
  font-size: 0.88rem;
  border-radius: 6px;
  font-weight: 500;
  text-transform: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.pos-btn-view {
  background: #0f172a;
  color: #ffffff !important;
  border: 1px solid #0f172a;
}
.pos-btn-view:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff !important;
}
.pos-btn-share {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.pos-btn-share:hover {
  background: rgba(37, 99, 235, 0.05) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  color: #2563eb !important;
}
