﻿/* ==============================================
   SaudiPaid — Design System v3 (RTL)
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;600&display=swap');

:root {
  --primary:       #163D30;
  --primary-h:     #1E5442;
  --primary-l:     #2C7A5C;
  --primary-pale:  #EAF3EE;
  --primary-xs:    #F3FAF6;

  --accent:        #8A6A12;
  --accent-pale:   #F7F0D8;

  --success:       #1A6642;
  --warn:          #8A4A00;

  --ink-1:  #0F1921;
  --ink-2:  #3A4754;
  --ink-3:  #6B7A88;
  --ink-4:  #A8B4BC;

  --line:    #D4DCE4;
  --line-lt: #EBF0F4;

  --surface: #FFFFFF;
  --bg:      #F5F6F4;

  --f:    'Readex Pro', sans-serif;
  --mono: 'Roboto Mono', monospace;

  --nav-h: 58px;

  --r1: 4px;
  --r2: 8px;
  --r3: 14px;
  --pill: 999px;

  --sh1: 0 1px 4px rgba(0,0,0,.06);
  --sh2: 0 4px 16px rgba(0,0,0,.08);
  --sh3: 0 8px 32px rgba(0,0,0,.11);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-1);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary-l); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.skip-link {
  position: absolute; top: -100%; right: 16px;
  background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: var(--r2);
  font-size: .88rem; z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f); font-weight: 700;
  line-height: 1.25; color: var(--ink-1);
}
h1 { font-size: clamp(1.7rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); }
h4 { font-size: .95rem; }
p  { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
.text-muted     { color: var(--ink-3); }
.text-secondary { color: var(--ink-2); }
.text-success   { color: var(--success); }
.text-center    { text-align: center; }

/* Layout */
.container {
  width: 100%; max-width: 1160px;
  margin-inline: auto; padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.section    { padding-block: 48px; }
.section--lg { padding-block: 72px; }
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 20px; }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.nav.scrolled { box-shadow: var(--sh2); }
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: var(--nav-h); gap: 16px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .95rem;
  color: var(--primary); text-decoration: none;
  white-space: nowrap; letter-spacing: -.01em;
}
.nav__logo-icon { display: none; }
.nav__links { display: none; gap: 2px; align-items: center; }
.nav__link {
  padding: 6px 12px; border-radius: var(--r1);
  color: var(--ink-2); font-size: .85rem; font-weight: 500;
  transition: background .12s, color .12s;
}
.nav__link:hover { background: var(--primary-xs); color: var(--primary); text-decoration: none; }
.nav__link--active { color: var(--primary); font-weight: 600; }
.nav__link--cta {
  background: var(--primary); color: #fff !important;
  border-radius: var(--r1); padding: 6px 16px; font-weight: 600;
}
.nav__link--cta:hover { background: var(--primary-h); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__lang {
  font-size: .8rem; font-weight: 600; color: var(--ink-3);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r1);
  transition: border-color .12s;
}
.nav__lang:hover { border-color: var(--primary-l); color: var(--primary-l); text-decoration: none; }
.nav__hamburger {
  width: 36px; height: 36px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; border-radius: var(--r1);
}
.nav__hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ink-2); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav__drawer {
  display: none; flex-direction: column;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 16px; gap: 2px;
}
.nav__drawer.open { display: flex; }
.nav__drawer .nav__link { border-right: 2px solid transparent; }
.nav__drawer .nav__link--active,
.nav__drawer .nav__link:hover { border-right-color: var(--primary); background: var(--primary-xs); }
@media (min-width: 1024px) {
  .nav__links     { display: flex; }
  .nav__hamburger { display: none; }
  .nav__drawer    { display: none !important; }
}

/* Hero */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 64px 48px;
}
.hero__content { max-width: 660px; margin-inline: auto; text-align: center; }
.hero__badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  color: var(--accent); background: var(--accent-pale);
  border: 1px solid rgba(138,106,18,.2); border-radius: var(--r1);
  padding: 3px 10px; margin-bottom: 16px; letter-spacing: .04em;
}
.hero__title {
  font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 700;
  color: var(--ink-1); margin-bottom: 12px;
  letter-spacing: -.025em; line-height: 1.2;
}
.hero__subtitle { font-size: 1rem; color: var(--ink-2); margin-bottom: 32px; line-height: 1.75; }

.search-wrapper { position: relative; max-width: 500px; margin-inline: auto; }
.search-bar {
  display: flex; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r2);
  overflow: hidden; box-shadow: var(--sh2);
  transition: border-color .18s, box-shadow .18s;
}
.search-bar:focus-within {
  border-color: var(--primary-l);
  box-shadow: 0 0 0 3px rgba(44,122,92,.1), var(--sh2);
}
.search-bar__input {
  flex: 1; border: none; outline: none;
  padding: 12px 16px; font-family: var(--f);
  font-size: .92rem; direction: rtl;
  background: transparent; color: var(--ink-1);
}
.search-bar__input::placeholder { color: var(--ink-4); }
.search-bar__btn {
  background: var(--primary); color: #fff;
  padding: 12px 20px; font-family: var(--f);
  font-size: .88rem; font-weight: 600;
  transition: background .12s; white-space: nowrap;
}
.search-bar__btn:hover { background: var(--primary-h); }
.autocomplete-list {
  position: absolute; top: calc(100% + 4px); right: 0; left: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r2); box-shadow: var(--sh3);
  z-index: 500; overflow: hidden; display: none;
}
.autocomplete-list.show { display: block; }
.autocomplete-item {
  padding: 10px 16px; cursor: pointer; font-size: .88rem;
  transition: background .1s; border-bottom: 1px solid var(--line-lt);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--primary-xs); color: var(--primary); }

