@import url('/assets/fonts/fonts.css');

/* ==========================================================================
   بُشراك — design system
   Arabic-first, right-to-left, mobile-first. One brand colour, one accent and
   a calm set of neutrals; everything else is spacing and type.
   Written with logical properties throughout, so the whole sheet mirrors
   correctly and nothing has to be re-stated for the other direction.
   ========================================================================== */

:root {
  /* brand ---------------------------------------------------------------- */
  --brand-900: #063D31;
  --brand-800: #0A5344;
  --brand: #0F6B57;
  --brand-600: #15836B;
  --brand-100: #D5EAE3;
  --brand-50: #EDF6F3;

  --accent: #E0A33C;          /* fills and marks only */
  --accent-700: #8A5B0B;      /* accent as text, at readable contrast */
  --accent-50: #FDF4E4;

  /* neutrals ------------------------------------------------------------- */
  --ink: #10171F;
  --ink-2: #37424F;
  --muted: #5F6B7A;
  --line: #E1E7EC;
  --line-2: #EFF2F5;
  --bg: #F6F8F8;
  --card: #FFFFFF;

  /* states --------------------------------------------------------------- */
  --danger: #B42318;
  --danger-50: #FDECEA;
  --warn: #92600F;
  --warn-50: #FDF3E4;

  /* shape ---------------------------------------------------------------- */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 23, 31, .05);
  --shadow: 0 2px 10px rgba(16, 23, 31, .06);
  --shadow-lg: 0 14px 40px rgba(16, 23, 31, .10);

  /* rhythm --------------------------------------------------------------- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

  --wrap: 1120px;
  --prose: 68ch;

  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', system-ui, sans-serif;
}

/* ---------------------------------------------------------------- base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  /* Arabic sits taller in the line than Latin and needs the extra leading */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 var(--s3); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); }
h2 { font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.55rem); }
h3 { font-size: 1.06rem; }
h4 { font-size: 0.95rem; }
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0 0 var(--s3); padding-inline-start: 1.4em; }
li { margin-bottom: var(--s1); }
img, svg, video { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.stack > * + * { margin-block-start: var(--s3); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skiplink {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r) 0;
}
.skiplink:focus { inset-inline-start: 0; color: #fff; }

/* --------------------------------------------------------------- layout --- */
main { display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s4); }
.page { padding-block: var(--s5) var(--s7); }
.section { padding-block: var(--s6); }
.section + .section { padding-block-start: 0; }
.section-head { margin-bottom: var(--s5); max-width: 62ch; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: var(--brand); background: var(--brand-50); border-radius: var(--r-pill);
  padding: 4px 12px; margin-bottom: var(--s3);
}

/* --------------------------------------------------------------- header --- */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar .wrap { position: relative; display: flex; align-items: center; gap: var(--s4); min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand svg { display: block; width: 30px; height: 30px; }
.brand-name { font-size: 1.32rem; font-weight: 700; color: var(--brand-800); line-height: 1; }
.brand-sub {
  display: block; font-size: .58rem; letter-spacing: .18em; color: var(--muted);
  font-weight: 600; margin-top: 3px;
}

.nav { display: none; align-items: center; gap: var(--s1); margin-inline-start: auto; }
.nav a, .nav button.link {
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap;
}
.nav a:hover, .nav button.link:hover { color: var(--brand); background: var(--brand-50); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: var(--s2); margin-inline-start: var(--s3); }
button.link { background: none; border: 0; font: inherit; cursor: pointer; color: var(--muted); }

/* The mobile menu is a native <details>, so it opens, closes and announces itself
   without a line of JavaScript - and it still works if the script never arrives. */
.menu { margin-inline-start: auto; }
.menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 13px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2); background: var(--card);
}
.menu > summary::-webkit-details-marker { display: none; }
/* A disclosure arrow points down when closed and up when open. It is drawn from
   physical borders because that meaning does not mirror: in right-to-left, logical
   borders turn the same rule into an arrow pointing sideways. */
