/* Gulf Job Check. Tokens first so a later style guide only has to swap this block. */
:root {
  /* Palette and type from the 18 Oct 2026 style guide (design/style-guide-2026-10-18.md) */
  --bg: #F7FAF8; --panel: #FFFFFF; --ink: #10211B; --muted: #52675F; --line: #D5E0DB;
  --accent: #0B6B53; --accent-ink: #FFFFFF; --soft: #E1F3EC;
  --sand: #EAF1EE;
  --bad: #9F1239; --bad-soft: #FFE4E6; --warn: #92400E; --warn-soft: #FEF3C7; --ok: #166534; --ok-soft: #DCFCE7;
  --f-display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --radius: 12px; --radius-ctl: 8px; --radius-big: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.06); --shadow-raised: 0 8px 24px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071411; --panel: #0D1F1A; --ink: #F0FDF9; --muted: #A6BDB5; --line: #29443A;
    --accent: #5EEAD4; --accent-ink: #052E2B; --soft: #123A32;
    --sand: #10261F;
    --bad: #FDA4AF; --bad-soft: #451A1A; --warn: #FCD34D; --warn-soft: #422006; --ok: #86EFAC; --ok-soft: #12351F;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f-body); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
h1 { font-family: var(--f-display); font-size: clamp(28px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 16px; font-weight: 700; text-wrap: balance; }
h2 { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; text-wrap: balance; }
h3 { font-family: var(--f-display); font-size: 17px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.ur, [lang="ur"] { font-family: var(--f-ur); line-height: 2.1; }
.sub { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }

.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-family: var(--f-display); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.mark { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--accent) 0 75%, var(--sand) 0); }
.top nav { display: flex; gap: 20px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .top nav a:not(:first-child) { display: none; } }