.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 8px 16px;
  margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line);
}
.trust-bar__label { font-size: .7rem; color: var(--ink-4); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.trust-bar__source {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  padding: 3px 10px; border: 1px solid var(--line);
  border-radius: var(--r1); background: var(--bg);
}
.trust-bar__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

/* Section Headers */
.section-header { margin-bottom: 32px; }
.section-header__tag {
  display: inline-block; font-size: .7rem; font-weight: 600;
  color: var(--primary-l); letter-spacing: .09em;
  text-transform: uppercase; margin-bottom: 6px;
}
.section-header h2 { margin-bottom: 6px; }
.section-header p { color: var(--ink-2); font-size: .92rem; max-width: 500px; margin-bottom: 0; }

/* Salary Card */
.salary-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); overflow: hidden;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.salary-card:hover {
  box-shadow: var(--sh2); transform: translateY(-2px); border-color: rgba(44,122,92,.3);
}
.salary-card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.salary-card__header {
  padding: 18px 18px 0; display: flex;
  align-items: flex-start; justify-content: space-between; gap: 8px;
}
.salary-card__title { font-size: .95rem; font-weight: 700; color: var(--ink-1); margin-bottom: 2px; }
.salary-card__industry {
  font-size: .68rem; color: var(--primary-l); font-weight: 600;
  background: var(--primary-pale); padding: 2px 8px;
  border-radius: var(--r1); white-space: nowrap;
}
.salary-card__updated { font-size: .7rem; color: var(--ink-4); }
.salary-card__range-bar { padding: 12px 18px; }
.range-bar {
  position: relative; height: 3px;
  background: var(--line); border-radius: var(--pill); overflow: hidden;
}
.range-bar__fill {
  position: absolute; top: 0; bottom: 0;
  background: var(--primary-l); border-radius: var(--pill);
}
.range-bar__labels {
  display: flex; justify-content: space-between;
  margin-top: 5px; font-size: .68rem; color: var(--ink-3); font-family: var(--mono);
}
.salary-card__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); margin: 0 18px;
  border-radius: var(--r2); overflow: hidden;
}
.metric { background: var(--bg); padding: 10px 8px; text-align: center; }
.metric--featured { background: var(--primary-pale); }
.metric__label {
  display: block; font-size: .62rem; color: var(--ink-3);
  font-weight: 600; margin-bottom: 2px; letter-spacing: .02em;
}
.metric__value {
  display: block; font-size: .85rem; font-weight: 700;
  color: var(--ink-1); font-family: var(--mono);
}
.metric--featured .metric__value { color: var(--primary); font-size: .9rem; }
.salary-card__footer {
  padding: 12px 18px; margin-top: auto;
  border-top: 1px solid var(--line-lt);
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.salary-card__footer small { color: var(--ink-4); font-size: .7rem; }
.salary-card__footer a { font-size: .75rem; color: var(--primary-l); font-weight: 600; }

/* Stat Strip */
.stat-strip {
  background: var(--primary); color: #fff; padding-block: 18px;
}
.stat-strip .container {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-around;
}
.stat-chip { text-align: center; }
.stat-chip__num {
  display: block; font-size: 1.6rem; font-weight: 700;
  font-family: var(--mono); line-height: 1; margin-bottom: 4px;
}
.stat-chip__label { font-size: .75rem; opacity: .7; }

/* Industry Cards */
.industry-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 18px;
  display: flex; flex-direction: column; gap: 5px;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  text-decoration: none; color: inherit;
}
.industry-card:hover {
  box-shadow: var(--sh2); transform: translateY(-2px);
  border-color: rgba(44,122,92,.35); text-decoration: none;
}
.industry-card__icon { display: none; }
.industry-card__name { font-weight: 700; font-size: .92rem; color: var(--ink-1); }
.industry-card__range { font-size: .8rem; color: var(--primary-l); font-family: var(--mono); font-weight: 500; }
.industry-card__count { font-size: .7rem; color: var(--ink-3); }