.menu > summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px);
}
.menu[open] > summary::after { transform: rotate(-135deg) translateY(0); }
.menu-panel {
  position: absolute; inset-inline: var(--s4); margin-top: var(--s2);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: var(--s2); z-index: 30;
}
.menu-panel a, .menu-panel button.link {
  display: block; width: 100%; text-align: start; padding: 12px 14px;
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-size: 1rem;
}
.menu-panel a:hover, .menu-panel button.link:hover { background: var(--brand-50); color: var(--brand); }
.menu-panel hr { margin: var(--s2) 0; }
.menu-panel .btn { display: block; text-align: center; margin-top: var(--s2); }

@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu { display: none; }
}

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: var(--r-sm); padding: 11px 18px; min-height: 44px;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-50); }
.btn.on-dark { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn.on-dark:hover { background: rgba(255, 255, 255, .22); border-color: #fff; color: #fff; }
.btn.small-btn { padding: 7px 13px; min-height: 36px; font-size: .85rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.actions-row, .jobcard-actions {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s3);
}
.inline-form { display: inline-flex; gap: var(--s2); align-items: center; }

/* ---------------------------------------------------------------- cards --- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4); margin-bottom: var(--s4);
}
.card.flush { margin-bottom: 0; }
.card > :last-child { margin-bottom: 0; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); box-shadow: var(--shadow-sm);
}
.tinted { background: var(--brand-50); border-color: var(--brand-100); }

.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ----------------------------------------------------------------- hero --- */
.hero { background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { padding-block: var(--s6) var(--s6); }
.hero-grid { display: grid; gap: var(--s5); align-items: center; }
.hero h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.9rem);
  letter-spacing: -0.02em; margin-bottom: var(--s4);
}
.hero .lede { font-size: clamp(1rem, .96rem + .3vw, 1.15rem); color: var(--ink-2); max-width: 46ch; }
.hero-art { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-art img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-note {
  display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4);
  color: var(--muted); font-size: .88rem;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .hero .wrap { padding-block: var(--s8) var(--s8); }
}

/* dark band, used for the closing call to action and the trust strip */
.band { background: var(--brand-900); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255, 255, 255, .8); }
.band a:not(.btn) { color: #fff; }
.band .wrap { padding-block: var(--s7); }

/* --------------------------------------------------------------- counts --- */
.counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.count {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4); text-align: center;
}
.count b { display: block; font-size: 1.75rem; line-height: 1.1; color: var(--brand-800); font-weight: 700; }
.count span { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.band .count { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.band .count b { color: #fff; }
.band .count span { color: rgba(255, 255, 255, .72); }
@media (min-width: 720px) { .counts { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------- feature tiles --- */
.tile {
  display: flex; flex-direction: column; gap: var(--s2);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5) var(--s4); text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.tile .count-line { margin-top: auto; padding-top: var(--s3); font-size: .88rem; font-weight: 600; color: var(--brand); }
.tile .count-line.none { color: var(--muted); font-weight: 500; }
.ico {
  width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); flex: 0 0 auto;
}
.ico svg { width: 22px; height: 22px; }
.ico.amber { background: var(--accent-50); color: var(--accent-700); }

/* steps ------------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: var(--s4); }
.step { position: relative; padding-inline-start: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
}
.step h3 { margin: 4px 0 4px; }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* a media row: picture beside text, stacking on a phone */
.media { display: grid; gap: var(--s5); align-items: center; }
.media img { width: 100%; border-radius: var(--r-lg); display: block; object-fit: cover; }
@media (min-width: 860px) {
  .media { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .media.flip .media-text { order: 2; }
}

/* Checklist with a tick instead of a bullet.
   The tick is drawn from two *physical* borders on purpose: a check mark is not a
   directional glyph, and logical borders mirror it in right-to-left into something
   that reads as a chevron pointing the wrong way. Only its position is logical. */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-inline-start: 30px; margin-bottom: var(--s3); }
ul.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 5px; top: .3em;
  width: 7px; height: 13px; border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand); transform: rotate(45deg);
}

/* ---------------------------------------------------------- job cards --- */
.cards { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.jobcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4); display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.jobcard:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.jobcard-head { display: flex; align-items: flex-start; gap: var(--s3); justify-content: space-between; }
.jobcard-head h3, .jobcard h2 { margin: 0 0 2px; font-size: 1.02rem; }
.jobcard a.title { text-decoration: none; color: var(--ink); }
.jobcard a.title:hover { color: var(--brand); text-decoration: underline; }
.jobcard .meta { color: var(--muted); font-size: .88rem; margin: 0 0 var(--s2); }
.jobcard .why { color: var(--brand-800); font-size: .88rem; margin: var(--s2) 0 0; }
.jobcard .gap { color: var(--warn); font-size: .88rem; margin: 4px 0 0; }
.jobcard .jobcard-actions { margin-top: auto; padding-top: var(--s3); }

.score {
  font-weight: 700; border-radius: var(--r-pill); padding: 4px 11px;
  font-size: .85rem; white-space: nowrap; flex: 0 0 auto;
}
.score-excellent { background: var(--brand); color: #fff; }
.score-strong { background: var(--brand-100); color: var(--brand-800); }
.score-possible { background: var(--accent-50); color: var(--accent-700); }
.score-weak { background: var(--line-2); color: var(--muted); }

/* --------------------------------------------------------------- badges --- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; font-weight: 500; line-height: 1.6;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 2px 10px; background: var(--line-2); color: var(--ink-2);
}
.tag.official, .tag.ok, .tag.ok-tag { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.tag.portal, .tag.secondary { background: #EEF2F7; border-color: #DCE4EC; color: #3B5068; }
.tag.applied, .tag.warn-tag, .tag.deadline { background: var(--warn-50); border-color: #F0DDBE; color: var(--warn); }
.tag.new { background: var(--accent-50); border-color: #F1DDB8; color: var(--accent-700); font-weight: 600; }
.tag.level { font-weight: 600; }
.tag.level-excellent { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag.level-strong { background: var(--brand-100); border-color: var(--brand-100); color: var(--brand-800); }
.tag.level-possible { background: var(--accent-50); border-color: #F1DDB8; color: var(--accent-700); }
.tag.opp { background: #EEF2F7; border-color: #DCE4EC; color: #3B5068; }
.tag.opp-government { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.tag.opp-military_security { background: #ECEFF6; border-color: #D8DEEC; color: #33447A; }
.tag.opp-training { background: var(--accent-50); border-color: #F1DDB8; color: var(--accent-700); }

.caution {
  font-size: .84rem; color: var(--warn); background: var(--warn-50);
  border: 1px solid #F0DDBE; border-radius: var(--r-sm);
  padding: 8px 12px; margin: var(--s3) 0 0;
}

/* --------------------------------------------------------------- alerts --- */
.alert { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: var(--s4); }
.alert > :last-child { margin-bottom: 0; }
.alert.ok { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.alert.warn { background: var(--warn-50); border-color: #F0DDBE; color: var(--warn); }
.alert.error { background: var(--danger-50); border-color: #F5C6C2; color: var(--danger); }

/* ---------------------------------------------------------------- forms --- */
.form { display: flex; flex-direction: column; gap: var(--s4); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.form label .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.form input, .form select, .form textarea,
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  width: 100%; min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus,
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); outline: none;
}
.form textarea, textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; color: var(--ink); }
.form label.check input, label.check input { width: auto; min-height: 0; width: 18px; height: 18px; accent-color: var(--brand); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4) var(--s4); margin: 0; }
legend { font-size: .9rem; font-weight: 600; color: var(--ink-2); padding-inline: 6px; }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 500; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: var(--danger); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
/* Two fields side by side keep their controls on one line even when only one of them
   carries an "optional" hint above it. */
.form .grid2 > label > input, .form .grid2 > label > select { margin-block-start: auto; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; background: var(--card); font-size: .92rem;
}
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.chip input { width: 16px; height: 16px; accent-color: var(--brand); }

.auth { max-width: 440px; margin: var(--s7) auto; }
.auth .panel { padding: var(--s5); }
.auth h1 { font-size: 1.45rem; }
.auth-foot { text-align: center; margin-top: var(--s4); color: var(--muted); font-size: .9rem; }

/* honeypot: a real person never sees it, and a bot that fills it is refused */
.nofill { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------- search --- */
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4); margin-bottom: var(--s4);
}
.searchrow { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 760px) { .searchrow { grid-template-columns: 2fr 1.4fr auto; align-items: end; } }
.filter-pills { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: var(--r-pill); padding: 7px 14px; text-decoration: none; min-height: 38px;
}
.pill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.pill[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill .n { opacity: .7; font-size: .8rem; }
.resultline { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; justify-content: space-between; margin-bottom: var(--s3); }

.pager { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: center; margin-top: var(--s5); }

/* ------------------------------------------------------------ job detail --- */
.jobtop { background: var(--card); border-bottom: 1px solid var(--line); }
.jobtop .wrap { padding-block: var(--s5); }
.jobtop h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.95rem); margin-bottom: var(--s2); }
.jobtop .meta { color: var(--muted); margin-bottom: var(--s3); }
.joblayout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) { .joblayout { grid-template-columns: minmax(0, 1fr) 330px; } }
.aside { position: sticky; top: 78px; }
.jobdetail section { margin-bottom: var(--s5); }
.jobbody .desc { line-height: 1.85; }
.jobbody .desc p { margin: 0 0 var(--s3); }
.desc { overflow-wrap: break-word; }

