/* Dawam: the board's one stylesheet.
 *
 * Ported from the design source, design/build.py (its CSS and the component helpers' inline styles).
 * The CSP allows no style attribute and no <style> element, so every rule a page needs lives here as a class.
 * Fonts are self-hosted and declared in ../fonts/fonts.css, which loads first.
 *
 *    1. Tokens                 7. Chat illustration
 *    2. Base                   8. Dialogs and sheets
 *    3. Layout                 9. Site header
 *    4. Brand                 10. Site footer
 *    5. Icons                 11. Phones (720px and narrower)
 *    6. Components
 *
 * Page sections (home, search, job pages) go below section 11, one commented section per page, each with
 * its own @media (max-width:720px) block after its rules. The breakpoint is 720px everywhere; dialogs.js
 * treats wider screens with a fine pointer, (min-width:721px) and (pointer:fine), as computers.
 * Base rules sit inside :where() so any class overrides them without a fight over specificity.
 */

/* ---------------------------------------------------------------- 1. Tokens */

:root {
  --bg: #F4F7F6;
  --surface: #FFFFFF;
  --ink: #0F2529;
  --ink-2: #3E5459;
  --ink-3: #5B6F73;
  --line: #D5DFDD;
  --line-2: #E8EEED;
  --line-strong: #84979A;
  --line-dashed: #C3CFCD;
  --teal: #0B6B66;
  --teal-dark: #08524E;
  --teal-soft: #E3F1EF;
  --teal-line: #C6E2DE;
  --amber-ink: #9A4507;
  --amber-soft: #FBEEDD;
  --amber-deep: #5C2A06;
  --ok: #1D6B3A;
  --ok-soft: #E4F3E8;
  --info: #1F4E8C;
  --info-soft: #E6EEF9;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --violet: #5B3E8A;
  --violet-soft: #EEE9F6;
  --community: #6B4FA0;
  --seal-bg: #F1F8F6;
  --seal-note: #2F5F5B;
  --todo-bg: #FFF8EF;
  --disabled-bg: #EEF2F1;
  --disabled-line: #C9D3D1;
  --chat-bg: #E4EBE9;
  --chat-out: #D3EBE6;
  --chat-meta: #4D6266;
  --chat-wave: #6F8A87;
  --chat-sub: #B9CFCC;
  --band-text: #C9DAD7;
  --band-mark: #173A40;
  --band-line: #8FA7A8;
  /* Text and icons on teal and ink. */
  --on-dark: #FFFFFF;
  /* Job pages. */
  --surface-tint: #FBFDFC;
  --amber-tint: #FBF6EF;
  --check-no-bg: #EEF1F0;
  /* The CV drop zone, and the sign-in page's panel of other ways. */
  --drop-bg: #F7FAF9;
  /* The employer page: the squares of applicants to check (between teal and the light grey in lightness), and the
     closing band's kicker on ink. */
  --amber-mid: #C26A16;
  --band-accent: #7ED3C6;
  /* The hero's drawn phone: its titanium rim lit from the top left, the metal band of its sides, the black bezel
     (also the camera island) and the side buttons. */
  --phone-rim: linear-gradient(140deg, #D6DCDD 0%, #7C8789 22%, #2F383A 48%, #8E999B 74%, #4B5557 100%);
  --phone-band: linear-gradient(180deg, #B9C2C4 0%, #6A7578 18%, #8D989B 46%, #4F5A5D 78%, #7A8588 100%);
  --phone-bezel: #0B1012;
  --phone-key: #8D989B;

  --display: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --arabic: "Noto Kufi Arabic", "Readex Pro", sans-serif;
}

/* ---------------------------------------------------------------- 2. Base */

body { margin: 0; background: var(--bg); }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

.dw {
  font-family: var(--body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
.dw * { box-sizing: border-box; }
:where(.dw) :is(h1, h2, h3) {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
  color: var(--ink);
}
:where(.dw) :is(p, ul, ol, figure, fieldset) { margin: 0; }
:where(.dw) :is(ul, ol) { padding: 0; list-style: none; }
:where(.dw) fieldset { border: 0; padding: 0; min-width: 0; }
:where(.dw) legend { padding: 0; }
:where(.dw) :is(button, input, select) { font-family: inherit; }
:where(.dw) :is(input[type=checkbox], input[type=radio]) {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
}
.dw :focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------------------------------------------------------------- 3. Layout */

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sec { padding: 56px 0; }
.hero-section {
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.band-mark {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font: 800 170px/1 var(--arabic);
  color: var(--band-mark);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Shown only on computers (.hide-sm) or only on phones (.show-sm inline, .show-sm-block block); see section 11. */
.show-sm, .show-sm-block { display: none !important; }

/* ---------------------------------------------------------------- 4. Brand */

/* The mark: the Arabic letter dal (د), the first letter of دوام, white on teal. Corners are 30% of the size,
   the letter 87.5%; .mark-round makes the seal's round version. */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--teal);
  color: var(--on-dark);
  font-family: var(--arabic);
  font-weight: 800;
  line-height: 1;
}
.mark-glyph { display: block; transform: translateY(-18%); }
.mark-16 { width: 16px; height: 16px; border-radius: 5px; font-size: 14px; }
.mark-20 { width: 20px; height: 20px; border-radius: 6px; font-size: 18px; }
.mark-22 { width: 22px; height: 22px; border-radius: 7px; font-size: 19px; }
.mark-26 { width: 26px; height: 26px; border-radius: 8px; font-size: 23px; }
.mark-32 { width: 32px; height: 32px; border-radius: 10px; font-size: 28px; }
.mark-40 { width: 40px; height: 40px; border-radius: 12px; font-size: 35px; }
.mark-round { border-radius: 50%; }

/* The bilingual lockup: mark, Latin wordmark, a rule and دوام. */
.logo, .logo:hover {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.logo-word { font: 700 26px/1 var(--display); letter-spacing: -0.02em; padding-bottom: 3px; }
.logo-rule { width: 1px; height: 22px; background: var(--line-dashed); }
.logo-ar { font: 800 20px/1 var(--arabic); color: var(--teal); padding-bottom: 4px; }

/* Company monogram: initials on one of four tints, chosen from the name (jobs.presentation.monogram). */
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
}
.monogram-36 { width: 36px; height: 36px; font-size: 13px; }
.monogram-44 { width: 44px; height: 44px; font-size: 16px; }
.monogram-56 { width: 56px; height: 56px; font-size: 20px; }
.tint-0 { background: var(--teal-soft); color: var(--teal); }
.tint-1 { background: var(--info-soft); color: var(--info); }
.tint-2 { background: var(--amber-soft); color: var(--amber-ink); }
.tint-3 { background: var(--violet-soft); color: var(--violet); }

/* ---------------------------------------------------------------- 5. Icons */

/* {% icon %} sets the size with width and height attributes; a tone sets the colour, otherwise it inherits. */
.ic { flex: none; }
.ic-faint { color: var(--ink-3); }
.ic-ok { color: var(--ok); }
.ic-teal { color: var(--teal); }
.ic-teal-dark { color: var(--teal-dark); }
.ic-danger { color: var(--danger); }
.ic-amber { color: var(--amber-ink); }

/* ---------------------------------------------------------------- 6. Components */

/* Buttons. Every button and icon button is at least 44px tall. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font: 600 15px/1.2 var(--body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--on-dark); }
.btn-primary:hover { background: var(--teal-dark); color: var(--on-dark); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--teal-soft); color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[aria-disabled=true], .cv-zone[aria-disabled=true] .btn {
  background: var(--disabled-bg);
  color: var(--ink-3);
  border-color: var(--disabled-line);
  cursor: not-allowed;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.icon-btn-primary { background: var(--teal); color: var(--on-dark); border-color: var(--teal); }
.icon-btn-primary:hover { background: var(--teal-dark); color: var(--on-dark); }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 2px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav-link:hover { color: var(--teal); }
.nav-link[aria-current=page] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }

/* Chips: tags on a job, filters, quick searches. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font: 500 13px/1.3 var(--body);
  background: var(--line-2);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
a.chip:hover { background: var(--line); color: var(--ink); }
.chip-teal { background: var(--teal-soft); color: var(--teal); }
.chip-amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }

/* Source labels: a dot in the source's colour, then "Direct · replies in 7 days" and the like. */
.src {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  font: 600 13.5px/1.2 var(--body);
  white-space: nowrap;
  align-self: flex-start;
}
.src::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.src-direct { color: var(--teal); }
.src-late { color: var(--danger); }
.src-site { color: var(--info); }
.src-community { color: var(--community); }

/* The seal: the round mark, "Licence checked 26 Oct" and, in <em>, "· open today". Full on job pages,
   light (.lic-card) on cards and rows. */
.lic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px 2px 2px;
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  background: var(--seal-bg);
  color: var(--teal-dark);
  font: 600 13.5px/1.3 var(--body);
  align-self: flex-start;
  white-space: nowrap;
}
.lic em { font-style: normal; font-weight: 500; color: var(--seal-note); }
.lic-card { border: 0; background: transparent; padding: 0; gap: 7px; font-size: 13px; }

/* Cards. A Direct card carries a teal top edge, a late one a red edge. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.src-card-direct { box-shadow: inset 0 4px 0 var(--teal); }
.src-card-late { box-shadow: inset 0 4px 0 var(--danger); }

/* Salary: the figure in the display face, the basis (.per) small beside or under it. */
.salary {
  font-family: var(--display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: var(--ink);
}
.per { font: 400 14px/1.2 var(--body); color: var(--ink-3); letter-spacing: 0; white-space: nowrap; }

/* Text */
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.hint { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.bul { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.bul li::marker { color: var(--teal); }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
/* A text link the design draws smaller than 44px keeps its look but gets a hit area of at least 44 × 44px
   (the touch-target rule): an invisible box centred on the link. */
.hit-44, .crumbs a { position: relative; }
.hit-44::after, .crumbs a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}
/* A WhatsApp command such as STATUS or SAVED. */
.cmd {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--on-dark);
  font: 600 13px/1 var(--mono);
  letter-spacing: .06em;
}
/* A detail nobody has decided yet ({% todo %}), drawn as a dashed placeholder instead of an invented fact. */
.todo {
  padding: 0 4px;
  border: 1px dashed var(--amber-ink);
  border-radius: 4px;
  color: var(--amber-ink);
  background: var(--todo-bg);
  font-family: var(--mono);
  font-size: .92em;
  white-space: nowrap;
}

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font: 500 14px/1.3 var(--body); color: var(--ink); }
.input {
  height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font: 400 16px/1.2 var(--body);
  color: var(--ink);
}
.input::placeholder { color: var(--ink-3); }
.selectbox { position: relative; display: inline-flex; align-items: center; }
.selectbox select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.selectbox svg { position: absolute; right: 12px; pointer-events: none; color: var(--ink-2); }

/* Tables: .matrix compares the sources on the home page, .tbl lists rows that fold into cards on phones. */
.matrix { width: 100%; border-collapse: collapse; min-width: 560px; }
.matrix th {
  font: 600 12px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.matrix td {
  padding: 14px 12px;
  border-bottom: 1px dashed var(--line-dashed);
  font-size: 15px;
  vertical-align: top;
}
.matrix tr:last-child td, .matrix tr:last-child th { border-bottom: 0; }

.tbl { width: 100%; border-collapse: collapse; min-width: 760px; }
.tbl th {
  font: 600 12px/1.3 var(--body);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: 15px; line-height: 1.4; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- 7. Chat illustration */

/* WhatsApp messages drawn on the web pages (the home hero and its steps): static pictures, not a live chat. */
.step-chat {
  background: var(--chat-bg);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.ph-name { font: 600 16px/1.2 var(--display); }
.ph-sub { font-size: 12.5px; line-height: 1.2; color: var(--chat-sub); }
.day {
  align-self: center;
  background: var(--surface);
  color: var(--ink-2);
  font: 500 12.5px/1 var(--body);
  padding: 6px 10px;
  border-radius: 8px;
  margin: 4px 0;
}
.m {
  max-width: 300px;
  padding: 8px 10px 6px;
  font-size: 15px;
  line-height: 1.42;
  box-shadow: 0 1px 0 rgba(15, 37, 41, .08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
}
.m-wide { width: 300px; }
.m-in { align-self: flex-start; background: var(--surface); border-radius: 4px 14px 14px 14px; }
.m-out { align-self: flex-end; background: var(--chat-out); border-radius: 14px 4px 14px 14px; }
.m-small { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.m-head { font-weight: 700; font-size: 15px; line-height: 1.35; }
.m-foot { font-size: 13px; line-height: 1.3; color: var(--chat-meta); }
.t { align-self: flex-end; font-size: 11.5px; line-height: 1; color: var(--chat-meta); font-variant-numeric: tabular-nums; }
.quote {
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, .6);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
}
.rbs { align-self: flex-start; width: 300px; display: flex; flex-direction: column; gap: 3px; margin-top: -5px; }
figure .rbs { width: auto; align-self: stretch; }
.rb {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--teal);
  font: 600 15px/1.2 var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(15, 37, 41, .08);
  cursor: pointer;
  padding: 0 12px;
}
.vn { display: flex; align-items: center; gap: 10px; width: 230px; }
.vn-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  flex: none;
}
.vn-wave { display: flex; align-items: center; gap: 2px; height: 28px; flex: 1; }
.vn-wave span { width: 3px; border-radius: 2px; background: var(--chat-wave); flex: none; }
.vn-dur { font-size: 12.5px; color: var(--chat-meta); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 8. Dialogs and sheets */

/* Both are <dialog> elements opened by dialogs.js; the browser's top layer stacks them, so no z-index.
   The default `display: none` of a closed dialog must win, so the flex layout applies to [open] only.
   .dlg: a WhatsApp action on a computer (design: modal()). .sheet: the phone's panel from the bottom
   (design: sheet()), below the 72px header. */
.dlg {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 96px);
  margin: 72px auto auto;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(15, 37, 41, .25);
}
.dlg[open] { display: flex; flex-direction: column; gap: 18px; }
.dlg:focus-visible, .sheet:focus-visible { outline: none; }
.dlg::backdrop { background: rgba(15, 37, 41, .55); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dlg-titles { display: flex; flex-direction: column; gap: 6px; }
.dlg-title { font-size: 25px; }
.dlg-sub { font-size: 15px; overflow-wrap: anywhere; }
/* The body of a WhatsApp dialog: the QR code on the left, numbered steps on the right, then the links. */
.qr-row { display: flex; gap: 28px; align-items: center; }
/* The code is drawn without its quiet zone (web.whatsapp_actions.qr_svg), so every dialog shows it at the same size
   with the same white margin, whatever the length of its message; only the module density changes. The padding is
   the quiet zone: at least 4 modules of the coarsest code a wa.me link can make. */
.qr-box { flex: none; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.qr-svg { display: block; width: 150px; height: 150px; }
.qr-steps { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.qr-steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font: 600 14px/1 var(--display);
}
.step-text { padding-top: 2px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 18px; }

.sheet {
  position: fixed;
  inset: 72px 0 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 8px 0 16px;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  color: var(--ink);
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(15, 37, 41, .5); }
.sheet-head { display: flex; align-items: center; gap: 4px; padding: 0 8px 8px; border-bottom: 1px solid var(--line-2); }
.sheet-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.sheet-title { font: 600 17px/1.2 var(--display); flex: 1; }

/* ---------------------------------------------------------------- 9. Site header */

.site-header { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1; }
.site-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* The phone menu: a <details> whose summary is the "Open menu" button and whose panel drops below the header. */
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { color: var(--ink); border-color: var(--ink-2); background: var(--line-2); }
.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 4px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(15, 37, 41, .08);
}
.menu-panel .nav-link { border-bottom: 1px solid var(--line-2); }
.menu-panel .nav-link:last-child { border-bottom: 0; }
.menu-panel .nav-link[aria-current=page] { box-shadow: none; }

/* Tablets: below 1024px the bar's four links no longer fit beside Sign in and the alerts button and would wrap
   inside the bar, so they move into the phone menu; Sign in and the alerts button stay where they are. */
@media (min-width: 721px) and (max-width: 1023px) {
  .site-header .site-nav { display: none !important; }
  .site-header .menu { display: inline-flex !important; }
}

/* ---------------------------------------------------------------- 10. Site footer */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0; }
.site-footer-body { display: flex; flex-direction: column; gap: 18px; }
.site-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer-brand { display: flex; flex-direction: column; gap: 8px; }
.site-footer-tagline { font-size: 14px; }
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.site-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.site-footer-legal { font-size: 13.5px; line-height: 1.7; max-width: 110ch; }

/* ---------------------------------------------------------------- 11. Phones (720px and narrower) */

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex !important; }
  .show-sm-block { display: block !important; }

  .sec { padding: 20px 0 28px; }
  .hero-section { padding: 20px 0 24px; }

  .dlg { margin-top: 16px; padding: 22px 20px; max-height: calc(100% - 32px); }
  .qr-row { flex-direction: column; align-items: flex-start; gap: 18px; }

  .tbl { min-width: 0; }
  .tbl thead { display: none; }
  .tbl tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-2);
  }
  .tbl td { display: block; padding: 0; border: 0; }
  .tbl td:nth-child(3)::before { content: "Updated "; }
  .tbl td:nth-child(4) { grid-column: 1 / -1; }
}

/* ================================================================ Page sections (appended by the page tasks) */

/* ---------------------------------------------------------------- Job pages (Task 6) */

/* Ported from design/build.py: job_layout, job_crumbs, job_head, job_parts, apply_card, checks_card,
   similar_jobs, job_card, page_job_site, page_job_late, page_job_community, page_job_filled,
   page_emirati_check and apply_bar. Templates: web/templates/web/job/ and the job partials. */

/* Layout: the breadcrumb, then the article and the side column side by side, wrapping on narrow screens. */
.job-page { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.job-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.job-article { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* The pages the design draws with job_page_generic (Company site, Community, filled, and the late Direct page) space
   their sections 22px apart; the on-time Direct page keeps 24px. */
.job-article-generic,
.job-article-late { gap: 22px; }
.job-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Head: source and code, the title beside the monogram, the seal, then the facts. */
.job-head { display: flex; flex-direction: column; gap: 14px; }
.job-head-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.job-code { font-size: 13px; white-space: nowrap; }
.job-head-identity { display: flex; gap: 16px; align-items: center; }
.job-head-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.job-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; overflow-wrap: anywhere; }
.job-company { font-size: 17px; font-weight: 500; }
.job-metas { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.job-meta { display: inline-flex; align-items: center; gap: 6px; }

/* Salary (design: salary_line and its sizes). The basis sits beside the range. */
.salary-similar { font-size: 15px; line-height: 1.2; }
.salary-compact { font-size: 16px; line-height: 1.2; }
.salary-row { font-size: 20px; line-height: 1.2; }
.salary-card { font-size: 21px; line-height: 1.2; }
.salary-page { font-size: 30px; line-height: 1.2; }
.salary-lead { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.salary-lead .per { font-size: 16px; }

/* The salary card: figure, what it covers, and the benefits in two columns. */
.pay-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.pay-head { display: flex; flex-direction: column; gap: 6px; }
/* On Company site and Community pages the note sits 8px under the figure; Direct pages, late or not, keep 6px. */
.job-article-generic .pay-head { gap: 8px; }
.pay-note { font-size: 15px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px 24px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }

/* The employer's questions, numbered like the dialog steps. */
.asks-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--surface-tint); }
.asks-title { font-size: 20px; }
.asks-list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.asks-list li { display: flex; gap: 12px; align-items: flex-start; }
.asks-note { font-size: 14px; }

/* What you will do, what you need, nice to have, about the company. */
.job-details { display: flex; flex-direction: column; gap: 12px; }
.job-details h2 { font-size: 22px; }
.job-details h3 { font-size: 18px; }
.job-details > :is(h2, h3):not(:first-child) { padding-top: 8px; }

/* How we checked this job: six dated rows, a green tick for a check that is met and a neutral dash otherwise. */
.checks-card { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.checks-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.checks-title { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.checks-dated { font-size: 13px; }
.check-list { display: flex; flex-direction: column; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.check-ok { background: var(--ok-soft); color: var(--ok); }
.check-no { background: var(--check-no-bg); color: var(--ink-3); font: 700 15px/1 var(--body); }
.check-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.check-detail { font-size: 14px; }
.check-date { font-size: 13px; white-space: nowrap; }
.report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-top: 12px;
  font-size: 14px;
  align-self: flex-start;
}

/* Notices at the top of the article: late to reply (red), filled (teal), forwarded from a group (amber). */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 14px; }
.notice-body { display: flex; flex-direction: column; gap: 6px; }
.notice-title { font-size: 20px; }
.notice-text { font-size: 15px; }
.notice-late { background: var(--danger-soft); }
.notice-late .notice-title { color: var(--danger); }
.notice-filled { background: var(--teal-soft); }
.notice-filled .notice-title { color: var(--teal-dark); }
.notice-forwarded { padding: 20px 24px; background: var(--amber-tint); }
.notice-forwarded .notice-body { gap: 4px; }
.notice-forwarded .notice-title { font-size: 18px; }

/* The post as the company published it, or as it was forwarded. */
.post-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.post-title { font-size: 20px; }
.post-intro { font-size: 15px; }
.post-sub { font-size: 18px; padding-top: 4px; }
.post-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; align-self: flex-start; }

/* Side column: the apply box (computers; the apply bar replaces it on phones) and the reply cards. */
.apply-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(15, 37, 41, .07);
}
.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 14px;
  align-self: flex-start;
}
.replies-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.replies-title { display: flex; align-items: center; gap: 8px; font: 600 16px/1.3 var(--display); }
.replies-text { font-size: 15px; }
.replies-record { font-size: 14px; }
.record-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.record-title { font-size: 17px; }
.record-line { font-size: 15px; }
/* The card of a job the candidate applied for, and the answers they sent. */
.applied-on { font-size: 14px; }
.applied-heading { font: 600 18px/1.3 var(--display); }
.applied-detail { font-size: 15px; }
.sent-list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.sent-list li { display: flex; flex-direction: column; gap: 2px; }
.closed-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.closed-title { font: 600 17px/1.3 var(--display); }

