/* Authoritative final desktop treatment matching the approved visual mockup. */
@media (min-width:901px){
  :root{--jmf-approved-header:82px;--jmf-approved-red:#e21d3a;--jmf-approved-navy:#041f47;}
  html{scroll-padding-top:var(--jmf-approved-header)!important;}
  html body{padding-top:var(--jmf-approved-header)!important;margin:0!important;}

  /* One identical, compact, fixed header on every desktop page. */
  html body .jmf-header{
    position:fixed!important;inset:0 0 auto 0!important;
    width:100%!important;height:var(--jmf-approved-header)!important;min-height:var(--jmf-approved-header)!important;
    margin:0!important;padding:0 22px!important;box-sizing:border-box!important;
    display:flex!important;align-items:center!important;
    background:#fff!important;border:0!important;border-bottom:1px solid rgba(4,31,71,.12)!important;
    box-shadow:0 2px 8px rgba(4,31,71,.045)!important;overflow:visible!important;z-index:999999!important;
  }
  html body .jmf-logo-link{
    display:flex!important;position:absolute!important;left:22px!important;top:50%!important;transform:translateY(-50%)!important;
    width:292px!important;height:68px!important;margin:0!important;padding:0 0 7px!important;
    align-items:center!important;justify-content:flex-start!important;box-sizing:border-box!important;border:0!important;
  }
  html body .jmf-logo-link:after{
    content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;
    height:2px!important;background:var(--jmf-approved-red)!important;
  }
  html body .jmf-header .jmf-logo{
    display:block!important;width:292px!important;max-width:292px!important;height:auto!important;max-height:58px!important;
    object-fit:contain!important;object-position:left center!important;margin:0!important;padding:0!important;
  }
  html body .jmf-nav{
    position:absolute!important;left:50%!important;top:0!important;transform:translateX(-50%)!important;
    width:max-content!important;height:var(--jmf-approved-header)!important;margin:0!important;padding:0!important;
    display:flex!important;align-items:stretch!important;justify-content:center!important;gap:clamp(24px,2.55vw,46px)!important;overflow:visible!important;
  }
  html body .jmf-nav-item{height:100%!important;display:flex!important;align-items:stretch!important;}
  html body .jmf-nav-link{height:100%!important;display:flex!important;align-items:center!important;padding:0!important;line-height:1!important;}
  html body .jmf-dropdown-menu{top:calc(var(--jmf-approved-header) - 1px)!important;}
  html body .jmf-header-actions{
    position:absolute!important;right:22px!important;top:50%!important;transform:translateY(-50%)!important;
    height:auto!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;
  }
  html body .jmf-quote{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;
    margin:0!important;padding:12px 22px!important;line-height:1!important;box-sizing:border-box!important;visibility:visible!important;opacity:1!important;
  }

  /* No historical blank offsets: every page begins exactly at the header edge. */
  html body>main,html body.interior-page>main,html body>main[style]{
    position:relative!important;top:auto!important;left:auto!important;margin:0!important;padding:0!important;transform:none!important;
    width:100%!important;max-width:none!important;
  }
  html body.interior-page>main>section:first-child,
  html body.interior-page .jmf-mockup-leader{
    position:relative!important;top:auto!important;margin:0!important;transform:none!important;border-top:0!important;
  }

  /* Approved split leader panel: navy copy field on left, exact mockup photo on right. */
  html body.interior-page .jmf-mockup-leader{
    height:300px!important;min-height:300px!important;max-height:300px!important;
    padding:0!important;display:flex!important;align-items:center!important;overflow:hidden!important;
    background:#031d43!important;isolation:isolate!important;box-sizing:border-box!important;
  }
  html body.interior-page .jmf-mockup-leader:before{
    content:""!important;display:block!important;position:absolute!important;z-index:-2!important;
    top:0!important;right:0!important;bottom:0!important;left:45%!important;
    background-image:var(--jmf-leader-photo)!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
    opacity:1!important;pointer-events:none!important;
  }
  html body.interior-page .jmf-mockup-leader:after{
    content:""!important;display:block!important;position:absolute!important;z-index:-1!important;inset:0!important;
    background:linear-gradient(90deg,#031d43 0%,#031d43 39%,rgba(3,29,67,.93) 48%,rgba(3,29,67,.42) 63%,rgba(3,29,67,.06) 100%)!important;
    pointer-events:none!important;
  }
  html body.interior-page .jmf-mockup-leader .products-hero-ink{display:none!important;}
  html body.interior-page .jmf-mockup-leader .products-hero-inner,
  html body.interior-page .jmf-mockup-leader .jmf-trc-hero-inner{
    width:min(1160px,calc(100% - 56px))!important;max-width:1160px!important;margin:0 auto!important;padding:0!important;
    position:relative!important;display:block!important;text-align:left!important;
  }
  html body.interior-page .jmf-mockup-leader .jmf-hero-copy-lock{width:40%!important;max-width:460px!important;margin:0!important;padding:0!important;}
  html body.interior-page .jmf-matched-interior-kicker,
  html body.interior-page .jmf-trc-kicker{
    display:block!important;width:max-content!important;margin:0 0 22px!important;padding:0 0 11px!important;
    color:#ff304d!important;font-family:Arial,sans-serif!important;font-size:14px!important;font-weight:800!important;line-height:1!important;
    letter-spacing:.045em!important;text-transform:uppercase!important;position:relative!important;
  }
  html body.interior-page .jmf-matched-interior-kicker:after,
  html body.interior-page .jmf-trc-kicker:after{
    content:""!important;position:absolute!important;left:0!important;bottom:0!important;width:34px!important;height:2px!important;background:#ff304d!important;
  }
  html body.interior-page .jmf-matched-interior-title,
  html body.interior-page .jmf-trc-hero h1{
    display:block!important;width:auto!important;max-width:430px!important;margin:0!important;padding:0!important;
    color:#fff!important;font-family:Georgia,'Times New Roman',serif!important;font-size:42px!important;font-weight:700!important;line-height:1.03!important;
    letter-spacing:-.025em!important;text-align:left!important;white-space:normal!important;overflow:visible!important;
  }
  html body.interior-page .jmf-trc-hero h1 span{font:inherit!important;color:inherit!important;display:inline!important;}
  html body.interior-page .jmf-mockup-subtitle,
  html body.interior-page .jmf-trc-hero p{
    max-width:390px!important;margin:18px 0 0!important;color:#fff!important;font-family:Arial,sans-serif!important;
    font-size:16px!important;line-height:1.45!important;font-weight:400!important;
  }

  body.page-about{--jmf-leader-photo:url('assets/mockup-leaders/about.jpg');}
  body.page-leadership{--jmf-leader-photo:url('assets/mockup-leaders/leadership.jpg');}
  body.page-contact{--jmf-leader-photo:url('assets/mockup-leaders/contact.jpg');}
  body.page-locations{--jmf-leader-photo:url('assets/mockup-leaders/locations.jpg');}
  body.page-products{--jmf-leader-photo:url('assets/mockup-leaders/products.jpg');}
  body.page-technology{--jmf-leader-photo:url('assets/mockup-leaders/technology.jpg');}
  body.page-frymeasure{--jmf-leader-photo:url('assets/mockup-leaders/frymeasure.jpg');}
  body.page-training{--jmf-leader-photo:url('assets/mockup-leaders/training.jpg');}
  body.page-news{--jmf-leader-photo:url('assets/mockup-leaders/news.jpg');}

  /* Homepage follows the same header geometry and keeps the quote button inside it. */
  html body.home-page .jmf-header{height:var(--jmf-approved-header)!important;min-height:var(--jmf-approved-header)!important;}
  html body.home-page .jmf-header-actions{top:50%!important;right:22px!important;transform:translateY(-50%)!important;}
}

@media (min-width:901px) and (max-width:1320px){
  html body .jmf-logo-link{left:16px!important;width:244px!important;}
  html body .jmf-logo-link:after{right:0!important;}
  html body .jmf-header .jmf-logo{width:244px!important;max-width:244px!important;max-height:54px!important;}
  html body .jmf-header-actions{right:16px!important;}
  html body .jmf-nav{gap:20px!important;}
  html body .jmf-nav-link{font-size:13px!important;}
  html body .jmf-quote{font-size:12px!important;padding:11px 15px!important;}
}