/* a definition list used for the advert's facts */
dl.facts { margin: 0; display: grid; gap: 0; }
dl.facts > div { display: flex; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line-2); }
dl.facts > div:last-child { border-bottom: 0; }
dl.facts dt { flex: 0 0 40%; max-width: 168px; color: var(--muted); font-size: .88rem; margin: 0; }
dl.facts dd { margin: 0; flex: 1 1 auto; font-size: .95rem; }
ul.facts { list-style: none; padding: 0; margin: 0; }
ul.facts li { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
ul.facts li:last-child { border-bottom: 0; }
ul.facts li > span:first-child { display: inline-block; min-width: 118px; color: var(--muted); font-size: .85rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
ul.plain li:last-child { border-bottom: 0; }

/* ------------------------------------------------------------ why matched --- */
.whybox summary { list-style: none; cursor: pointer; }
.whybox summary::-webkit-details-marker { display: none; }
.whybox summary h2 { display: flex; align-items: center; gap: 10px; margin: var(--s2) 0; }
.whylist { list-style: none; padding: 0; margin: var(--s2) 0; }
.whylist li { padding: 9px 12px; border-radius: var(--r-sm); margin-bottom: 6px; font-size: .93rem; }
.whylist li.good { background: var(--brand-50); color: var(--brand-800); }
.whylist li.bad { background: var(--warn-50); color: var(--warn); }
.whylist li.muted { background: var(--line-2); color: var(--muted); }
table.breakdown { width: 100%; border-collapse: collapse; margin-top: var(--s2); font-size: .9rem; }
table.breakdown th, table.breakdown td { border-bottom: 1px solid var(--line-2); padding: 8px; text-align: start; }

/* -------------------------------------------------------------- accordion --- */
.qa { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: var(--s2); }
.qa > summary {
  cursor: pointer; list-style: none; padding: var(--s4);
  font-weight: 600; display: flex; gap: var(--s3); align-items: flex-start; justify-content: space-between;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: ""; flex: 0 0 auto; margin-top: 8px;
  width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s;
}
.qa[open] > summary::after { transform: rotate(-135deg); margin-top: 12px; }
.qa[open] > summary { color: var(--brand-800); }
.qa .qa-body { padding: 0 var(--s4) var(--s4); color: var(--ink-2); }
.qa .qa-body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ prose --- */
.prose { max-width: var(--prose); }
.prose h2 { margin-top: var(--s6); padding-top: var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s5); }
.prose li { margin-bottom: var(--s2); }
.prose .updated { color: var(--muted); font-size: .88rem; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s5); }
.toc ol { margin: 0; padding-inline-start: 1.3em; }
.toc li { margin-bottom: 4px; }