/* Similar jobs: a list in the side column. The whole row is the title link's hit area. */
.similar { display: flex; flex-direction: column; padding: 4px 4px 0; }
.similar-heading { font-size: 17px; padding-bottom: 6px; }
.similar-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.similar-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.similar-link {
  font: 600 15.5px/1.3 var(--display);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.similar-link:hover { color: var(--teal); }
.similar-link::after { content: ""; position: absolute; inset: 0; }
.similar-meta { font-size: 14px; }

/* Job card (design: job_card), shared with the home page. */
.like-section { display: flex; flex-direction: column; gap: 14px; }
.like-title { font-size: 22px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.job-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.job-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.job-card-posted { font-size: 13px; }
.job-identity { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.job-identity-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.job-card-title { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.job-card-title a { color: var(--ink); text-decoration: none; }
.job-card-title a:hover { color: var(--teal); }
.job-card-company { font-size: 15px; }
.job-card-place { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.job-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

/* The phone's apply bar: hidden on computers, pinned to the bottom of the screen on phones. */
.apply-bar { display: none; }
.apply-bar-row { display: flex; gap: 8px; }
.apply-bar-save { width: 52px; height: 52px; }
.apply-bar-main { flex: 1; }
.apply-bar-note { text-align: center; font-size: 12.5px; }
.apply-bar-link { display: inline-flex; align-items: center; min-height: 44px; }

/* The eligibility question for roles reserved for UAE nationals: a dialog on computers, a page on phones. */
.dlg-narrow { width: min(600px, calc(100% - 32px)); }
.elig-question { font-size: 16px; }
.elig-ar { font: 500 17px/1.7 var(--display); }
.elig-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.elig-hint { display: flex; gap: 8px; align-items: flex-start; }
.elig-card { max-width: 640px; padding: 30px 32px; display: flex; flex-direction: column; gap: 18px; }
.elig-title { font-size: 25px; }

/* Not found. */
.not-found { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; padding-bottom: 72px; }
.not-found-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.not-found-text { font-size: 17px; max-width: 60ch; }
.not-found-code { white-space: nowrap; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 720px) {
  .apply-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px 14px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(15, 37, 41, .08);
  }
  .elig-card { padding: 22px 20px; }
}

/* ---------------------------------------------------------------- Search (Task 7) */

/* Ported from design/build.py: search_bar, filter_chips, alert_banner, filter_box, filter_group,
   search_filter_groups, result_row, page_search, page_search_empty, sheet and page_filters_mobile.
   Templates: web/search.html and the partials search_bar, filters, filter_option, filter_chips, alert_banner,
   result_row and empty_results. The search bar is shared with the home page. */

/* The search bar: the text and the emirate in bordered fields, then the button. The field shows the focus ring
   of the control inside it. */
.search-band { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 0; }
.search-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}
.search-field-text { flex: 3 1 260px; }
.search-field-place { flex: 1 1 170px; gap: 8px; }
.search-input { border: 0; padding: 0; }
.search-input:focus-visible { outline: none; }
.search-field:has(:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Layout: the filter panel beside the results, wrapping on narrow screens. */
.search-page { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 28px; padding-bottom: 56px; }

/* The filter panel (computers) and its groups, which the phone's sheet draws too. */
.filters {
  flex: 1 1 260px;
  max-width: 320px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: flex-start;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-title { font-size: 18px; }
.filters-clear { font-size: 14px; }
.filters-form { display: flex; flex-direction: column; gap: 18px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.filter-legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
  font: 600 15px/1.3 var(--display);
  color: var(--ink);
}
.filter-options { clear: both; display: flex; flex-direction: column; gap: 2px; }
.filter-box { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; cursor: pointer; }
.filter-apart { margin-top: 8px; }
.filter-salary { display: flex; align-items: center; gap: 8px; }
.filter-unit { font-size: 15px; }
.filter-min { height: 44px; }
/* "Show 3 more": the other emirates behind a <details>; its summary reads "Show fewer" once open. */
.filter-more > summary {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 10px 0;
  list-style: none;
  color: var(--teal);
  font: 600 14px/1 var(--body);
  cursor: pointer;
}
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more-opened, .filter-more[open] .filter-more-closed { display: none; }
.filter-more[open] .filter-more-opened { display: inline; }

/* Results: the heading with the phone's Filters button and the sort, chips, the alert banner, rows, pages. */
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.results-title { flex: 1 1 300px; font-size: 26px; overflow-wrap: anywhere; }
.results-tools { display: flex; align-items: center; gap: 8px; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-box { width: 180px; }
.sort-select { height: 44px; width: 100%; }
.results-list { display: flex; flex-direction: column; gap: 12px; }

/* Filter chips: each removes its filter. The design's 32px chip keeps its look; .hit-44 makes it 44px to touch. */
.filter-chips { gap: 8px; }
.chip-remove { min-height: 32px; cursor: pointer; }

/* The alert banner: "Get new matches for this search on WhatsApp". */
.alert-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--teal-soft);
}
.alert-banner-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.alert-banner-title { font: 600 16px/1.3 var(--display); }
.alert-banner-sub { font-size: 14px; }
.bell-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-dark);
}
.bell-badge-40 { width: 40px; height: 40px; }
.bell-badge-44 { width: 44px; height: 44px; }

/* A result row (design: result_row): the job on the left; salary, date and buttons on the right. */
.result-row { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; }
.result-main { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.res-right {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.result-posted { font-size: 13px; }
.result-actions { display: flex; gap: 8px; }
/* A signed-in candidate's row: the chip of their application, "Withdraw" while a reply is late, and the account link. */
.result-applied { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.result-account { display: inline-flex; align-items: center; font-size: 14px; }
/* "You opened their site from Dawam yesterday. Did you apply?": a dashed row under a result row, a card beside a job. */
.ask-row {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.ask-text { flex: 1 1 260px; font-size: 14.5px; }
.ask-actions { display: flex; gap: 8px; }
.ask-card { padding: 20px; display: flex; }
/* A button that changes something is a small POST form; in the apply box and the phone's bar it fills the width. */
.post-form { display: inline-flex; flex: none; }
.post-form-fills { display: flex; flex: 1; }
.post-form-fills .btn { flex: 1; }

/* Pages. */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.pager-status { font-size: 14px; }
.pager-buttons { display: flex; gap: 8px; }

/* No results: the heading, searches that find something, and the alert box beside them. */
.search-empty { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 32px; padding-bottom: 56px; }
.empty-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.empty-title { font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.empty-lead { font-size: 16px; max-width: 60ch; }
.suggestions { display: flex; flex-direction: column; max-width: 640px; }
.suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
}
.suggestion-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.suggestion-label { font: 600 16px/1.3 var(--display); }
.suggestion-detail { font-size: 14px; }
.empty-alert {
  flex: 1 1 320px;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--teal-soft);
  border-color: var(--teal-line);
}
.empty-alert-title { font-size: 20px; }
.empty-alert-text { font-size: 15px; }
.empty-alert-button { align-self: flex-start; }

/* The phone's filter sheet: the groups scroll, "Show N jobs" stays at the bottom. */
.sheet-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
.sheet-foot { padding: 12px 16px 4px; border-top: 1px solid var(--line-2); }

@media (max-width: 720px) {
  /* Phones: a tighter row; the salary on its own line, then the date on the left and the buttons on the right. */
  .result-row { padding: 14px 16px; gap: 10px; }
  .result-main { gap: 8px; }
  .res-right { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; text-align: left; }
  .res-right .salary { flex-basis: 100%; }
  /* Touch: every box and radio row is a 44px target. */
  .filter-box { min-height: 44px; }
}

/* A touch screen wider than a phone (a tablet) gets the same 44px rows. */
@media (pointer: coarse) {
  .filter-box { min-height: 44px; }
}

/* ---------------------------------------------------------------- Home (Task 8) */

/* Ported from design/build.py: page_home, section_head, job_row_compact and voice. Templates: web/home.html and
   the partials hero_example, job_row, how_applying, verify_table, verify_cell, scam_check, account_chat,
   employers_band and voice_note; the hero's search is search_form with the home look. Also the legal pages. */

/* Section heads: the title, an optional line under it, and an action on the right (design: section_head). */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.section-head-text { display: flex; flex-direction: column; gap: 6px; }
.section-title { font-size: 30px; line-height: 1.15; }
.section-sub { font-size: 16px; max-width: 62ch; }

/* Hero: the promise, the search and the role chips on the left; the job card and the 3D phone on the right
   (computers), or the alerts button and the phone alone under the search (phones). */
.hero-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-title { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.04; max-width: 16ch; }
.hero-ar {
  font: 600 clamp(20px, 2.2vw, 28px)/1.5 var(--display);
  color: var(--teal);
  text-align: left;
  white-space: nowrap;
}
.hero-lead { font-size: 18px; line-height: 1.55; max-width: 56ch; }
.hero-lead-sm { font-size: 16px; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-popular-label { font-size: 14px; }

/* The hero's search: a card with filled fields instead of the search page's bordered ones. */
.search-bar-home { padding: 8px; border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(15, 37, 41, .06); }
.search-bar-home .search-field { border: 0; background: var(--bg); }
.search-bar-home .search-input { background: transparent; }

/* The hero picture on computers (design v2): a Direct job card with the licence stamp, overlapped by a phone with the
   chat that applies to it. On phones the STATUS chat sits under the search instead. A picture, so nothing in it is
   pressable. */
.hero-panel { flex: 1 1 420px; max-width: 500px; min-width: 0; }
.hero-example { position: relative; height: 765px; }
/* The phone's shadow on the page, under it: the phone floats over the hero. */
.hero-example::after {
  content: "";
  position: absolute;
  right: 46px;
  bottom: -14px;
  z-index: 1;
  width: 250px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 37, 41, .26);
  filter: blur(18px);
  transform: rotate(-5deg);
}
.hero-example-card {
  position: absolute;
  top: 26px;
  left: 0;
  z-index: 1;
  width: 350px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(15, 37, 41, .10);
}
.hero-example-stamp { position: absolute; top: -18px; right: -14px; }
.hero-example-identity { display: flex; flex-direction: column; gap: 4px; }
.hero-example-title { font: 600 21px/1.25 var(--display); color: var(--ink); }
.hero-example-company { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.hero-example-company svg { color: var(--teal); }
/* The phone, drawn in 3D with no hand. The front (the titanium rim, the black bezel, the screen with the camera
   island, the status bar, the chat and the input line) is at z 0; nine layers of the metal band sit behind it, 2.4 px
   apart, so the side turned toward the reader shows the phone's thickness. Proportions of a 6.1" phone
   (71.6 x 147.6 mm). The 3D needs preserve-3d on .hero-phone and .hero-phone-depth: an overflow, filter or opacity
   on either flattens it, and the band then covers the rim. */
.hero-phone {
  position: absolute;
  top: 238px;
  right: 26px;
  z-index: 2;
  width: 246px;
  aspect-ratio: 71.6 / 147.6;
  padding: 3px;
  border-radius: 46px;
  background: var(--phone-rim);
  transform-style: preserve-3d;
  transform: perspective(1500px) rotateY(-24deg) rotateX(10deg) rotateZ(3deg);
}
/* The side buttons, set halfway into the band: the power button stands out of the side the reader sees. */
.hero-phone::before, .hero-phone::after {
  content: "";
  position: absolute;
  width: 4px;
  background: var(--phone-key);
  transform: translateZ(-10px);
}
.hero-phone::before { left: -3px; top: 104px; height: 44px; border-radius: 2px 0 0 2px; box-shadow: 0 56px 0 var(--phone-key); }
.hero-phone::after { right: -3px; top: 150px; height: 70px; border-radius: 0 2px 2px 0; }
/* The band: three nested spans, each with ::before and ::after, so nine layers, each 2.4 px behind the one before,
   darker toward the back. */
.hero-phone-depth, .hero-phone-depth::before, .hero-phone-depth::after {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: var(--phone-band);
  transform-style: preserve-3d;
}
.hero-phone-depth::before, .hero-phone-depth::after { content: ""; }
.hero-phone-depth { transform: translateZ(-2.4px); }
.hero-phone-depth::before { transform: translateZ(-2.4px); }
.hero-phone-depth::after { transform: translateZ(-4.8px); }
.hero-phone-depth .hero-phone-depth { transform: translateZ(-7.2px); box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .10); }
.hero-phone-depth .hero-phone-depth::before,
.hero-phone-depth .hero-phone-depth::after { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .14); }
.hero-phone-depth .hero-phone-depth .hero-phone-depth { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .22); }
.hero-phone-depth .hero-phone-depth .hero-phone-depth::before { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .28); }
/* The back layer carries the phone's own shadow, so it falls behind the whole body and follows its angle. */
.hero-phone-depth .hero-phone-depth .hero-phone-depth::after {
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .28), 0 34px 60px -18px rgba(15, 37, 41, .42), 0 12px 24px -12px rgba(15, 37, 41, .30);
}
.hero-phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 8px solid var(--phone-bezel);
  border-radius: 43px;
  background: var(--chat-bg);
}
.hero-phone-screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  width: 62px;
  height: 19px;
  margin-left: -31px;
  border-radius: 10px;
  background: var(--phone-bezel);
}
.hero-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(112deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .07) 36%, rgba(255, 255, 255, 0) 36.4%);
  pointer-events: none;
}
.hero-phone-bar {
  flex: none;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 16px 0 24px;
  background: var(--ink);
  color: var(--on-dark);
  font: 600 13px/1 var(--body);
}
.hero-phone-icons { display: flex; align-items: center; gap: 3px; }
.hero-phone-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px 6px; background: var(--ink); color: var(--on-dark); }
.hero-phone-back { display: flex; }
.hero-example-who { display: flex; flex-direction: column; gap: 2px; }
.hero-example-name { font-size: 15px; }
.hero-phone-chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 10px 8px;
}
.hero-phone .m { max-width: 196px; padding: 6px 9px 5px; gap: 3px; font-size: 13px; line-height: 1.38; }
.hero-phone .t { font-size: 10px; }
.hero-phone .day { margin: 2px 0; padding: 5px 8px; font-size: 11px; }
.hero-phone .rbs { margin-top: -3px; }
.hero-phone .rb { min-height: 36px; font-size: 13px; cursor: default; }
.hero-phone-input { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px 20px 8px; }
.hero-phone-input::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 90px;
  height: 4px;
  margin-left: -45px;
  border-radius: 2px;
  background: var(--ink);
  opacity: .85;
}
.hero-phone-field {
  flex: 1 1 auto;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 37, 41, .08);
  color: var(--ink-3);
  font-size: 13px;
}
.hero-phone-mic {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-dark);
}
.hero-alerts .btn { width: 100%; }
.hero-panel-caption { font-size: 13px; text-align: center; }

