:root {
  --navy: #123a8c;
  --navy-700: #0c2a68;
  --navy-500: #1d4ed8;
  --teal: #0f766e;
  --gold: #c4a35a;
  --gold-soft: #e8c47c;
  --ink: #122033;
  --muted: #5b6b7c;
  --line: #dbe4ee;
  --paper: #f4f7fb;
  --white: #ffffff;
  --danger: #b42318;
  --ok: #067647;
  --warn: #b54708;
  --shadow: 0 10px 30px rgba(18, 58, 140, 0.08);
  --radius: 16px;
  --focus: 0 0 0 3px rgba(29, 78, 216, 0.28);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --sticky-actions: 92px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; }
a { color: var(--navy-500); }
:focus-visible { outline: none; box-shadow: var(--focus); }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff;
  padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 8px; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img, .brand-mark { height: 48px; width: auto; max-width: 118px; background: #fff; border-radius: 10px; object-fit: contain; }
.brand strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.brand span { display: block; color: var(--muted); font-size: .82rem; }
.nav-links { display: flex; gap: .5rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 10px; padding: .72rem 1.1rem; font-weight: 650;
  font-family: inherit; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: .15s ease; min-height: 48px;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-gold { background: var(--gold); color: #1a1307; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.hero {
  background: var(--navy);
  color: #fff;
  padding: 4.2rem 0 3.4rem;
}
.hero h1 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 .8rem; }
.hero p { max-width: 640px; opacity: .92; font-size: 1.08rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.chip {
  background: #0c2a68; border: 1px solid #0c2a68;
  padding: .35rem .7rem; border-radius: 999px; font-size: .85rem;
}
.section { padding: 3rem 0; }
.section h2 { font-family: var(--display); margin: 0 0 .4rem; font-size: 1.7rem; }
.lede { color: var(--muted); margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem;
}
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.position-card h3 { margin: 0 0 .4rem; font-family: var(--display); }
.position-card p { color: var(--muted); min-height: 3.4em; }
.meta-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 1rem; color: var(--muted); font-size: .88rem; }
.badge {
  display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px;
  background: var(--badge, #2563eb);
  color: #fff; font-size: .78rem; font-weight: 700;
}
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0; color: var(--muted); background: #fff; }
.alert {
  border-radius: 12px; padding: .85rem 1rem; margin: 1rem 0; border: 1px solid;
}
.alert-error { background: #fef3f2; border-color: #fecdca; color: #7a271a; }
.alert-ok { background: #ecfdf3; border-color: #abefc6; color: #085d3a; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 650; margin-bottom: .35rem; }
.hint { font-weight: 500; color: var(--muted); font-size: .85rem; }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="url"], input[type="file"], select, textarea {
  width: 100%; border: 1px solid #c9d6e2; border-radius: 10px; padding: .7rem .8rem;
  font: inherit; background: #fff; color: var(--ink); font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: .25rem; }
.repeat-card { border: 1px dashed #c9d6e2; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: #fbfcfe; }
.stepper { display: flex; gap: .4rem; overflow: auto; padding-bottom: .4rem; margin-bottom: 1.2rem; }
.step {
  flex: 1; min-width: 110px; text-align: center; font-size: .78rem; color: var(--muted);
  border-top: 3px solid var(--line); padding-top: .45rem;
}
.step.done { border-color: var(--teal); color: var(--teal); }
.step.current { border-color: var(--navy); color: var(--navy); font-weight: 700; }
.apply-shell { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; padding: 2rem 0 3rem; }
.side-card h3 { margin-top: 0; }
.actions { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.actions form, .submit-form { margin: 0; display: flex; flex: 1 1 auto; }
.actions form .btn, .submit-form .btn { width: 100%; }
.position-card .btn { width: 100%; }
.review-block { margin-bottom: 1.2rem; }
.review-block h3 { margin-bottom: .4rem; }
.success-wrap { text-align: center; padding: 4rem 0; }
.success-wrap .ref {
  font-family: var(--display); font-size: 1.8rem; letter-spacing: .04em;
  background: #fff; border: 1px dashed var(--gold); display: inline-block;
  padding: .7rem 1.1rem; border-radius: 12px; margin: 1rem 0;
}
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--navy);
  padding: 1.5rem;
}
.login-card { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
details { margin: .7rem 0 1rem; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.apply-page .site-footer { padding-bottom: 6.5rem; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .form-grid, .apply-shell { grid-template-columns: 1fr; }
  .container { width: min(1120px, calc(100% - 16px)); }
  .header-inner {
    flex-wrap: nowrap;
    gap: .55rem;
    padding: .55rem 0;
    align-items: center;
  }
  .brand {
    min-width: 0;
    flex: 1;
    gap: .5rem;
  }
  .brand img, .brand-mark {
    height: 38px;
    max-width: 64px;
    flex-shrink: 0;
    border-radius: 8px;
  }
  .brand span { min-width: 0; }
  .brand strong {
    font-size: .92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand span span { display: none; }
  .nav-links {
    width: auto;
    flex: 0 0 auto;
    gap: .4rem;
  }
  .nav-links .btn-ghost { display: none; }
  .nav-links .btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding: .5rem .9rem;
    font-size: .88rem;
    white-space: nowrap;
  }
  .hero { padding: 1.8rem 0 1.5rem; }
  .section { padding: 1.4rem 0; }
  .card { padding: 1rem; }
  .side-card { display: none; }
  .apply-shell { padding: 1rem 0 8.5rem; }
  .step { min-width: 78px; font-size: .68rem; }
  .apply-page .actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    flex-direction: column-reverse;
    gap: .55rem;
    margin: 0;
    padding: .75rem 16px calc(.9rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(18, 58, 140, .12);
  }
  .actions .btn, .actions a.btn, .actions form, .submit-form { width: 100%; flex: 1 0 auto; }
  .site-footer { font-size: .86rem; line-height: 1.5; }
  .login-card { padding: 1.4rem; }
}

.capture-upload { margin-top: .35rem; }
.capture-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .55rem; }
.camera-modal {
  position: fixed; inset: 0; z-index: 80; display: flex;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(15, 23, 42, .72);
}
.camera-modal[hidden] { display: none; }
.camera-dialog {
  background: #fff; border-radius: 16px; padding: 1rem 1.1rem 1.1rem;
  width: min(520px, 100%); box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
}
.camera-dialog h3 { margin: 0 0 .35rem; }
.camera-dialog video {
  width: 100%; max-height: 58vh; border-radius: 12px; background: #0f172a; margin: .6rem 0;
  object-fit: cover;
}
.camera-bar { display: flex; justify-content: flex-end; gap: .6rem; }