/* --------------------------------------------------------------- footer --- */
.foot { background: var(--brand-900); color: rgba(255, 255, 255, .78); margin-top: var(--s7); }
.foot .wrap { padding-block: var(--s6) var(--s5); }
.foot-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.foot h2 { color: #fff; font-size: .92rem; margin-bottom: var(--s3); font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .92rem; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand-name { color: #fff; }
.foot .brand-sub { color: rgba(255, 255, 255, .55); }
.foot-about { color: rgba(255, 255, 255, .66); font-size: .9rem; max-width: 34ch; margin-top: var(--s3); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: var(--s5); padding-top: var(--s4);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: .85rem; color: rgba(255, 255, 255, .6);
}

/* -------------------------------------------------------- empty & error --- */
.empty {
  text-align: center; padding: var(--s7) var(--s4);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty .ico { margin: 0 auto var(--s3); width: 52px; height: 52px; }
.empty h2, .empty h1 { font-size: 1.15rem; margin-bottom: var(--s2); }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.empty .actions-row { justify-content: center; }

.problem { text-align: center; padding-block: var(--s8); }
.problem .code { font-size: 4rem; font-weight: 700; color: var(--brand-100); line-height: 1; margin-bottom: var(--s3); }
.problem h1 { font-size: 1.5rem; }
.problem p { color: var(--muted); max-width: 48ch; margin-inline: auto; }
.problem .actions-row { justify-content: center; margin-top: var(--s5); }

/* -------------------------------------------------------------- dashboard --- */
.greeting { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); justify-content: space-between; margin-bottom: var(--s4); }
.greeting h1 { margin: 0; }
.quick { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s3) var(--s4); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem;
}
.quick a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.quick .ico { width: 32px; height: 32px; }
.quick .ico svg { width: 17px; height: 17px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); margin-bottom: var(--s4); }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s3); font-size: .8rem; color: var(--muted);
}
.stat span { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(6, 1fr); } }

