/* Mogajobs admin and sign in. Solid colours only, no italics, sentence case labels. */
:root {
  --paper: #F6F2EA;
  --surface: #FFFDF9;
  --ink: #0F2433;
  --ink-2: #44535E;
  --ink-3: #5A666F;
  --line: #E2DACB;
  --line-2: #CFC6B5;
  --blue: #1A8ACB;
  --blue-deep: #0D5E8E;
  --blue-soft: #DCEBF5;
  --gold: #E5B222;
  --gold-soft: #F6E7B8;
  --green-soft: #DCEEDF;
  --green: #22663A;
  --red-soft: #F6DCD7;
  --red: #9B2C1F;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }

input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; line-height: 1.55; }

/* Sign in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-wrap { width: 100%; max-width: 360px; }
.auth-logo img { height: 48px; width: auto; margin-bottom: 40px; }
.auth h1 { font-size: 40px; font-weight: 300; margin-bottom: 24px; }
.auth-form { display: grid; gap: 8px; }
.auth-form label { font-weight: 600; font-size: 14px; margin-top: 10px; }
.auth-form button { margin-top: 22px; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.auth-form button:hover { background: var(--blue-deep); }
.auth-error { margin: 0 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-weight: 500; }
.auth-back { display: inline-block; margin-top: 28px; color: var(--ink-3); font-size: 14px; }

/* Admin frame */
.bar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.mark img { height: 32px; width: auto; }
.tabs { display: flex; gap: 2px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.tabs a:hover { background: var(--paper); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; }
.me { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.me a { color: var(--ink); font-weight: 600; }
.me a[aria-current="page"] { color: var(--blue-deep); }
.me form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--blue-deep); cursor: pointer; font-weight: 500; }
.link:hover { color: var(--ink); }
@media (max-width: 760px) {
  .bar-in { gap: 10px 16px; padding: 10px 16px; }
  .tabs { order: 3; flex-basis: 100%; }
}

.page { max-width: 1240px; margin: 0 auto; padding: 32px 20px 80px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.head h1 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 300; }
.back { display: inline-block; margin-bottom: 6px; color: var(--ink-3); font-size: 14px; }
.back::before { content: "\2190"; margin-right: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; background: var(--ink); color: #fff; border: 1.5px solid var(--ink); font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--red); border-color: #E3B3AA; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

.flash { margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 500; }
.flash.error { background: var(--red-soft); color: var(--red); }
.note { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: var(--gold-soft); }
.note p { margin: 0; }
.note p + p { margin-top: 6px; }
.strong-note { border: 1.5px solid var(--gold); }
.creds { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.card-head h2, .sub { font-size: 22px; }
.sub { margin-bottom: 16px; }
.empty { margin: 8px 0; color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--ink); transition: border-color .15s; }
.stat:hover { border-color: var(--ink); color: var(--ink); }
.stat strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); }

.cols { display: grid; gap: 20px; }
@media (min-width: 960px) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } .cols.wide-left { grid-template-columns: 1.5fr 1fr; } }

.rows li { border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 4px; color: var(--ink); }
.rows a:hover { background: var(--paper); }
.rows .unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 8px; vertical-align: 1px; }
.r-main { display: grid; min-width: 0; }
.r-main b { font-weight: 600; }
.r-main small, td small { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.r-side small { color: var(--ink-3); font-size: 13px; }
ul { list-style: none; margin: 0; padding: 0; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip-new, .chip-open { background: var(--blue-soft); color: var(--blue-deep); border-color: transparent; }
.chip-reviewing, .chip-draft { background: var(--gold-soft); color: #6B4E00; border-color: transparent; }
.chip-shortlisted, .chip-hired { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip-rejected { background: var(--red-soft); color: var(--red); border-color: transparent; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; }
.filters a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toolbar input { flex: 1 1 260px; width: auto; }
.toolbar select { flex: 0 1 220px; width: auto; }

.table-wrap { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { text-align: left; font-weight: 600; font-size: 13.5px; color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line); }
td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:first-child td { border-top: 0; }
td small { display: block; margin-top: 2px; }
td .strong, .strong { font-weight: 600; color: var(--ink); }
tr.off td { opacity: .55; }
.row-actions form { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; margin: 0; }

.form .field { display: grid; gap: 6px; margin-bottom: 16px; }
.form label { font-weight: 600; font-size: 14px; }
.hint { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.field-error { margin: 0; color: var(--red); font-weight: 500; font-size: 14px; }
.grid2 { display: grid; gap: 0 18px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.actions.stack { margin-top: 20px; }
.actions.stack form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.prose { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.prose.big { font-size: 17px; line-height: 1.65; }
h2.sub + .prose { margin-bottom: 0; }
.card .sub:not(:first-child) { margin-top: 24px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 20px; color: var(--ink-3); }
.pager a { font-weight: 600; }

.confirm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-weight: 500; }
