@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

/* NexStepia UI/UX Design System V1 | bilingual, logical-property and contrast aware.
   Load AFTER existing page, typography and guide styles. English page markup and logic remain intact.
   Arabic direction is activated by the existing language-toggle.js, not by this stylesheet. */
:root {
  --nx-primary: #164A43;
  --nx-primary-dark: #0E332F;
  --nx-secondary: #2C646B;
  --nx-accent: #A65B30;
  --nx-gold: #BF8B58;
  --nx-background: #F8F6F0;
  --nx-surface: #FFFFFF;
  --nx-ink: #172C2A;
  --nx-muted: #51635F;
  --nx-border: #DDE5DF;
  --nx-mint: #EAF4ED;
  --nx-shadow: 0 12px 34px rgba(14,51,47,.075);
  --nx-shadow-hover: 0 20px 48px rgba(14,51,47,.12);
  --nx-radius-card: 20px;
  --nx-radius-control: 13px;
  --nx-duration: 180ms;
  /* Compatibility aliases for existing per-page styles. */
  --paper: var(--nx-background);
  --ink: var(--nx-ink);
  --muted: var(--nx-muted);
  --line: var(--nx-border);
  --green: var(--nx-primary);
  --dark: var(--nx-primary-dark);
  --mint: var(--nx-mint);
  --orange: var(--nx-accent);
  --shadow: var(--nx-shadow);
}
html {
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--nx-background);
  color: var(--nx-ink);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif !important;
  font-size: 1.125rem;
  line-height: 1.9 !important;
  letter-spacing: 0 !important;
  text-align: start;
}
html[lang="en"] :is(h1,h2,h3,h4,.brand,.brand-name) {
  font-family: "Manrope", sans-serif;
}
html[lang="ar"] :is(h1,h2,h3,h4,.brand,.brand-name) {
  font-family: "Alexandria", "IBM Plex Sans Arabic", sans-serif !important;
  letter-spacing: normal !important;
  line-height: 1.5 !important;
}
html body h1 {font-size:clamp(2.15rem,4.1vw,3.65rem)!important;line-height:1.22!important;font-weight:800;}
html body h2 {font-size:clamp(1.65rem,2.55vw,2.2rem)!important;line-height:1.38!important;font-weight:700;}
html body h3 {font-size:clamp(1.22rem,1.7vw,1.5rem)!important;line-height:1.48!important;font-weight:700;}
html body :is(.panel,.results,.form,.crs-form,.controls,.pick-panel,.specialty-panel) h2,
html body .geo-answer h2,
html body .geo-questions h2 {
  font-size:clamp(1.35rem,1.9vw,1.75rem)!important;
}
html body :is(.city-card,.country-choice,.path-card,.specialty-card,.job-card,.next-step-card) :is(h2,h3,h4,h5) {
  font-size:clamp(1.05rem,1.35vw,1.3rem)!important;
}
html[lang="ar"] body h1 {font-size:clamp(2rem,4vw,3.55rem)!important;}
html[lang="ar"] body h2 {font-size:clamp(1.55rem,2.5vw,2.15rem)!important;}
html[lang="ar"] body h3 {font-size:clamp(1.23rem,1.7vw,1.55rem)!important;}
:where(p,li,blockquote) {overflow-wrap:break-word;}
:where(.wrap,.shell,.container) {max-width:1200px;}
:where(.wrap,.shell,.container) > * {min-width:0;}
:where(.panel,.notice,.controls,.pick-panel,.city-card,.job-card,.step,.sources,.info-card,.country-choice,.path-card,.specialty-card,.next-step-card,.geo-answer,.geo-questions) {
  border-color:var(--nx-border);
  border-radius:var(--nx-radius-card);
}
:where(.panel,.notice,.controls,.pick-panel,.city-card,.job-card,.step,.sources,.info-card,.country-choice,.path-card,.specialty-card,.next-step-card,.geo-answer,.geo-questions) {
  box-shadow:var(--nx-shadow);
}
:where(.country-choice,.path-card,.specialty-card,.city-card,.job-card,.next-step-card,.info-card) {
  transition:border-color var(--nx-duration) ease,box-shadow var(--nx-duration) ease,transform var(--nx-duration) ease;
}
@media (hover:hover) {
  :where(.country-choice,.path-card,.specialty-card,.city-card,.job-card,.next-step-card,.info-card):hover {
    border-color:#A6C4B6;
    box-shadow:var(--nx-shadow-hover);
    transform:translateY(-2px);
  }
}
/* Feature and source cards, not data-grid children, get generous breathing room. */
:where(.panel,.controls,.pick-panel,.job-card,.sources,.notice,.geo-answer,.geo-questions) {
  border:1px solid var(--nx-border);
}
:where(.panel,.controls,.pick-panel,.job-card,.geo-answer,.geo-questions) {
  padding:clamp(18px,2.2vw,28px);
}
:where(.country-choice,.path-card,.specialty-card,.next-step-card,.country-plan-step) {
  padding:clamp(17px,1.8vw,24px);
  border-radius:18px;
  min-width:0;
}
/* Preserve readable text within layouts while avoiding heavy global !important overrides. */
body :is(.panel,.step,.notice,.job-card,.geo-answer,.geo-questions) p {
  color:var(--nx-muted);
}
body :is(.panel,.step,.notice,.job-card,.geo-answer,.geo-questions) strong {
  color:var(--nx-ink);
}
a {text-underline-offset:.18em;}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline:3px solid var(--nx-accent)!important;
  outline-offset:3px;
}
:where(button,.pill,.button,.submit,.btn-primary,.path-action) {
  border-radius:var(--nx-radius-control);
  transition:background-color var(--nx-duration) ease,border-color var(--nx-duration) ease,box-shadow var(--nx-duration) ease,transform var(--nx-duration) ease;
}
:where(.pill,.button,.submit,.btn-primary,.guide-nav .job-link) {
  background:var(--nx-primary);
  color:#fff;
  font-weight:700;
}
:where(.pill,.button,.submit,.btn-primary,.guide-nav .job-link):hover {
  background:var(--nx-primary-dark);
}
:where(input,select,textarea) {
  accent-color:var(--nx-primary);
  border-radius:var(--nx-radius-control);
  max-width:100%;
}
:where(input,select,textarea):focus {
  border-color:var(--nx-primary);
}
/* Page furniture: refined but restrained. */
header {border-bottom:1px solid var(--nx-border);}
:where(.eyebrow,.kicker,.tag) {color:var(--nx-primary);letter-spacing:.035em;}
:where(.foot,footer) {color:var(--nx-muted);}
:where(.guide-nav,.geo-answer,.country-plan-context) {
  border-color:var(--nx-border);
}
:where(.guide-nav a,.link-row a) {
  border-radius:12px;
}
:where(.guide-nav a,.path-action) {min-height:40px;}
:where(.guide-nav,.path-group-grid,.country-choices,.cards,.specialty-grid,.next-steps-grid,.country-plan-steps) > * {min-width:0;}
/* Hero polish without rewriting layout or harming text contrast. */
body:has(.hero-art) .hero {position:relative;isolation:isolate;}
body:has(.hero-art) .hero-art,
.country-scenery,
.hero-art-photo {
  border-radius:24px;
  box-shadow:0 22px 50px rgba(14,51,47,.13);
}
body:has(.hero-art) .hero h1 span {color:var(--nx-primary);}
body:has(.hero-art) .pathfinder {background:linear-gradient(135deg,#F1F5EF,#F8F6F0);}
/* Data tables: column order, reasonable typography, and safe horizontal overflow. */
:where(.route-table-wrap,.tablewrap,.table-wrap,.table-scroll,[class*="table-scroll"]) {
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  border-radius:14px;
}
html body table {border-collapse:collapse;max-width:none;}
html body :is(.route-table,.results,.compare-matrix) {
  width:100%;
  border-collapse:collapse;
  background:#fff;
}
html body table th,html body table td {
  font-family:inherit;
  font-size:clamp(1rem,1.18vw,1.07rem)!important;
  line-height:1.7!important;
  padding:14px 15px!important;
  vertical-align:top;
  border-bottom:1px solid var(--nx-border);
  text-align:start;
  overflow-wrap:break-word;
}
html body table th {
  background:#EDF4EF;
  color:var(--nx-primary-dark);
  font-weight:700;
  letter-spacing:normal;
  text-transform:none;
}
html body table tbody tr:nth-child(even) {background:#FAFBF9;}
html body table tbody tr:hover {background:#F1F7F2;}
html body table :is(th,td):first-child {font-weight:700;}
/* RTL corrections apply after JS toggles html dir; never reverse DOM/accessibility order. */
html[dir="rtl"] body {direction:rtl;text-align:start;}
html[dir="rtl"] :is(main,section,article,.panel,.notice,.sources,.step,.geo-answer,.geo-questions,.results,.controls,.pick-panel,.job-card,.path-card,.specialty-card,.next-steps,.country-plan-context) {
  direction:rtl;
  text-align:start;
}
html[dir="rtl"] :is(.wrap,.shell,.container,.grid,.cards,.path-group-grid,.country-choices,.country-plan-steps,.specialty-grid,.next-steps-grid,.field-grid,.fields) {
  direction:rtl;
}
html[dir="rtl"] :is(.route-table-wrap,.tablewrap,.table-wrap,.table-scroll,[class*="table-scroll"]) {
  direction:rtl;
  text-align:start;
}
html[dir="rtl"] body table {direction:rtl!important;}
html[dir="rtl"] body table :is(th,td) {
  direction:rtl!important;
  text-align:right!important; /* first column starts at right, not at the left */
  unicode-bidi:plaintext;
  font-size:clamp(.99rem,1.22vw,1.11rem)!important;
  line-height:1.75!important;
}
html[dir="rtl"] .route-table {min-width:740px;}
html[dir="rtl"] .route-table :is(th,td):first-child {min-width:135px;}
html[dir="rtl"] .route-table :is(th,td):nth-child(2) {min-width:215px;}
html[dir="rtl"] .route-table :is(th,td):nth-child(3) {min-width:290px;}
html[dir="rtl"] .compare-matrix {min-width:800px;}
html[dir="rtl"] .compare-matrix :is(th,td):first-child {min-width:170px;}
html[dir="rtl"] table.results {min-width:790px;}
html[dir="rtl"] :is(.route-table,.results,.compare-matrix) th *,
html[dir="rtl"] :is(.route-table,.results,.compare-matrix) td * {
  text-align:start;
}
/* Country selectors and city cards: name and supporting copy anchor to the RIGHT. */
html[dir="rtl"] :is(.country-choice,.country-plan-step,.path-card,.specialty-card,.next-step-card,.city-card,.job-card,.info-card) {
  direction:rtl;
  text-align:right!important;
}
html[dir="rtl"] .country-choice {
  display:flex;
  flex-direction:row;
  justify-content:flex-start;
  align-items:flex-start;
}
html[dir="rtl"] .country-choice > * {min-width:0;text-align:start;}
html[dir="rtl"] :is(.country-choice,.country-plan-step,.path-card,.specialty-card,.next-step-card,.city-card,.job-card,.info-card) :is(h2,h3,h4,h5,strong,small,p,span) {
  text-align:right;
}
html[dir="rtl"] :is(.city-card .card-head,.city-card .card-body,.city-card .province,.city-card .rank,.city-card .rent-source,.city-card .metrics,.city-card .metric,.pick-head,.pick-panel,.city-picker) {
  direction:rtl;
  text-align:right;
}
html[dir="rtl"] .city-card .card-head {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
}
html[dir="rtl"] :is(.city-card .card-head h3,.city-card .card-head .province,.city-card .card-body label) {
  text-align:right!important;
}
html[dir="rtl"] :is(.path-actions,.hero-actions,.link-row,.intro-strip,.guide-nav,.navlinks,.country-choices) {
  direction:rtl;
}
html[dir="rtl"] :is(.step,.panel,.notice,.sources,.geo-answer,.geo-questions) :is(h2,h3,h4,p,li,strong) {
  text-align:start;
}
html[dir="rtl"] :is(ul,ol) {padding-inline-start:1.4rem;padding-inline-end:0;}
html[dir="rtl"] :is(.notice,.notice.urgent,.geo-answer) {
  border-left:1px solid var(--nx-border);
  border-right:4px solid var(--nx-accent);
}
html[dir="rtl"] .geo-answer {border-right-color:var(--nx-primary);}
html[dir="rtl"] .guide-nav {justify-content:flex-start;}
html[dir="rtl"] :is(.guide-nav a,.tag,.pill,.path-action,.button,.link-row a) {
  text-align:center;
}
/* Isolate numerical inputs and currency amounts; do not reorder digits or formulas. */
html[dir="rtl"] :is(input[type="number"],input[type="tel"],.metric strong,.money,.amount,.value,.currency,.rank-number) {
  direction:ltr;
  unicode-bidi:isolate;
}
html[dir="rtl"] :is(input[type="number"],input[type="tel"]) {text-align:right;}
html[dir="rtl"] :is(select,input[type="text"],textarea) {text-align:start;}
/* Targeted audited components (province routes + homepage country tiles).
   Arabic first column must be at physical RIGHT; 3-column table fills its panel. */
html[lang="ar"][dir="rtl"] body .route-table-wrap,
html[lang="ar"][dir="rtl"] body .table-wrap {
  display:block;
  width:100%;
  max-width:100%;
  direction:rtl!important;
  text-align:right!important;
  overflow-x:auto;
}
html[lang="ar"][dir="rtl"] body table.route-table {
  direction:rtl!important;
  width:100%!important;
  min-width:740px!important;
  table-layout:fixed;
}
html[lang="ar"][dir="rtl"] body table.route-table :is(thead,tbody,tr) {
  direction:rtl!important;
}
html[lang="ar"][dir="rtl"] body table.route-table :is(th,td) {
  direction:rtl!important;
  text-align:right!important;
  vertical-align:top;
  white-space:normal;
  overflow-wrap:break-word;
}
html[lang="ar"][dir="rtl"] body table.route-table :is(th,td):first-child {width:21%;}
html[lang="ar"][dir="rtl"] body table.route-table :is(th,td):nth-child(2) {width:30%;}
html[lang="ar"][dir="rtl"] body table.route-table :is(th,td):nth-child(3) {width:49%;}
/* Some pathway and comparison tables have more than three columns.
   They preserve their natural order; RTL starts at the right edge. */
html[lang="ar"][dir="rtl"] body :is(table.results,table.compare-matrix) {
  direction:rtl!important;
  margin-inline:0;
  width:100%!important;
}
html[lang="ar"][dir="rtl"] body :is(table.results,table.compare-matrix) :is(thead,tbody,tr) {
  direction:rtl!important;
}
html[lang="ar"][dir="rtl"] body :is(table.results,table.compare-matrix) :is(th,td) {
  direction:rtl!important;
  text-align:right!important;
}
/* Home country buttons were styled text-align:left in their original inline CSS. */
html[lang="ar"][dir="rtl"] body button.country-choice {
  direction:rtl!important;
  text-align:right!important;
  justify-content:flex-start;
  width:100%;
}
html[lang="ar"][dir="rtl"] body button.country-choice > span {
  display:block;
  flex:1 1 auto;
  min-width:0;
  width:100%;
  text-align:right!important;
}
html[lang="ar"][dir="rtl"] body button.country-choice :is(strong,small) {
  display:block;
  text-align:right!important;
}
/* Guided decision tiles and highlighted city summaries also respect the start edge. */
html[lang="ar"][dir="rtl"] body :is(.journey-map-card,.country-plan-step,.country-plan-context,.path-card,.specialty-card,.city-card) {
  direction:rtl;
  text-align:right!important;
}
html[lang="ar"][dir="rtl"] body :is(.journey-map-card,.country-plan-step,.path-card,.specialty-card,.city-card) :is(strong,span,b,small,h3,h4,h5,p) {
  text-align:right!important;
}
html[lang="ar"][dir="rtl"] body .city-card .card-head > :first-child {
  flex:1 1 auto;
  text-align:right!important;
}
html[lang="ar"][dir="rtl"] body :is(.province,.city-picker label,.city-card h3,.city-card .rank) {
  text-align:right!important;
}
/* Responsive cards, paddings and tables: never shrink table cells until illegible. */
@media (max-width:900px) {
  html body table th,html body table td {font-size:1rem!important;padding:12px!important;}
  html[dir="rtl"] body table th,html[dir="rtl"] body table td {font-size:1rem!important;}
  :where(.wrap,.shell) {width:min(100% - 32px,1200px);}
}
@media (max-width:680px) {
  html body h1 {font-size:clamp(2rem,7vw,2.45rem)!important;}
  html body h2 {font-size:clamp(1.45rem,5vw,1.8rem)!important;}
  html body h3 {font-size:clamp(1.18rem,4vw,1.4rem)!important;}
  html[lang="ar"] body {font-size:1.0625rem;}
  :where(.panel,.controls,.pick-panel,.job-card,.geo-answer,.geo-questions) {padding:17px;}
  :where(.wrap,.shell,.container) {width:calc(100% - 28px);}
  :where(.country-choice,.path-card,.specialty-card,.next-step-card,.country-plan-step) {padding:17px;}
  html[dir="rtl"] :is(.route-table-wrap,.tablewrap,.table-wrap,.table-scroll) {max-width:100%;}
  html[dir="rtl"] .route-table {min-width:690px;}
  html[dir="rtl"] .compare-matrix {min-width:720px;}
  :where(button,.pill,.button,.submit,.btn-primary) {min-height:44px;}
}
@media (prefers-reduced-motion:reduce) {
  :where(.country-choice,.path-card,.specialty-card,.city-card,.job-card,.next-step-card,.info-card,.pill,.button,.submit,.btn-primary,.path-action) {
    transition:none!important;
    transform:none!important;
  }
}


/* ───── V1.1 premium visual language across EVERY route ─────
   The root hero is intentionally a typographic dark canvas matching the approved mock.
   Previous hero image HTML is retained for backwards compatibility and regression safety. */
html body {background:#F8F6F0;}
html body > header,
html body > header.compare-head {
  background:#0E332F!important;
  border-block-end:1px solid rgba(225,237,229,.16)!important;
  color:#FFF;
}
html body > header :is(.brand,.brand-name,.brand-copy,.brand-tagline,.compare-brand,.navlinks>a,.nav>a,.mark,.compare-mark) {
  color:#F9F8F3!important;
}
html body > header :is(.brand,.brand-name,.compare-brand) {
  font-family:"Manrope",sans-serif;
  font-weight:800;
  letter-spacing:-.025em;
}
html[lang="ar"] body > header :is(.brand,.brand-name,.compare-brand) {
  font-family:"Manrope","Alexandria",sans-serif!important;
}
html body > header :is(.mark,.brand i,.compare-mark) {
  background:rgba(255,255,255,.13)!important;
  color:#FFF!important;
  border:1px solid rgba(255,255,255,.25);
}
html body > header :is(.navlinks a:not(.pill),.nav >a:not(.brand)) {color:#E3EEE8!important;}
html body > header :is(.navlinks a:not(.pill),.nav >a:not(.brand)):hover {color:#EAC9A1!important;}
html body > header .pill {background:#FFF!important;color:#164A43!important;}
html body > header .pill:hover {background:#F1D9BB!important;}
html body > header .mw-language-toggle {
  background:rgba(255,255,255,.97);
  border-radius:999px;
  box-shadow:0 4px 18px rgba(0,0,0,.12);
}
html body > header .mw-language-toggle button[aria-pressed="true"] {background:#164A43!important;color:#fff!important;}
html body > header .mw-language-toggle button[aria-pressed="false"] {color:#164A43!important;}
/* Wide dramatic home hero with no competing image, full bleed across the viewport. */
html body:has(.hero-art) main > .shell.hero {
  width:100vw!important;
  max-width:none!important;
  margin-inline:calc(50% - 50vw)!important;
  padding:clamp(70px,8vw,118px) max(24px,calc((100vw - 1160px)/2)) clamp(78px,8vw,110px)!important;
  min-height:440px;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:0;
  gap:0!important;
  background:
    radial-gradient(circle at 9% 12%,rgba(191,139,88,.12),transparent 30%),
    radial-gradient(circle at 90% 90%,rgba(65,128,105,.17),transparent 32%),
    linear-gradient(130deg,#193F38,#0E332F 60%,#173D37);
  isolation:isolate;
}
html body:has(.hero-art) main > .shell.hero > .nx-home-copy {
  max-width:920px;
  width:100%;
  margin-inline:auto;
  text-align:center!important;
  min-width:0;
}
html body:has(.hero-art) main > .shell.hero .hero-art {display:none!important;}
html body:has(.hero-art) main > .shell.hero .eyebrow {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:9px 16px;
  margin:0 0 24px;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.17);
  color:#EAC9A1!important;
  border-radius:100px;
  text-transform:uppercase;
  font-size:clamp(.78rem,1vw,.93rem)!important;
  line-height:1.45;
  letter-spacing:.075em;
}
html body:has(.hero-art) main > .shell.hero .eyebrow .dot {background:#C8AB7A;}
html body:has(.hero-art) main > .shell.hero h1 {
  max-width:18ch;
  margin:0 auto 20px!important;
  font-size:clamp(2.6rem,5.3vw,4.9rem)!important;
  line-height:1.16!important;
  font-weight:800;
  color:#FFF!important;
  text-align:center!important;
  text-wrap:balance;
}
html body:has(.hero-art) main > .shell.hero h1 span {color:#F2DAB8!important;}
html body:has(.hero-art) main > .shell.hero p {
  max-width:730px;
  margin:0 auto 26px!important;
  color:#E5F0EA!important;
  font-size:clamp(1rem,1.45vw,1.22rem)!important;
  line-height:1.8!important;
  text-align:center!important;
}
html body:has(.hero-art) main > .shell.hero .trustline {
  margin-top:24px;
  font-size:.78rem!important;
  color:#C9DDD3!important;
  text-align:center!important;
}
html[lang="ar"] body:has(.hero-art) main > .shell.hero h1 {
  max-width:24ch;
  font-size:clamp(2.1rem,4.5vw,4.1rem)!important;
  line-height:1.48!important;
}
html[lang="ar"] body:has(.hero-art) main > .shell.hero .eyebrow {
  letter-spacing:normal;
  font-family:"Alexandria",sans-serif;
}
/* Coordinated page intro card — roles, jobs, calculators, money planning, source register. */
html body main .nx-premium-hero {
  box-sizing:border-box;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100%;
  margin:12px 0 clamp(24px,3vw,38px)!important;
  padding:clamp(28px,4.8vw,60px) clamp(20px,5vw,68px)!important;
  min-height:260px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:28px;
  color:#FFF!important;
  background:
    radial-gradient(circle at 9% 4%,rgba(191,139,88,.20),transparent 33%),
    linear-gradient(145deg,#153D36 0%,#0E332F 72%,#1A4B43);
  box-shadow:0 22px 54px rgba(14,51,47,.16);
  text-align:center!important;
}
html body main .nx-premium-hero :is(h1,h2,h3) {
  color:#FFF!important;
  text-align:center!important;
  max-width:940px;
  margin-inline:auto!important;
}
html body main .nx-premium-hero h1 {
  font-size:clamp(2rem,3.7vw,3.35rem)!important;
  line-height:1.32!important;
  margin-block:12px 18px!important;
  text-wrap:balance;
}
html[lang="ar"] body main .nx-premium-hero h1 {
  font-size:clamp(1.95rem,3.4vw,3.15rem)!important;
  line-height:1.56!important;
}
html body main .nx-premium-hero p {
  max-width:820px!important;
  margin:10px auto 16px!important;
  color:#DFEBE5!important;
  text-align:center!important;
  line-height:1.8!important;
  font-size:clamp(1rem,1.25vw,1.14rem)!important;
}
html body main .nx-premium-hero :is(.eyebrow,.kicker,.compare-eyebrow) {
  color:#EAC9A1!important;
  background:transparent!important;
  letter-spacing:.04em;
  text-align:center!important;
  font-size:.8rem!important;
}
html body main .nx-premium-hero :is(.tag,.badge) {
  display:inline-block;
  background:rgba(255,255,255,.10)!important;
  color:#FFF!important;
  border:1px solid rgba(255,255,255,.22)!important;
  margin:6px 4px!important;
  font-size:.83rem!important;
}
html body main .nx-premium-hero :is(.review-stamp,.muted,.small) {color:#E3E8DE!important;}
html body main .nx-premium-hero :is(a.cta,.button) {
  background:#FFF!important;
  color:#164A43!important;
  border:1px solid #FFF;
  font-size:.96rem!important;
  min-height:48px;
  padding:11px 22px;
  border-radius:13px;
  text-decoration:none;
  font-weight:700;
}
html body main .nx-crs-hero {display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.42fr);align-items:center;gap:24px;text-align:start!important;}
html body main .nx-crs-hero > div {min-width:0;}
html body main .nx-crs-hero > div :is(h1,p,.eyebrow) {text-align:start!important;margin-inline:0!important;}
html body main .nx-crs-hero aside.promise {
  background:rgba(255,255,255,.09)!important;
  color:#F2F7F4!important;
  border:1px solid rgba(255,255,255,.2);
  border-radius:18px;
  padding:22px;
  line-height:1.7;
}
html body main .nx-crs-hero aside.promise b {display:block;color:#F4DAB4!important;}
/* Premium CTAs have identical geometry on Arabic and English routes. */
html body .nx-hero-actions {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin:22px auto 0!important;
  max-width:100%;
  text-align:center;
}
html body .nx-hero-actions > a {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:12px 25px;
  border-radius:13px;
  font-size:clamp(.9rem,1.1vw,1.02rem)!important;
  font-weight:700!important;
  line-height:1.35!important;
  text-decoration:none!important;
  border:1px solid rgba(255,255,255,.8);
  transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
html body .nx-hero-actions > .nx-hero-primary {background:#FFF!important;color:#164A43!important;}
html body .nx-hero-actions > .nx-hero-secondary {background:transparent!important;color:#FFF!important;}
html body .nx-hero-actions > .nx-hero-primary:hover {background:#F1D9BB!important;}
html body .nx-hero-actions > .nx-hero-secondary:hover {background:rgba(255,255,255,.14)!important;}
html body .nx-hero-actions [aria-hidden="true"] {font:inherit;line-height:1;display:inline;}
html[dir="rtl"] body .nx-hero-actions {direction:rtl;}
html[lang="ar"] body .nx-hero-actions > a {font-family:"Alexandria","IBM Plex Sans Arabic",sans-serif!important;}
/* Below the dark intro: white service cards on warm ivory, like the approved reference. */
html body .nx-service-section {
  background:#F8F6F0;
  border-block-end:1px solid #DDE5DF;
  padding:clamp(44px,5vw,68px) 0 clamp(46px,6vw,76px);
  text-align:center;
}
html body .nx-service-section .nx-section-eyebrow {
  font-size:.77rem;
  font-weight:800;
  letter-spacing:.1em;
  color:#A65B30;
  text-transform:uppercase;
}
html body .nx-service-section h2 {
  margin:10px 0 30px!important;
  font-size:clamp(1.5rem,2.5vw,2.2rem)!important;
  color:#172C2A!important;
  text-align:center!important;
}
html body .nx-service-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(14px,2vw,24px);
  align-items:stretch;
}
html body .nx-service-card {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  min-height:228px;
  padding:clamp(20px,3vw,30px);
  border:1px solid #DDE5DF;
  border-radius:20px;
  background:#FFF;
  color:#172C2A;
  box-shadow:0 12px 34px rgba(14,51,47,.075);
  text-align:center!important;
  text-decoration:none;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
html body .nx-service-card:hover {
  border-color:#A6C4B6;
  box-shadow:0 20px 48px rgba(14,51,47,.12);
  transform:translateY(-3px);
}
html body .nx-service-icon {
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  background:#EAF4ED;
  color:#164A43;
  border-radius:16px;
  font-size:25px!important;
  margin-bottom:13px;
  flex:0 0 auto;
}
html body .nx-service-card h3 {
  margin:0 0 10px!important;
  text-align:center!important;
  color:#173D37!important;
  font-size:clamp(1.05rem,1.45vw,1.25rem)!important;
}
html body .nx-service-card p {
  margin:0 auto 16px!important;
  font-size:clamp(.92rem,1.1vw,1.04rem)!important;
  color:#51635F!important;
  line-height:1.7!important;
  text-align:center!important;
}
html body .nx-service-link {margin-top:auto;color:#164A43;font-weight:800;font-size:.91rem;}
html[lang="ar"] body .nx-service-card :is(h3,p,span) {text-align:center!important;}
html[dir="rtl"] body .nx-service-grid {direction:rtl;}
/* Related cards, forms, pathway lists and city comparisons get consistent surfaces. */
html body :is(.panel,.job-card,.country-choice,.specialty-card,.path-card,.city-card,.next-step-card,.route-card,.info-card,.geo-answer,.geo-questions,.sourcebox,.controls,.pick-panel,.country-plan-step,.journey-map-card,.compare-section,.rules,.section-card,.form,.crs-form) {
  border-radius:20px;
  border-color:#DDE5DF;
}
html body :is(.panel,.job-card,.country-choice,.specialty-card,.path-card,.city-card,.next-step-card,.route-card,.info-card,.geo-answer,.geo-questions,.sourcebox,.controls,.pick-panel,.country-plan-step,.journey-map-card,.form,.crs-form) {
  box-shadow:0 10px 30px rgba(14,51,47,.06);
}
html body :is(.panel,.job-card,.country-choice,.specialty-card,.path-card,.next-step-card,.route-card,.info-card,.geo-answer,.geo-questions,.sourcebox,.controls,.pick-panel,.country-plan-step,.journey-map-card) {
  background-color:#FFF;
}
html body :is(.guide-nav,.compare-note,.notice,.callout) {border-radius:16px;}
html body :is(.hero,.nx-premium-hero) + :is(.panel,.geo-answer,.notice) {margin-block-start:16px;}
html body :is(.field input,.field select,.field textarea,button,.cta) {border-radius:12px;}
html body :is(.field input,.field select,.field textarea) {min-height:46px;background:#FFFEFB;}
html body :is(.field label,.inputs label) {font-weight:700;color:#36554A;}
/* Force right-start cards, labels and table columns even when per-page inline CSS uses left. */
html[lang="ar"] body :is(.city-card,.country-choice,.path-card,.specialty-card,.journey-map-card,.country-plan-step,.job-card) {direction:rtl;text-align:right!important;}
html[lang="ar"] body :is(.city-card,.country-choice,.path-card,.specialty-card,.journey-map-card,.country-plan-step,.job-card) :is(h2,h3,h4,h5,p,small,span,strong,b) {text-align:right!important;}
html[lang="ar"] body table {direction:rtl!important;}
html[lang="ar"] body table :is(th,td) {text-align:right!important;direction:rtl!important;line-height:1.72!important;}
html[lang="ar"] body :is(.route-table-wrap,.table-wrap,.tablewrap) {direction:rtl;overflow-x:auto;max-width:100%;}
html[lang="ar"] body :is(.city-card .card-head,.city-card .card-body) {direction:rtl;text-align:right!important;}
@media(max-width:860px) {
  html body main .nx-premium-hero {padding:32px 22px!important;border-radius:22px;}
  html body main .nx-crs-hero {grid-template-columns:1fr;}
  html body .nx-service-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  html body:has(.hero-art) main > .shell.hero {min-height:370px;}
}
@media(max-width:600px) {
  html body .nx-service-grid {grid-template-columns:1fr;}
  html body .nx-service-card {min-height:180px;padding:22px;}
  html body:has(.hero-art) main > .shell.hero {padding:64px 20px 70px!important;}
  html body .nx-hero-actions {width:100%;}
  html body .nx-hero-actions>a {min-height:48px;max-width:100%;flex:1 1 185px;padding:11px 13px;}
  html body main .nx-premium-hero h1 {font-size:clamp(1.8rem,6.5vw,2.35rem)!important;}
  html[lang="ar"] body main .nx-premium-hero h1 {font-size:clamp(1.8rem,6.2vw,2.3rem)!important;}
  html body .nx-service-section {padding:42px 0 50px;}
}
@media(prefers-reduced-motion:reduce) {
  html body :is(.nx-service-card,.nx-hero-actions>a) {transition:none!important;transform:none!important;}
}

/* V1.2: fix the white-on-white header CTA and Arabic calculator output. */
html body > header .navlinks > a.pill,
html[lang="ar"] body > header .navlinks > a.pill,
html[lang="en"] body > header .navlinks > a.pill {
  background:#FFFFFF!important;
  color:#0E332F!important;
  border:1px solid #B6C9BF!important;
  box-shadow:0 4px 14px rgba(0,0,0,.11);
  font-weight:800!important;
  text-shadow:none!important;
  opacity:1!important;
  white-space:normal;
}
html body > header .navlinks > a.pill:hover,
html body > header .navlinks > a.pill:focus-visible {
  background:#F1D9BB!important;
  color:#0E332F!important;
  border-color:#CBA77D!important;
}
html body > header .navlinks > a.pill * {color:inherit!important;}
html[lang="ar"] :is(#feeBreakdown,#routeResult,#estimateLabel) {
  direction:rtl;
  text-align:right!important;
  unicode-bidi:plaintext;
}

/* V1.3 — Country comparison header: matching Arabic/English desktop/mobile
   Layout remains fixed: NexStepia right, equal-weight language labels far left. */
html body.compare-page > header.compare-head {
  min-height:76px;
  height:auto;
  display:flex!important;
  align-items:center!important;
  overflow:visible;
  padding-block:10px;
}
html body.compare-page > header.compare-head > .compare-shell {
  box-sizing:border-box;
  width:min(1450px,calc(100% - 48px))!important;
  max-width:none!important;
  min-width:0;
  margin-inline:auto!important;
  display:flex!important;
  flex-direction:row!important;
  direction:rtl!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:nowrap!important;
  gap:16px;
}
html body.compare-page > header.compare-head .compare-brand {
  flex:0 0 auto;
  white-space:nowrap;
  direction:rtl;
  margin:0!important;
  min-width:0;
  line-height:1.3;
}
html body.compare-page > header.compare-head .mw-language-toggle {
  box-sizing:border-box;
  display:inline-flex!important;
  position:relative;
  flex:0 0 auto!important;
  direction:ltr!important;
  align-items:center!important;
  justify-content:center;
  gap:3px;
  margin:0!important;
  padding:4px 7px!important;
  min-height:46px;
  border:1px solid rgba(255,255,255,.34)!important;
  border-radius:999px!important;
  background:#FFFFFF!important;
  box-shadow:0 4px 14px rgba(0,0,0,.09);
  white-space:nowrap;
}
html body.compare-page > header.compare-head .mw-language-toggle button,
html body.compare-page > header.compare-head .mw-language-toggle button[aria-pressed="true"],
html body.compare-page > header.compare-head .mw-language-toggle button[aria-pressed="false"] {
  box-sizing:border-box;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:38px!important;
  padding:6px 9px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#164A43!important;
  box-shadow:none!important;
  text-shadow:none!important;
  opacity:1!important;
  font-family:"Manrope","IBM Plex Sans Arabic",sans-serif!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1.3!important;
  letter-spacing:0!important;
  white-space:nowrap;
}
html body.compare-page > header.compare-head .mw-language-toggle button[lang="ar"] {
  font-family:"IBM Plex Sans Arabic","Manrope",sans-serif!important;
  font-size:15px!important;
}
html body.compare-page > header.compare-head .mw-language-toggle button[aria-pressed="true"] {
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:6px;
}
html body.compare-page > header.compare-head .mw-language-toggle button:hover {
  color:#0E332F!important;
}
html body.compare-page > header.compare-head .mw-language-toggle__divider {
  color:#687D73!important;
  font-size:15px!important;
}
html body.compare-page > header.compare-head .mw-language-toggle__status {
  z-index:30;
  direction:rtl;
  text-align:right;
}
@media(max-width:600px) {
  html body.compare-page > header.compare-head {
    min-height:68px;
    padding-block:8px;
  }
  html body.compare-page > header.compare-head > .compare-shell {
    width:calc(100% - 24px)!important;
    gap:8px;
  }
  html body.compare-page > header.compare-head .compare-brand {
    font-size:clamp(15px,4vw,19px)!important;
    gap:6px;
  }
  html body.compare-page > header.compare-head .compare-mark {
    width:30px;
    height:30px;
  }
  html body.compare-page > header.compare-head .mw-language-toggle {
    padding:2px 4px!important;
    min-height:42px;
  }
  html body.compare-page > header.compare-head .mw-language-toggle button,
  html body.compare-page > header.compare-head .mw-language-toggle button[lang="ar"] {
    font-size:15px!important;
    min-height:36px!important;
    padding:5px 6px!important;
  }
}

/* Canonical family overrides after legacy design typography; one family for both languages. */
html[lang="ar"] body :is(h1,h2,h3,h4,h5,h6,p,li,a,button,input,select,textarea,label,small,strong,b,span,th,td,summary,figcaption),
html[lang="en"] body :is(h1,h2,h3,h4,h5,h6,p,li,a,button,input,select,textarea,label,small,strong,b,span,th,td,summary,figcaption){font-family:var(--nx-font,'Cairo',sans-serif)!important}