.progress { height: 8px; border-radius: var(--r-pill); background: var(--line-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: var(--r-pill); }

.section-title { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: baseline; justify-content: space-between; margin: var(--s6) 0 var(--s3); }
.section-title h2 { margin: 0; }
.section-title a { font-size: .9rem; font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------ onboarding & CV --- */
.choices { display: grid; grid-template-columns: 1fr; gap: var(--s4); margin: var(--s5) 0; }
@media (min-width: 760px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); display: flex; flex-direction: column;
}
.choice h2 { margin-top: 0; }
.choice .btn { margin-top: auto; }
.choice.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }

.tabsnav { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); }
.tabsnav a {
  font-size: .9rem; font-weight: 500; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--r-pill); padding: 8px 15px; text-decoration: none; color: var(--ink-2); min-height: 38px;
  display: inline-flex; align-items: center;
}
.tabsnav a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.tabsnav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.ready { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s4); }
.ready h1 { margin: 0 0 var(--s2); }
.langs { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: var(--s3) 0; }
.analyzer { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-sm); padding: 10px 14px; font-size: .9rem; }
.seekertype { margin: 0 0 var(--s2); }

.cvsheet {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s6) var(--s5); margin: var(--s4) 0; line-height: 1.7;
}
.cvsheet header { border-bottom: 1px solid var(--line); padding-bottom: var(--s3); margin-bottom: var(--s4); }
.cvsheet h2 { margin: 0; font-size: 1.35rem; }
.cvsheet h3 {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
  margin: var(--s5) 0 var(--s2); border-bottom: 1px solid var(--line); padding-bottom: 5px;
}
.cv-headline { margin: 3px 0; color: var(--ink-2); }
.cv-contact { margin: 3px 0; color: var(--muted); font-size: .9rem; }
.cv-role { margin-bottom: var(--s3); }
.cv-period { color: var(--muted); font-size: .85rem; margin-inline-start: 8px; }
.cvsheet ul { margin: 4px 0; padding-inline-start: 20px; }
/* A role we know the title and dates of and nothing else. Said in the sheet, quietly, where
   the gap actually is - and never printed into the exported document. */
.cv-needs { margin: 4px 0; color: var(--muted); font-size: .88rem; }
.cv-needs a { color: var(--brand); }

.cv-gaps { margin: var(--s4) 0; }
.cv-gaps h2 { font-size: 1rem; margin: 0 0 var(--s2); }
.cv-gaps li { margin-bottom: 6px; color: var(--ink-2); }