/* Calculator CTA */
.calc-banner {
  background: var(--primary); color: #fff;
  border-radius: var(--r3); padding: 48px 32px;
  text-align: center; position: relative; overflow: hidden;
}
.calc-banner::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 280px; height: 100%; pointer-events: none;
  background: rgba(255,255,255,.03);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.calc-banner h2 { color: #fff; margin-bottom: 10px; }
.calc-banner p  { opacity: .75; max-width: 460px; margin-inline: auto; margin-bottom: 24px; }
.btn-white {
  display: inline-block; background: #fff; color: var(--primary) !important;
  font-weight: 700; padding: 11px 28px; border-radius: var(--r2);
  transition: opacity .12s; font-size: .92rem; text-decoration: none;
}
.btn-white:hover { opacity: .92; text-decoration: none; }

/* Blog Cards */
.blog-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s;
  text-decoration: none; color: inherit;
}
.blog-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); text-decoration: none; }
.blog-card__img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-pale), var(--line));
  background-size: cover; background-position: center;
  overflow: hidden; position: relative;
}
.blog-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-card__tag {
  font-size: .68rem; font-weight: 600; color: var(--primary-l);
  background: var(--primary-pale); padding: 2px 8px;
  border-radius: var(--r1); align-self: flex-start; letter-spacing: .03em;
}
.blog-card__title { font-size: .92rem; font-weight: 700; line-height: 1.45; }
.blog-card__excerpt { font-size: .83rem; color: var(--ink-2); flex: 1; }
.blog-card__meta { font-size: .7rem; color: var(--ink-3); margin-top: auto; }

/* Data Sources */
.data-sources {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 24px; margin-block: 24px;
}
.data-sources h3 { margin-bottom: 18px; color: var(--primary); font-size: .95rem; }
.source-list { display: flex; flex-direction: column; gap: 14px; }
.source-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-lt);
}
.source-list li:last-child { border-bottom: none; padding-bottom: 0; }
.source-list strong { color: var(--ink-1); font-size: .88rem; }
.source-list span   { color: var(--ink-2); font-size: .8rem; }
.source-list a      { font-size: .78rem; font-weight: 600; }
.data-disclaimer {
  margin-top: 14px; padding: 12px;
  background: var(--bg); border: 1px solid var(--line-lt);
  border-radius: var(--r2); font-size: .78rem;
  color: var(--ink-3); line-height: 1.6; margin-bottom: 0;
}

/* Salary Comparison Table */
.table-wrapper {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--r3); -webkit-overflow-scrolling: touch;
}
.salary-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); font-size: .86rem; min-width: 540px;
}
.salary-table thead {
  background: var(--primary); color: #fff;
  position: sticky; top: var(--nav-h); z-index: 10;
}
.salary-table th {
  padding: 11px 14px; text-align: right;
  font-weight: 600; font-size: .8rem; white-space: nowrap;
}
.salary-table th.sortable { cursor: pointer; user-select: none; }
.salary-table th.sortable:hover { background: var(--primary-h); }
.salary-table th .sort-icon { display: inline-block; margin-right: 4px; opacity: .5; font-size: .7rem; }
.salary-table th.sort-asc  .sort-icon::after { content: '\2191'; }
.salary-table th.sort-desc .sort-icon::after { content: '\2193'; }
.salary-table th:not(.sort-asc):not(.sort-desc) .sort-icon::after { content: ''; }
.salary-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--line-lt); text-align: right;
}
.salary-table tbody tr:last-child td { border-bottom: none; }
.salary-table tbody tr:hover td { background: var(--primary-xs); }
.salary-table td:first-child { font-weight: 600; }
.salary-table td a { color: var(--primary-l); font-weight: 600; }
.salary-table .median { color: var(--primary); font-weight: 700; font-family: var(--mono); }