@media (max-width: 720px) {
  /* Phones: the phone alone, centred under the search and smaller; the job card and its stamp stay on computers. */
  .hero-row { gap: 4px; }
  .hero-panel { flex-basis: 100%; max-width: none; }
  .hero-example { height: auto; display: flex; justify-content: center; padding: 14px 0 30px; }
  .hero-example-card { display: none; }
  .hero-phone { position: relative; top: auto; right: auto; width: 252px; }
  .hero-example::after { right: auto; left: 50%; bottom: 12px; width: 230px; margin-left: -120px; }
}
/* A rubber stamp: two rules, mono capitals, a slight tilt. */
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 12px 6px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3px var(--teal);
  color: var(--teal);
  font: 600 10.5px/1.1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-4deg);
}
.stamp b { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; }

/* A voice note's waveform: the design's bar heights, one class each (design: WAVE). */
.vn-bar-6 { height: 6px; }
.vn-bar-7 { height: 7px; }
.vn-bar-8 { height: 8px; }
.vn-bar-9 { height: 9px; }
.vn-bar-10 { height: 10px; }
.vn-bar-11 { height: 11px; }
.vn-bar-12 { height: 12px; }
.vn-bar-13 { height: 13px; }
.vn-bar-14 { height: 14px; }
.vn-bar-15 { height: 15px; }
.vn-bar-16 { height: 16px; }
.vn-bar-18 { height: 18px; }
.vn-bar-19 { height: 19px; }
.vn-bar-20 { height: 20px; }
.vn-bar-22 { height: 22px; }
.vn-bar-24 { height: 24px; }
.vn-bar-26 { height: 26px; }