/* ------------------------------------------------- completing a profile --- */
.completion .bar {
  background: var(--line-2); border-radius: 999px; height: 8px; overflow: hidden;
  margin: var(--s2) 0;
}
.completion .bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.questions .question {
  border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4);
  margin-bottom: var(--s3); background: var(--card);
}
.questions legend { font-weight: 600; color: var(--ink); padding-inline: 6px; }
.questions textarea {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.questions .opt { display: block; margin: 4px 0; }
.questions .opts { display: flex; gap: var(--s2); margin: var(--s2) 0 0; }
/* what the person chose, shown back to them - a skipped question and one they could not
   answer are different things, and the difference is the whole point */
.question.set-skipped { border-style: dashed; }
.question.set-unknown { border-style: dashed; opacity: .75; }

.conflicts .conflict {
  border: 1px solid var(--line); border-inline-start: 3px solid var(--warn);
  border-radius: var(--r-sm); padding: var(--s3); margin-bottom: var(--s3);
}
.conflicts .conflict label { display: block; margin: 4px 0; color: var(--ink-2); }
.docnotes { margin: var(--s4) 0; }
.docnotes h2 { font-size: 1rem; margin: 0 0 var(--s2); }

/* --------------------------------------------------------------- tables --- */
table.docs, table.history {
  width: 100%; border-collapse: collapse; font-size: .9rem;
  background: var(--card); border-radius: var(--r); overflow: hidden;
}
table.docs th, table.docs td, table.history th, table.history td {
  border-bottom: 1px solid var(--line-2); padding: 11px 10px; text-align: start;
}
table.docs th, table.history th { color: var(--muted); font-size: .82rem; font-weight: 600; background: var(--line-2); }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.targets { display: grid; gap: var(--s3); }
.target {
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4);
}
.target.accepted { border-color: var(--brand-100); background: var(--brand-50); }
.target .conf { color: var(--muted); font-size: .85rem; margin-inline-start: 8px; }
.target-actions { display: flex; gap: var(--s2); align-items: flex-start; }
.target p { margin: 4px 0 0; font-size: .9rem; }

.app-head { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; flex-wrap: wrap; }
.app-form { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.app-form select, .app-form input { width: auto; flex: 1 1 150px; }
.histrow { padding: var(--s3) 0; border-bottom: 1px solid var(--line-2); }
.histrow:last-child { border-bottom: 0; }
details summary { cursor: pointer; }

/* ------------------------------------------------------------ utilities --- */
@media (max-width: 420px) {
  .wrap { padding-inline: var(--s3); }
  .panel { padding: var(--s4); }
  .jobcard-actions .btn, .actions-row .btn { flex: 1 1 auto; }
  .counts { gap: var(--s2); }
  .count b { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  a.tile:hover { transform: none; }
}

@media print {
  .topbar, .foot, .actions-row, .tabsnav, .skiplink { display: none !important; }
  body { background: #fff; }
  .cvsheet, .card, .panel { border: 0; box-shadow: none; padding: 0; }
}

/* ---------------------------------------- "بُشراك تبحث لك": the agent card ---
   Calm on purpose. It reports what the last pass actually found, including when that
   was nothing, so it never becomes another thing to scroll past. */
.agentcard {
  background: linear-gradient(180deg, var(--brand-50), var(--card) 60%);
  border: 1px solid var(--brand-100); border-radius: var(--r-lg);
  padding: var(--s5); margin-bottom: var(--s4);
}
.agentcard-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: baseline; justify-content: space-between; }
.agentcard-head h2 { margin: 0; font-size: 1.15rem; color: var(--brand-800); }
.agent-state { font-size: .82rem; font-weight: 600; }
.agent-state.on { color: var(--brand); }
.agent-state.off { color: var(--muted); }
.agent-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-top: var(--s4); }
.agent-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); text-align: center; }
.agent-stats b { display: block; font-size: 1.4rem; color: var(--brand-800); line-height: 1.2; }
.agent-stats span { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
@media (min-width: 620px) { .agent-stats { grid-template-columns: repeat(4, 1fr); } }

/* readiness checklist */
ul.checklist { list-style: none; padding: 0; margin: 0; }
ul.checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
ul.checklist li:last-child { border-bottom: 0; }
ul.checklist .mark { flex: 0 0 auto; width: 20px; text-align: center; font-weight: 700; }
ul.checklist li.ok .mark { color: var(--brand); }
ul.checklist li.warn .mark { color: var(--warn); }
ul.checklist li.check .mark { color: var(--accent-700); }
ul.checklist li.blocked .mark { color: var(--danger); }
ul.checklist .detail { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.copybox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4); white-space: pre-wrap; font-size: .95rem; line-height: 1.8;
}

/* ------------------------------------------------- the official accounts
   Restrained by design: three small marks that take the colour of whatever
   surrounds them, so the same partial reads correctly on the dark footer and
   on a white page without a second set of rules. */