/* Salary Detail Page */
.salary-hero {
  background: var(--primary); color: #fff;
  padding-block: 44px 28px;
}
.salary-hero__breadcrumb {
  font-size: .76rem; opacity: .6; margin-bottom: 12px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.salary-hero__breadcrumb a { color: rgba(255,255,255,.8); }
.salary-hero__breadcrumb span { opacity: .4; }
.salary-hero h1 { color: #fff; margin-bottom: 8px; }
.salary-hero__meta { opacity: .7; font-size: .84rem; display: flex; gap: 16px; flex-wrap: wrap; }

.salary-overview {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 24px;
  box-shadow: var(--sh2); margin-top: -20px; position: relative;
}
.overview-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 24px;
}
.overview-metric {
  text-align: center; padding: 14px 10px;
  border-radius: var(--r2); border: 1px solid var(--line-lt); background: var(--bg);
}
.overview-metric--featured { background: var(--primary-pale); border-color: rgba(44,122,92,.2); }
.overview-metric__label {
  font-size: .68rem; color: var(--ink-3); font-weight: 600;
  display: block; margin-bottom: 4px; letter-spacing: .02em;
}
.overview-metric__value {
  font-size: 1.25rem; font-weight: 700; font-family: var(--mono); color: var(--ink-1);
}
.overview-metric--featured .overview-metric__value { color: var(--primary); font-size: 1.45rem; }
.overview-metric__sub { font-size: .68rem; color: var(--ink-3); display: block; margin-top: 2px; }

.big-range { margin-bottom: 24px; }
.big-range__bar {
  height: 6px; background: var(--line);
  border-radius: var(--pill); overflow: hidden; margin-bottom: 8px;
}
.big-range__fill {
  height: 100%; border-radius: var(--pill);
  background: linear-gradient(90deg, var(--primary-pale), var(--primary-l), var(--primary));
}
.big-range__ticks {
  display: flex; justify-content: space-between;
  font-size: .74rem; color: var(--ink-2); font-family: var(--mono);
}

.exp-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.exp-table th, .exp-table td {
  padding: 10px 14px; text-align: right;
  border-bottom: 1px solid var(--line-lt); font-size: .86rem;
}
.exp-table th {
  background: var(--bg); font-weight: 600;
  color: var(--ink-2); font-size: .76rem; border-bottom: 1px solid var(--line);
}
.exp-table tbody tr:last-child td { border-bottom: none; }
.exp-table td:first-child { font-weight: 600; }
.exp-table .highlight { color: var(--primary); font-weight: 700; font-family: var(--mono); }

.city-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.city-bar__row { display: flex; align-items: center; gap: 12px; }
.city-bar__name { min-width: 68px; font-size: .84rem; font-weight: 600; text-align: right; }
.city-bar__track {
  flex: 1; height: 20px; background: var(--line-lt);
  border-radius: var(--pill); overflow: hidden; position: relative;
}
.city-bar__fill {
  height: 100%; background: var(--primary-l); border-radius: var(--pill);
  display: flex; align-items: center; justify-content: flex-end;
  padding-inline: 8px; font-size: .68rem; font-weight: 700;
  color: #fff; min-width: 56px; font-family: var(--mono);
}

.faq-list {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 12px; border: 1px solid var(--line);
  border-radius: var(--r3); overflow: hidden;
}
.faq-item { background: var(--surface); }
.faq-item + .faq-item { border-top: 1px solid var(--line-lt); }
.faq-item summary {
  padding: 14px 18px; cursor: pointer; font-weight: 600;
  font-size: .88rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .12s; color: var(--ink-1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1rem; color: var(--ink-3); font-weight: 400; flex-shrink: 0; margin-right: 8px; }
.faq-item[open] summary::after { content: '-'; }
.faq-item summary:hover { background: var(--primary-xs); }
.faq-item__body {
  padding: 12px 18px 16px; color: var(--ink-2);
  font-size: .86rem; border-top: 1px solid var(--line-lt);
}

/* Calculator */
.calc-layout { display: grid; gap: 24px; }
@media (min-width: 768px) { .calc-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 24px;
}
.calc-form__title { margin-bottom: 18px; color: var(--primary); }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-weight: 600; font-size: .82rem;
  margin-bottom: 6px; color: var(--ink-2);
}
.form-group select { width: 100%; }
.form-group select {
  padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r2); font-family: var(--f); font-size: .88rem;
  direction: rtl; background: var(--surface); color: var(--ink-1);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7A88'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px;
  transition: border-color .15s;
}
.form-group select:focus { outline: none; border-color: var(--primary-l); }
.range-group { display: flex; flex-direction: column; gap: 4px; }
.range-group input[type="range"] { width: 100%; accent-color: var(--primary); height: 4px; }
.range-value { font-family: var(--mono); font-weight: 600; color: var(--primary); font-size: .86rem; }
.calc-btn {
  width: 100%; background: var(--primary); color: #fff;
  font-family: var(--f); font-size: .95rem; font-weight: 700;
  padding: 12px; border-radius: var(--r2); transition: background .12s; margin-top: 4px;
}
.calc-btn:hover { background: var(--primary-h); }
.calc-result {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 24px; text-align: center;
}
.calc-result--hidden { display: none; }
.calc-result__label { font-size: .86rem; color: var(--ink-2); margin-bottom: 8px; }
.calc-result__range {
  font-size: 1.7rem; font-weight: 700; font-family: var(--mono);
  color: var(--primary); margin-bottom: 18px; line-height: 1.2;
}
.calc-result__compare {
  display: inline-block; padding: 6px 16px; border-radius: var(--r2);
  font-weight: 600; font-size: .84rem; margin-bottom: 18px;
}
.calc-result__compare--above { background: #d2ede0; color: var(--success); }
.calc-result__compare--below { background: var(--accent-pale); color: var(--accent); }
.calc-result__share {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-pale); color: var(--primary);
  border-radius: var(--r2); padding: 8px 16px;
  font-weight: 600; font-size: .84rem; transition: background .12s;
}
.calc-result__share:hover { background: #d2ede0; text-decoration: none; }

/* Blog Article */
.blog-post-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 24px; font-size: .82rem; color: var(--ink-3);
}
.blog-post-meta .tag {
  background: var(--primary-pale); color: var(--primary);
  border-radius: var(--pill); padding: 4px 12px;
  font-weight: 700; font-size: .78rem;
}
.blog-post-cover {
  height: 180px; border-radius: var(--r3); margin-bottom: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
}
.callout-box {
  background: var(--primary-xs); border-right: 3px solid var(--primary-l);
  border-radius: var(--r2); padding: 16px 20px; margin-block: 20px;
}
.callout-box p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.callout-box strong { color: var(--primary); }
.data-callout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin-block: 24px;
}
.data-callout__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r2); padding: 14px 16px; text-align: center;
}
.data-callout__num  { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--primary); display: block; }
.data-callout__label { font-size: .76rem; color: var(--ink-3); margin-top: 4px; display: block; }
.article-body p { line-height: 1.8; margin-bottom: 16px; }
.blog-cover { width: 100%; border-radius: 12px; margin-bottom: 28px; display: block; aspect-ratio: 800/420; object-fit: cover; }
.article-body ul, .article-body ol { padding-right: 20px; margin-bottom: 16px; }
.article-body li { line-height: 1.8; margin-bottom: 8px; }
.blog-post-end-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px; padding-top: 28px;
  border-top: 1px solid var(--line); margin-top: 40px; font-size: .85rem;
}
.blog-post-end-nav a { color: var(--primary); font-weight: 600; }