/* Latest verified jobs: cards on computers, compact rows on phones (design: job_row_compact). */
.home-latest { display: flex; flex-direction: column; gap: 20px; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.home-rows { display: flex; flex-direction: column; gap: 10px; }
.job-row { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.job-row:hover { color: var(--ink); }
.job-row-title { font: 600 17px/1.3 var(--display); overflow-wrap: anywhere; }
.job-row-meta { font-size: 14px; }

/* How applying works: three steps, each with the message it starts. */
.how-section { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-body { display: flex; flex-direction: column; gap: 28px; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.how-step { display: flex; flex-direction: column; gap: 12px; }
.how-step-no { font-weight: 600; font-size: 13px; color: var(--teal); letter-spacing: .08em; }
.how-step-title { font-size: 21px; }
.how-step-text { max-width: 42ch; }

/* What we check, by source: the table (computers) or three cards (phones), and the scam check beside it. */
.verify-section { padding: 56px 0; }
.verify-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.verify-card-main { flex: 999 1 560px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.verify-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.verify-kicker { font-size: 12.5px; letter-spacing: .08em; }
.verify-seal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.verify-seal-label { font-size: 13px; }
.verify-title { font-size: 30px; line-height: 1.15; max-width: 26ch; }
.verify-text { font-size: 15px; max-width: 64ch; }
.verify-scroll { overflow-x: auto; }
.matrix .matrix-row {
  font: 500 15px/1.4 var(--body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  border-bottom: 1px dashed var(--line-dashed);
}
.verify-yes { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; }
.verify-cards-list { display: flex; flex-direction: column; gap: 12px; }
.verify-card { padding: 14px 18px; display: flex; flex-direction: column; }
.verify-card-title { font-size: 15px; padding-bottom: 8px; }
.verify-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
}
.verify-card-label { flex: 1; min-width: 0; }
.verify-card-cell { flex: none; text-align: right; white-space: nowrap; }

@media (max-width: 720px) {
  /* Phones: the three sources side by side, one swipe each, with the next one peeking in from the right, instead of
     three long cards one under the other. */
  .verify-card-main { padding: 20px 16px; }
  .verify-cards-list {
    flex-direction: row;
    gap: 10px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
  }
  .verify-card { flex: 0 0 86%; scroll-snap-align: start; }
}

.scam-check { flex: 1 1 300px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.scam-title { font-size: 20px; }
.scam-text { font-size: 15px; }
.scam-example { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--danger-soft); }
.scam-verdict { display: flex; align-items: center; gap: 6px; font: 600 14px/1.3 var(--body); color: var(--danger); }
.scam-reason { font-size: 14px; color: var(--ink); }

/* The account in the chat: a chat beside the commands. */
.account-section { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line); }
.account-body { display: flex; flex-direction: column; gap: 28px; }
.account-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.account-chat {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--chat-bg);
}
.commands { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
.command { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.cmd-wide { min-width: 88px; justify-content: center; }
.command-text { font-size: 15.5px; }

/* For employers: the dark band, with دوام large behind it on computers. */
.employers-band { position: relative; overflow: hidden; padding: 56px 0; background: var(--ink); color: var(--on-dark); }
.employers-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.employers-text { display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.employers-title { font-size: 30px; color: var(--on-dark); text-wrap: pretty; }
.employers-lead { font-size: 16px; color: var(--band-text); }
.employers-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Privacy and Terms, until a lawyer writes them. */
.legal-page { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; padding-bottom: 72px; }
.legal-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.legal-text { font-size: 17px; }

/* ---------------------------------------------------------------- Account (iteration 2, Task 7) */

/* Ported from design/build.py: site_header(account=True), account_page, page_account_profile, the Privacy card of
   page_account, and wa_delete as a page. Templates: web/account/ and the account menu and messages partials. */

/* Notices at the top of a page ("Your account and your CV are erased."). */
.notices { padding-top: 16px; }
.notice {
  padding: 12px 16px;
  border: 1px solid var(--teal-line);
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 15px;
}

/* The account menu in the header: the round initials button, and a panel under it that lines up with its right
   edge. The <details> behaviour comes from .menu. */
.acct-menu { position: relative; }
.acct-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  font: 600 15px/1 var(--display);
  cursor: pointer;
}
.acct-menu[open] > .acct-avatar { background: var(--ink-2); color: var(--on-dark); }
.acct-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 200px;
  padding: 4px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 37, 41, .08);
}
.acct-panel .nav-link { border-bottom: 1px solid var(--line-2); }
.acct-signout-form { display: flex; }

.acct-signout {
  flex: 1;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

/* The page: the heading and the profile status, then the details beside the side column. */
.acct-page { display: flex; flex-direction: column; gap: 20px; padding-top: 32px; padding-bottom: 56px; }
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.acct-head-text { display: flex; flex-direction: column; gap: 6px; }
.acct-title { font-size: 32px; }
.acct-status { display: flex; align-items: center; gap: 8px; }
.acct-status-note { font-size: 14px; }
.acct-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }

/* The profile: one row for each thing the candidate told us, the label on the left and the answer on the right. */
.profile-card { flex: 999 1 620px; min-width: 0; padding: 8px 24px 16px; }
.profile-list { margin: 0; }
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
}
.profile-row:first-child { border-top: 0; }
.profile-value { margin: 0; text-align: right; }

/* The side column: what employers see, WhatsApp, privacy. */
.acct-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.acct-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.acct-card-title { font: 600 16px/1.3 var(--display); }
.acct-card-title-row { display: flex; align-items: center; gap: 8px; }
.acct-card-heading { font-size: 18px; }
.acct-card-text { font-size: 15px; }
.acct-danger-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 36px;
  font-size: 14px;
  color: var(--danger);
}
.acct-danger-link:hover { color: var(--danger); text-decoration: none; }

/* Delete your account: one card with what goes, then the two choices. */
.acct-delete { display: flex; flex-direction: column; gap: 14px; max-width: 560px; padding: 28px; }
.acct-delete-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.btn-danger { background: var(--danger); color: var(--on-dark); }
.btn-danger:hover { background: var(--danger); color: var(--on-dark); filter: brightness(.88); }

@media (max-width: 720px) {
  .acct-page { padding-top: 20px; padding-bottom: 40px; }
  .acct-title { font-size: 26px; }
  .profile-card { padding: 4px 16px 12px; }
  .acct-delete { padding: 22px 20px; }
}

/* ---------------------------------------------------------------- The account page (iteration 3) */

/* Ported from design/build.py: account_page and page_account (and page_account_saved). Templates:
   web/account/{account_base,account,saved,profile}.html and the account_whatsapp partial. The tabs sit under the
   heading; the page is the main column (interview, table, legend) beside the side column. */
.acct-tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--line); }
.acct-tabs .nav-link { padding: 12px 2px; }
.acct-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.acct-side-wide { flex-basis: 340px; }
.acct-card-action { align-self: flex-start; }