.socials { list-style: none; display: flex; gap: 10px; padding: 0; margin: 14px 0 0; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid currentColor; color: inherit; opacity: .72;
  transition: opacity .15s ease, background-color .15s ease;
}
.socials a:hover, .socials a:focus-visible { opacity: 1; background: rgb(255 255 255 / .1); }
.foot .socials a { color: #fff; }
.panel .socials a, .prose .socials a { color: var(--brand); }
.panel .socials a:hover, .prose .socials a:hover { background: rgb(15 107 87 / .08); }

/* -------------------------------------------- دليل الباحث عن عمل: the guides ---
   Reading pages. Everything here serves one thing: a comfortable line of Arabic text
   at a comfortable length, on the same surface and in the same palette as the rest of
   the site. No new colours, no new type scale, and no JavaScript. */

/* the index --------------------------------------------------------------- */
.guide-cats { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s6); }
.guide-cats a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--card); color: var(--ink-2); text-decoration: none; font-size: .88rem;
}
.guide-cats a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

.guide-group { margin-bottom: var(--s6); }
.guide-group > h2 { margin-bottom: var(--s4); }
/* the anchor lands under the sticky header rather than behind it */
.guide-group, .guide-article [id] { scroll-margin-top: 76px; }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 760px) { .guide-list { grid-template-columns: repeat(2, 1fr); } }

.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s4); margin: 0;
}
.guide-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.guide-card h3 { margin: 0 0 var(--s2); font-size: 1.02rem; }
.guide-card h3 a { text-decoration: none; color: var(--ink); }
.guide-card h3 a:hover { color: var(--brand); text-decoration: underline; }
.guide-card p { margin: 0 0 var(--s2); font-size: .92rem; }
.guide-card p:last-child { margin-bottom: 0; }

.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }

/* the article ------------------------------------------------------------- */
.guide-article > header { margin-bottom: var(--s5); }
.guide-article > header h1 { margin-bottom: var(--s3); }
.guide-article > header .lede { font-size: 1.02rem; margin-bottom: 0; }
.guide-article > header .guide-meta { margin-bottom: var(--s3); }

/* an aside: the same tinted panel the rest of the site uses for a calm remark */
.guide-note {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--r-sm); padding: 12px 14px; margin: var(--s4) 0;
  color: var(--ink-2); font-size: .95rem;
}

.guide-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: var(--s3) 0 var(--s4); }
.guide-table th, .guide-table td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top;
}
.guide-table thead th { background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.guide-table tbody tr:nth-child(even) td { background: var(--line-2); }
/* a table must scroll inside itself rather than pushing the page sideways */
.guide-article .tablewrap { margin-bottom: var(--s4); }

/* A file name or an address is Latin and reads left to right. Isolating it keeps its own
   punctuation - the @ and the dot - from being reordered by the Arabic around it, which
   is how "ahmed.alharthy@" ends up displayed as "@ahmed.alharthy". */
.guide-article code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em;
  background: var(--line-2); border-radius: 4px; padding: 1px 5px;
  direction: ltr; unicode-bidi: isolate;
}

.guide-sources {
  margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line);
}
.guide-sources h2 { margin-top: 0; font-size: 1.1rem; }
.guide-sources ul { padding-inline-start: 1.2em; }
.guide-sources li { font-size: .92rem; margin-bottom: var(--s2); }

.guide-related { max-width: var(--prose); margin-top: var(--s7); }
.guide-related > h2 { margin-bottom: var(--s4); }
.guide-related .guide-list { grid-template-columns: 1fr; }

/* the reading indicator ---------------------------------------------------
   Zero script. A scroll-driven animation where the browser supports one, and simply
   nothing where it does not - and nothing under reduced motion either, since the
   global rule there collapses every animation to its end state. */