/* Page Hero */
.page-hero {
  background: var(--surface); padding-block: 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { color: var(--ink-1); margin-bottom: 8px; }
.page-hero__meta { color: var(--ink-2); font-size: .86rem; display: flex; gap: 20px; flex-wrap: wrap; }
.article-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 1fr 260px; align-items: start; } }
.article-body h2 { margin-top: 32px; margin-bottom: 12px; border-bottom: 1px solid var(--line-lt); padding-bottom: 8px; }
.article-body h3 { margin-top: 24px; margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin-block: 18px; font-size: .86rem; }
.article-body th, .article-body td { padding: 10px 14px; border: 1px solid var(--line); text-align: right; }
.article-body th { background: var(--bg); font-weight: 600; }
.article-body tbody tr:nth-child(even) td { background: #fafafa; }
.toc-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 18px;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.toc-box h4 { color: var(--primary); margin-bottom: 12px; font-size: .85rem; font-weight: 700; }
.toc-box ol { display: flex; flex-direction: column; gap: 8px; }
.toc-box li a { font-size: .8rem; color: var(--primary-l); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 24px; border-radius: var(--r2);
  font-weight: 600; font-size: .88rem; text-align: center;
  transition: background .12s; text-decoration: none;
  cursor: pointer; font-family: var(--f);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-xs); text-decoration: none; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; font-size: .78rem; color: var(--ink-3); padding-block: 14px;
}
.breadcrumb a { color: var(--primary-l); }
.breadcrumb__sep { opacity: .4; }

/* Nationality Cards */
.nat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px)  { .nat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .nat-grid { grid-template-columns: repeat(5, 1fr); } }
.nat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 18px 14px; text-align: center;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.nat-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); text-decoration: none; border-color: rgba(44,122,92,.3); }
.nat-card__flag { font-size: 1.6rem; margin-bottom: 8px; }
.nat-card__name { font-weight: 700; font-size: .86rem; color: var(--ink-1); }
.nat-card__range { font-size: .72rem; color: var(--ink-2); margin-top: 2px; font-family: var(--mono); }

/* Footer */
.footer {
  background: var(--ink-1); color: rgba(255,255,255,.7);
  padding-block: 56px 24px; margin-top: 72px;
}
.footer__grid { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 768px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand { max-width: 260px; }
.footer__logo-link {
  display: flex; align-items: center; gap: 8px; color: #fff;
  font-weight: 700; font-size: .95rem; text-decoration: none; margin-bottom: 12px;
}
.footer__tagline { font-size: .8rem; opacity: .55; line-height: 1.7; }
.footer__disclaimer { font-size: .7rem; opacity: .35; margin-top: 12px; line-height: 1.7; }
.footer__col h4 { color: #fff; font-size: .82rem; font-weight: 700; margin-bottom: 14px; letter-spacing: .02em; }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: .8rem; color: #7EC8A0; transition: color .12s; }
.footer__col a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: .72rem; opacity: .35;
}
.footer__bottom a { color: inherit; }

/* AdSense */
.ad-unit { display: none !important; }
.ad-unit--legacy {
  background: var(--bg); border: 1px dashed var(--line);
  border-radius: var(--r2); display: flex; align-items: center;
  justify-content: center; color: var(--ink-4); font-size: .7rem;
  min-height: 90px; margin-block: 20px;
}
.ad-unit--sticky-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  min-height: 50px; border-radius: 0; border-bottom: none;
  background: var(--surface); border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .ad-unit--sticky-footer { display: none; } }
.ad-unit--sidebar { min-height: 600px; position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 1023px) { .ad-unit--sidebar { display: none; } }

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 40px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 40px; }

/* Salaries Index */
.letter-anchor {
  font-size: 1.05rem; font-weight: 700; color: var(--primary);
  padding: 12px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.job-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 32px; }
@media (min-width: 768px)  { .job-link-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .job-link-grid { grid-template-columns: repeat(4, 1fr); } }
.job-link {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r2); padding: 9px 13px;
  font-size: .83rem; color: var(--ink-1); font-weight: 500;
  transition: background .12s, border-color .12s;
  text-decoration: none; display: flex; justify-content: space-between; align-items: center;
}
.job-link:hover { background: var(--primary-xs); border-color: rgba(44,122,92,.3); text-decoration: none; color: var(--primary); }
.job-link__range { font-size: .68rem; color: var(--ink-3); font-family: var(--mono); }