/* The next interview: an ink card with the day, the place and the way to change the time. */
.acct-interview {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-dark);
}
.acct-interview-text { flex: 999 1 360px; display: flex; flex-direction: column; gap: 6px; }
.acct-interview-label {
  font: 600 12px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--band-text);
}
.acct-interview-when { font: 600 24px/1.2 var(--display); color: var(--on-dark); }
.acct-interview-detail { font-size: 15px; color: var(--band-text); }
.acct-interview-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-interview-button { color: var(--on-dark); border-color: var(--band-line); }
.acct-interview-button:hover { color: var(--on-dark); border-color: var(--on-dark); }

/* The applications table: it folds into cards on phones through .tbl. */
.acct-table-wrap { overflow-x: auto; }
.acct-table { min-width: 640px; }
.acct-job-title { font: 600 15.5px/1.3 var(--display); color: var(--ink); text-decoration: none; }
.acct-job-title:hover { color: var(--teal); }
.acct-job-company { font-size: 14px; padding-bottom: 6px; }
.acct-updated { white-space: nowrap; }
.acct-next { max-width: 220px; }
.acct-next-strong { font-weight: 600; }
/* "Did you apply?" answered from the table, as on the search row. */
.acct-ask { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.acct-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }

/* The alerts card: each alert with its state and a button that pauses or resumes it. */
.acct-card-head { display: flex; justify-content: space-between; align-items: center; }
.acct-new-alert { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; min-height: 44px; }
.acct-alert-list { display: flex; flex-direction: column; }
.acct-alert { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.acct-alert-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acct-alert-title { font-weight: 500; font-size: 15px; }
.acct-alert-button { padding: 0 14px; }

/* The Privacy card's switch. */
.acct-privacy-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acct-privacy-label { flex: 1 1 200px; display: flex; gap: 10px; align-items: center; min-height: 32px; font-size: 15px; }
.acct-privacy-save { min-height: 36px; padding: 0 14px; }

/* The saved jobs: cards in a grid that fits as many columns as the width allows. */
.acct-saved-note { font-size: 15px; }
.acct-saved-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }

