/* =====================================================================
   MSCEB Careers - public site styles
   Brand: MSCEB blue #183d6f, grey #848788, red accent #e22826 (sparingly)
   Typeface: IBM Plex Sans (self-hosted, SIL OFL)
   ===================================================================== */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #183d6f;
  --blue-900: #0f2a4f;
  --blue-800: #14335d;
  --blue-600: #24528f;
  --blue-100: #dde6f1;
  --blue-50: #eef3f9;
  --red: #e22826;
  --grey: #848788;
  --ink: #1c2633;
  --text: #2d3846;
  --muted: #5f6b7a;
  --line: #dde2e8;
  --line-strong: #c5ccd5;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --success: #1e7a4f;
  --warning: #9a6200;
  --error: #b42318;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 2px 8px rgba(16, 32, 56, .05);
  --font: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- eyebrow with the logo's red quarter-circle ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
.eyebrow--light { color: #c9d6e8; }
.mark { width: 12px; height: 12px; background: var(--red); border-top-left-radius: 100%; flex: none; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--blue-900); color: #c9d6e8; font-size: .8125rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__contact { display: flex; gap: 20px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.brand img { width: 250px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9375rem; padding: 10px 14px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--blue); }
.site-nav a.is-active { color: var(--blue); border-bottom-color: var(--red); }
.site-nav__back { color: var(--muted) !important; font-size: .875rem !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .9375rem; line-height: 1.2; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-800); color: #fff; }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-50); color: var(--blue); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--text { background: none; color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue) 35%, rgba(24,61,111,.6) 70%, rgba(24,61,111,.2)); pointer-events: none; }
.hero__arcs { z-index: 1; position: absolute; right: -40px; bottom: -40px; width: min(620px, 70vw); height: auto; color: rgba(255,255,255,.08); }
.hero__arcs-red { fill: var(--red); opacity: .9; }
.hero__inner { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 720px; font-weight: 600; }
.hero__lead { font-size: 1.1875rem; color: #dce5f2; max-width: 620px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; max-width: 720px; }
.hero__stats div { flex: 1 1 160px; padding-right: 24px; }
.hero__stats dt { font-size: 1.75rem; font-weight: 600; color: #fff; line-height: 1.1; }
.hero__stats dd { margin: 4px 0 0; color: #b9c8dc; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- page head (inner pages) ---------- */
.page-head { background: var(--blue); color: #fff; padding: 40px 0 44px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; border: 34px solid rgba(255,255,255,.06); box-shadow: 0 0 0 56px rgba(24,61,111,1), 0 0 0 90px rgba(255,255,255,.05); }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .4em; }
.page-head--compact { padding: 32px 0 36px; }
.page-head--compact h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
.page-head__lead { color: #dce5f2; margin: 0; }
.muted-light { color: #a9bad1; }
.link-light { color: #fff; }
.link-light:hover { color: #dce5f2; }
.breadcrumb { font-size: .875rem; color: #a9bad1; margin-bottom: 18px; }
.breadcrumb a { color: #dce5f2; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0 72px; }
.section--tint { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head__note { color: var(--muted); margin: 0; max-width: 360px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card--pad { padding: 28px 32px; }
.empty-state { text-align: left; }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; }
.filter-bar__field { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.filter-bar__field--grow { flex: 1 1 260px; }
.filter-bar label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.filter-bar__actions { display: flex; gap: 6px; }
.result-count { color: var(--muted); font-size: .9375rem; margin-bottom: 12px; }

/* ---------- vacancy list ---------- */
.vacancy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vacancy-card { display: flex; justify-content: space-between; gap: 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 22px 26px; transition: border-color .15s, box-shadow .15s; }
.vacancy-card:hover { border-color: var(--line-strong); border-left-color: var(--red); box-shadow: var(--shadow); }
.vacancy-card__dept { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin: 0 0 4px; }
.vacancy-card__title { font-size: 1.25rem; margin: 0 0 10px; }
.vacancy-card__title a { color: var(--ink); text-decoration: none; }
.vacancy-card__title a:hover { color: var(--blue); text-decoration: underline; }
.vacancy-card__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; flex: none; }

.meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9375rem; color: var(--text); }
.meta__label { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.meta--light { color: #fff; margin-top: 18px; }
.meta--light .meta__label { color: #a9bad1; }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); white-space: nowrap; }
.tag--sa { background: #eef6f1; color: #1d6b45; }
.tag--both { background: #f2f3f4; color: #4a5260; }

/* ---------- steps & values ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 2px solid var(--blue); }
.steps li { padding: 22px 22px 6px 0; border-right: 1px solid var(--line); padding-left: 22px; }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; }
.steps__n { display: block; font-size: .875rem; font-weight: 700; color: var(--red); margin-bottom: 10px; letter-spacing: .06em; }
.steps h3 { font-size: 1.0625rem; }
.steps p { color: var(--muted); font-size: .9375rem; }

.values { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.values__list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.values__list li:first-child { padding-top: 0; }
.values__list h3 { margin-bottom: .25em; }
.values__list p { margin: 0; color: var(--muted); }

/* ---------- vacancy detail ---------- */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.job-body h2 { font-size: 1.25rem; margin-top: 1.6em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.job-body h2:first-child, .job-body .alert + h2 { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--blue); border-top-left-radius: 100%; }
.job-aside { position: sticky; top: 20px; }
.apply-box h2 { font-size: 1.25rem; }
.apply-box__paths { display: grid; gap: 10px; margin: 18px 0; }
.apply-box__notes { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.apply-box__notes li { padding: 3px 0 3px 18px; position: relative; }
.apply-box__notes li::before { content: "–"; position: absolute; left: 0; color: var(--grey); }
.back-link { margin-top: 14px; font-size: .9375rem; }

.path-btn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, background .15s; }
.path-btn:hover { border-color: var(--blue); background: var(--blue-50); color: var(--ink); }
.path-btn strong { display: block; color: var(--blue); }
.path-btn small { color: var(--muted); font-size: .8125rem; }
.path-btn__arrow { margin-left: auto; color: var(--blue); font-size: 1.2rem; }
.path-btn__flag { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--blue); }
.path-btn__flag--sa { background: #1d6b45; }

.path-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card { display: block; padding: 32px; text-decoration: none; color: var(--text); border-top: 4px solid var(--blue); transition: box-shadow .15s, transform .15s; }
.path-card:hover { box-shadow: 0 8px 24px rgba(16,32,56,.12); color: var(--text); }
.path-card .path-btn__flag { margin-bottom: 18px; }
.path-card h2 { margin-bottom: .2em; }
.path-card__code { color: var(--muted); font-size: .875rem; }
.path-card .btn { margin-top: 10px; }

/* ---------- application form ---------- */
.form-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.form-nav { position: sticky; top: 20px; }
.form-nav ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.form-nav a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .9375rem; }
.form-nav a:hover { color: var(--blue); border-left-color: var(--blue); }
.form-nav a.is-current { color: var(--blue); border-left-color: var(--red); font-weight: 600; }
.form-nav__n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; font-size: .75rem; font-weight: 600; }
.form-nav a.is-done .form-nav__n { background: var(--blue); border-color: var(--blue); color: #fff; }
.form-nav__help { margin-top: 18px; font-size: .875rem; color: var(--muted); padding-left: 14px; }

.form-intro { margin-bottom: 20px; border-left: 4px solid var(--blue); }
.form-intro p:last-child { margin-bottom: 0; }
.form-section { margin-bottom: 20px; overflow: hidden; }
.form-section__head { display: flex; gap: 16px; align-items: flex-start; padding: 20px 28px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.form-section__head h2 { font-size: 1.1875rem; margin: 2px 0 2px; }
.form-section__head p { margin: 0; color: var(--muted); font-size: .9375rem; }
.form-section__n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9375rem; }
.form-section__body { padding: 24px 28px 8px; }

.field-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; }
.field { grid-column: span 6; margin: 0 0 20px; min-width: 0; border: 0; padding: 0; }
.field--half { grid-column: span 3; }
.field--third { grid-column: span 2; }
.field label, .field legend, .field__label { display: block; font-weight: 500; color: var(--ink); font-size: .9375rem; margin-bottom: 6px; padding: 0; }
.req { color: var(--red); font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.help { font-size: .8125rem; color: var(--muted); margin: 6px 0 0; }
.static-value { margin: 0; padding: 10px 0; font-weight: 500; color: var(--ink); }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=month], input[type=search], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23183d6f' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,61,111,.15); }
input::placeholder, textarea::placeholder { color: #9aa3ae; }

.phone-group { display: grid; grid-template-columns: minmax(120px, 44%) 1fr; gap: 8px; }
.age-display { display: block; font-size: .8125rem; color: var(--muted); margin-top: 6px; min-height: 1.2em; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choice { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 400 !important; background: #fff; }
.choice:hover { border-color: var(--blue); }
.choice input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }

.declaration { margin-bottom: 14px; }
.decl { display: flex !important; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfd; cursor: pointer; font-weight: 400 !important; line-height: 1.55; margin: 0 !important; }
.decl input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--blue); }
.decl:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }

.file-drop { position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: #fbfcfd; padding: 16px; text-align: center; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--blue); background: var(--blue-50); }
.file-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop__text { display: block; font-size: .9375rem; color: var(--muted); }
.file-drop__text strong { color: var(--blue); }
.file-drop__names { display: block; font-size: .875rem; color: var(--ink); font-weight: 500; margin-top: 4px; word-break: break-word; }
.file-drop.has-file { border-style: solid; border-color: var(--blue); background: var(--blue-50); }

.has-error input, .has-error select, .has-error textarea, .has-error .file-drop, .has-error .decl { border-color: var(--error); }
.error-msg { color: var(--error); font-size: .875rem; margin: 6px 0 0; font-weight: 500; }
.field[hidden], fieldset[hidden] { display: none !important; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 4px solid var(--blue); }
.form-submit p { margin: 0; color: var(--muted); max-width: 520px; }

/* ---------- alerts ---------- */
.alert { border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; border: 1px solid; font-size: .9375rem; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert--error { background: #fdf1f0; border-color: #f2c4bf; color: #7a1a12; }
.alert--warning { background: #fff8e8; border-color: #f0d9a4; color: #6b4600; }
.alert--success { background: #edf7f1; border-color: #bfe0cd; color: #155c3a; }
.alert--info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); margin: 0 0 4px; }
.error-summary { margin: 8px 0 0; padding-left: 20px; }
.error-summary a { color: #7a1a12; font-weight: 600; }

/* ---------- confirmation ---------- */
.confirm { border-top: 4px solid var(--blue); }
.confirm__icon { color: var(--success); margin-bottom: 14px; }
.confirm__lead { font-size: 1.125rem; }
.confirm__ref { background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 16px 20px; margin: 20px 0; }
.confirm__ref dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.confirm__ref dd { margin: 4px 0 0; font-size: 1.5rem; font-weight: 600; color: var(--blue); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.confirm h2 { font-size: 1.1875rem; margin-top: 1.5em; }
.next-steps { padding-left: 20px; }
.next-steps li { margin-bottom: 6px; }
.confirm__actions { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }

.prose h2 { font-size: 1.1875rem; margin-top: 1.4em; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-900); color: #c3cfdf; font-size: .9375rem; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 44px; }
.site-footer__brand img { width: 210px; }
.site-footer__tagline { margin-top: 16px; color: #fff; font-weight: 500; letter-spacing: .02em; }
.site-footer__title { color: #fff; font-size: .9375rem; font-weight: 600; margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 6px; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }
.site-footer__bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.site-footer__social { display: flex; gap: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-nav { display: none; }
  .job-layout { grid-template-columns: 1fr; }
  .job-aside { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; }
  .values { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .site-header__inner { min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; gap: 6px; }
  .brand img { width: 190px; }
  .site-nav { width: 100%; justify-content: flex-start; overflow-x: auto; margin: 0 -14px; }
  .site-nav__back { display: none !important; }
  .hero__inner { padding-top: 56px; padding-bottom: 48px; }
  .hero__actions { margin-bottom: 36px; }
  .hero__stats dt { font-size: 1.35rem; }
  .section { padding: 48px 0; }
  .section--tight { padding: 24px 0 48px; }
  .vacancy-card { flex-direction: column; padding: 18px; }
  .vacancy-card__side { flex-direction: row; align-items: center; }
  .filter-bar__field { min-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .path-choice { grid-template-columns: 1fr; }
  .card--pad { padding: 22px 18px; }
  .form-section__head { padding: 16px 18px; }
  .form-section__body { padding: 18px 18px 4px; }
  .field--half, .field--third { grid-column: span 6; }
  .phone-group { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .topbar, .site-header, .site-footer, .form-nav, .hero__actions, .apply-box__paths { display: none !important; }
  .page-head, .hero { background: none; color: #000; }
}

/* =====================================================================
   v1.1 - candidate accounts
   ===================================================================== */
.site-nav__form { margin: 0; display: inline; }
.site-nav__link { font: inherit; font-weight: 500; font-size: .9375rem; color: var(--ink); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer; }
.site-nav__link:hover { color: var(--blue); }
.site-nav a.site-nav__cta { margin-left: 6px; background: var(--blue); color: #fff; border-radius: var(--radius); border-bottom: 0; padding: 9px 16px; }
.site-nav a.site-nav__cta:hover { background: var(--blue-800); color: #fff; }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue); }
.btn--block { width: 100%; }
.btn--danger { background: var(--error); color: #fff; }
.btn--danger:hover { background: #8f1c13; color: #fff; }

.auth-section { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.auth-grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 56px; align-items: start; padding-top: 24px; }
.auth-intro h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
.auth-intro .ticks { margin-top: 18px; }
.auth-card { border-top: 4px solid var(--blue); }
.auth-card h2, .auth-card h1 { font-size: 1.375rem; margin-bottom: 16px; }
.auth-card--single { max-width: 520px; margin: 24px auto 0; }
.auth-form .field { margin-bottom: 16px; }
.auth-form .btn { margin-top: 4px; }
.auth-alt { margin: 18px 0 0; font-size: .9375rem; text-align: center; color: var(--muted); }
.account-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9375rem; }
.inline-form { display: inline; }

.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.account-tabs { display: flex; gap: 4px; }
.account-tabs a { color: #dce5f2; text-decoration: none; padding: 9px 14px; border-radius: var(--radius) var(--radius) 0 0; font-weight: 500; font-size: .9375rem; border-bottom: 2px solid transparent; }
.account-tabs a:hover { color: #fff; }
.account-tabs a.is-active { color: #fff; border-bottom-color: var(--red); }

.my-apps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.my-app { display: flex; justify-content: space-between; gap: 24px; padding: 22px 26px; border-left: 4px solid var(--blue); }
.my-app__title { font-size: 1.25rem; margin: 0 0 4px; }
.my-app__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; text-align: right; }
.cstatus { display: inline-block; font-size: .8125rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.cstatus--shortlisted, .cstatus--interview_scheduled, .cstatus--assessment_required { background: #e5f4ec; color: #1d6b45; }
.cstatus--offered, .cstatus--hired { background: #1d6b45; color: #fff; }
.cstatus--rejected, .cstatus--withdrawn { background: #eef0f3; color: #5a636e; }

.progress { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: p; }
.progress li { position: relative; padding-top: 12px; font-size: .75rem; color: var(--muted); }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--line); }
.progress li.is-done::before { background: var(--blue); }
.progress li.is-current { color: var(--ink); font-weight: 600; }
.progress li.is-current::before { background: var(--red); }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.danger-card { grid-column: span 2; border-top: 4px solid var(--error); }
.danger-card .auth-form { max-width: 460px; }

@media (max-width: 900px) {
  .auth-grid, .settings-grid { grid-template-columns: 1fr; gap: 24px; }
  .danger-card { grid-column: span 1; }
  .my-app { flex-direction: column; padding: 18px; }
  .my-app__side { align-items: flex-start; text-align: left; }
}
@media (max-width: 760px) {
  .site-nav { flex-wrap: wrap; }
  .site-nav a, .site-nav__link { padding: 8px 10px; font-size: .875rem; }
  .progress { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .progress li span { display: none; }
  .progress li.is-current span { display: block; position: absolute; top: 12px; left: 0; white-space: nowrap; }
  .progress { padding-bottom: 18px; }
}
