/* ============================================================
   careers.medtechkits.com — Careers site styles
   Design system: DM Sans / DM Serif Display / DM Mono, navy
   #0f1e35 chrome, accent #1e87c8, dark theme default. Public-warm
   tone (like kit-build) — not internal admin chrome.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f1e35;
  --navy-2:      #142943;
  --accent:      #1e87c8;
  --accent-2:    #48d1cc;
  --accent-dark: #1670a8;

  /* dark theme (default) */
  --page-bg:     #0d1117;
  --card-bg:     #131b28;
  --card-bg-2:   #0f1826;
  --border:      rgba(255,255,255,.09);
  --border-2:    rgba(255,255,255,.15);
  --fg:          #e7ecf2;
  --fg-muted:    rgba(231,236,242,.62);
  --fg-dim:      rgba(231,236,242,.4);
  --subtle:      rgba(255,255,255,.04);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--page-bg);
  color: var(--fg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; }
img { max-width: 100%; display: block; }
strong { color: var(--fg); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h1, h2, h3, .serif { font-family: 'DM Serif Display', serif; font-weight: 400; letter-spacing: -.3px; }

/* ── PUBLIC HEADER ─────────────────────────────────────────── */
.pub-header { background: var(--navy); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.pub-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 16px; }
.pub-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.pub-logo-img { height: 32px; width: auto; }
.pub-logo-text { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: #fff; }
.pub-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pub-nav-link {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: .87rem; font-weight: 500;
  padding: 8px 13px; border-radius: 6px; white-space: nowrap; transition: background .15s, color .15s;
}
.pub-nav-link:hover, .pub-nav-link.is-active { background: rgba(255,255,255,.1); color: #fff; }
.pub-book-btn {
  background: var(--accent); color: #fff; text-decoration: none; font-size: .85rem; font-weight: 700;
  padding: 9px 18px; border-radius: 20px; white-space: nowrap; margin-left: 8px; transition: background .15s, box-shadow .15s;
}
.pub-book-btn:hover { background: var(--accent-dark); box-shadow: 0 2px 10px rgba(0,0,0,.25); text-decoration: none; }
.pub-hamburger { display: none; align-items: center; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; margin-left: auto; border-radius: 6px; }
.pub-hamburger:hover { background: rgba(255,255,255,.15); }

@media (max-width: 860px) {
  .pub-hamburger { display: flex; }
  .pub-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-2);
    flex-direction: column; align-items: stretch; padding: 8px 18px 16px; gap: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.3); z-index: 199;
  }
  .pub-nav.is-open { display: flex; }
  .pub-nav-link { padding: 12px 8px; }
  .pub-book-btn { margin: 10px 0 0; text-align: center; border-radius: 8px; padding: 12px 18px; }
}

/* ── PUBLIC FOOTER ─────────────────────────────────────────── */
.pub-footer { background: var(--navy); margin-top: 48px; padding: 34px 0 20px; }
.pub-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pub-footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.pub-footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.pub-footer .pub-logo-img { height: 24px; }
.pub-footer-tagline { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.pub-footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pub-footer-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .84rem; }
.pub-footer-links a:hover { color: #fff; text-decoration: underline; }
.pub-footer-eeo { font-size: .74rem; color: rgba(255,255,255,.4); line-height: 1.5; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; margin-bottom: 8px; }
.pub-footer-bottom { font-size: .72rem; color: rgba(255,255,255,.35); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #123457 100%);
  color: #fff;
  padding: 68px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(650px 420px at 82% -10%, rgba(30,135,200,.35), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 780px; margin: 0 auto; padding: 0 24px; text-align: center; position: relative; z-index: 1; }
.hero-motto {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 22px;
  /* Animated gradient sweep ported from React Bits GradientText
     (@react-bits/GradientText-JS-CSS): last color repeats the first for a
     seamless loop; background-position sweeps horizontally and yoyos. */
  background-image: linear-gradient(to right, #ffffff, #8fd0ff, #1e87c8, #cfe9ff, #ffffff);
  background-size: 300% 100%;
  background-position: 0% 50%;
  background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: hero-gradient-sweep 8s ease-in-out infinite alternate;
}
@keyframes hero-gradient-sweep {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-motto { animation: none; }
}
.hero-body { font-size: 1.05rem; color: rgba(255,255,255,.82); line-height: 1.75; max-width: 620px; margin: 0 auto 22px; }
.hero-sig { font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.92); margin-bottom: 30px; }
.hero-sig span { display: block; font-weight: 400; font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem;
  padding: 13px 26px; border-radius: 24px; text-decoration: none; cursor: pointer; border: none;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 18px rgba(30,135,200,.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }

/* ── SECTION SHELLS ───────────────────────────────────────── */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--card-bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 12px; }
.section-head p { color: var(--fg-muted); font-size: .98rem; line-height: 1.6; }

/* ── CULTURE / VALUES CARDS ───────────────────────────────── */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 22px 20px;
}
.value-card h3 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--fg); margin-bottom: 8px; }
.value-card p { color: var(--fg-muted); font-size: .9rem; line-height: 1.6; }
.motto-banner {
  text-align: center; margin: 32px auto 0; font-family: 'DM Serif Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--accent); letter-spacing: -.3px;
}