@media (max-width: 720px) {
  .acct-table { min-width: 0; }
  .acct-table tr:last-child { border-bottom: 0; }
  .acct-interview { padding: 18px 16px; }
  .acct-interview-when { font-size: 21px; }
  .acct-next { max-width: none; }
}

/* ---------------------------------------------------------------- Onboarding and sign-in (iteration 2) */

/* Ported from design/build.py: onboarding_header, page_onboarding_connect and qr_block. Templates: web/focused.html,
   the stepper and code_wait partials, web/account/connect.html. The focused header is .site-header with the stepper
   where the site's links would be. */

/* The stepper: a dot for each step, a check once it is done, the current one in teal. */
.onb-steps { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.onb-step { display: flex; align-items: center; gap: 10px; font: 500 15px/1.2 var(--body); color: var(--ink); }
.onb-step-done { color: var(--ink); }
.onb-step-current { font-weight: 600; }
.onb-step-todo { color: var(--ink-3); }
.onb-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font: 600 14px/1 var(--display);
}
.onb-dot-done { background: var(--teal); color: var(--on-dark); }
.onb-dot-current { border: 2px solid var(--teal); color: var(--teal); }
.onb-dot-todo { border: 2px solid var(--ink-3); color: var(--ink-3); }

/* The step's card, centred. */
.onb-page { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 56px; }
.onb-card { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 820px; padding: 32px; }
.onb-head { display: flex; flex-direction: column; gap: 8px; }
.onb-title { font-size: 32px; line-height: 1.15; }
.onb-lead { font-size: 16px; }
.onb-actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.onb-actions form { display: flex; }

/* A code waiting for the person's message: the number to choose, the countdown, and a code that cannot be used. */
.code-wait { display: flex; flex-direction: column; gap: 20px; }
.code-number-row { display: flex; align-items: center; gap: 16px; }
.code-number {
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--ink);
  font: 700 40px/1 var(--display);
}
.code-number-text { max-width: 40ch; font-size: 15px; }
.code-wait-line { font-size: 15px; }
.code-problem {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--amber-soft);
}
.code-problem-text { font-size: 15px; color: var(--ink); }

@media (max-width: 720px) {
  .onb-page { padding-top: 20px; padding-bottom: 40px; }
  .onb-card { padding: 22px 20px; }
  .onb-title { font-size: 26px; }
  .code-number-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------------------------------------------------------------- Upload your CV (iteration 2, Task 10) */

/* Ported from design/build.py: page_onboarding_start (the heading, the consent card and the drop zone). Template:
   web/account/cv.html. The drop zone's look while it is disabled is the disabled button's, set with `.btn` above. */
.cv-page { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 56px; }
.cv-column { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 720px; }
.cv-head { display: flex; flex-direction: column; gap: 8px; }
.cv-title { font-size: 34px; line-height: 1.12; }
.cv-lead { font-size: 16px; }
.cv-form { display: flex; flex-direction: column; gap: 20px; }
.cv-consent { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cv-card-title { font-size: 18px; }
.cv-consent-text { font-size: 15px; }
.cv-agree { display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: 15px; font-weight: 500; }
.cv-required { font-weight: 400; }
.cv-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--drop-bg);
  text-align: center;
}
.cv-zone-icon { display: inline-flex; color: var(--ink-3); }
.cv-zone-title { font: 600 17px/1.3 var(--display); }
.cv-input:focus-visible + .btn { outline: 3px solid var(--teal); outline-offset: 2px; }
.cv-file-name { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 720px) {
  .cv-page { padding-top: 20px; padding-bottom: 40px; }
  .cv-title { font-size: 28px; }
  .cv-zone { padding: 24px 16px; }
}

/* ---------------------------------------------------------------- Check your profile (iteration 2, Task 9) */

/* Ported from design/build.py: page_onboarding (its three cards, the actions and the aside). Templates:
   web/account/profile_edit.html and the checklist card, field and error partials. The same form is "Edit your
   profile" once onboarding is done. */

.pe-page { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; padding-bottom: 56px; }
.pe-head { display: flex; flex-direction: column; gap: 8px; }
.pe-title { font-size: 34px; line-height: 1.12; }
.pe-lead { font-size: 16px; max-width: 66ch; }
.pe-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pe-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pe-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* What went wrong with the reading of the CV, and with the answers. */
.pe-read-notice, .pe-form-error {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
}
.pe-read-notice { background: var(--amber-soft); }
.pe-form-error { background: var(--danger-soft); }
.pe-read-notice .ic, .pe-form-error .ic { flex: none; margin-top: 2px; }

