/* iMpact Careers. Brand colours come from Settings via :root variables in the page head. */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url(/fonts/poppins-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #20283F; --teal: #3C9D9F; --teal-deep: #2E7A7C; --accent: #D96C2A; --text: #4A5266;
  --accent-deep: color-mix(in srgb, var(--accent) 85%, black);
  --teal-soft: color-mix(in srgb, var(--teal) 12%, white);
  --bg: #EEF2F6; --card: #FFFFFF; --line: #E3E8EE; --line-2: #D5DEE3; --muted: #7A8296; --panel: #F3F7F8;
  --good: #1E8E5A; --good-bg: #E6F5EC; --warn: #B07807; --warn-bg: #FCF3DC; --bad: #C2412D; --bad-bg: #FCE9E6;
  --info: #2C6FB0; --info-bg: #E7F0FA;
  --radius: 18px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(32, 40, 63, .04), 0 10px 30px -12px rgba(32, 40, 63, .14);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .45em; font-weight: 600; }
h1 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .85em; }
img { max-width: 100%; }
small, .muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-head { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 0 var(--teal); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-label { font-size: .7rem; font-weight: 600; letter-spacing: .2em; color: var(--teal); border-left: 1px solid rgba(255,255,255,.2); padding-left: 10px; }
.wordmark { font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1; display: inline-flex; align-items: center; gap: .4rem; }
.wordmark .mark { width: 26px; height: 26px; color: var(--teal); flex: none; }
.wordmark .rest { font-weight: 300; color: var(--teal); }
.wordmark.dark { color: var(--navy); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a, .nav button { color: #C9CEDA; font: inherit; font-size: .9rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.nav a.active { color: #fff; background: color-mix(in srgb, var(--teal) 25%, transparent); }
.nav .nav-cta { background: var(--accent); color: #fff; }
.nav .nav-cta:hover { background: var(--accent-deep); }
.nav form { margin: 0; }
.nav .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; text-align: center; }
.menu-btn { display: none; margin-left: auto; background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 500; cursor: pointer; }
@media (max-width: 1060px) {
  .site-head .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a, .nav button { width: 100%; text-align: left; }
}

main { flex: 1; padding: 28px 0 56px; }
.site-foot { background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; padding: 22px 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 70%, var(--teal)) 100%); color: #DCE3EE; margin-top: -28px; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid color-mix(in srgb, var(--teal) 35%, transparent); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.7rem); max-width: 720px; }
.hero h1 span { color: var(--teal); }
.hero p { max-width: 620px; font-size: 1.02rem; }
.search { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 16px; margin-top: 22px; max-width: 900px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.search input, .search select { border: 0; background: var(--panel); }
@media (max-width: 760px) { .search { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: .82rem; }
.chip:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.chip b { color: var(--teal); font-weight: 600; }

/* ---------- Cards & layout ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1.2; }
.stat span { font-size: .82rem; color: var(--muted); }
.stat.attention { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Job cards ---------- */
.job-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); border: 1px solid transparent; color: inherit; }
.job-card:hover { border-color: var(--teal); text-decoration: none; }
.job-card h3 { margin: 0; font-size: 1.05rem; }
.job-card .org { font-size: .88rem; color: var(--teal-deep); font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 14px; height: 14px; fill: currentColor; opacity: .8; }
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.deadline { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--panel); color: var(--text); white-space: nowrap; }
.deadline.soon { background: var(--warn-bg); color: var(--warn); }

.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; margin-bottom: 18px; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters .grow { grid-column: 1 / -1; } }

.job-body h2 { margin-top: 1.2em; }
.job-body .pre { line-height: 1.75; }
.side-facts { display: grid; gap: 10px; margin: 0; }
.side-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: .9rem; }
.side-facts dt { color: var(--muted); }
.side-facts dd { margin: 0; color: var(--navy); font-weight: 500; }
.sticky { position: sticky; top: 84px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: .84rem; font-weight: 500; color: var(--navy); margin-bottom: 5px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--navy); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 42px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 220px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, transparent); }
input[type=file] { font: inherit; font-size: .88rem; max-width: 100%; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--teal); flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 12px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-size: .84rem; font-weight: 500; color: var(--navy); margin-bottom: 8px; padding: 0; }
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.radio-card input { margin-top: 4px; accent-color: var(--teal); }
.radio-card b { color: var(--navy); font-weight: 600; display: block; }
.radio-card span { font-size: .84rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: .9rem; font-weight: 600; padding: 10px 18px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--teal); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); color: #fff; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .82rem; border-radius: 10px; }
.btn-block { width: 100%; }
.inline { display: inline; margin: 0; }

/* ---------- Alerts, badges ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: var(--good-bg); color: var(--good); border-color: color-mix(in srgb, var(--good) 20%, transparent); }
.alert-error { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 20%, transparent); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 20%, transparent); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--panel); color: var(--text); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.done { background: var(--good); color: #fff; }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.muted { background: var(--panel); color: var(--muted); }
.tag { display: inline-block; font-size: .76rem; padding: 2px 9px; border-radius: 6px; background: var(--teal-soft); color: var(--teal-deep); font-weight: 500; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td small { display: block; }
tbody tr:hover { background: color-mix(in srgb, var(--teal) 4%, white); }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border-radius: 999px; font-size: .84rem; background: var(--panel); color: var(--text); }
.tabs a.active { background: var(--navy); color: #fff; }
.tabs a:hover { text-decoration: none; }

/* ---------- Progress, files, timeline ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--panel); overflow: hidden; margin: 8px 0 14px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--accent)); border-radius: 99px; }
.checklist { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.checklist li { display: flex; gap: 8px; padding: 4px 0; }
.checklist li::before { content: "○"; color: var(--muted); }
.checklist li.ok { color: var(--muted); text-decoration: line-through; }
.checklist li.ok::before { content: "✓"; color: var(--good); text-decoration: none; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.files .ficon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: #fff; background: var(--teal); flex: none; }
.files .ficon.cv { background: var(--accent); }
.files .finfo { flex: 1; min-width: 0; }
.files .finfo b { display: block; color: var(--navy); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .finfo small { display: block; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline li:last-child::before { background: var(--teal); }
.timeline .when { font-size: .78rem; color: var(--muted); }
.timeline .msg { margin-top: 6px; padding: 10px 12px; background: var(--panel); border-radius: 10px; font-size: .88rem; white-space: pre-line; }
.timeline .note { margin-top: 6px; padding: 8px 12px; background: var(--warn-bg); border-radius: 10px; font-size: .84rem; white-space: pre-line; }
.pipeline { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; }
.pipeline span { flex: 1 1 90px; text-align: center; font-size: .72rem; font-weight: 600; padding: 6px 4px; border-radius: 8px; background: var(--panel); color: var(--muted); }
.pipeline span.on { background: var(--teal); color: #fff; }
.pipeline span.bad { background: var(--bad-bg); color: var(--bad); }
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; flex: none; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-wrap.wide { max-width: 640px; }
.auth-foot { margin-top: 16px; font-size: .88rem; text-align: center; }
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .split-cta { grid-template-columns: 1fr; } }
.cta-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.cta-card.alt { border-top-color: var(--accent); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 30px 0 14px; }
.section-title h2 { margin: 0; font-size: 1.3rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.step b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; margin-bottom: 8px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.plain-list li:last-child { border-bottom: 0; }
