/* V139: larger, consistently aligned document previews. */
.media-featured-grid-v72 .media-featured-card-v72{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:300px minmax(0,1fr)!important}
.media-featured-brochure-v137 .media-featured-art-v72{background:#e5f2e8!important}
.media-featured-jordan-v137 .media-featured-art-v72{background:#f4ecdf!important}
.media-featured-brochure-v137 .media-featured-art-v72::after,
.media-featured-jordan-v137 .media-featured-art-v72::after{display:none}
.media-featured-art-v72 .resource-cover-v139{position:relative;display:block;overflow:hidden;margin:auto;min-width:0;min-height:0}
.media-featured-art-v72 .resource-cover-brochure-v139{width:92%;height:92%}
.media-featured-art-v72 .resource-cover-brochure-v139 img{padding:0!important;object-fit:contain!important}
/* The original Journey PDF preview includes printer marks and page margins.
   This frame displays the complete artwork rectangle (x61,y62 to x495,y638
   in its 505x700 preview) without modifying the downloadable PDF or image. */
.media-featured-art-v72 .resource-cover-jordan-v139{height:276px;width:208px;max-width:92%;box-shadow:0 8px 20px rgba(67,45,20,.12)}
.media-featured-jordan-v137 .media-featured-art-v72 .resource-cover-jordan-v139 img{position:absolute;left:-14.055%;top:-10.764%;width:116.36%!important;height:121.528%!important;max-width:none!important;max-height:none!important;padding:0!important;object-fit:fill!important}
#media-asset-collection{scroll-margin-top:170px}
@media(max-width:640px){
 .media-featured-grid-v72 .media-featured-card-v72{grid-template-rows:250px minmax(0,1fr)!important}
 .media-featured-art-v72 .resource-cover-jordan-v139{height:226px;width:170.3px}
 #media-asset-collection{scroll-margin-top:235px}
}

/* V141: keep the complete mobile utility bar on one horizontal line. */
@media(max-width:640px){
  .site-header .utility-bar .utility-inner,
  .site-header .utility-bar .utility-right{direction:ltr!important}
  .utility-bar .utility-inner{
    width:min(100%,96vw)!important;
    min-height:52px!important;
    justify-content:center!important;
    flex-wrap:nowrap!important;
    column-gap:clamp(6px,2.2vw,10px)!important;
  }
  .utility-bar .utility-left.language-switch{
    display:flex!important;
    flex:0 0 auto!important;
    min-width:0!important;
  }
  .utility-bar .lang-pair{
    flex-wrap:nowrap!important;
    gap:2px!important;
  }
  .utility-bar .lang-pair a{
    min-width:38px!important;
    min-height:44px!important;
  }
  .utility-bar .utility-right{
    width:auto!important;
    min-width:0!important;
    flex:0 1 auto!important;
    justify-content:center!important;
    flex-wrap:nowrap!important;
    gap:clamp(6px,2vw,10px)!important;
  }
  .utility-bar .utility-right>a[href*="farah.aqabavegoil.com"],
  .utility-bar .utility-right>a[href*="goscan.org"]{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    font-size:clamp(.64rem,2.7vw,.76rem)!important;
  }
  .utility-right .site-search-trigger{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
}

/* V142 staged: keep the language switcher and essential utility actions on
   one mobile row, with the two groups separated across the available width.
   Also remove the obsolete 100px footer-bottom reserve while retaining enough
   clearance for the fixed back-to-top control. */
@media(max-width:640px){
  .utility-bar .utility-inner{
    width:min(100%,92vw)!important;
    min-height:56px!important;
    justify-content:space-between!important;
    flex-wrap:nowrap!important;
    gap:clamp(24px,8vw,52px)!important;
  }
  .utility-bar .utility-left.language-switch{
    flex:0 0 auto!important;
  }
  .utility-bar .lang-pair a{
    min-width:34px!important;
  }
  .utility-bar .utility-right{
    flex:0 0 auto!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:clamp(6px,2vw,10px)!important;
  }
  .footer .footer-bottom{
    padding-bottom:62px!important;
  }
}

/* V142 staged: bilingual document landing pages provide an HTML share target
   with the established site-wide social image before opening the PDF file. */
.document-share-hero-v142{padding:clamp(54px,8vw,96px) 0}
.document-share-hero-grid-v142{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.86fr);gap:clamp(32px,6vw,72px);align-items:center}
.document-share-hero-v142 .kicker{display:block;margin:20px 0 8px}
.document-share-actions-v142{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.document-share-visual-v142{margin:0;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 22px 54px rgba(0,74,48,.18)}
.document-share-visual-v142 img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover}
@media(max-width:820px){
  .document-share-hero-grid-v142{grid-template-columns:1fr}
  .document-share-visual-v142{max-width:620px}
}
@media(max-width:520px){
  .document-share-actions-v142 .btn{width:100%;justify-content:center;text-align:center}
}

/* V143: explicitly override the inherited mobile column layout. */
@media(max-width:640px){
  .utility-bar .utility-inner{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    padding:4px 0!important;
    row-gap:0!important;
  }
  /* Align wrapped legal links with the contact column in each language. */
  .footer .footer-bottom > span:first-child,
  .footer .footer-bottom .policy-links-v16,
  .footer .footer-bottom .policy-links-v16 a,
  .footer .footer-bottom .policy-links-v16 .cookie-settings-link-v48 {
    text-align: start !important;
  }
  .footer .footer-bottom .policy-links-v16 {
    justify-content: flex-start !important;
  }
  .footer .footer-bottom{padding-bottom:0!important}
  .footer .footer-bottom.footer-has-top-v143{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 46px!important;
    align-items:center!important;
    column-gap:12px!important;
  }
  .footer-has-top-v143>span:first-child{grid-column:1 / -1!important}
  .footer .footer-has-top-v143 .policy-links-v16{
    grid-column:1!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  .footer .footer-has-top-v143 .policy-links-v16 a,
  .footer .footer-has-top-v143 .policy-links-v16 .cookie-settings-link-v48{
    white-space:normal!important;
  }
  .footer-bottom>.back-to-top-v130.footer-docked-v143{
    position:static!important;
    grid-column:2!important;
    grid-row:2!important;
    justify-self:end!important;
    align-self:center!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    padding:0!important;
    margin:0!important;
    transform:none!important;
  }
}

/* V144: let policy grid items shrink around horizontally scrollable tables. */
.policies-stack-v3,.policies-stack-v3 > .policy-card-v3{min-width:0;max-width:100%}
.policies-stack-v3 > .policy-card-v3{overflow-wrap:anywhere}
.policy-table-wrap-v141{max-width:100%}