.pe-card { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.pe-card-tight { gap: 14px; }
.pe-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pe-card-intro { display: flex; flex-direction: column; gap: 4px; }
.pe-card-title { font-size: 20px; }
.pe-card-sub { font-size: 15px; }
.pe-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-2);
}
.pe-replace { min-height: 36px; padding: 0 12px; }
.pe-file-text { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.pe-file-name { font-weight: 500; }

.pe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.pe-grid-half { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.pe-grid-visa { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; align-items: start; }
.pe-suffix { font-weight: 400; }
/* A figure we work out, drawn as a field the person cannot edit (an <output>, so it is not sent with the form). */
.input-readonly { display: flex; align-items: center; background: var(--bg); }
.input-placeholder { color: var(--ink-3); }
.input[aria-invalid=true] { border-color: var(--danger); }
.pe-fieldset { display: flex; flex-direction: column; gap: 8px; }
.pe-legend { margin-bottom: 2px; }
.pe-lock-hint, .pe-lock-line { display: flex; gap: 6px; align-items: center; }
.pe-lock-line { gap: 8px; align-items: flex-start; }
.pe-lock-line .ic { flex: none; margin-top: 1px; }

/* An error under its field, and the errors of a group of fields. */
.field-errors { display: flex; flex-direction: column; gap: 2px; }
.field-error { font-size: 14px; color: var(--danger); }

/* A salary: the currency, then the number, in one bordered box. */
.money {
  display: flex;
  align-items: center;
  padding-left: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}
.money-unit { font-size: 15px; padding-right: 8px; }
.money:has([aria-invalid=true]) { border-color: var(--danger); }
.money:has(:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.input.money-input { border: 0; padding-left: 0; background: transparent; }
.input.money-input:focus-visible { outline: none; }

/* Skills and languages: each entry on the profile is a checked box drawn as a chip with an x. Clearing the box
   drops the entry when the form is saved, so an unchecked chip is struck through. */
.pe-group { display: flex; flex-direction: column; gap: 8px; }
.pe-languages { flex: 1 1 300px; }
.pe-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { position: relative; min-height: 32px; cursor: pointer; }
.chip-check {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip-toggle:has(.chip-check:not(:checked)) { opacity: .55; text-decoration: line-through; }
.chip-toggle:has(.chip-check:focus-visible), .chip-add:has(:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.chip-add {
  min-height: 32px;
  padding: 0 12px;
  border: 1px dashed var(--ink-3);
  background: var(--surface);
  color: var(--ink-2);
}
.input.chip-add-input, .chip-add .input {
  width: 190px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  font: 500 13px/1.3 var(--body);
}
.chip-add .input:focus-visible { outline: none; }

/* A date the CV leaves unclear: the question, and one radio for each date it gives. */
.pe-question {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: var(--amber-soft);
}
.pe-question-text { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.pe-question-text .ic { flex: none; margin-top: 2px; }
.pe-question-options { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-left: 30px; }
.pe-option { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; }
.pe-yes-no { display: flex; gap: 20px; }
.pe-split { display: flex; flex-wrap: wrap; gap: 20px 40px; }

/* The visa statuses: a card for each, the picked one outlined in teal. The two that run out hold a date field,
   shown while the card is picked. */
.pe-visa {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}
.pe-visa:has(input[type=radio]:checked) { border-color: var(--teal); background: var(--seal-bg); box-shadow: 0 0 0 1px var(--teal); }
.pe-visa:has(input[type=radio]:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.pe-visa input[type=radio]:focus-visible { outline: none; }
.pe-visa-pick { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.pe-visa-pick input { margin-top: 2px; }
.pe-visa-text { display: flex; flex-direction: column; gap: 2px; }
.pe-visa-name { font-weight: 500; font-size: 15px; }
.pe-visa-date { display: none; padding-left: 30px; }
.pe-visa:has(input[type=radio]:checked) .pe-visa-date { display: block; }

/* Who sees the profile: one box to tick, and the line about consent. */
.pe-find { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.pe-find input { margin-top: 3px; }
.pe-find-text { display: flex; flex-direction: column; gap: 2px; }
.pe-find-label { font-weight: 500; }
.pe-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* The aside: how far the profile has got, and what comes next. */
.pe-side-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.pe-side-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pe-side-title { font: 600 18px/1.3 var(--display); }
.pe-side-title-row { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.pe-side-text { font-size: 15px; }
.pe-count { font-size: 14px; }
.progress { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.progress-fill { height: 100%; background: var(--teal); }
.progress-0 .progress-fill { width: 0; }
.progress-1 .progress-fill { width: 25%; }
.progress-2 .progress-fill { width: 50%; }
.progress-3 .progress-fill { width: 75%; }
.progress-4 .progress-fill { width: 100%; }
.pe-todo-list { display: flex; flex-direction: column; gap: 4px; }
.pe-todo { display: flex; gap: 10px; align-items: center; min-height: 32px; font-size: 15px; }
.pe-todo-open { font-weight: 500; }
.pe-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.pe-tick-done { background: var(--ok); color: var(--on-dark); }
.pe-tick-open { border: 2px solid var(--ink-3); }

/* The profile page's links to this form. */
.acct-status-link, .acct-link { font-size: 14px; }

@media (max-width: 720px) {
  .pe-page { padding-top: 20px; padding-bottom: 40px; }
  .pe-title { font-size: 26px; }
  .pe-card { padding: 20px 16px; }
  .pe-actions .btn { flex: 1 1 100%; }
  .chip-add .input { width: 150px; }
}

/* ---------------------------------------------------------------- Sign in (iteration 2, Tasks 13 and 14) */

/* Ported from design/build.py: page_signin. Templates: web/signin/{base,page,email_sent,email_link}.html, and the
   code_wait partial with its `signin` wording. The focused header has only the logo and a way back to the jobs. */
.signin-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.signin-page { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 48px; padding-bottom: 48px; }
.signin-card { display: flex; flex-wrap: wrap; width: 100%; max-width: 980px; overflow: hidden; }
.signin-whatsapp { display: flex; flex-direction: column; gap: 20px; flex: 1 1 420px; min-width: 0; padding: 36px; }
.signin-head { display: flex; flex-direction: column; gap: 8px; }
.signin-title { font-size: 32px; line-height: 1.15; }
.signin-lead { font-size: 16px; max-width: 46ch; }
.signin-legal { font-size: 14px; text-align: center; }

/* The other ways, on the right: Google and LinkedIn, an "or" rule, and the email form. */
.signin-other {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 320px;
  min-width: 0;
  padding: 36px;
  background: var(--drop-bg);
  border-left: 1px solid var(--line-2);
}
.signin-other-title { font-size: 20px; }
.signin-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; }
.signin-or-rule { flex: 1; height: 1px; background: var(--line); }
.signin-email { display: flex; flex-direction: column; gap: 14px; }

/* The pages that say an email link was sent, or that it works (or no longer works). */
.signin-note { max-width: 560px; }
.signin-confirm { display: flex; }

/* The message to send, in the dashed box, and the line under the number with the link for people on a computer. */
.code-message { display: flex; flex-direction: column; gap: 6px; }
.code-message-box {
  align-self: flex-start;
  padding: 12px 16px;
  border: 1px dashed var(--ink-3);
  border-radius: 10px;
  background: var(--bg);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.code-wait-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }
.code-wait-status { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 720px) {
  .signin-page { padding-top: 20px; padding-bottom: 32px; }
  .signin-whatsapp, .signin-other { padding: 22px 20px; }
  .signin-other { border-left: 0; border-top: 1px solid var(--line-2); }
  .signin-title { font-size: 26px; }
  .code-message-box { font-size: 17px; }
}

/* ---------------------------------------------------------------- Apply with your profile
   Ported from design/build.py page_apply_web, as a page. Template: web/job/apply.html. */
.ap-page { display: flex; flex-direction: column; gap: 20px; padding-top: 32px; padding-bottom: 56px; max-width: 700px; }
.ap-head { display: flex; flex-direction: column; gap: 6px; }
.ap-title { font-size: 30px; line-height: 1.15; }
.ap-sub { font-size: 15px; }
.ap-card { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.ap-preview { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.ap-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ap-section-title { font: 600 15px/1.3 var(--display); }
.ap-must-haves { padding-top: 4px; }
.ap-lines { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.ap-file { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.ap-salary { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.ap-money { max-width: 220px; }
.ap-answers { display: flex; flex-direction: column; gap: 12px; }
.ap-fieldset { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ap-legend { margin-bottom: 4px; }
.ap-radios { display: flex; flex-direction: column; }
.ap-radios .pe-option { min-height: 40px; }
.ap-alert { background: var(--amber-soft); color: var(--amber-deep); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 18px; }

/* ---------------------------------------------------------------- Employer pages: /employers/ and /pricing/
   Templates: web/employers.html and web/pricing.html. Both heroes sit on the surface with a faint dot grid. */
.price-hero,
.emp-hero {
  background-color: var(--surface);
  background-image: radial-gradient(var(--line) 1px, transparent 1.4px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line);
}
.kicker { font: 600 12.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }

/* Pricing: the centred claim, the pilot band, then the plans; the popular plan stands a little higher. */
.price-hero { padding: 64px 0 56px; }
.price-hero-body { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.price-title { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; max-width: 16ch; }
.price-lead { font-size: 18px; line-height: 1.6; max-width: 60ch; }
.price-plans { padding: 40px 0 72px; }
.price-body { display: flex; flex-direction: column; gap: 28px; }
.price-pilot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 24px;
  background: var(--teal-soft);
  border-color: var(--teal-line);
}
.price-pilot-text { display: flex; flex-direction: column; gap: 4px; max-width: 70ch; }
.price-pilot-title { font: 600 18px/1.3 var(--display); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
  align-items: start;
  padding-top: 18px;
}
.plan-card {
  --plan-rule: var(--line-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 26px;
  border-radius: 16px;
  box-shadow: inset 0 4px 0 var(--plan-rule), 0 10px 28px rgba(15, 37, 41, .06);
}
.plan-grey { --plan-rule: var(--line-strong); }
.plan-teal { --plan-rule: var(--teal); }
.plan-violet { --plan-rule: var(--violet); }
.plan-green { --plan-rule: var(--ok); }
.plan-popular {
  transform: translateY(-12px);
  border-color: var(--teal-line);
  box-shadow: inset 0 4px 0 var(--plan-rule), 0 20px 44px rgba(11, 107, 102, .16);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--on-dark);
  font: 600 11.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name { font-size: 22px; line-height: 1.25; }
.plan-price { display: flex; flex-direction: column; gap: 2px; }
.plan-amount { font: 700 34px/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-per { font-size: 15px; }
.plan-yearly { margin-top: -8px; font-size: 13.5px; }
.plan-cta { margin-top: 4px; }
.plan-features { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.plan-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.plan-feature svg { margin-top: 1px; color: var(--teal); }
.price-note { font-size: 14px; text-align: center; }

/* For employers, as drawn in Claude Design. The AI agent is the product: the offer beside the agent's console, how
   the agent behaves, what it does in four steps, the pilot's rules, and the closing band. */
.emp-hero { padding: 20px 0 96px; overflow: hidden; }
.emp-hero-body { display: flex; flex-direction: column; gap: 40px; }
.emp-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.emp-hero-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.emp-kicker { display: flex; align-items: center; gap: 10px; }
.emp-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.emp-title { font-size: clamp(40px, 4.5vw, 66px); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.emp-lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; max-width: 46ch; text-wrap: pretty; }
.emp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.emp-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--ink-2); }
.emp-trust-item { display: flex; align-items: center; gap: 7px; }

/* The picture: the agent's console in a browser window (its work, the decision it needs, its ranking with reasons
   and its log), with the licence stamp on the window's corner. A picture, so nothing in it is pressable. */
.emp-picture { position: relative; flex: 1 1 600px; min-width: 0; padding-top: 18px; }
.emp-picture-stamp { position: absolute; z-index: 2; top: 0; right: 28px; }
.emp-console {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 32px 64px rgba(15, 37, 41, .14), 0 2px 6px rgba(15, 37, 41, .06);
}
.emp-console-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.emp-console-dots { display: flex; gap: 6px; }
.emp-console-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-dashed); }
.emp-console-title { font-size: 12.5px; }
.emp-console-body { display: flex; flex-wrap: wrap; }
.emp-console-main { flex: 999 1 330px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.emp-agent { display: flex; align-items: center; gap: 10px; }
.emp-agent-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emp-agent-name { font: 600 16px/1.25 var(--display); }
.emp-agent-job { font-size: 12.5px; }
.emp-agent-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}
.emp-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.emp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.emp-stat { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.emp-stat-on { border-color: var(--teal-line); background: var(--teal-soft); }
.emp-stat-count { font: 600 21px/1.1 var(--display); }
.emp-stat-on .emp-stat-count { color: var(--teal); }
.emp-stat-label { font-size: 12px; line-height: 1.3; }
.emp-dots { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 3px; }
.emp-dot { aspect-ratio: 1; border-radius: 2px; }
.emp-dot-meet { background: var(--teal); }
.emp-dot-check { background: var(--amber-mid); }
.emp-dot-miss { background: var(--line-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.emp-needs { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-deep); }
.emp-needs-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
.emp-needs-action { padding: 5px 10px; border-radius: 8px; background: var(--surface); color: var(--amber-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.emp-ranked { display: flex; flex-direction: column; gap: 8px; }
.emp-ranked-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.emp-rank { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; }
.emp-rank-first { border-color: var(--teal-line); }
.emp-rank-number { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--teal); }
.emp-rank-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.emp-rank-name { font-size: 14px; font-weight: 600; }
.emp-rank-why { font-size: 12px; line-height: 1.4; }
.emp-rank-chip { min-height: 0; padding: 3px 8px; font-size: 11.5px; font-weight: 600; }
.emp-log { flex: 1 1 210px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; background: var(--drop-bg); border-left: 1px solid var(--line-2); }
.emp-log-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.emp-log-title .emp-live-dot { box-shadow: 0 0 0 3px var(--ok-soft); }
.emp-log-list { display: flex; flex-direction: column; gap: 13px; }
.emp-log-entry { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; }
.emp-log-entry strong { font-weight: 600; }
.emp-log-time { font-size: 11.5px; line-height: 1.3; }

/* Three answers to the usual doubts, in cells divided by hairlines. */
.emp-facts { border-bottom: 1px solid var(--line); }
.emp-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
.emp-fact { display: flex; align-items: flex-start; gap: 14px; padding: 30px 28px; background: var(--bg); }
.emp-fact > svg { margin-top: 2px; }
.emp-fact-text { display: flex; flex-direction: column; gap: 4px; }
.emp-fact-title { font-size: 17px; line-height: 1.3; }
.emp-fact-body { font-size: 15px; line-height: 1.55; }

/* The four steps, each with a glimpse of where it happens: the dashboard, or the candidate's WhatsApp. */
.emp-how { padding: 96px 0; }
.emp-how-body { display: flex; flex-direction: column; gap: 40px; }
.emp-how-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.emp-h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.emp-sub { font-size: 17px; line-height: 1.6; max-width: 40ch; }
.emp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.emp-step { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; }
.emp-step-art { min-height: 176px; padding: 16px; display: flex; flex-direction: column; gap: 9px; background: var(--chat-bg); border-bottom: 1px solid var(--line); }
.emp-step-art-dash { background: var(--bg); border-bottom-color: var(--line-2); }
.emp-step-art .m { max-width: 92%; font-size: 13px; line-height: 1.4; }
.emp-art-tag { font-size: 10.5px; font-weight: 600; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--chat-meta); }
.emp-brief { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.emp-art-done { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.emp-reasons { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.35; }
.emp-reason { display: flex; align-items: center; gap: 6px; }
.emp-slots { display: flex; flex-direction: column; gap: 6px; }
.emp-slot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px dashed var(--line-dashed); border-radius: 10px; background: var(--surface); font-size: 13px; }
.emp-slot-booked { border-style: solid; border-color: var(--teal-line); }
.emp-slot-time { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.emp-slot-booked .emp-slot-time { color: var(--teal); }
.emp-slot-who { flex: 1; min-width: 0; }
.emp-slot-booked .emp-slot-who { font-weight: 600; }
.emp-slot .chip { min-height: 0; padding: 3px 8px; font-size: 11.5px; font-weight: 600; }
.emp-step-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.emp-step-number { font-size: 13px; font-weight: 600; color: var(--teal); }
.emp-step-title { font-size: 19px; line-height: 1.3; }
.emp-step-text { font-size: 15px; line-height: 1.55; }

/* The pilot's rules: a ledger of four numbered lines. */
.emp-rules { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.emp-rules-body { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.emp-rules-head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.emp-rules-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.emp-rule-list { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.emp-rule { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.emp-rule-number { grid-row: span 2; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--teal); }
.emp-rule-title { font-size: 19px; line-height: 1.35; }
.emp-rule-text { font-size: 15.5px; line-height: 1.55; }

/* The closing band, on ink with the Arabic name behind it. */
.emp-band { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.emp-band-body { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.emp-band-kicker { color: var(--band-accent); }
.emp-band-title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; color: var(--on-dark); max-width: 18ch; }
.emp-band-lead { font-size: 17px; line-height: 1.6; color: var(--band-text); max-width: 52ch; }
.emp-band-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--band-line); }
.btn-outline-light:hover { border-color: var(--on-dark); color: var(--on-dark); }

@media (max-width: 720px) {
  .price-hero { padding: 28px 0 24px; }
  .price-lead { font-size: 16px; }
  .price-plans { padding: 20px 0 40px; }
  .price-pilot { padding: 18px; }
  .price-pilot .btn { width: 100%; }
  .price-grid { gap: 24px; }
  .plan-popular { transform: none; }
  .plan-card { padding: 24px 20px 22px; }

  .emp-hero { padding: 12px 0 56px; }
  .emp-hero-body { gap: 24px; }
  .emp-hero-row { gap: 40px; }
  .emp-picture { padding-top: 36px; } /* the stamp sits above the window bar, off its title */
  .emp-actions .btn { width: 100%; }
  .emp-facts-grid { border-inline: 0; }
  .emp-fact { padding: 22px 0; }
  .emp-how { padding: 48px 0; }
  .emp-rules-body { padding-top: 48px; padding-bottom: 48px; }
  .emp-band-body { padding-top: 48px; padding-bottom: 48px; }
  .emp-band-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------- Request a demo: /employers/demo/ and its sent page
   As drawn in Claude Design (the canvas's Demo artboard). Templates: web/demo.html and web/demo_sent.html; the fields
   are the profile form's (web/partials/profile_field.html). */
.demo-page { display: flex; flex-direction: column; gap: 24px; padding-top: 20px; padding-bottom: 80px; }
.demo-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.demo-title { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -0.02em; }
.demo-lead { font-size: 18px; line-height: 1.6; }
.demo-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.demo-form { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px 32px; border-radius: 16px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px 20px; }
.demo-message { height: auto; min-height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.demo-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.demo-note { font-size: 13.5px; max-width: 44ch; }
.demo-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.demo-next { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px; }
.demo-next-title { font-size: 18px; line-height: 1.3; }
.demo-steps { display: flex; flex-direction: column; gap: 14px; }
.demo-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; }
.demo-step-number { font-size: 13px; font-weight: 600; line-height: 1.75; color: var(--teal); }
.demo-pilot { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--teal-soft); border-color: var(--teal-line); }
.demo-pilot-title { font: 600 16px/1.3 var(--display); }
.demo-pilot-text { font-size: 14.5px; line-height: 1.5; }
.demo-sent { align-self: flex-start; max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: 16px; }
.demo-sent-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ok-soft);
  color: var(--ok);
}

@media (max-width: 720px) {
  .demo-page { padding-top: 12px; padding-bottom: 40px; }
  .demo-lead { font-size: 16px; }
  .demo-form { padding: 20px 18px; }
  .demo-submit .btn { width: 100%; }
  .demo-sent { padding: 24px 20px; }
}

/* Invite friends, in the account (web/templates/web/account/invite.html). */
.invite-page { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.invite-link-row { display: flex; gap: 10px; }
.invite-link { flex: 1 1 auto; min-width: 0; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.invite-rewards { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; font-size: 15px; }
.invite-rules { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; font-size: 15px; }
