/* Believe homepage reference redesign: loaded after the existing compiled app CSS. */
:root {
  --ref-emerald: #003d35;
  --ref-emerald-deep: #002f2b;
  --ref-gold: #d2ae61;
  --ref-cream: #f8f7f2;
  --ref-ink: #10221f;
  --ref-muted: #687570;
  --page-gutter: 20px;
}

html, body, #root { width: 100%; max-width: 100%; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--ref-cream); color: var(--ref-ink); }
.site-header { height: 74px; background: rgba(255,255,253,.98); }
.header-inner { max-width: none; width: calc(100% - 40px); display: flex; align-items: center; justify-content: space-between; }
.logo { width: 174px; align-items: flex-start; }
.site-header .logo { margin: 0; align-self: center; }
.logo-with-icon { flex-direction: row; gap: 9px; align-items: center; }
.logo-with-icon .logo-icon { width: 30px; height: 30px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-mark { font-size: 18px; letter-spacing: .05em; }
.logo-sub { font-size: 7px; letter-spacing: .27em; }
.nav { gap: 28px; margin-right: 16px; }
.nav a { font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .login-link { display: inline-flex; align-items: center; color: var(--ref-emerald); font-size: 13px; font-weight: 600; white-space: nowrap; }
.header-actions .login-link:hover { color: var(--ref-gold); }
.header-actions .button { display: inline-flex; min-height: 40px; height: 40px; padding: 0 18px; border-radius: 8px; background: var(--ref-emerald); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 5px 12px rgba(0,61,53,.14); }
.header-actions .button:hover { background: var(--ref-emerald-deep); color: #fff; transform: translateY(-1px); }

.home-page { height: auto; min-height: 0; overflow: visible; }
.home-hero { height: 560px; min-height: 560px; }
.home-hero-image img { object-position: center 48%; filter: saturate(.9) contrast(1.02); }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,48,42,.96) 0%, rgba(0,55,48,.82) 35%, rgba(0,55,48,.18) 69%, rgba(0,0,0,.02) 100%); pointer-events: none; }
.home-hero-overlay { width: min(1320px, calc(100% - 64px)); padding-top: 103px; background: transparent !important; }
.home-copy { width: min(690px, 65%); padding: 0; color: #fff; }
.home-copy::before { content: "PEOPLE  \00B7  OPPORTUNITIES  \00B7  PROGRESS"; display: block; color: #f2d27e; font-size: 10px; letter-spacing: .29em; font-weight: 600; }
.home-copy h1 { margin: 16px 0 14px; color: #fff; font-size: clamp(20px, 3.2vw, 50px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; max-width: 100%; }
.home-copy h1::first-line { color: #fff; }
.home-hero-accent { color: var(--ref-gold); }
.home-copy p { max-width: 475px; color: #f5f2e7 !important; font-size: 17px; line-height: 1.45; white-space: normal; margin-bottom: 27px; }
.home-copy .search-bar { width: min(665px, 100%); min-height: 58px; border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.home-copy .search-input { padding-inline: 18px; }
.home-copy .search-input input { color: var(--ref-ink); font-size: 14px; }
.home-copy .search-input input::placeholder { color: #7d8984; opacity: 1; }
.home-copy .search-input svg { color: var(--ref-emerald); }
.home-copy .search-location-select { min-width: 180px; padding-inline: 15px; }
.home-copy .search-button { margin: 5px; min-width: 118px; border-radius: 8px; background: var(--ref-emerald); }
.home-note { display: none; }

.jobs-page .hero-copy,
.jobs-page .hero-copy h1,
.jobs-page .hero-copy p { text-align: left; }

.jobs-page .hero-copy,
.apply-content,
.reference-reviews-content,
.reference-contact-content,
.footer-inner,
.jobs-page .jobs-content,
.jobs-page .breadcrumb,
.jobs-page .search-bar,
.jobs-page .jobs-search,
.jobs-page .jobs-listings { width: min(1320px, calc(100% - (var(--page-gutter) * 2))); max-width: none; margin-left: var(--page-gutter); margin-right: auto; text-align: left; }

.jobs-page .hero-copy h1,
.jobs-page .hero-copy p,
.apply-content h1,
.apply-content h2,
.apply-content p,
.reference-reviews-content h1,
.reference-reviews-content h2,
.reference-reviews-content p,
.reference-contact-content h1,
.reference-contact-content h2,
.reference-contact-content p { text-align: left; }

.site-footer { width: 100%; }
.site-footer .footer-main,
.site-footer .footer-bottom { width: 100%; max-width: none; margin-left: 0; margin-right: 0; box-sizing: border-box; }
.site-footer .footer-main { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.site-footer .footer-bottom { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.site-footer .footer-inner { display: block; padding: 0; }
.site-footer .footer-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.site-footer .footer-grid > * { min-width: 0; text-align: left; }
.site-footer a { text-align: left; }

.home-reference-stats { position: relative; z-index: 4; width: min(1320px, calc(100% - 64px)); margin: -32px auto 0; border-radius: 16px; background: rgba(0,61,53,.98); box-shadow: 0 14px 30px rgba(0,45,39,.14); display: grid; grid-template-columns: repeat(4,1fr); padding: 24px 26px; color: #fff; }
.home-reference-stat { display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.25); }
.home-reference-stat:first-child { padding-left: 0; }
.home-reference-stat:last-child { border-right: 0; padding-right: 0; }
.home-reference-stat-icon { width: 42px; height: 42px; border: 1px solid var(--ref-gold); color: #f0d485; border-radius: 50%; display: grid; place-items: center; font-size: 19px; }
.home-reference-stat strong { display: block; color: #f0d485; font: 400 23px/1 "DM Serif Display", Georgia, serif; }
.home-reference-stat span { display: block; margin-top: 5px; color: #e3ece7; font-size: 12px; line-height: 1.25; }

.home-reference-industries { padding: 64px 0 58px; background: var(--ref-cream); }
.home-reference-inner { width: min(1360px, calc(100% - 64px)); margin: 0 auto; }
.home-reference-kicker { color: #bb9546; font-size: 11px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.home-reference-kicker::after { content: ""; display: inline-block; width: 48px; margin-left: 13px; border-top: 2px solid var(--ref-gold); vertical-align: middle; }
.home-reference-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 14px 0 25px; }
.home-reference-heading-row h2 { color: var(--ref-ink); font-size: clamp(30px,3vw,40px); line-height: 1.05; }
.home-reference-heading-row p { max-width: 650px; color: var(--ref-muted); font-size: 14px; margin-top: 10px; }
.home-reference-heading-row a { flex: 0 0 auto; border: 1px solid var(--ref-emerald); color: var(--ref-emerald); border-radius: 999px; padding: 13px 20px; font-size: 13px; }
.home-reference-industry-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.home-reference-industry { min-height: 122px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid #dfe7e1; border-radius: 14px; background: #fff; box-shadow: 0 7px 18px rgba(31,55,44,.055); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-reference-industry:hover { transform: translateY(-3px); border-color: #b9cec3; box-shadow: 0 12px 24px rgba(31,55,44,.10); }
.home-reference-industry-copy { display: flex; align-items: center; gap: 13px; padding: 18px 17px; }
.home-reference-industry-copy > div { min-width: 0; }
.home-reference-industry h3 { color: var(--ref-ink); font: 700 14px/1.25 "DM Sans", Arial, sans-serif; }
.home-reference-industry p { color: #7c8782; font-size: 12px; margin-top: 7px; }
.home-reference-industry-icon { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #cfe2d7; border-radius: 12px; background: #eef7f1; color: var(--ref-emerald); display: grid; place-items: center; }
.home-reference-industry-icon svg { width: 22px; height: 22px; }

@media (min-width: 721px) {
  .jobs-page .jobs-content,
  .apply-content,
  .reference-reviews-content,
  .reference-contact-content {
    width: min(1320px, calc(100% - (var(--page-gutter) * 2)));
    max-width: none;
    margin-left: var(--page-gutter);
    margin-right: auto;
  }

  .jobs-page .hero-copy,
  .apply-content,
  .reference-reviews-content,
  .reference-contact-content {
    text-align: left;
  }

  .reference-review-summary,
  .reference-review-form,
  .reference-contact-form,
  .reference-contact-card {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .home-reference-industry-grid { grid-template-columns: repeat(2,1fr); }
  .home-reference-stat { padding-inline: 12px; }
}
@media (max-width: 720px) {
  :root { --page-gutter: 20px; }
  .site-header { height: 64px; }
  .header-inner { width: calc(100% - 40px); }
  .jobs-page .hero-copy,
  .apply-content,
  .reference-reviews-content,
  .reference-contact-content,
  .footer-inner,
  .jobs-page .jobs-content,
  .jobs-page .breadcrumb,
  .jobs-page .search-bar,
  .jobs-page .jobs-search,
  .jobs-page .jobs-listings { width: calc(100% - (var(--page-gutter) * 2)); margin-left: var(--page-gutter); margin-right: var(--page-gutter); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .nav { display: none; }
  .menu-button { display: block; }
  .header-actions { display: none; }
  .home-hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .home-hero-image { position: absolute; inset: 0; width: 100%; height: 540px; z-index: 0; }
  .home-hero-overlay { width: calc(100% - 24px); padding: 65px 0 98px; min-height: 540px; }
  .home-copy { width: 100%; }
  .home-copy h1 { font-size: clamp(20px, 8vw, 36px); }
  .home-copy p { font-size: 15px; }
  .home-copy .search-bar { display: block; min-height: 0; border-radius: 10px; padding: 5px; }
  .home-copy .search-input, .home-copy .search-location-select { min-height: 48px; border-right: 0; border-bottom: 1px solid #e0e5df; }
  .home-copy .search-button { width: calc(100% - 10px); min-height: 48px; }
  .home-reference-stats { width: calc(100% - 24px); grid-template-columns: repeat(2,1fr); gap: 20px 0; margin-top: -26px; padding: 22px 16px; }
  .home-reference-stat { border-right: 0; padding: 0 9px; }
  .home-reference-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.25); }
  .home-reference-stat:first-child { padding-left: 9px; }
  .home-reference-stat:last-child { padding-right: 9px; }
  .home-reference-industries { padding: 48px 0; }
  .home-reference-inner { width: calc(100% - 24px); }
  .home-reference-heading-row { display: block; }
  .home-reference-heading-row a { display: inline-block; margin-top: 20px; }
  .home-reference-industry-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-reference-industry-copy { padding: 15px 12px; }
  .home-reference-industry h3 { font-size: 12px; }
}

/* ==========================================================================
   Jobs page layout fixes (scoped to .jobs-page; placed last on purpose)
   ========================================================================== */

/* 1. Footer overlap: page grows with its content instead of a fixed/clipped height */
.jobs-page {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: 56px;
  box-sizing: border-box;
}
.jobs-page .jobs-content,
.jobs-page .jobs-listings {
  height: auto;
  min-height: 0;
  overflow: visible;
}
.site-footer { position: relative; clear: both; margin-top: 0; }

/* 2. Even margins: center the Jobs content column instead of pinning it left */
.jobs-page .jobs-content,
.jobs-page .breadcrumb,
.jobs-page .search-bar,
.jobs-page .jobs-search,
.jobs-page .jobs-listings {
  width: min(1320px, calc(100% - (var(--page-gutter) * 2)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
/* If these are nested inside one another, do not shrink/offset twice */
.jobs-page .jobs-content .breadcrumb,
.jobs-page .jobs-content .search-bar,
.jobs-page .jobs-content .jobs-search,
.jobs-page .jobs-content .jobs-listings {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.jobs-page .breadcrumb { margin-top: 16px; margin-bottom: 14px; }

/* 3. Filter alignment: search + sort and the four filters share one 4-column grid
      (classes are added by home-enhancements.js; nothing changes if they are absent) */
.jobs-page .jobs-toolbar-row,
.jobs-page .jobs-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}
.jobs-page .jobs-toolbar-row { margin-bottom: 12px; }
.jobs-page .jobs-toolbar-row > :first-child { grid-column: span 3; min-width: 0; }
.jobs-page .jobs-toolbar-row > :last-child { grid-column: 4; min-width: 0; }
.jobs-page .jobs-toolbar-row > *,
.jobs-page .jobs-filter-row > * { width: 100%; max-width: none; margin: 0; box-sizing: border-box; }
.jobs-page .jobs-filter-row { margin-bottom: 28px; }

/* 4. Empty results: stop the "No Jobs Found" box from stretching tall */
.jobs-page .jobs-empty-ancestor { height: auto; min-height: 0; }
.jobs-page .jobs-empty-state {
  height: auto;
  min-height: 0;
  padding: 44px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-sizing: border-box;
}
.jobs-page .jobs-empty-state > * { margin-top: 0; margin-bottom: 0; }

@media (max-width: 900px) {
  .jobs-page .jobs-toolbar-row,
  .jobs-page .jobs-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs-page .jobs-toolbar-row > :first-child,
  .jobs-page .jobs-toolbar-row > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .jobs-page { padding-bottom: 36px; }
  .jobs-page .jobs-toolbar-row,
  .jobs-page .jobs-filter-row { grid-template-columns: 1fr; gap: 10px; }
  .jobs-page .jobs-empty-state { padding: 32px 16px 28px; }
}

/* ==========================================================================
   Shared inner-page fixes: CV Creation, Reviews, About, Contact
   (.site-page-shell is added by home-enhancements.js to the page element that
   sits directly above the footer; it is never added to the home page)
   ========================================================================== */

/* Footer overlap + excessive height: page grows with its content */
.site-page-shell:not(.home-page):not(.jobs-page) {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: 48px;
  box-sizing: border-box;
}
.site-page-shell:not(.home-page) > :not([class*="hero"]):not([class*="banner"]) {
  min-height: 0;
}

/* Even margins: center the content column instead of pinning it to the left.
   Text stays left-aligned, as in the rest of the design. */
.apply-content,
.reference-reviews-content,
.reference-contact-content,
.site-page-shell:not(.home-page) > [class*="about"][class*="content"],
.site-page-shell:not(.home-page) > [class*="about"][class*="inner"] {
  width: min(1320px, calc(100% - (var(--page-gutter) * 2)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  text-align: left;
}

/* Responsiveness: nothing inside these pages may be wider than the screen */
.site-page-shell:not(.home-page) img,
.site-page-shell:not(.home-page) video,
.site-page-shell:not(.home-page) iframe,
.site-page-shell:not(.home-page) table { max-width: 100%; }
.site-page-shell:not(.home-page) input,
.site-page-shell:not(.home-page) select,
.site-page-shell:not(.home-page) textarea { max-width: 100%; box-sizing: border-box; }

@media (max-width: 720px) {
  .site-page-shell:not(.home-page):not(.jobs-page) { padding-bottom: 32px; }
  .apply-content,
  .reference-reviews-content,
  .reference-contact-content,
  .site-page-shell:not(.home-page) > [class*="about"][class*="content"],
  .site-page-shell:not(.home-page) > [class*="about"][class*="inner"] {
    width: calc(100% - (var(--page-gutter) * 2));
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   Consistent breadcrumb (Home > Page) on Jobs, CV Creation, Reviews, About, Contact
   (the element is created by home-enhancements.js and sits in the same centered
   column as the page content)
   ========================================================================== */
.site-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1320px, calc(100% - (var(--page-gutter) * 2)));
  margin: 16px auto 14px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ref-muted);
}
.site-breadcrumb a { color: var(--ref-emerald); font-weight: 500; text-decoration: none; }
.site-breadcrumb a:hover { color: var(--ref-gold); text-decoration: underline; }
.site-breadcrumb a:focus-visible { outline: 2px solid var(--ref-gold); outline-offset: 2px; border-radius: 3px; }
.site-breadcrumb-sep { color: #9aa6a1; font-size: 16px; line-height: 1; }
.site-breadcrumb [aria-current="page"] { color: var(--ref-ink); font-weight: 600; }
.breadcrumb-original-hidden { display: none !important; }

@media (max-width: 720px) {
  .site-breadcrumb { margin: 12px auto 10px; font-size: 12px; }
}

/* ==========================================================================
   Contact page: form and contact channels side by side
   (.contact-split / .contact-col-a / .contact-col-b / .contact-span are added
   by home-enhancements.js around .reference-contact-form and .reference-contact-card)
   ========================================================================== */
.site-page-shell .contact-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) !important;
  gap: 28px;
  align-items: start;
}
.site-page-shell .contact-split > .contact-span { grid-column: 1 / -1; }
.site-page-shell .contact-split > .contact-col-a { grid-column: 1; }
.site-page-shell .contact-split > .contact-col-b { grid-column: 2; }
.site-page-shell .contact-split > .contact-col-a,
.site-page-shell .contact-split > .contact-col-b {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}
/* Clickable LinkedIn rows in the contact card */
.reference-contact-card [data-linkedin-wired="true"] { cursor: pointer; }
.reference-contact-card [data-linkedin-wired="true"]:hover { opacity: .85; }
.reference-contact-card [data-linkedin-wired="true"]:focus-visible { outline: 2px solid var(--ref-gold); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 900px) {
  .site-page-shell .contact-split { grid-template-columns: minmax(0, 1fr) !important; gap: 20px; }
  .site-page-shell .contact-split > .contact-col-a,
  .site-page-shell .contact-split > .contact-col-b { grid-column: 1; }
}

/* ==========================================================================
   Layout alignment pass (Reviews, About, Contact, Jobs, CV Creation)
   Shared content column: min(1320px, 100% - 2 * --page-gutter), centered.
   CSS-only; appended last on purpose so it wins over earlier rules.
   ========================================================================== */

/* A. Breadcrumb that sits INSIDE an already-centered content box must not be
      shrunk a second time (it was drawn 20px right of the boxes below it). */
.reference-reviews-content > .site-breadcrumb,
.reference-contact-content > .site-breadcrumb,
.apply-content > .site-breadcrumb {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* B. Jobs + CV Creation hero: the copy block was given width:min(1320px,...) and
      auto side margins, so inside the two-column hero grid it overflowed and slid to
      the left, leaving a darker strip of hero background beside the image. */
.skyline-hero.skyline-hero > .hero-copy.hero-copy {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  box-shadow: none;
}

/* C. Hero heading + description start exactly at the left edge of the content
      boxes. The hero copy column is 46% wide, so (100% of it) * 1.087 - 660px equals
      (viewport - 1320px) / 2, i.e. the left edge of the centered 1320px column. */
@media (min-width: 721px) {
  .reference-hero.reference-hero > .reference-hero-copy.reference-hero-copy,
  .skyline-hero.skyline-hero > .hero-copy.hero-copy {
    padding-left: max(var(--page-gutter), calc(108.7% - 660px));
    padding-right: 24px;
  }
}
@media (max-width: 720px) {
  .reference-hero.reference-hero > .reference-hero-copy.reference-hero-copy,
  .skyline-hero.skyline-hero > .hero-copy.hero-copy {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }
}

/* D. About: same column as the breadcrumb, text pane widened toward the image */
@media (min-width: 721px) {
  .about-page .about-reference-hero-inner.about-reference-hero-inner,
  .about-page .about-purpose-grid.about-purpose-grid {
    width: min(1320px, calc(100% - (var(--page-gutter) * 2)));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .about-page .about-reference-hero-inner.about-reference-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .about-page .about-reference-hero-copy.about-reference-hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 58px 56px 52px 0;
  }
  .about-page .about-reference-hero-copy h1,
  .about-page .about-reference-hero-copy p {
    max-width: none;
    text-align: left;
  }
}
@media (max-width: 720px) {
  .about-page .about-reference-hero-copy.about-reference-hero-copy {
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }
  .about-page .about-reference-hero-copy h1,
  .about-page .about-reference-hero-copy p { max-width: none; text-align: left; }
}

/* E. Contact: form and contact card as two equal, side-by-side boxes (desktop).
      The wrapper carries BOTH .site-page-shell and .contact-split, so the earlier
      descendant selector ".site-page-shell .contact-split" never matched it. */
@media (min-width: 901px) {
  .reference-contact-content.contact-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 24px;
    align-items: stretch;
  }
  .reference-contact-content.contact-split > .contact-span { grid-column: 1 / -1; margin-bottom: -10px; }
  .reference-contact-content.contact-split > .contact-col-a { grid-column: 1; }
  .reference-contact-content.contact-split > .contact-col-b { grid-column: 2; }
  .reference-contact-content.contact-split > .contact-col-a,
  .reference-contact-content.contact-split > .contact-col-b {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    height: auto;
  }
}
@media (max-width: 900px) {
  .reference-contact-content.contact-split {
    display: block !important;
  }
  .reference-contact-content.contact-split > .contact-col-b { margin-top: 16px; }
}

/* F. Reviews empty state: span the whole row and align with the boxes' left edge
      (it was centered inside the first of three grid columns). */
.reference-review-grid > .reference-empty-row {
  grid-column: 1 / -1;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

/* ===== Round 2: header logo alignment + contact LinkedIn / extra phone ===== */
/* Move the logo (icon + wordmark) right so it starts at the same left edge as the page content column
   (content column = min(1320px, 100% - 2 gutters), centred). No shift below ~1360px wide, where both already sit at the gutter. */
.site-header .logo { margin-left: max(0px, calc((100% - 1320px) / 2)); }

.reference-contact-card .reference-contact-detail div a { display: block; width: fit-content; }
.reference-contact-card .reference-contact-detail span a.reference-contact-linkedin {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  color: inherit; border-radius: 50%;
}

/* ===== Round 3: Profile + My Applications use the same left/right content column as the other pages ===== */
main.account-page.container {
  width: min(1320px, calc(100% - (var(--page-gutter) * 2)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
/* tick shown after "Save Profile" succeeds */
.reference-form-saved-tick { display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-size: 24px; font-weight: 700; color: var(--green); }

/* ===== Round 4: industry cards are now links to the Jobs page ===== */
a.home-reference-industry { text-decoration: none; color: inherit; cursor: pointer; }
a.home-reference-industry:focus-visible { outline: 2px solid var(--ref-emerald, #0b6b4f); outline-offset: 3px; }

/* ===== Round 5: mobile polish for the Home page (phones only; desktop rules above are untouched) ===== */
@media (max-width: 720px) {
  /* Hero heading was forced onto one line (white-space: nowrap) and ran off the right edge */
  .home-page .home-copy::before { font-size: 9.5px; letter-spacing: .2em; line-height: 1.7; white-space: normal; }
  .home-page .home-copy h1 {
    white-space: normal; overflow-wrap: break-word; text-wrap: balance;
    font-size: clamp(27px, 8.2vw, 36px); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 12px;
  }
  .home-page .home-hero-accent { white-space: nowrap; }
  .home-page .home-copy p { max-width: 100%; font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
  .home-page .home-hero-overlay { padding: 44px 0 104px; }

  /* Search box: comfortable 52px touch targets, 16px input text (stops iOS zoom-on-focus) */
  .home-page .home-copy .search-bar { padding: 6px; border-radius: 14px; }
  .home-page .home-copy .search-input { min-height: 52px; padding-inline: 14px; gap: 10px; }
  .home-page .home-copy .search-input input { font-size: 16px; min-width: 0; }
  .home-page .home-copy .search-button { width: 100%; min-height: 52px; margin: 6px 0 0; font-size: 15px; border-radius: 10px; }
}

@media (max-width: 480px) {
  /* Statistics: icon above text so numbers and labels get the full cell width */
  .home-reference-stats { padding: 6px 8px; gap: 0; }
  .home-reference-stat { grid-template-columns: 1fr; justify-items: start; align-content: start; gap: 10px; padding: 18px 12px; }
  .home-reference-stat:first-child, .home-reference-stat:last-child { padding-left: 12px; padding-right: 12px; }
  .home-reference-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .home-reference-stat-icon { width: 38px; height: 38px; font-size: 17px; }
  .home-reference-stat strong { font-size: 24px; }
  .home-reference-stat span { margin-top: 4px; font-size: 12px; line-height: 1.3; }

  /* Industry cards: icon above text so titles and counts are not squeezed */
  .home-reference-industry { min-height: 0; }
  .home-reference-industry-copy { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 14px; }
  .home-reference-industry-icon { flex: 0 0 38px; width: 38px; height: 38px; }
  .home-reference-industry h3 { font-size: 13px; }
  .home-reference-industry p { margin-top: 5px; line-height: 1.35; }
}
@media (max-width: 720px) {
  .home-page .home-copy .search-input, .home-page .home-copy .search-location-select { border-bottom: 0; }
}
@media (max-width: 480px) {
  .home-reference-industry { justify-content: flex-start; }
}

/* ===== Round 6: premium mobile Home page (phones only, <=720px; desktop/tablet rules are untouched) ===== */
@media (max-width: 720px) {
  /* Background: vertical shade keeps the copy legible over the bright sky and melts into the stats card */
  .home-page .home-hero::after {
    background: linear-gradient(180deg, rgba(0,40,35,.72) 0%, rgba(0,48,42,.46) 38%, rgba(0,48,42,.14) 64%, rgba(0,50,43,.88) 100%);
  }
  .home-page .home-hero-image { inset: 0; height: auto; }
  .home-page .home-hero-image img { object-position: 62% 50%; filter: saturate(.95) contrast(1.04); }

  /* One consistent 20px gutter for hero, stats and the section below */
  .home-page .home-hero-overlay { width: calc(100% - 40px); padding: 40px 0 150px; min-height: 0; }
  .home-page .home-reference-inner { width: calc(100% - 40px); }

  /* Typography */
  .home-page .home-copy::before {
    padding-top: 16px; font-size: 10px; font-weight: 600; letter-spacing: .24em; line-height: 1.7;
    background: linear-gradient(var(--ref-gold), var(--ref-gold)) no-repeat 0 0 / 36px 2px;
  }
  .home-page .home-copy h1 {
    margin: 14px 0 14px; font-size: clamp(30px, 9vw, 40px); line-height: 1.06; letter-spacing: -.015em;
    text-shadow: 0 2px 22px rgba(0,28,24,.45);
  }
  .home-page .home-copy p {
    max-width: 34ch; margin-bottom: 26px; font-size: 15.5px; line-height: 1.55; letter-spacing: .005em;
    text-shadow: 0 1px 14px rgba(0,28,24,.55);
  }

  /* Search card */
  .home-page .home-copy .search-bar {
    display: grid; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.97);
    box-shadow: 0 22px 46px rgba(0,26,22,.40), 0 0 0 1px rgba(255,255,255,.5);
  }
  .home-page .home-copy .search-input {
    min-height: 54px; padding-inline: 16px; border: 1px solid #e6e3d6; border-radius: 12px; background: #f6f4ed;
  }
  .home-page .home-copy .search-button {
    width: 100%; min-height: 54px; margin: 0; border-radius: 12px; font-size: 15px; font-weight: 600; letter-spacing: .03em;
    box-shadow: 0 10px 20px rgba(0,63,54,.30);
  }

  /* Statistics card */
  .home-page .home-reference-stats {
    width: calc(100% - 40px); margin-top: -68px; padding: 6px; gap: 0; border-radius: 22px;
    background: linear-gradient(160deg, rgba(0,68,59,.99), rgba(0,50,43,.99));
    border: 1px solid rgba(240,212,133,.30); box-shadow: 0 24px 46px rgba(0,36,31,.30);
  }
  .home-page .home-reference-stat {
    grid-template-columns: 1fr; justify-items: start; align-content: start; gap: 12px; padding: 20px 16px; border-right: 0;
  }
  .home-page .home-reference-stat:first-child, .home-page .home-reference-stat:last-child { padding-left: 16px; padding-right: 16px; }
  .home-page .home-reference-stat:nth-child(odd) { border-right: 1px solid rgba(240,212,133,.20); }
  .home-page .home-reference-stat:nth-child(n+3) { border-top: 1px solid rgba(240,212,133,.20); }
  .home-page .home-reference-stat-icon {
    width: 40px; height: 40px; font-size: 17px; background: rgba(240,212,133,.09); border-color: rgba(240,212,133,.55);
  }
  .home-page .home-reference-stat strong { font-size: 28px; letter-spacing: -.01em; }
  .home-page .home-reference-stat span { margin-top: 5px; font-size: 12.5px; line-height: 1.35; color: #dbe8e1; letter-spacing: .01em; }
}

/* ===== Round 7: mobile Home hero + stats redesigned to the reference mockup (phones only, <=720px) ===== */
@media (max-width: 720px) {
  /* Background: bright Dubai photo with only a soft left shade for the text */
  .home-page .home-hero::after { background: linear-gradient(90deg, rgba(0,34,29,.58) 0%, rgba(0,34,29,.22) 55%, rgba(0,34,29,0) 100%); }
  .home-page .home-hero-image img { object-position: 72% 42%; filter: saturate(1.05) contrast(1.02); }

  /* Curved transition into the cream stats area, with a fine gold line */
  .home-page .home-hero::before {
    content: ""; display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 84px; z-index: 3; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 84' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C70 34 140 74 250 72 S350 40 390 14 L390 84 L0 84 Z' fill='%23f8f7f2'/%3E%3Cpath d='M0 20 C70 24 140 64 250 62 S350 30 390 4' fill='none' stroke='%23d2ae61' stroke-width='1.5' opacity='.95'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  }

  .home-page .home-hero-overlay { padding: 62px 0 150px; }

  /* Heading + two-line description */
  .home-page .home-copy::before { padding-top: 0; background: none; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-shadow: 0 1px 10px rgba(0,24,20,.7); }
  .home-page .home-copy h1 { margin: 16px 0 14px; font-size: clamp(32px, 10.8vw, 46px); line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,24,20,.45); }
  .home-page .home-hero-accent { color: #e4b95e; text-shadow: 0 2px 18px rgba(0,24,20,.55); }
  .home-page .home-copy p { max-width: none; margin-bottom: 26px; font-size: 15px; line-height: 1.5; text-wrap: balance; text-shadow: 0 1px 12px rgba(0,24,20,.5); }

  /* Pill search bar: search icon + input | pin UAE | round arrow button */
  .home-page .home-copy .search-bar {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 0; width: 100%; min-height: 60px; padding: 5px 5px 5px 16px;
    border-radius: 999px; background: rgba(252,249,242,.97); border: 1px solid rgba(255,255,255,.75);
    box-shadow: 0 16px 34px rgba(0,24,20,.30);
  }
  .home-page .home-copy .search-input { flex: 1 1 auto; min-width: 0; min-height: 0; gap: 9px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .home-page .home-copy .search-input svg { width: 19px; height: 19px; flex: none; }
  .home-page .home-copy .search-input input { min-width: 0; font-size: 14px; text-overflow: ellipsis; }
  .home-page .home-copy .search-input::after {
    content: "UAE"; flex: none; margin-left: 6px; padding: 0 8px 0 28px; height: 28px; line-height: 28px;
    border-left: 1px solid #ddd8c9; font-size: 14.5px; font-weight: 500; color: var(--ref-emerald);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003d35' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") 8px center / 16px 16px no-repeat;
  }
  .home-page .home-copy .search-button {
    flex: none; position: relative; width: 50px; min-width: 50px; height: 50px; min-height: 50px; margin: 0; padding: 0;
    border-radius: 50%; font-size: 0; box-shadow: 0 8px 16px rgba(0,50,43,.30);
  }
  .home-page .home-copy .search-button svg { display: none; }
  .home-page .home-copy .search-button::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  /* Statistics: four even columns on cream, gold icons, dark-green numbers */
  .home-page .home-reference-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: calc(100% - 24px); margin: 0 auto; padding: 22px 0 34px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .home-page .home-reference-stat, .home-page .home-reference-stat:first-child, .home-page .home-reference-stat:last-child,
  .home-page .home-reference-stat:nth-child(odd), .home-page .home-reference-stat:nth-child(n+3) {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 3px; border: 0; text-align: center;
  }
  .home-page .home-reference-stat > div:last-child { display: grid; gap: 5px; justify-items: center; }
  .home-page .home-reference-stat-icon {
    position: relative; width: 54px; height: 54px; border: 0; border-radius: 50%; font-size: 0; color: transparent;
    background: rgba(210,174,97,.17);
  }
  .home-page .home-reference-stat-icon::before {
    content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; background: #a9812a;
    -webkit-mask: var(--stat-icon) center / contain no-repeat; mask: var(--stat-icon) center / contain no-repeat;
  }
  .home-page .home-reference-stat:nth-child(1) .home-reference-stat-icon { --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='7' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
  .home-page .home-reference-stat:nth-child(2) .home-reference-stat-icon { --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4M10 10h4M10 14h4M10 18h4'/%3E%3C/svg%3E"); }
  .home-page .home-reference-stat:nth-child(3) .home-reference-stat-icon { --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
  .home-page .home-reference-stat:nth-child(4) .home-reference-stat-icon { --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E"); }
  .home-page .home-reference-stat strong { margin-top: 2px; color: var(--ref-emerald); font-size: clamp(26px, 8.4vw, 34px); line-height: 1; letter-spacing: -.01em; }
  .home-page .home-reference-stat span { margin: 0; color: #6d7b77; font-size: clamp(11px, 3.2vw, 13px); line-height: 1.3; letter-spacing: 0; text-wrap: balance; }
}
/* very narrow phones: keep the placeholder readable by dropping the decorative UAE segment */
@media (max-width: 359px) { .home-page .home-copy .search-input::after { display: none; } }

/* ===== Round 7: mobile Home redesign - bright Dubai hero, pill search, curved edge, overlapping gold-accent stats card (phones only, <=720px) ===== */
@media (max-width: 720px) {
  /* Hero background: keep the photo bright; only a light left/top shade for text legibility */
  .home-page .home-hero::after {
    background:
      linear-gradient(90deg, rgba(0,40,35,.50) 0%, rgba(0,40,35,.16) 58%, rgba(0,40,35,0) 100%),
      linear-gradient(180deg, rgba(0,34,30,.34) 0%, rgba(0,34,30,0) 46%);
  }
  .home-page .home-hero-image img { filter: saturate(1.06) contrast(1.02); object-position: 66% 50%; }

  /* Curved transition with a fine gold line */
  .home-page .home-hero::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; z-index: 3; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 390 64%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 34C70 8 150 12 230 34C300 52 350 42 390 22V64H0Z%22 fill=%22%23f8f7f2%22/%3E%3Cpath d=%22M0 28C70 2 150 6 230 28C300 46 350 36 390 16%22 fill=%22none%22 stroke=%22%23d2ae61%22 stroke-width=%221.6%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  }

  /* Tighter hero: copy sits higher, less empty photo below the search bar */
  .home-page .home-hero-overlay { padding: 26px 0 112px; }
  .home-page .home-copy::before {
    padding-top: 0; background: none; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-shadow: 0 1px 10px rgba(0,28,24,.5);
  }
  .home-page .home-copy h1 { margin: 12px 0 12px; font-size: clamp(32px, 9.6vw, 42px); line-height: 1.04; }
  .home-page .home-copy p { max-width: 32ch; margin-bottom: 20px; font-size: 15px; }

  /* Pill search bar: icon, input, round arrow button */
  .home-page .home-copy .search-bar {
    display: flex; align-items: center; gap: 0; width: 100%; min-height: 0; padding: 6px 6px 6px 18px; border-radius: 999px;
    background: rgba(255,252,246,.97); box-shadow: 0 16px 34px rgba(0,26,22,.30), 0 0 0 1px rgba(210,174,97,.35);
  }
  .home-page .home-copy .search-input {
    flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; gap: 12px;
  }
  .home-page .home-copy .search-button {
    flex: 0 0 48px; width: 48px; min-width: 48px; height: 48px; min-height: 48px; margin: 0; padding: 0; gap: 0;
    border-radius: 50%; font-size: 0; box-shadow: 0 8px 16px rgba(0,63,54,.32);
  }
  .home-page .home-copy .search-button svg { width: 21px; height: 21px; }

  /* Statistics: overlapping cream card, gold hairline, gold icons, dark green numbers */
  .home-page .home-reference-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); width: calc(100% - 40px); margin-top: -46px; padding: 18px 4px 16px; gap: 0;
    border-radius: 22px; border: 1px solid rgba(210,174,97,.40);
    background: linear-gradient(90deg, transparent, #d2ae61 50%, transparent) 50% 0 / 54% 2px no-repeat, #fffdf8;
    box-shadow: 0 18px 38px rgba(0,36,31,.16);
  }
  .home-page .home-reference-stat,
  .home-page .home-reference-stat:first-child, .home-page .home-reference-stat:last-child {
    grid-template-columns: 1fr; justify-items: center; align-content: start; gap: 8px; padding: 2px 3px; text-align: center; border: 0;
  }
  .home-page .home-reference-stat:nth-child(n+2) { border-left: 1px solid rgba(210,174,97,.32); }
  .home-page .home-reference-stat:nth-child(odd) { border-right: 0; }
  .home-page .home-reference-stat:nth-child(n+3) { border-top: 0; }
  .home-page .home-reference-stat-icon {
    position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 0; color: transparent;
    background: rgba(210,174,97,.18);
  }
  .home-page .home-reference-stat-icon::before {
    content: ""; position: absolute; inset: 11px; background: #b8872b;
    -webkit-mask: var(--stat-icon) center / contain no-repeat; mask: var(--stat-icon) center / contain no-repeat;
  }
  .home-page .home-reference-stat:nth-child(1) .home-reference-stat-icon { --stat-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect width=%2220%22 height=%2214%22 x=%222%22 y=%227%22 rx=%222%22/%3E%3Cpath d=%22M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16%22/%3E%3C/svg%3E"); }
  .home-page .home-reference-stat:nth-child(2) .home-reference-stat-icon { --stat-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z%22/%3E%3Cpath d=%22M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2%22/%3E%3Cpath d=%22M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2%22/%3E%3Cpath d=%22M10 6h4M10 10h4M10 14h4M10 18h4%22/%3E%3C/svg%3E"); }
  .home-page .home-reference-stat:nth-child(3) .home-reference-stat-icon { --stat-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M22 21v-2a4 4 0 0 0-3-3.87%22/%3E%3Cpath d=%22M16 3.13a4 4 0 0 1 0 7.75%22/%3E%3C/svg%3E"); }
  .home-page .home-reference-stat:nth-child(4) .home-reference-stat-icon { --stat-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%2222 7 13.5 15.5 8.5 10.5 2 17%22/%3E%3Cpolyline points=%2216 7 22 7 22 13%22/%3E%3C/svg%3E"); }
  .home-page .home-reference-stat strong { color: var(--ref-emerald); font-size: 28px; line-height: 1; }
  .home-page .home-reference-stat span { margin-top: 6px; color: #6b7773; font-size: 11px; line-height: 1.3; letter-spacing: 0; }

  /* Pull "Explore roles by industry" up */
  .home-page .home-reference-industries { padding: 26px 0 44px; }
}
@media (max-width: 374px) {
  .home-page .home-reference-stat span { font-size: 10px; }
  .home-page .home-reference-stat strong { font-size: 25px; }
}
@media (max-width: 720px) {
  .home-page .home-reference-stat-icon::before { inset: 0; margin: auto; width: 22px; height: 22px; }
}
@media (max-width: 400px) {
  .home-page .home-copy .search-input input { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .home-page .home-copy .search-input::after { display: none; }
}
@media (max-width: 420px) {
  .home-page .home-copy .search-input { gap: 8px; }
  .home-page .home-copy .search-input::after { margin-left: 2px; padding: 0 10px 0 26px; font-size: 13.5px; background-position: 7px center; }
}

/* ===== Round 8: phones only - no UAE selector in the search pill, slightly darker Dubai photo ===== */
@media (max-width: 720px) {
  /* Search pill: icon + input + round arrow button (no location label) */
  .home-page .home-copy .search-input::after { display: none; }
  .home-page .home-copy .search-input { gap: 12px; }
  .home-page .home-copy .search-input input { font-size: 16px; }

  /* Dubai photo a little darker, with a bit more shade behind the text */
  .home-page .home-hero-image img { filter: brightness(.82) saturate(1.06) contrast(1.05); }
  .home-page .home-hero::after {
    background:
      linear-gradient(90deg, rgba(0,38,33,.58) 0%, rgba(0,38,33,.26) 58%, rgba(0,38,33,.08) 100%),
      linear-gradient(180deg, rgba(0,32,28,.40) 0%, rgba(0,32,28,.06) 48%, rgba(0,32,28,.14) 100%);
  }
}

/* ===== Round 10: Login / Create Account - single Google button, tidy spacing, working Terms + Privacy links ===== */
.social-buttons { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 2px; }
.social-buttons button { min-height: 46px; font-size: 13px; }
.checkline > span { line-height: 1.5; }
.checkline a { color: var(--green, #003f36); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.checkline a:hover { color: var(--gold, #c9a455); }

/* ===== Round 11: phone menu gets Log in / Create Account for logged-out visitors (desktop header is unchanged) ===== */
.nav .nav-auth { display: none; }
.nav.nav-open .nav-auth {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; padding: 16px 0 12px;
  border-top: 1px solid rgba(210,174,97,.55);
}
.nav.nav-open .nav-auth a {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--ref-emerald, #003f36);
  border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; text-align: center;
}
.nav.nav-open .nav-auth a.nav-auth-login { background: transparent; color: var(--ref-emerald, #003f36); }
.nav.nav-open .nav-auth a.nav-auth-create {
  background: var(--ref-emerald, #003f36); color: #fff; box-shadow: 0 8px 18px rgba(0,63,54,.24);
}
.nav.nav-open .nav-auth a.nav-auth-create:active, .nav.nav-open .nav-auth a.nav-auth-login:active { transform: translateY(1px); }
.nav.nav-open > a:has(+ .nav-auth) { border-bottom: 0; }

/* ===== Round 12: Login / Create Account top banner (all screen sizes) + admin header logo ===== */
.auth-page { display: block; min-height: 0; background: var(--cream); }
.auth-page .auth-visual {
  position: relative; display: block; width: 100%; height: clamp(250px, 24vw, 340px); min-height: 0; align-self: auto; overflow: hidden; background: #0b3b33;
}
.auth-page .auth-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.auth-page .auth-visual-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; color: #fff;
  padding: 24px max(20px, calc((100% - 1320px) / 2)) 58px;
  background:
    linear-gradient(90deg, rgba(0,38,33,.74) 0%, rgba(0,38,33,.40) 46%, rgba(0,38,33,.04) 100%),
    linear-gradient(180deg, rgba(0,32,28,.22), rgba(0,32,28,0) 50%);
}
.auth-page .auth-visual-copy h1 { margin: 14px 0 10px; max-width: 16ch; color: #fff; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; text-shadow: 0 2px 18px rgba(0,28,24,.4); }
.auth-page .auth-visual-copy p { margin: 0; max-width: 38ch; color: #eef3ee; font-size: clamp(14px, 1.3vw, 17px); text-shadow: 0 1px 12px rgba(0,28,24,.5); }
.auth-page .auth-visual-copy .eyebrow, .auth-page .auth-visual-copy .eyebrow span { color: var(--gold, #d2ae61); }
.auth-page .auth-visual-copy .eyebrow i { background: var(--gold, #d2ae61); }
.auth-page .benefit-list { display: none; }
.auth-page .auth-card { position: relative; z-index: 2; justify-content: center; margin-top: -44px; padding: 0 20px 56px; }
.auth-page .auth-card form { width: min(620px, 100%); margin-inline: auto; box-shadow: 0 18px 44px rgba(10,50,40,.16); }
@media (max-width: 720px) {
  .auth-page .auth-visual { height: 270px; }
  .auth-page .auth-visual-copy { padding: 20px 20px 52px; }
  .auth-page .auth-visual-copy h1 { font-size: clamp(28px, 8.2vw, 34px); max-width: 14ch; }
  .auth-page .auth-visual-copy p { font-size: 14px; max-width: 30ch; }
  .auth-page .auth-card { margin-top: -34px; padding: 0 12px 40px; }
}

/* Admin header: Believe logo icon beside the wordmark */
.reference-admin-inner .reference-logo.reference-admin-brandlink { flex-direction: row; align-items: center; gap: 10px; width: auto; }
.reference-admin-logo-icon { width: 38px; height: 38px; flex: none; object-fit: contain; }
.reference-admin-brandtext { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.reference-admin-brandtext > span { font-family: "DM Serif Display", Georgia, serif; font-size: 24px; letter-spacing: .025em; line-height: 1; }
.reference-admin-brandtext small { font-size: 8.5px; letter-spacing: .21em; font-weight: 700; line-height: 1; white-space: nowrap; }
.auth-page .auth-visual-copy h1 { max-width: 22ch; font-size: clamp(30px, 3.1vw, 42px); }
.auth-page .auth-wordmark { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 12px; color: var(--gold, #d2ae61); }
@media (max-width: 720px) {
  .auth-page .auth-wordmark { display: none; }
  .auth-page .auth-visual-copy h1 { max-width: 16ch; font-size: clamp(28px, 8.2vw, 34px); }
}
.auth-page .auth-wordmark, .auth-page .auth-wordmark span { color: var(--gold, #d2ae61); opacity: 1; }
@media (max-width: 720px) {
  .auth-page .auth-visual-copy h1 { max-width: none; font-size: clamp(26px, 7.6vw, 32px); }
}
@media (max-width: 480px) {
  .reference-admin-logo-icon { width: 30px; height: 30px; }
  .reference-admin-inner .reference-logo.reference-admin-brandlink { gap: 7px; }
  .reference-admin-brandtext > span { font-size: 19px; }
  .reference-admin-brandtext small { font-size: 6.5px; letter-spacing: .15em; }
  .reference-admin-nav { gap: 12px; margin-left: 12px; }
  .reference-admin-nav a { white-space: nowrap; font-size: 12px; }
}
@media (max-width: 340px) {
  .reference-admin-logo-icon { width: 26px; height: 26px; }
  .reference-admin-brandtext > span { font-size: 17px; }
  .reference-admin-brandtext small { display: none; }
  .reference-admin-nav { gap: 9px; margin-left: 9px; }
  .reference-admin-nav a { font-size: 11px; }
}
@media (max-width: 480px) { .reference-admin-nav { gap: 10px; margin-left: 8px; } }
@media (max-width: 340px) { .reference-admin-nav { gap: 7px; margin-left: 5px; } .reference-admin-nav a { font-size: 10.5px; } }

/* ===== Round 13: narrower Login / Create Account boxes on phones ===== */
@media (max-width: 720px) {
  .auth-page .auth-card { padding: 0 24px 40px; }
  .auth-page .auth-card form { width: 100%; }
}

/* Mobile homepage breathing room (small, non-structural tweaks) */
@media (max-width: 480px) {
  .home-reference-stats { padding: 22px 8px 20px; }
  .home-reference-stat { padding: 2px 4px; gap: 10px; }
  .home-reference-industries { padding: 36px 0 54px; }
  .home-reference-industry-grid { gap: 14px; }
  .home-reference-industry-copy { padding: 18px 16px; gap: 14px; }
}

/* Phone spacing polish (light-touch): a little more breathing room, no layout changes */
@media (max-width: 720px) {
  .home-reference-industries { padding: 56px 0 52px; }
  .home-reference-industry-grid { gap: 14px; }
  .home-reference-industry-copy { padding: 18px 15px; }
  .home-reference-stats { padding: 22px 8px 20px; }
  .home-hero .home-copy { padding-bottom: 6px; }
  .site-footer .footer-main, .site-footer .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .site-footer .footer-main { padding-top: 22px; padding-bottom: 14px; }
  .site-footer .footer-bottom { padding-top: 14px; padding-bottom: 18px; }
}

/* Phone: stats box dark green (like the laptop version) + darker hero photo */
@media (max-width: 720px) {
  .home-page .home-reference-stats {
    background: linear-gradient(90deg, transparent, #d2ae61 50%, transparent) 50% 0 / 54% 2px no-repeat, rgba(0,61,53,.98);
    border: 1px solid rgba(240,212,133,.28);
    box-shadow: 0 16px 34px rgba(0,36,31,.28);
  }
  .home-page .home-reference-stat:nth-child(n+2) { border-left: 1px solid rgba(255,255,255,.22); }
  .home-page .home-reference-stat strong { color: #f0d485; }
  .home-page .home-reference-stat span { color: #e3ece7; }
  .home-page .home-reference-stat-icon { background: rgba(240,212,133,.10); box-shadow: inset 0 0 0 1px rgba(240,212,133,.55); }
  .home-page .home-reference-stat-icon::before { background: #f0d485; }
  .home-page .home-hero-image img { filter: brightness(.72) saturate(1.02) contrast(1.05); }
  .home-page .home-hero::after {
    background:
      linear-gradient(90deg, rgba(0,44,38,.68) 0%, rgba(0,44,38,.34) 58%, rgba(0,44,38,.16) 100%),
      linear-gradient(180deg, rgba(0,34,30,.40) 0%, rgba(0,34,30,.08) 48%, rgba(0,34,30,.18) 100%);
  }
}

/* Phone stats box: softer gold dividers and a little more room, blends with the green hero */
@media (max-width: 720px) {
  .home-page .home-reference-stats {
    border-radius: 20px;
    padding: 24px 6px 22px;
    background:
      linear-gradient(90deg, transparent, #d2ae61 50%, transparent) 50% 0 / 54% 2px no-repeat,
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%),
      #003d35;
  }
  .home-page .home-reference-stat:nth-child(n+2) { border-left: 1px solid rgba(240,212,133,.22); }
  .home-page .home-reference-stat span { color: #d9e6df; }
}

/* Phone: stats box white (blends with the cream page) + more space below it so "Explore roles by industry" is not cramped */
@media (max-width: 720px) {
  .home-page .home-reference-stats {
    background:
      linear-gradient(90deg, transparent, #d2ae61 50%, transparent) 50% 0 / 54% 2px no-repeat,
      #ffffff;
    border: 1px solid rgba(210,174,97,.40);
    box-shadow: 0 16px 36px rgba(0,36,31,.18);
  }
  .home-page .home-reference-stat:nth-child(n+2) { border-left: 1px solid rgba(210,174,97,.34); }
  .home-page .home-reference-stat strong { color: var(--ref-emerald, #003f36); }
  .home-page .home-reference-stat span { color: #5f6e69; }
  .home-page .home-reference-stat-icon { background: rgba(210,174,97,.18); box-shadow: none; }
  .home-page .home-reference-stat-icon::before { background: #b8872b; }

  /* Space after the box */
  .home-page .home-reference-industries { padding: 52px 0 52px; }
}

/* Phone: slightly smaller hero sentence + slightly narrower search bar */
@media (max-width: 720px) {
  .home-page .home-copy p { font-size: 13.5px; line-height: 1.5; max-width: 34ch; }
  .home-page .home-copy .search-bar { width: 91%; }
}

/* Phone: hero text block sits a little lower; spacing re-balanced so the search bar still clears the curve */
@media (max-width: 720px) {
  .home-page .home-hero-overlay { padding: 48px 0 108px; }
  .home-page .home-copy h1 { margin: 14px 0 14px; }
  .home-page .home-copy p { margin-bottom: 24px; }
}

/* Phone: hero text block a little lower, slightly smaller heading + tagline; bottom space reduced so total hero height stays the same */
@media (max-width: 720px) {
  .home-page .home-hero-overlay { padding: 44px 0 94px; }
  .home-page .home-copy::before { font-size: 9.5px; letter-spacing: .2em; }
  .home-page .home-copy h1 { margin: 12px 0 12px; font-size: clamp(28px, 8.4vw, 37px); }
}

/* Jobs page: Clear All button under "No Jobs Found" */
.jobs-page .jobs-empty .jobs-empty-clear { margin-top: 16px; }