.hero { padding: 44px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.lede { font-size: 18px; color: var(--muted); max-width: 58ch; }
.lede.ur { font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 22px; }
.hero-art { margin: 0; border-radius: var(--radius-big); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; max-width: 100%; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art.noimg img { display: none; }
.facts-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 480px) { .facts-strip { grid-template-columns: 1fr 1fr; } }
.facts-strip div { min-width: 0; }
.facts-strip b { display: block; font-family: var(--f-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.facts-strip span { font-size: 13px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-ctl); min-height: 44px; padding: 11px 18px; font: 600 15px/1 var(--f-body); border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 7px 12px; font-size: 14px; min-height: 40px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

section { padding: 48px 0; scroll-margin-top: 64px; }
section.band { background: var(--panel); border-block: 1px solid var(--line); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.band .panel { background: var(--bg); }
.panel.quiet { align-self: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 28px; } }
.sec-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; margin-bottom: 14px; }

.form { display: grid; gap: 18px; margin-top: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field small, .form small { font-weight: 400; color: var(--muted); font-size: 13px; }
legend { padding: 0; margin-bottom: 6px; }
input[type=number], input[type=text], select { width: 100%; min-height: 44px; font: 400 16px/1.3 var(--f-body); padding: 10px 11px; border-radius: var(--radius-ctl); border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.grid4 label { display: grid; gap: 4px; font-weight: 500; font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-weight: 500; }
.seg .inline { display: inline-flex; gap: 8px; align-items: center; }
.seg .inline input { width: 72px; }
details summary { cursor: pointer; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.quote-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lines { display: grid; gap: 8px; }
.qline { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, .8fr) auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .qline { grid-template-columns: 1fr 1fr; } .qline .lbl { grid-column: 1 / -1; } }
.qline button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; font-size: 18px; }
.error { color: var(--bad); font-weight: 600; margin: 0; }
.actions { display: flex; gap: 12px; }

.result:empty { display: none; }
.result { margin-top: 26px; display: grid; gap: 18px; }
.verdict { border-radius: var(--radius-big); padding: 20px 22px; border: 1px solid var(--line); }
.verdict.overcharged { background: var(--bad-soft); border-color: transparent; }
.verdict.questions { background: var(--warn-soft); border-color: transparent; }
.verdict.clean { background: var(--ok-soft); border-color: transparent; }
.verdict h3 { font-size: 20px; margin-bottom: 4px; }
.nums { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 12px; }
.nums div { min-width: 0; }
.nums b { display: block; font-family: var(--f-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.nums span { font-size: 13px; color: var(--muted); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); padding: 7px 12px; font: 600 13px var(--f-body); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flags li { border-left: 4px solid var(--warn); background: var(--panel); border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0; padding: 12px 14px; box-shadow: var(--shadow); }
.flags li.high { border-color: var(--bad); }
.flags li .src { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.flags[dir="rtl"] li { border-left: 0; border-right: 4px solid var(--warn); border-radius: 8px 0 0 8px; font-family: var(--f-ur); line-height: 2.1; }
.flags[dir="rtl"] li.high { border-right-color: var(--bad); }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.n { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
td .ur { display: block; font-size: 13px; color: var(--muted); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.pill.verified { background: var(--ok-soft); color: var(--ok); }
.pill.archived { background: var(--soft); color: var(--accent); }
.pill.reported { background: var(--warn-soft); color: var(--warn); }
.pill.over { background: var(--bad-soft); color: var(--bad); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.check, .pill.high { background: var(--warn-soft); color: var(--warn); }
tfoot td { font-weight: 700; background: var(--bg); }

.ticks { padding-left: 20px; }
.ticks li { margin: 6px 0; }
.ticks .ur { display: block; font-size: 14px; color: var(--muted); }
.contact { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.contact li { display: grid; gap: 2px; }
.contact span { font-size: 13px; color: var(--muted); }
.copyable { user-select: all; font-variant-numeric: tabular-nums; }
.sources { padding-left: 20px; }
.sources li { margin: 6px 0; }
.limits { margin-top: 18px; color: var(--muted); max-width: 75ch; }
.next { padding-left: 20px; margin: 0; }
.next li { margin: 6px 0; }
.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }

/* Receipt card shown in the hero until a hero image exists */
.hero-art .receipt { display: none; }
.hero-art.noimg { background: transparent; aspect-ratio: auto; overflow: visible; }
.hero-art.noimg .receipt { display: grid; }
.receipt { gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); font-variant-numeric: tabular-nums; max-width: 460px; justify-self: center; width: 100% }
.r-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.r-head span:last-child { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.r-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.r-line span { color: var(--muted); min-width: 0; }
.r-line b { white-space: nowrap; }
.r-zero b { color: var(--accent); }
.r-sep { border-top: 2px solid var(--ink); margin-top: 6px; }
.r-foot { font-size: 12px; color: var(--muted); padding-top: 10px; }

/* Severity labels on flags */
.flags .sev { display: inline-block; margin-right: 8px; font: 700 11px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); vertical-align: 1px; }
.flags li.high .sev { background: var(--bad-soft); color: var(--bad); }
.flags li.info .sev { background: var(--soft); color: var(--accent); }
.flags li.info { border-left-color: var(--accent); }
.flags[dir="rtl"] .sev { margin: 0 0 0 8px; font-family: var(--f-body); }

/* Verdict icon */
.verdict h3 { display: flex; gap: 10px; align-items: center; }
.verdict h3::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); }
.verdict.overcharged h3::before { background: var(--bad); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.verdict.questions h3::before { background: var(--warn); border-radius: 4px; transform: rotate(45deg) scale(.8); }

/* Units attached to money inputs */
.money { position: relative; display: block; min-width: 0; }
.money > span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); pointer-events: none; }
.money > input { padding-left: 34px; }

input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.print-only { display: none; }
@media print {
  .print-only { display: block; margin-bottom: 12px; color: #000; }
  .print-only h2 { font-size: 20px; margin: 0 0 4px; }
  .pill { border: 1px solid #000; background: none !important; color: #000 !important; }
  a { color: #000; }
}

@media print {
  .top, .hero, #check, #employer, #complain, #sources, .foot, #printBtn { display: none !important; }
  body { background: #fff; color: #000; }
  #fees { padding: 0; }
  .tbl { border: 0; }
  th { background: #f2f2f2; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