.principle-list { display: flex; flex-direction: column; gap: 14px; }
.principle {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
}
.principle-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: 'DM Mono', monospace; font-weight: 700; font-size: 1rem; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.principle h3 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem; color: var(--fg); margin-bottom: 4px; }
.principle-tag { font-size: .82rem; color: var(--accent-2); font-weight: 600; margin-bottom: 6px; display: block; }
.principle ol { margin: 8px 0 0 18px; color: var(--fg-muted); font-size: .88rem; line-height: 1.6; }
.principle ol li { margin-bottom: 3px; }

/* ── PROSE (rendered handbook/docs content) ───────────────── */
.prose { color: var(--fg-muted); font-size: .96rem; line-height: 1.75; }
.prose h2, .prose h3, .prose h4 { color: var(--fg); font-family: 'DM Sans', sans-serif; font-weight: 700; margin: 22px 0 10px; }
.prose h2:first-child, .prose h3:first-child, .prose h4:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 12px 22px; }
.prose li { margin-bottom: 5px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--fg-muted); font-style: italic; margin: 14px 0; }
.prose strong { color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .88rem; }
.prose table th, .prose table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose table th { background: var(--subtle); font-weight: 700; color: var(--fg); }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px 26px; }
.card + .card { margin-top: 16px; }

/* ── PDPP / feature callouts ──────────────────────────────── */
.callout {
  background: linear-gradient(135deg, rgba(30,135,200,.12), rgba(72,209,204,.06));
  border: 1px solid rgba(30,135,200,.28); border-radius: 12px; padding: 20px 22px; margin: 18px 0;
}
.callout h3 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .98rem; color: var(--fg); margin-bottom: 8px; }
.callout p { color: var(--fg-muted); font-size: .9rem; line-height: 1.65; }

/* ── ROLE CARDS (careers home + open-roles list) ──────────── */
.role-list { display: flex; flex-direction: column; gap: 14px; }
.role-card {
  display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; text-decoration: none; transition: border-color .15s, transform .12s, box-shadow .15s;
}
.role-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.12); text-decoration: none; }
.role-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.role-card-title { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--fg); }
.comp-badge {
  font-family: 'DM Mono', monospace; font-size: .82rem; font-weight: 600; color: var(--accent);
  background: rgba(30,135,200,.12); border: 1px solid rgba(30,135,200,.28); border-radius: 20px; padding: 4px 12px; white-space: nowrap;
}
.role-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.role-tag {
  font-size: .74rem; font-weight: 600; color: var(--fg-muted); background: var(--subtle);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px;
}
.role-card-cta { color: var(--accent); font-weight: 600; font-size: .88rem; }

.empty-state {
  text-align: center; padding: 44px 24px; color: var(--fg-muted); border: 1px dashed var(--border-2);
  border-radius: 12px; font-size: .95rem; line-height: 1.7;
}

/* ── JOB DETAIL PAGE ───────────────────────────────────────── */
.job-hero { background: var(--navy); color: #fff; padding: 40px 0 34px; }
.job-hero .wrap-narrow { max-width: 860px; }
.job-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 12px; }
.job-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.job-meta-row .role-tag { color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.job-hero .comp-badge { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; font-size: .95rem; padding: 6px 14px; }
.job-body { max-width: 860px; margin: 0 auto; padding: 36px 24px 8px; }
.job-section { margin-bottom: 30px; }
.job-section h2 { font-size: 1.3rem; margin-bottom: 12px; color: var(--fg); }
.job-section-body { color: var(--fg-muted); font-size: .96rem; line-height: 1.75; }
.job-section-body p { margin-bottom: 12px; }
.job-section-body ul, .job-section-body ol { margin: 0 0 12px 22px; }
.job-section-body li { margin-bottom: 5px; }
.job-section-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .87rem; }
.job-section-body table th, .job-section-body table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.job-section-body table th { background: var(--subtle); font-weight: 700; color: var(--fg); }
.job-section-body strong { color: var(--fg); }
/* Compensation section reads as a highlighted disclosure box — the rate table
   embedded in comp_text sits directly beneath the range per SOW §9.2 adjacency. */
