/* Namibra Careers — brand: black ground, lime accent */
:root {
  --bg: #0D0E0A;
  --surface: #15160F;
  --surface-2: #1C1D15;
  --line: #2E2F26;
  --line-strong: #4A4B40;
  --text: #FFFFFF;
  --text-2: #D7D8D2;
  --muted: #A3A59A;
  --accent: #C8FC12;
  --accent-ink: #0D0E0A;
  --error: #FF8A7A;
  --radius: 14px;
  --font: "Sora", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #E1FF7A; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header / footer */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.brand img { display: block; }
.top-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.top-link { font-weight: 600; font-size: 15px; }
.foot {
  margin-top: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}

/* Layout */
.wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.wrap.narrow { max-width: 480px; display: block; }
.wrap.wide { display: block; }
@media (max-width: 900px) { .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Hero */
.hero { position: sticky; top: 32px; }
@media (max-width: 900px) { .hero { position: static; } }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }
.lead { margin: 18px 0 0; font-size: 18px; color: var(--text-2); max-width: 520px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }

.role { margin-top: 28px; border-top: 1px solid var(--line); }
.role summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 10px; }
.role summary::-webkit-details-marker { display: none; }
.role summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 16px; line-height: 1; }
.role[open] summary::before { content: "−"; }
.role h2 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin: 20px 0 8px; }
.role ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.role li { margin: 6px 0; }
.role li::marker { color: var(--accent); }

/* Card + form */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); }
.card h2, .h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.01em; }
.muted { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.span { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }
label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input::placeholder, textarea::placeholder { color: #75776C; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(200, 252, 18, 0.25); }
input[type=file] { font: inherit; color: var(--text-2); padding: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--bg); width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 14px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); cursor: pointer; }
[aria-invalid=true] { border-color: var(--error) !important; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--text-2); font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.count { margin: 0; font-size: 13px; color: var(--muted); text-align: right; }
.count.over { color: var(--error); font-weight: 600; }
.err { margin: 0; font-size: 14px; color: var(--error); }
.alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; background: rgba(255, 138, 122, 0.12); border: 1px solid rgba(255, 138, 122, 0.4); color: #FFC2B8; }
.hp { position: absolute; left: -9999px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; margin-top: 24px;
  font: inherit; font-weight: 700; text-decoration: none;
  color: var(--accent-ink); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; cursor: pointer;
}
.btn:hover { background: #D9FF55; color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; margin-top: 0; }
form > .btn { width: 100%; }

.done { text-align: center; padding: 24px 0; }
.done p { color: var(--text-2); margin: 8px auto 0; max-width: 380px; }
.done-mark { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; margin-top: 12px; }

/* Admin */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-head .btn { margin-top: 0; }
.h1-admin { font-size: clamp(30px, 4vw, 42px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 16px; }
.tabs a { text-decoration: none; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.tabs a:hover { color: var(--text); border-color: var(--text-2); }
.tabs a[aria-current=page] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tabs .n { font-weight: 500; opacity: 0.75; }
.search { display: flex; gap: 10px; margin-bottom: 24px; max-width: 520px; }
.search .btn { margin-top: 0; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.list { display: flex; flex-direction: column; gap: 12px; }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.app-main { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-who { min-width: 0; }
.app h2 { margin: 0 0 4px; font-size: 19px; }
.meta { margin: 2px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.meta a { color: var(--text-2); }
.app-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); }
.pill.s-new { border-color: #6FA8FF; color: #A9CBFF; }
.pill.s-shortlisted { border-color: var(--accent); color: var(--accent); }
.pill.s-interview { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill.s-rejected { color: var(--muted); }
.pill.s-hired { background: #FFFFFF; color: var(--accent-ink); border-color: #FFFFFF; }
.app details { margin-top: 14px; border-top: 1px solid var(--line); }
.app summary { cursor: pointer; padding-top: 12px; font-weight: 600; font-size: 14px; color: var(--accent); }
.app blockquote { margin: 14px 0; padding: 14px 18px; background: var(--bg); border-radius: 10px; color: var(--text-2); }
.review { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.review .f { width: 180px; }
.review .f.grow { flex: 1 1 260px; width: auto; }
.saved { color: var(--accent); font-weight: 600; font-size: 14px; align-self: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
