/* Masaa v5 — approved reference theme: Himmat Tuwaiq */
:root{
  --ref-green:#075a49;
  --ref-green-dark:#06493d;
  --ref-ink:#173d34;
  --ref-muted:#71847c;
  --ref-bg:#f6f8f5;
  --ref-card:#ffffff;
  --ref-line:#e3ebe6;
  --ref-mint:#eaf5ef;
  --ref-yellow:#f4b51d;
}
html,body{background:var(--ref-bg)!important;color:var(--ref-ink)!important}
body{font-size:14px!important}
.topbar{background:#fff!important;border-bottom:1px solid #e6ece8!important;box-shadow:none!important;backdrop-filter:none!important}
.topbar-inner{max-width:1180px!important;height:54px!important;padding:0 18px!important;gap:18px!important}
.brand{min-width:138px!important;gap:4px!important}.brand-wordmark-wrap{height:31px!important}.brand-wordmark{height:30px!important}.brand-tagline{font-size:.58rem!important;margin-inline-start:-6px!important;margin-top:24px!important;color:#42675c!important}
.main-nav{gap:30px!important}.main-nav a{padding:18px 0!important;font-size:.74rem!important;font-weight:800!important;color:#324e45!important}.main-nav a.active::after{bottom:7px!important;width:5px!important;height:5px!important;background:var(--ref-yellow)!important}
.header-actions{gap:8px!important}.header-cta,.header-link{height:34px!important;border-radius:7px!important;padding:0 13px!important;font-size:.68rem!important}.header-cta{background:var(--ref-green)!important}.header-link{background:#fff!important;border-color:#cbdad3!important;color:#264d42!important}

/* hero = same structure and proportions as the approved reference */
.hero-shell{max-width:1180px!important;padding:0 18px!important;margin:0 auto!important}
.hero{min-height:290px!important;height:290px!important;padding:0 18px 14px!important;grid-template-columns:minmax(0,1fr) 214px!important;grid-template-rows:1fr auto!important;grid-template-areas:"copy filters" "search filters"!important;background:#edf4f0!important;overflow:hidden!important}
.tuwaiq-hero-art{height:100%!important;object-position:center 49%!important;opacity:.92!important;filter:saturate(.80) brightness(1.07) contrast(.95)!important}
.hero::before{background:linear-gradient(90deg,rgba(248,251,249,.92) 0%,rgba(248,251,249,.74) 34%,rgba(248,251,249,.18) 68%,rgba(248,251,249,.28) 100%)!important}
.hero::after{height:44px!important;background:linear-gradient(180deg,transparent,rgba(248,251,249,.96))!important}
.hero-copy{align-self:start!important;justify-self:center!important;width:min(100%,600px)!important;padding:18px 20px 0!important;max-width:600px!important;text-align:center!important}
.hero h1{font-size:clamp(2.55rem,4.25vw,3.75rem)!important;line-height:.91!important;letter-spacing:-.045em!important;margin:0 0 7px!important;color:#064f40!important;text-shadow:none!important}
.hero-copy>p{max-width:590px!important;font-size:.70rem!important;line-height:1.68!important;font-weight:600!important;color:#49665d!important;margin:0 auto!important}
.hero-filter-card{align-self:center!important;width:100%!important;padding:12px!important;border-radius:11px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 7px 20px rgba(25,70,56,.09)!important;border-color:#dce7e2!important}
.hero-filter-head{margin-bottom:7px!important}.hero-filter-head h3{font-size:.80rem!important}.hero-filter-field{gap:3px!important;margin-top:6px!important}.hero-filter-field>span{font-size:.58rem!important}.hero-filter-field select{height:34px!important;border-radius:6px!important;font-size:.62rem!important}
.hero-filter-actions{gap:6px!important;margin-top:8px!important}.hero-filter-actions button{height:34px!important;border-radius:6px!important;font-size:.62rem!important}.hero-filter-card .hero-meta{margin-top:7px!important;padding-top:7px!important}.hero-filter-card .hero-meta span{font-size:.45rem!important}
.search-panel{padding-inline:86px 6px!important;margin:0!important;align-self:end!important}.search-main{grid-template-columns:minmax(0,1fr) 72px 74px!important;gap:6px!important;padding:5px!important;border-radius:9px!important;box-shadow:0 6px 18px rgba(27,72,59,.08)!important}.searchbox,.search-action,.filter-open{height:38px!important;border-radius:6px!important}.searchbox{padding:0 10px!important}.searchbox input{font-size:.65rem!important}.search-action,.filter-open{font-size:.63rem!important}
.chips{margin:6px -80px 0 0!important;gap:5px!important}.chips button{padding:5px 8px!important;font-size:.55rem!important;border-radius:999px!important;box-shadow:none!important}.chips button i{font-size:.66rem!important}
.filter-status{margin:5px -80px 0 0!important;font-size:.56rem!important;padding:5px 7px!important}

/* row 2 */
.dashboard-top-grid{grid-template-columns:.92fr 1.08fr!important;gap:10px!important;margin-top:9px!important}
.regions-card,.source-hub{border-radius:10px!important;padding:12px!important;min-height:172px!important;box-shadow:none!important}
.regions-card{grid-template-columns:.8fr 1.2fr!important;grid-template-rows:auto 1fr!important;gap:7px 10px!important}.regions-card .map-topline{font-size:.72rem!important}.regions-card .map-visual{grid-row:2!important;max-width:160px!important}.regions-card .map-cities{grid-row:2!important;align-content:center!important}.featured-city-buttons{gap:6px!important}.featured-city-buttons button,.city-more-toggle{border-radius:6px!important;padding:7px 5px!important;font-size:.59rem!important}.city-more-wrap{margin-top:6px!important}
.source-hub-head{margin-bottom:8px!important}.source-hub-head h2{font-size:.80rem!important}.source-hub-head p{font-size:.54rem!important;line-height:1.5!important}.source-hub-grid{grid-template-columns:repeat(4,1fr)!important;gap:6px!important}.source-hub-card{min-height:54px!important;border-radius:7px!important;padding:7px!important}.source-hub-card strong{font-size:.60rem!important}.source-hub-card small{font-size:.46rem!important;line-height:1.35!important}.source-hub-icon{width:27px!important;height:27px!important;border-radius:7px!important}.source-hub-note{display:none!important}

/* pulse block compressed like reference */
.content-shell{max-width:1180px!important;margin-left:auto!important;margin-right:auto!important}
.pulse{margin-top:10px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.pulse-head{padding:8px 0 9px!important;align-items:flex-end!important}.pulse-head h2{font-size:1.38rem!important;line-height:1.1!important;margin:2px 0 3px!important}.pulse-head p{font-size:.62rem!important;line-height:1.55!important;max-width:780px!important}.section-label{font-size:.58rem!important}.live-pill{font-size:.57rem!important;padding:5px 9px!important}
.metrics-grid{grid-template-columns:repeat(4,1fr)!important;gap:8px!important}.metrics-grid article{min-height:82px!important;padding:10px!important;border-radius:9px!important;box-shadow:none!important}.metrics-grid article:nth-child(n+5){display:none!important}.metrics-grid article i{font-size:1.05rem!important}.metrics-grid article strong{font-size:1.18rem!important}.metrics-grid article span{font-size:.56rem!important}.metrics-grid article small{font-size:.47rem!important}
.insight-grid{grid-template-columns:1.1fr .9fr!important;gap:8px!important;margin-top:8px!important}.city-panel,.company-panel{border-radius:9px!important;padding:10px!important;min-height:116px!important}.panel-head h3{font-size:.68rem!important}.city-bars{min-height:68px!important}.company-grid{gap:5px!important}

/* matcher + jobs in the same dense lower row */
.dashboard-lower-grid{max-width:1180px!important;margin:9px auto 0!important;padding:0!important;grid-template-columns:.87fr 1.13fr!important;gap:9px!important;align-items:stretch!important}.dashboard-lower-grid .content-shell{margin:0!important;max-width:none!important}
.matcher,.results{border-radius:10px!important;border:1px solid var(--ref-line)!important;background:#fff!important;box-shadow:none!important;padding:12px!important}.matcher{display:grid!important;grid-template-columns:.9fr 1.1fr!important;gap:10px!important;align-items:center!important}.matcher .section-intro{padding:0!important}.matcher .section-intro h2{font-size:.82rem!important;line-height:1.35!important;margin:3px 0 4px!important}.matcher .section-intro p{font-size:.54rem!important;line-height:1.55!important}.privacy-note{font-size:.50rem!important;margin-top:5px!important}.upload-card{padding:0!important}.dropzone{min-height:92px!important;padding:9px!important;border-radius:8px!important;grid-template-columns:34px 1fr auto!important}.dropzone strong{font-size:.64rem!important}.dropzone small{font-size:.48rem!important}.resume-icon{width:32px!important;height:32px!important}.upload-cta{font-size:.56rem!important;padding:7px 9px!important;border-radius:6px!important}
.results-head{margin-bottom:7px!important}.results-head h2{font-size:.78rem!important}.sort-note{font-size:.52rem!important}.jobs-grid{grid-template-columns:repeat(3,1fr)!important;gap:6px!important}.job-card{padding:8px!important;border-radius:8px!important;min-height:94px!important;box-shadow:none!important}.job-card h3{font-size:.67rem!important}.job-card p,.job-card span,.job-card small{font-size:.49rem!important}

.tracker,.sources,.rights{border-radius:10px!important;box-shadow:none!important}.site-footer{margin-top:18px!important}

/* visual account shortcut, functional: scrolls to tracked applications */
.mobile-tracker-link{display:none}

@media(max-width:820px){
  body{padding-bottom:78px!important;background:#f7f9f7!important}
  .topbar{position:sticky!important}.topbar-inner{height:60px!important;padding:0 12px!important;grid-template-columns:38px 1fr 38px!important;grid-template-areas:"menu brand tracker"!important}.mobile-menu-toggle{grid-area:menu!important;width:34px!important;height:34px!important;background:transparent!important}.brand{grid-area:brand!important}.brand-wordmark{height:30px!important}.mobile-tracker-link{grid-area:tracker;display:grid!important;place-items:center;width:34px;height:34px;border-radius:50%;background:#f7faf8;color:#173f34;text-decoration:none;border:1px solid #edf1ef}.mobile-tracker-link .bi-svg{width:16px;height:16px}
  .hero-shell{padding:0!important}.hero{height:auto!important;min-height:0!important;padding:0 10px 10px!important;background:#eff5f1!important;overflow:hidden!important;display:flex!important}.tuwaiq-hero-art{height:205px!important;object-position:center 46%!important}.hero::before{height:215px!important;background:linear-gradient(180deg,rgba(248,251,249,.18),rgba(248,251,249,.42) 56%,rgba(248,251,249,.92) 100%)!important}.hero-copy{min-height:205px!important;padding:21px 12px 8px!important;align-items:flex-end!important;justify-content:flex-start!important}.hero h1{font-size:2.25rem!important;line-height:.95!important;max-width:225px!important;text-align:right!important;margin:0 0 8px!important}.hero-copy>p{font-size:.60rem!important;line-height:1.62!important;max-width:310px!important;margin:0!important;text-align:right!important;color:#35564c!important}.search-panel{padding:0!important}.search-main{grid-template-columns:42px minmax(0,1fr) 42px!important;min-height:52px!important;padding:4px!important;border-radius:9px!important}.search-action,.searchbox,.filter-open{height:42px!important}.search-action,.filter-open{width:42px!important;min-width:42px!important}.searchbox input{font-size:.60rem!important}.chips{margin:7px 0 0!important;gap:5px!important}.chips button{padding:5px 8px!important;font-size:.54rem!important}.chips button:nth-child(n+5){display:none!important}.filter-status{margin:5px 0 0!important}
  .dashboard-top-grid{margin:8px 10px 0!important;gap:8px!important}.regions-card{padding:11px!important;border-radius:9px!important}.regions-card .map-topline{font-size:.72rem!important;margin-bottom:8px!important}.featured-city-buttons{gap:5px!important}.featured-city-buttons button{flex:1 0 72px!important;padding:7px 8px!important;font-size:.57rem!important}.source-hub{display:none!important}
  main{display:flex!important;flex-direction:column!important}.hero-shell{order:1!important}.dashboard-lower-grid{order:2!important}.pulse{order:3!important}.growth-links{order:4!important}.tracker{order:5!important}.sources{order:6!important}.growth-faq{order:7!important}.rights{order:8!important}.back-to-top{order:9!important}
  .dashboard-lower-grid{display:flex!important;flex-direction:column!important;margin:8px 10px 0!important;gap:8px!important}.dashboard-lower-grid .results{order:1!important}.dashboard-lower-grid .matcher{order:2!important}.results,.matcher{padding:10px!important;border-radius:9px!important}.results-head{margin-bottom:5px!important}.jobs-grid{grid-template-columns:1fr!important;gap:6px!important}.job-card{min-height:auto!important;padding:9px!important}.matcher{display:block!important}.matcher .section-intro{padding:0 0 7px!important}.dropzone{min-height:80px!important}
  .pulse{margin:8px 10px 0!important}.pulse-head{padding:8px 0!important}.pulse-head h2{font-size:1.0rem!important}.pulse-head p{font-size:.58rem!important}.metrics-grid{grid-template-columns:repeat(2,1fr)!important;gap:6px!important}.metrics-grid article{min-height:72px!important}.insight-grid{grid-template-columns:1fr!important}.company-panel{display:none!important}
  .tracker,.sources,.rights{margin-left:10px!important;margin-right:10px!important}
  .mobile-dock{right:10px!important;left:10px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;border-radius:15px!important;padding:3px!important;box-shadow:0 10px 26px rgba(20,62,49,.12)!important}.mobile-dock a{padding:7px 3px!important;font-size:.56rem!important}.mobile-dock a .bi-svg{width:17px!important;height:17px!important}
}
@media(max-width:390px){
  .hero h1{font-size:2.10rem!important}.hero-copy{padding-inline:10px!important}.hero-copy>p{font-size:.58rem!important}.chips button{font-size:.51rem!important}.featured-city-buttons button{flex-basis:68px!important}.job-card h3{font-size:.64rem!important}
}
@media(max-width:820px){
  .dashboard-top-grid{grid-template-columns:1fr!important;width:auto!important}
  .dashboard-top-grid>.regions-card{width:100%!important;max-width:none!important;min-width:0!important}
  .regions-card .map-cities{display:flex!important;overflow-x:auto!important;gap:5px!important;width:100%!important}
  .regions-card .map-cities>button{flex:0 0 74px!important;min-width:74px!important}
}
@media(max-width:820px){
  .regions-card{min-height:auto!important}
}
@media(max-width:820px){
  main,.hero-shell{width:100%!important;max-width:100%!important;min-width:0!important}
  .hero-shell{margin:0!important}
  .featured-city-buttons{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;width:100%!important;max-width:100%!important}
  .featured-city-buttons>button{flex:0 0 74px!important;width:74px!important;min-width:74px!important}
}
@media(max-width:360px){
  .hero h1{font-size:1.92rem!important}
  .hero-copy>p{font-size:.54rem!important}
  .search-main{grid-template-columns:38px minmax(0,1fr) 38px!important}
  .search-action,.filter-open{width:38px!important;min-width:38px!important}
  .chips button{padding-inline:7px!important}
}
@media(max-width:820px){
  .job-card{gap:7px!important;padding:9px 10px!important;border-radius:9px!important}
  .job-status-row{min-height:18px!important}.availability,.closing{font-size:.55rem!important}.job-status-row>div{gap:5px!important}
  .job-head{grid-template-columns:38px 1fr!important;gap:8px!important}.company-icon{width:38px!important;height:38px!important;border-radius:9px!important;font-size:.82rem!important}.badges{gap:4px!important;margin-bottom:3px!important}.badge{padding:3px 6px!important;font-size:.48rem!important}.job-card h3{font-size:.68rem!important;line-height:1.35!important}.company{font-size:.53rem!important}.meta{gap:4px!important}.meta span{padding:4px 6px!important;font-size:.48rem!important}.summary,.evidence,.official,.reason{display:none!important}.card-foot{display:block!important}.job-actions{display:grid!important;grid-template-columns:minmax(86px,.85fr) 36px minmax(110px,1.15fr)!important;gap:5px!important;width:100%!important}.track-select,.apply,.share-job{min-height:36px!important;height:36px!important;border-radius:8px!important}.track-select{font-size:.54rem!important;padding:0 6px!important}.apply{grid-column:auto!important;font-size:.54rem!important;padding:0 7px!important}.share-job{width:36px!important;min-width:36px!important}
}
/* v5.2 audit fix: keep Arabic hero ascenders fully inside the clipped desktop hero */
@media(min-width:821px){
  .hero{height:302px!important;min-height:302px!important}
  .hero-copy{padding-top:32px!important}
}

/* v5.6 mobile overlap + metrics clipping hotfix */
@media(max-width:820px){
  /* Reserve extra breathing room below long content so the fixed dock never hides the final controls. */
  body{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
  main{padding-bottom:28px!important}
  .site-footer{padding-bottom:calc(98px + env(safe-area-inset-bottom))!important}

  /* The reference theme compressed these cards too far on phones (72px), causing the value to sit under the icon. */
  .metrics-grid article{
    min-height:116px!important;
    padding:54px 14px 13px!important;
    overflow:hidden!important;
    direction:rtl!important;
    text-align:right!important;
    justify-content:flex-end!important;
    align-items:stretch!important;
  }
  .metrics-grid article>i{
    top:12px!important;
    right:14px!important;
    width:38px!important;
    height:38px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:12px!important;
    background:#edf7f2!important;
    border:1px solid #deece5!important;
    z-index:2!important;
  }
  .metrics-grid article>i .bi-svg{width:20px!important;height:20px!important}
  .metrics-grid article strong{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    position:relative!important;
    z-index:1!important;
    font-size:1.28rem!important;
    line-height:1.05!important;
    text-align:right!important;
    overflow:visible!important;
  }
  .metrics-grid article span{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-top:7px!important;
    font-size:.61rem!important;
    line-height:1.55!important;
    text-align:right!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  .mobile-dock{
    bottom:max(8px,env(safe-area-inset-bottom))!important;
  }
}
@media(max-width:390px){
  .metrics-grid article{min-height:112px!important;padding:52px 12px 12px!important}
  .metrics-grid article>i{right:12px!important}
}

/* v5.9 — mobile Masaa Pulse cards: keep metric value fully visible */
@media(max-width:820px){
  .metrics-grid article{
    min-height:120px!important;
    padding:14px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    grid-template-rows:auto 1fr auto!important;
    column-gap:10px!important;
    row-gap:4px!important;
    align-items:start!important;
    justify-content:stretch!important;
    direction:rtl!important;
    text-align:right!important;
    overflow:hidden!important;
  }
  .metrics-grid article>i{
    position:static!important;
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:start!important;
    width:40px!important;
    height:40px!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
    border-radius:12px!important;
    background:#edf7f2!important;
    border:1px solid #deece5!important;
    color:#0d755a!important;
    z-index:2!important;
  }
  .metrics-grid article>i .bi-svg{width:20px!important;height:20px!important}
  .metrics-grid article strong{
    grid-column:1!important;
    grid-row:1!important;
    align-self:center!important;
    justify-self:stretch!important;
    display:block!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    position:static!important;
    z-index:1!important;
    font-size:1.42rem!important;
    line-height:1.05!important;
    text-align:right!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  .metrics-grid article span{
    grid-column:1 / -1!important;
    grid-row:3!important;
    display:block!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    font-size:.63rem!important;
    line-height:1.55!important;
    text-align:right!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
  .metrics-grid article::after{pointer-events:none!important;z-index:0!important}
}
@media(max-width:390px){
  .metrics-grid article{min-height:116px!important;padding:12px!important;grid-template-columns:minmax(0,1fr) 38px!important;column-gap:8px!important}
  .metrics-grid article>i{width:38px!important;height:38px!important}
  .metrics-grid article strong{font-size:1.32rem!important}
  .metrics-grid article span{font-size:.60rem!important}
}

/* v5.9 — mobile dock should never sit over content while the user is reading downward. */
@media(max-width:820px){
  .mobile-dock{
    transition:transform .2s ease, opacity .2s ease!important;
    will-change:transform,opacity;
  }
  .mobile-dock.dock-hidden{
    transform:translateY(calc(100% + 26px))!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  body{padding-bottom:calc(124px + env(safe-area-inset-bottom))!important}
  .site-footer{padding-bottom:calc(108px + env(safe-area-inset-bottom))!important}
}


/* v6.0 — إصلاحات الجوال والتعريب */
@media(max-width:820px){
  html,body{max-width:100%!important;overflow-x:hidden!important}
  body{padding-bottom:calc(132px + env(safe-area-inset-bottom))!important}
  main{padding-bottom:42px!important}
  section[id],#top{scroll-margin-top:72px!important}
  .hero{overflow:hidden!important;padding-bottom:12px!important}
  .tuwaiq-hero-art{height:232px!important;object-position:center 52%!important}
  .hero::before{height:242px!important}
  .hero-copy{min-height:232px!important;padding:28px 16px 14px!important;overflow:visible!important}
  .hero h1{font-size:2.34rem!important;line-height:1.04!important;max-width:270px!important;margin:0 0 10px!important;overflow:visible!important}
  .hero-copy>p{font-size:.66rem!important;line-height:1.72!important;max-width:340px!important}
  .search-panel,.search-main,.searchbox,.filter-status,.dashboard-top-grid,.regions-card,.results,.job-card{min-width:0!important;max-width:100%!important}
  .filter-status{overflow:hidden!important;overflow-wrap:anywhere!important}
  .filter-status>*{min-width:0!important;max-width:100%!important}
  .regions-card{overflow:hidden!important}
  .regions-card .map-cities,.featured-city-buttons{max-width:100%!important;min-width:0!important;scrollbar-width:none!important}
  .regions-card .map-cities::-webkit-scrollbar,.featured-city-buttons::-webkit-scrollbar{display:none!important}
  .job-head>div,.job-card .meta,.job-card .badges,.card-foot,.job-actions{min-width:0!important;max-width:100%!important}
  .job-card h3,.company,.meta span,.badge{overflow-wrap:anywhere!important}
  .job-actions{grid-template-columns:minmax(0,.82fr) 36px minmax(0,1.18fr)!important}
  .track-select,.apply{min-width:0!important;width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .mobile-dock{height:70px!important;bottom:max(10px,env(safe-area-inset-bottom))!important}
  .site-footer{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
}
@media(max-width:390px){
  .hero-copy{min-height:224px!important;padding-inline:14px!important}
  .hero h1{font-size:2.22rem!important;max-width:250px!important}
  .hero-copy>p{font-size:.63rem!important}
  .job-actions{grid-template-columns:minmax(0,.78fr) 34px minmax(0,1.22fr)!important}
  .share-job{width:34px!important;min-width:34px!important}
}