.job-section.comp-section .job-section-body {
  background: var(--card-bg); border: 1px solid var(--border-2); border-radius: 12px; padding: 20px 22px;
}
.job-404 { max-width: 640px; margin: 80px auto; padding: 0 24px; text-align: center; }
.job-404 h1 { font-size: 2.2rem; margin-bottom: 14px; }
.job-404 p { color: var(--fg-muted); margin-bottom: 24px; }

/* ── APPLY FORM ────────────────────────────────────────────── */
.apply-section { max-width: 860px; margin: 0 auto; padding: 8px 24px 60px; }
.apply-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 30px 28px; }
.apply-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.apply-card .apply-sub { color: var(--fg-muted); font-size: .9rem; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-field .radio-group-label { font-size: .84rem; font-weight: 600; color: var(--fg); }
.form-field .hint { font-size: .76rem; color: var(--fg-dim); font-weight: 400; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  font-family: 'DM Sans', sans-serif; font-size: .92rem; color: var(--fg); background: var(--card-bg-2);
  border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,135,200,.18);
}
.form-field input:invalid:not(:placeholder-shown) { border-color: #e15656; }
.form-section { grid-column: 1 / -1; margin: 6px 0 4px; }
.form-section-title { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 700; color: var(--fg); margin-bottom: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.radio-pills { display: flex; gap: 10px; }
.radio-pill {
  display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--fg-muted);
  background: var(--card-bg-2); border: 1px solid var(--border-2); border-radius: 20px; padding: 8px 16px; cursor: pointer;
}
.radio-pill input { accent-color: var(--accent); }
.radio-pill:has(input:checked) { border-color: var(--accent); color: var(--fg); background: rgba(30,135,200,.12); }
.field-error { font-size: .78rem; color: #ff8a80; min-height: 1em; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ack-field { display: flex; align-items: flex-start; gap: 10px; grid-column: 1 / -1; margin: 4px 0 10px; }
.ack-field input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.ack-field label { font-size: .82rem; color: var(--fg-muted); line-height: 1.55; font-weight: 400; }
.file-field { grid-column: 1 / -1; }
.file-drop {
  border: 1.5px dashed var(--border-2); border-radius: 10px; padding: 16px; text-align: center;
  font-size: .86rem; color: var(--fg-muted); background: var(--card-bg-2);
}
.file-drop input { margin-top: 8px; width: 100%; font-size: .85rem; color: var(--fg); }
.file-format-note { font-size: .78rem; color: var(--fg-dim); margin: 8px 0 0; text-align: left; }
.turnstile-note { font-size: .78rem; color: var(--fg-dim); grid-column: 1 / -1; }
.turnstile-note-unavailable { color: #ffcb52; }
.apply-submit-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.apply-submit-row .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.apply-status { grid-column: 1 / -1; font-size: .9rem; padding: 12px 16px; border-radius: 10px; display: none; margin-top: 4px; line-height: 1.55; }
.apply-status.is-visible { display: block; }
.apply-status.is-success { background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.35); color: #2ecc71; }
.apply-status.is-error { background: rgba(231,76,60,.12); border: 1px solid rgba(231,76,60,.35); color: #ff8a7a; }
.apply-status.is-warning { background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.35); color: #ffcb52; }
.apply-status a, .apply-status button.link-btn {
  color: inherit; text-decoration: underline; background: none; border: none; font-size: inherit; cursor: pointer; padding: 0; font-family: inherit;
}

/* ── PHOTO PLACEHOLDER (culture pages, no image yet) ──────── */
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 200px; border: 1.5px dashed var(--border-2); border-radius: 12px; background: var(--subtle);
  color: var(--fg-dim); font-size: .84rem; text-align: center; padding: 24px;
}
.photo-slot svg { opacity: .5; }

/* ── COMP PHILOSOPHY (benefits page) ──────────────────────── */
.role-link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 620px) { .role-link-grid { grid-template-columns: 1fr; } }

/* ── SITEMAP / MISC PAGES ──────────────────────────────────── */
.plain-page { max-width: 640px; margin: 60px auto; padding: 0 24px; text-align: center; }