.read-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 30;
  background: var(--brand); transform: scaleX(0); transform-origin: 100% 50%;
}
@supports (animation-timeline: scroll()) {
  .read-progress { animation: read-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }

@media print {
  .read-progress, .toc, .guide-cats, .guide-related { display: none !important; }
}

/* ---------------------------------------------- search and Arabic reading aids ---
   Three quarters of the adverts on this board carry an English title inside an Arabic
   page. Everything here is about making that readable: the Arabic aid under the title,
   the summary above the employer's own text, and a search box that says it takes both
   languages. */

/* the homepage search: the same engine as /jobs, so it is the same shape */
.herosearch { display: grid; gap: var(--s2); margin: 0 0 var(--s3); grid-template-columns: 1fr; }
.herosearch input, .herosearch select {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink);
}
.herosearch input:focus, .herosearch select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-50); }
.herosearch .btn { min-height: 46px; }
@media (min-width: 620px) { .herosearch { grid-template-columns: 2fr 1.2fr auto; } }

/* the Arabic rendering of an English title: an aid, so it is quieter than the original */
.title-ar { margin: 2px 0 6px; font-size: .92rem; }
.jobcard .title-ar { margin: -2px 0 6px; }
h1 + .title-ar { font-size: 1.02rem; margin-bottom: var(--s2); }

/* our summary of somebody else's advert - marked as ours, and never instead of theirs */
.jobsummary {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s5);
}
.jobsummary h2 { margin: 0 0 var(--s3); font-size: 1.05rem; color: var(--brand-800); }
.jobsummary ul.ticks li { margin-bottom: var(--s2); }
.jobsummary p.tiny { margin: var(--s3) 0 0; }

/* the empty state: somewhere to go next, not a zero */
.empty-hints { text-align: start; max-width: 46ch; margin: var(--s4) auto 0; }
.empty-hints li { margin-bottom: var(--s2); }

.form label .hint, .filters label .hint { font-weight: 400; color: var(--muted); font-size: .78rem; }
.resultline .tiny { color: var(--muted); }

/* a table of an advert's own text must scroll inside itself, not widen the page */
.desc table { display: block; overflow-x: auto; max-width: 100%; }

/* A fact we are unsure about: still on the record, held out of the document, waiting on the
   only person who actually knows. Never styled as an error - it may well be theirs. */
.heldback { margin: var(--s4) 0; }
.heldback h2 { font-size: 1rem; margin: 0 0 var(--s2); }
.heldfact {
  border: 1px solid var(--line); border-inline-start: 3px solid var(--warn);
  border-radius: var(--r-sm); padding: var(--s3); margin-bottom: var(--s2);
}
.heldfact p { margin: 0 0 6px; }

/* One job at a time: the step, what is already known, and what is still being asked. */
.rolestep { margin-bottom: var(--s5); }
.rolestep .bar {
  background: var(--line-2); border-radius: 999px; height: 6px; overflow: hidden; margin: var(--s2) 0 var(--s4);
}
.rolestep .bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.rolestep h2 { font-size: 1.1rem; margin: 0 0 var(--s2); }
/* facts already verified are shown, not asked for - the difference the person can see */
.known {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-sm); padding: 10px 14px; color: var(--ink-2);
}

/* ---------------------------------------------------------------- conversion
   Three places where a visitor is offered a reason to have an account. All of them sit
   beside what they came for and none of them covers it: browsing jobs and reaching the
   employer's own link stay exactly as they were. */

.jobs-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin: var(--s4) 0;
  padding: var(--s4);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r2);
}
.jobs-cta h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--brand-900); }
.jobs-cta p { margin: 0; color: var(--ink-2); }
.jobs-cta .btn { flex: none; }

.match-cta {
  margin-top: var(--s4);
  padding: var(--s4);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r2);
}
.match-cta h2 { margin: 0 0 6px; font-size: 1.1rem; color: var(--brand-900); }
.match-cta p { margin: 0 0 var(--s3); color: var(--ink-2); }

.start-actions { margin: var(--s4) 0; }
.start-points {
  list-style: none;
  margin: var(--s4) 0 var(--s3);
  padding: 0;
  display: grid;
  gap: var(--s3);
}
.start-points li {
  padding-inline-start: var(--s3);
  border-inline-start: 3px solid var(--brand-100);
}
.start-points strong { display: block; color: var(--brand-900); }
.start-points span { color: var(--ink-2); }

@media (min-width: 720px) {
  .start-points { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); }
}

/* on a phone the offer stacks and the button spans the width, so it is never a thin
   target beside a heading */
@media (max-width: 560px) {
  .jobs-cta { flex-direction: column; align-items: stretch; }
  .jobs-cta .btn, .match-cta .btn { width: 100%; text-align: center; }
}