/* Sector Badge */
.sector-badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: var(--r1); padding: 2px 8px;
  font-size: .68rem; font-weight: 600; border: 1px solid transparent; margin-bottom: 6px;
}
.sector-badge--military   { background: #e7edf7; color: #1c3870; border-color: rgba(28,56,112,.12); }
.sector-badge--healthcare { background: #e4f5ee; color: #0d6840; border-color: rgba(13,104,64,.12); }
.sector-badge--aviation   { background: #fef2e0; color: #895400; border-color: rgba(137,84,0,.12); }
.sector-badge--government { background: #eeebf6; color: #5a2e8a; border-color: rgba(90,46,138,.12); }
.sector-badge--private    { background: #fefae4; color: #756000; border-color: rgba(117,96,0,.12); }
.sector-badge--service    { background: #e4f5ee; color: #0a5a34; border-color: rgba(10,90,52,.12); }

/* Allowances Box */
.allowances-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); overflow: hidden; margin-block: 24px;
}
.allowances-box__header {
  background: var(--primary); color: #fff;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.allowances-box__title { font-size: .88rem; font-weight: 700; margin: 0; }
.allowances-box__subtitle { font-size: .74rem; opacity: .65; }
.allowances-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 10px; padding: 9px 18px;
  border-bottom: 1px solid var(--line-lt); transition: background .1s; font-size: .84rem;
}
.allowances-row:last-child { border-bottom: none; }
.allowances-row:hover { background: var(--bg); }
.allowances-row--base  { background: var(--primary-xs); }
.allowances-row--total { background: #e6f2ec; font-weight: 700; }
.allowances-row__label {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 500; color: var(--ink-1);
}
.allowances-row__icon {
  width: 26px; height: 26px; border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  font-size: .58rem; font-weight: 800; flex-shrink: 0;
}
.allowances-row__bar-wrap {
  width: 90px; background: var(--line-lt);
  border-radius: var(--pill); height: 3px; overflow: hidden;
}
@media (max-width: 600px) { .allowances-row__bar-wrap { display: none; } }
.allowances-row__bar { height: 100%; border-radius: var(--pill); background: var(--primary-l); }
.allowances-row--base  .allowances-row__bar { background: var(--primary); }
.allowances-row--total .allowances-row__bar { background: var(--success); }
.allowances-row__amount {
  font-family: var(--mono); font-weight: 700; font-size: .84rem;
  color: var(--primary); white-space: nowrap; text-align: left; min-width: 95px;
}
.allowances-row--total .allowances-row__amount { color: var(--success); font-size: .9rem; }
.allowances-box__note {
  padding: 8px 18px; font-size: .72rem;
  color: var(--ink-3); background: var(--bg); border-top: 1px solid var(--line-lt);
}

/* Sector Tabs */
.sector-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.sector-tab {
  padding: 6px 14px; border-radius: var(--r2); border: 1.5px solid var(--line);
  background: var(--surface); font-family: var(--f); font-size: .82rem;
  font-weight: 500; cursor: pointer; transition: all .12s; color: var(--ink-2);
}
.sector-tab:hover, .sector-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sector-section { display: block; }
.sector-section.hidden { display: none; }

/* Sector Group Header */
.sector-heading {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--primary-xs);
  border-radius: var(--r2); margin-bottom: 12px;
  border-right: 3px solid var(--primary);
}
.sector-heading__icon { display: none; }
.sector-heading__text h3 { color: var(--primary); font-size: .9rem; margin: 0; }
.sector-heading__text small { color: var(--ink-2); font-size: .76rem; }

/* Compensation Summary */
.comp-summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; text-align: center; margin-bottom: 24px;
  border-top: 2px solid var(--primary);
}
@media (max-width: 600px) { .comp-summary { grid-template-columns: 1fr; } }
.comp-summary__label { font-size: .72rem; color: var(--ink-2); margin-bottom: 4px; }
.comp-summary__value { font-size: 1.15rem; font-weight: 700; font-family: var(--mono); color: var(--primary); }
.comp-summary__item--total .comp-summary__value { color: var(--success); }
.comp-summary__sub { font-size: .68rem; color: var(--ink-3); }

/* Salary Rank Tool */
.rank-tool__header { margin-bottom: 28px; }
.rank-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); padding: 24px; }
.rank-gauge { margin-bottom: 24px; }
.rank-gauge__track { height: 7px; background: var(--line); border-radius: var(--pill); overflow: hidden; margin-bottom: 8px; }
.rank-gauge__fill { height: 100%; border-radius: var(--pill); transition: width .5s ease; }
.rank-gauge__fill--low       { background: #c0392b; }
.rank-gauge__fill--medium    { background: #d68910; }
.rank-gauge__fill--good      { background: #239b56; }
.rank-gauge__fill--excellent { background: var(--primary); }
.rank-gauge__markers { position: relative; height: 18px; font-size: .67rem; color: var(--ink-3); font-family: var(--mono); }
.rank-gauge__markers span { position: absolute; transform: translateX(50%); white-space: nowrap; }
.rank-gauge__labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-3); margin-top: 2px; }
.rank-badge {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: var(--r3); margin-bottom: 18px;
}
.rank-badge--low       { background: #fce8e6; }
.rank-badge--medium    { background: #fdefd6; }
.rank-badge--good      { background: #d5ede2; }
.rank-badge--excellent { background: var(--primary-pale); }
.rank-badge__pct { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--primary); }
.rank-badge__pct small { font-size: .88rem; }
.rank-badge__label { font-size: .95rem; font-weight: 700; }
.rank-detail { font-size: .86rem; color: var(--ink-2); margin-bottom: 24px; }
.rank-range { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid var(--line-lt); padding-top: 18px; }
@media (max-width: 600px) { .rank-range { grid-template-columns: repeat(2, 1fr); } }
.rank-range__item { text-align: center; padding: 12px 6px; background: var(--bg); border-radius: var(--r2); border: 1px solid var(--line-lt); }
.rank-range__item--yours { background: var(--primary-pale); border: 1.5px solid var(--primary-l); }
.rank-range__item span { display: block; font-size: .66rem; color: var(--ink-3); margin-bottom: 4px; }
.rank-range__item strong { font-family: var(--mono); font-size: .84rem; color: var(--primary); }

/* Comparator */
.compare-form-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 700px) { .compare-form-grid { grid-template-columns: 1fr; } .compare-form-vs { text-align: center; } }
.compare-form-label { font-size: .76rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; padding: 3px 10px; border-radius: var(--r1); display: inline-block; }
.compare-form-label--a { background: var(--primary-pale); color: var(--primary); }
.compare-form-label--b { background: #fef0d6; color: #7a4800; }
.compare-form-vs { font-size: 1rem; font-weight: 700; color: var(--ink-3); text-align: center; min-width: 36px; }
.compare-result-inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.compare-header {
  display: grid; grid-template-columns: 1fr auto 1fr;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 18px; gap: 14px; align-items: center;
}
@media (max-width: 600px) { .compare-header { grid-template-columns: 1fr; gap: 12px; } .compare-header__vs { display: none; } }
.compare-header__col { display: flex; align-items: center; gap: 10px; }
.compare-header__col--b { flex-direction: row-reverse; text-align: left; }
@media (max-width: 600px) { .compare-header__col--b { flex-direction: row; text-align: right; } }
.compare-header__vs { font-size: .95rem; font-weight: 700; color: var(--ink-3); text-align: center; }
.compare-job-badge {
  width: 38px; height: 38px; border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.compare-job-badge--a { background: var(--primary); }
.compare-job-badge--b { background: #b07200; }
.compare-job-name   { font-size: .95rem; font-weight: 700; }
.compare-job-sector { font-size: .74rem; color: var(--ink-3); margin-top: 2px; }
.compare-metrics { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.compare-row { display: grid; grid-template-columns: 68px 1fr 1fr; gap: 10px; align-items: center; }
@media (max-width: 600px) { .compare-row { grid-template-columns: 52px 1fr 1fr; } }
.compare-row__label { font-size: .73rem; font-weight: 600; color: var(--ink-3); text-align: center; }
.compare-row__col { display: flex; flex-direction: column; gap: 3px; }
.compare-row__col--b { direction: ltr; }
@media (max-width: 600px) { .compare-row__col--b { direction: rtl; } }
.compare-bar { height: 7px; background: var(--line-lt); border-radius: var(--pill); overflow: hidden; }
.compare-bar__fill { height: 100%; border-radius: var(--pill); transition: width .5s ease; }
.compare-bar--a .compare-bar__fill { background: var(--primary-l); }
.compare-bar--b .compare-bar__fill { background: #b07200; }
.compare-bar__val { font-family: var(--mono); font-size: .76rem; color: var(--ink-2); font-weight: 600; }
.compare-metric--win .compare-bar__val { color: var(--primary); font-weight: 700; }
.compare-verdict {
  margin: 0 18px 18px; padding: 14px;
  background: var(--primary-xs); border-radius: var(--r2);
  font-size: .88rem; color: var(--ink-1); text-align: center;
  border: 1px solid rgba(44,122,92,.15);
}
.compare-verdict strong { color: var(--primary); }
.compare-links { display: flex; gap: 10px; justify-content: center; padding: 0 18px 18px; flex-wrap: wrap; }

/* Compare Shortcut Cards */
.cmp-shortcut {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  padding: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); cursor: pointer;
  transition: box-shadow .18s, transform .15s, border-color .18s;
  text-align: center; width: 100%; font-family: var(--f);
}
.cmp-shortcut:hover { box-shadow: var(--sh2); transform: translateY(-2px); border-color: rgba(44,122,92,.3); }
.cmp-shortcut__job { font-size: .86rem; font-weight: 600; padding: 7px 10px; border-radius: var(--r2); line-height: 1.3; }
.cmp-shortcut__job--a { background: var(--primary-pale); color: var(--primary); }
.cmp-shortcut__job--b { background: #fef0d6; color: #7a4800; }
.cmp-shortcut__vs { font-size: .66rem; font-weight: 700; color: var(--ink-4); letter-spacing: 2px; }
.cmp-shortcut__hint { font-size: .72rem; color: var(--ink-2); margin: 2px 0 0; }

/* Tools Page */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r3); padding: 22px;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .15s, border-color .18s;
  flex-direction: column; align-items: flex-start;
}
.tool-card:hover { box-shadow: var(--sh2); transform: translateY(-2px); text-decoration: none; color: inherit; border-color: rgba(44,122,92,.3); }
.tool-card__icon { width: 42px; height: 42px; border-radius: var(--r2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; flex-shrink: 0; background: var(--bg); color: var(--ink-2); }
.tool-card__body { flex: 1; }
.tool-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--ink-1); }
.tool-card__desc  { font-size: .82rem; color: var(--ink-2); margin-bottom: 12px; line-height: 1.65; }
.tool-card__features { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.tool-card__features li { font-size: .78rem; color: var(--ink-2); padding-right: 16px; position: relative; }
.tool-card__features li::before { content: '\2713'; position: absolute; right: 0; color: var(--success); font-weight: 700; }
.tool-card__cta { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--primary-l); }

.tools-sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
@media (max-width: 900px) { .tools-sector-grid { grid-template-columns: repeat(2, 1fr); } }
.tools-sector-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r3); text-decoration: none; color: inherit;
  text-align: center; font-size: .8rem;
  transition: box-shadow .18s, border-color .18s, transform .15s;
}
.tools-sector-card:hover { box-shadow: var(--sh2); border-color: rgba(44,122,92,.3); transform: translateY(-2px); text-decoration: none; }
.tools-sector-card__icon { font-size: 1.3rem; }
.tools-sector-card strong { font-size: .83rem; color: var(--ink-1); display: block; }
.tools-sector-card span   { font-size: .7rem; color: var(--ink-2); }

.feature-item { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); }
.feature-item__num { font-size: 1.7rem; font-weight: 700; color: var(--line); font-family: var(--mono); line-height: 1; margin-bottom: 8px; -webkit-text-stroke: 1px var(--primary-l); }
.feature-item h3 { font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.feature-item p  { font-size: .82rem; color: var(--ink-2); line-height: 1.65; margin: 0; }

.source-card { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2); }
.source-card__name { font-size: .9rem; font-weight: 700; margin-bottom: 4px; color: var(--ink-1); }
.source-card__desc { font-size: .78rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 8px; }
.source-card__tag { display: inline-block; font-size: .66rem; font-weight: 600; padding: 2px 8px; border-radius: var(--r1); background: var(--primary-pale); color: var(--primary); }

/* Blog image backgrounds */
.blog-card__img--featured { background-image: url('/assets/images/blog/cover-10k-sar.jpg'); background-size: cover; background-position: center; }
.blog-card__img--aramco   { background-image: url('/assets/images/blog/cover-aramco.jpg'); background-size: cover; background-position: center; }
.blog-card__img--neom     { background-image: url('/assets/images/blog/cover-neom.jpg'); background-size: cover; background-position: center; }
.blog-card__img--expat    { background-image: url('/assets/images/blog/cover-job-search.jpg'); background-size: cover; background-position: center; }
.blog-card__img--tips     { background-image: url('/assets/images/blog/cover-negotiation.jpg'); background-size: cover; background-position: center; }
.blog-card__img--saudi    { background-image: url('/assets/images/blog/cover-saudization.jpg'); background-size: cover; background-position: center; }
.blog-card__img--vision   { background-image: url('/assets/images/blog/cover-vision2030.jpg'); background-size: cover; background-position: center; }

/* Mobile */
@media (max-width: 480px) {
  .section     { padding-block: 32px; }
  .section--lg { padding-block: 48px; }
  .page-hero   { padding-block: 36px; }
  .hero        { padding-block: 48px 32px; }
  .calc-banner { padding: 32px 18px; }
  .salary-overview { padding: 18px; }
}
@media (max-width: 520px) {
  .calc-form   { padding: 18px 14px; }
  .calc-result { padding: 18px 14px; }
  .calc-result__range { font-size: clamp(1.1rem, 5vw, 1.7rem); word-break: break-word; line-height: 1.4; }
  .rank-badge  { padding: 12px; }
  .rank-badge__pct { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  .overview-metrics { grid-template-columns: 1fr 1fr; }
  .allowances-row { grid-template-columns: 1fr auto; padding: 8px 14px; gap: 8px; }
  .allowances-row__bar-wrap { display: none; }
  .allowances-row__amount   { min-width: 78px; font-size: .8rem; }
  .allowances-box__header   { padding: 10px 14px; }
  .comp-summary { grid-template-columns: 1fr; }
  .sector-tab { padding: 5px 11px; font-size: .78rem; }
}
@media (max-width: 360px) {
  .overview-metrics { grid-template-columns: 1fr; }
  .metric__value { font-size: .78rem; }
}
@media (max-width: 700px) {
  a.blog-card[style*="flex-direction:row"] { flex-direction: column !important; max-height: none !important; }
  a.blog-card[style*="flex-direction:row"] .blog-card__img { width: 100% !important; min-width: unset !important; aspect-ratio: 16/9 !important; }
}
@media (max-width: 420px) {
  .search-bar { flex-direction: column; border-radius: var(--r3); }
  .search-bar__input { padding: 12px; }
  .search-bar__btn { border-radius: 0 0 var(--r3) var(--r3); width: 100%; padding: 12px; }
}
@media (max-width: 480px) {
  .stat-chip__num { font-size: 1.4rem; }
  .stat-strip .container { gap: 12px; }
  .compare-verdict { margin: 0 12px 14px; padding: 12px; }
  .compare-metrics { padding: 14px 12px; }
  .compare-links   { padding: 0 12px 14px; }
  .rank-range { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .rank-range__item { padding: 9px 5px; }
}
@media (max-width: 380px) { .nav__link--cta { display: none; } }
@media (max-width: 820px) { .calc-layout { grid-template-columns: 1fr; } }

@media print {
  .nav, .footer, .ad-unit { display: none; }
  body { background: #fff; }
  .salary-overview { box-shadow: none; border: 1px solid var(--line); }
}
