/* Final visual layer: keeps the familiar HP Support layout while remaining responsive. */
.phone-ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
.product-comments{grid-column:1/-1}.comments-area{margin-top:50px;padding-top:30px;border-top:1px solid var(--line)}.comment-list{list-style:none;padding:0}.comment-list .comment-body{background:#f7f9fa;border:1px solid var(--line);padding:18px;margin:12px 0}.comment-list .children{list-style:none}.comment-meta{font-size:12px;color:#68747c}.comment-content p{margin-bottom:0}.comment-form label{display:block;font-weight:700}.comment-form input,.comment-form textarea{width:100%;border:1px solid #cfd6dc;padding:10px;font:inherit}.comment-form .submit{width:auto;background:var(--blue);color:#fff;border:0;padding:11px 24px;cursor:pointer}
.hps-request-form{margin-top:30px;background:#f7f9fa;border:1px solid var(--line);padding:28px}.hps-request-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.hps-request-form label{display:block;font-weight:700}.hps-request-form label span{color:#c9342f}.hps-request-form input,.hps-request-form select,.hps-request-form textarea{width:100%;border:1px solid #cbd3d9;background:#fff;padding:11px;font:inherit}.hps-request-form textarea{resize:vertical}.hps-honeypot{position:absolute!important;left:-9999px!important}.form-notice{padding:14px 18px;margin:20px 0}.form-notice.success{background:#e8f7ed;border:1px solid #9bd4ac;color:#175c2b}
.topbar{background:#fff;color:#4b5862;border-bottom:1px solid var(--line)}
.topbar a{color:var(--blue-dark)}
.brandbar{min-height:98px;display:flex;direction:rtl;align-items:center;gap:18px}.brand{order:0;flex:0 0 220px}.brand img{display:block;width:220px;height:auto;max-height:none}.primary-nav{order:0;flex:1;border:0;min-width:0}.header-search{order:0;flex:0 0 46px;width:46px;border:0}.header-search input,.header-search label{display:none}.header-search button{width:46px;background:transparent;color:#273946;font-size:28px}.hps-menu{justify-content:center}.hps-menu a{padding:15px 17px;font-weight:500}.hps-menu>li:first-child a{background:transparent;color:inherit}.hps-menu a:hover,.hps-menu .current-menu-item>a{color:var(--blue);background:transparent}.site-header{border-bottom:1px solid #cbd2d7}.primary-nav{border-bottom:0}.hero{min-height:520px}.hero:after{background:linear-gradient(90deg,rgba(0,77,112,.12),rgba(4,26,39,.83))}.hero-content{padding-block:95px}.hero h1{font-size:44px}.products-section{background:#fff}.product-card{border:0;background:#fafafa}.product-media{height:310px}.product-body{padding:24px}.product-body h3{font-weight:500}.product-footer strong{color:#d94700}.breadcrumbs{display:flex;align-items:center;gap:9px;color:#7a858d;font-size:13px;margin-bottom:28px;white-space:nowrap;overflow:hidden}.breadcrumbs a{color:var(--blue-dark)}.breadcrumbs strong{font-weight:400;overflow:hidden;text-overflow:ellipsis}.product-single{align-items:start}.product-gallery{border:1px solid var(--line);background:#fff;padding:30px;position:static}.product-gallery img{width:100%;max-height:500px;object-fit:contain}.product-summary-full{color:#5a646b}.product-actions{display:flex;gap:10px;margin-top:20px}.button-muted{background:#fff;color:var(--blue-dark)}.product-description,.product-specifications{grid-column:1/-1;margin-top:32px}.product-description{border-top:1px solid var(--line);padding-top:35px}.product-specifications table{width:100%;border-collapse:collapse}.product-specifications th,.product-specifications td{border:1px solid var(--line);padding:12px 15px;text-align:right;vertical-align:top}.product-specifications th{width:28%;background:#f4f7f9}.product-specifications p{margin:0}.entry-content img{height:auto}.empty-state{text-align:center;max-width:680px}.empty-state>strong{display:block;color:var(--blue);font-size:84px;line-height:1}.empty-state .button{margin-top:20px}.site-search-form{display:flex;max-width:560px;margin:22px auto}.site-search-form input{flex:1;min-width:0;border:1px solid #cfd6dc;padding:12px;font:inherit}.site-search-form button{border:0;background:var(--blue);color:#fff;padding:10px 25px;font:inherit}.archive-header{border-right:4px solid var(--blue);padding-right:18px}.content-card img{width:100%;height:230px;object-fit:cover}.content-card{transition:.2s}.content-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
@media(max-width:900px){.brandbar{display:flex;direction:rtl;justify-content:space-between}.brand,.header-search,.menu-toggle{order:0}.brand{margin:0}.header-search{margin-right:auto}.primary-nav{position:absolute;display:none;right:0;left:0;top:auto;margin-top:98px;background:#fff;z-index:50;box-shadow:var(--shadow);padding:10px 20px}.primary-nav.is-open{display:block}.hps-menu{display:block}.hps-menu .sub-menu{position:static;display:block;box-shadow:none}.product-gallery{position:static}.hero h1{font-size:35px}}
@media(max-width:600px){html,body{width:100%;max-width:100%;overflow-x:hidden}.hps-container{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px);margin-right:12px;margin-left:12px}.brandbar{min-height:76px;display:flex;direction:rtl;justify-content:space-between;gap:12px}.brand{order:0;margin:0}.brand img{width:150px;max-width:150px}.menu-toggle{order:0;margin:0}.primary-nav{margin-top:76px}.header-search{display:none}.hero{min-height:450px;background-position:center;overflow:hidden}.hero-content,.hero-content>*{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important}.hero h1{font-size:27px;line-height:1.55;overflow-wrap:anywhere}.hero p{overflow-wrap:anywhere}.hero-actions{width:100%}.hero-actions .button{width:100%;max-width:280px}.trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trust-grid>div{min-width:0;padding:17px 10px}.trust-grid strong,.trust-grid span{overflow-wrap:anywhere}.product-media{height:250px}.product-actions{flex-direction:column}.product-specifications{overflow-x:auto}.product-specifications th{width:38%}.hps-request-form{padding:18px}.hps-request-form .form-grid{grid-template-columns:1fr}}
/* Contact page: clear actions and an accessible, responsive location map. */
.hps-container.narrow:has(.contact-overview){max-width:1180px}
.contact-overview{display:grid;grid-template-columns:1fr 1.15fr;gap:28px;margin:28px 0 42px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden}
.contact-details{padding:34px;align-self:center}
.contact-details h2{margin:4px 0 22px}
.contact-detail{display:flex;flex-direction:column;gap:4px;padding:14px 0;border-bottom:1px solid var(--line)}
.contact-detail strong{font-size:13px;color:var(--muted)}
.contact-detail address{font-style:normal}
.contact-detail .phone-ltr{font-size:21px;font-weight:700;color:var(--blue-dark);align-self:flex-start}
.contact-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.contact-map{min-height:390px;background:var(--soft)}
.contact-map iframe{display:block;width:100%;height:100%;min-height:390px;border:0}
.contact-form-section{margin-top:38px}
@media(max-width:760px){.contact-overview{grid-template-columns:1fr}.contact-details{padding:24px}.contact-map,.contact-map iframe{min-height:310px}.contact-actions{flex-direction:column}.contact-actions .button{width:100%}}

/* Expandable header search: the first click opens it, the next submits. */
.header-search{position:relative;overflow:hidden;transition:width .22s ease,flex-basis .22s ease,border-color .22s ease}
.header-search.is-open{flex-basis:280px;width:280px;border:1px solid #cfd6dc}
.header-search.is-open input{display:block;min-width:0;width:100%}
.header-search.is-open button{flex:0 0 46px;background:var(--blue);color:#fff}
@media(max-width:600px){.brandbar{position:relative}.header-search{display:flex}.header-search.is-open{position:absolute;z-index:40;top:76px;right:0;left:0;width:100%;background:#fff;box-shadow:var(--shadow)}.header-search.is-open input{height:46px}}

/* Mobile RTL containment: viewport units plus inline margins can create a
   second horizontal canvas on some mobile browsers. Keep every main section
   relative to its containing block instead. */
@media(max-width:600px){
  html,body{width:auto;max-width:none;overflow-x:clip}
  .hps-container{width:calc(100% - 24px)!important;max-width:calc(100% - 24px);margin-inline:auto}
  .brandbar{width:100%;max-width:100%;margin-inline:0;padding-inline:12px;gap:10px}
  .brand{flex:0 1 150px;min-width:0}
  .brand img{max-width:100%}
  .header-search{flex:0 0 42px;margin-right:0}
  .menu-toggle{flex:0 0 42px}
  .hero-content{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;margin-inline:auto}
  .hero-content>*{width:auto!important;max-width:100%!important}
  .hero-actions{width:100%!important}
  .trust-grid,.product-grid,.content-grid,.service-grid,.intro-grid,.footer-grid{min-width:0;max-width:100%}
}

/* Keep the anti-spam honeypot available to the form handler without moving it
   thousands of pixels outside an RTL document (which creates horizontal
   overflow and an initially blank mobile viewport). */
.hps-honeypot{
  position:fixed!important;
  inset:0 auto auto 0!important;
  width:1px!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* Anchor the expanded mobile menu to the bottom edge of the brand bar. The
   previous auto/static position plus margin could place its first rows above
   the visible viewport. */
@media(max-width:900px){
  .brandbar{position:relative}
  .primary-nav{
    top:100%;
    right:0;
    left:0;
    margin-top:0;
    max-height:calc(100dvh - 140px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}

/* Article and FAQ thumbnails use the same media frame as product cards.
   Preserve each source image's aspect ratio and never crop it. */
body.post-type-archive-hps_article .content-card-image,
body.post-type-archive-hps_faq .content-card-image{
  display:flex;
  width:100%;
  height:310px;
  padding:20px;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
}
body.post-type-archive-hps_article .content-card-image img,
body.post-type-archive-hps_faq .content-card-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* M402dn layout prototype: a calm, contextual sticky guide on desktop only. */
body.hps-enhanced-product .hps-container{width:min(1280px,calc(100% - 40px))}
body.hps-enhanced-product .product-detail-layout{grid-column:1/-1;display:grid;grid-template-columns:270px minmax(0,1fr);gap:32px;align-items:start;margin-top:32px;direction:rtl}
body.hps-enhanced-product .product-detail-layout .product-description{grid-column:2;min-width:0;margin-top:0;direction:rtl}
body.hps-enhanced-product .product-description h2[id],body.hps-enhanced-product #compatible-products{scroll-margin-top:28px}
.product-sticky-sidebar{grid-column:1;grid-row:1;position:sticky;top:96px;overflow:hidden;border:1px solid rgba(210,222,230,.88);border-radius:22px;background:#fff;box-shadow:0 18px 44px rgba(25,52,72,.14),0 4px 12px rgba(25,52,72,.06);transform:translateZ(0);direction:rtl}
.product-sticky-sidebar .sidebar-section{padding:18px 20px;border-bottom:1px solid #e8edf1}
.product-sticky-sidebar .sidebar-section>strong{display:block;margin-bottom:12px;color:#253847;font-size:15px}
.product-sticky-sidebar .sidebar-toc nav{display:grid;gap:4px}
.product-sticky-sidebar .sidebar-toc a{position:relative;padding:7px 15px 7px 4px;color:#506473;font-size:13px}
.product-sticky-sidebar .sidebar-toc a:before{content:"";position:absolute;right:0;top:14px;width:6px;height:6px;border-radius:50%;background:#1b75bb}
.product-sticky-sidebar .sidebar-toc a:hover{color:#0f629f}
.product-sticky-sidebar .sidebar-phone{display:flex;flex-direction:column;gap:2px;padding:11px 13px;border-radius:9px;background:#eef7fd;color:#174f78}
.product-sticky-sidebar .sidebar-phone span{font-size:12px}.product-sticky-sidebar .sidebar-phone b{font-size:18px}
.product-sticky-sidebar .sidebar-consult{display:flex;min-height:42px;margin-top:9px;align-items:center;justify-content:center;border-radius:9px;background:#1672b6;color:#fff;font-weight:700}
.product-sticky-sidebar .sidebar-consult:hover{background:#0d5f9c;color:#fff}
.product-sticky-sidebar .sidebar-cartridges{display:grid;gap:7px}.product-sticky-sidebar .sidebar-cartridges>strong{margin-bottom:5px}
.product-sticky-sidebar .sidebar-cartridges a{padding:8px 10px;border:1px solid #dbe5ec;border-radius:8px;color:#31536b;font-size:12px;line-height:1.7}
.product-sticky-sidebar .sidebar-cartridges a:hover{border-color:#1b75bb;color:#0f629f}
.product-sticky-sidebar .sidebar-back-top{display:block;padding:13px 20px;text-align:center;color:#667986;font-size:12px;background:#f7f9fb}
.product-sticky-sidebar .sidebar-back-top:hover{color:#0f629f}
@media(max-width:1000px){
  body.hps-enhanced-product .hps-container{width:min(1180px,calc(100% - 32px))}
  body.hps-enhanced-product .product-detail-layout{display:block;margin-top:24px}
  body.hps-enhanced-product .product-sticky-sidebar{display:none}
  body.hps-enhanced-product .product-detail-layout .product-description{margin-top:0}
}

.compatible-strip-devices{align-items:flex-start}
.compatible-strip-devices .compatible-cartridge-strip-actions{grid-template-columns:repeat(3,minmax(0,1fr));min-width:min(100%,780px)}
.compatible-strip-devices .compatible-cartridge-strip-actions a{min-height:40px;padding:7px 10px;font-size:12px;line-height:1.6}
.compatible-products-card{margin:28px 0 0;padding:18px;border:1px solid var(--line);border-right:4px solid var(--blue);border-radius:12px;background:#f7fafc}
.compatible-product-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.compatible-product-links a{display:flex;min-height:42px;padding:8px 10px;align-items:center;justify-content:center;border:1px solid #d9e3ea;border-radius:8px;background:#fff;color:#31536b;text-align:center;font-size:12px;line-height:1.6}
.compatible-product-links a:hover{border-color:var(--blue);color:#0f629f;box-shadow:0 5px 14px rgba(25,52,72,.08)}
@media(max-width:1000px){.compatible-strip-devices .compatible-cartridge-strip-actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.compatible-product-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.compatible-product-links,.compatible-strip-devices .compatible-cartridge-strip-actions{grid-template-columns:1fr}}

.compatible-cartridge-strip{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 22px;border:1px solid var(--line);border-right:4px solid var(--blue);background:#f7fafc}
.compatible-cartridge-strip>div:first-child{display:flex;flex-direction:column}
.compatible-cartridge-strip span{color:var(--blue);font-size:12px;font-weight:700}
.compatible-cartridge-strip strong{font-size:18px;color:#263746}
.compatible-cartridge-strip-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:min(100%,540px)}
.compatible-cartridge-strip-actions a{display:flex;min-height:46px;padding:9px 16px;align-items:center;justify-content:center;text-align:center;border:2px solid var(--blue);background:#fff;color:var(--blue-dark);font-weight:700}
.compatible-cartridge-strip-actions a:hover{background:var(--blue);color:#fff}
.compatible-cartridge-card{margin:22px 0 28px;padding:18px;border:1px solid var(--line);border-right:4px solid var(--blue);background:#f7fafc}
.compatible-cartridge-heading{display:flex;flex-direction:column;margin-bottom:12px}
.compatible-cartridge-heading span{color:var(--blue);font-size:12px;font-weight:700}
.compatible-cartridge-heading strong{font-size:18px;color:#263746}
.compatible-cartridge-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.compatible-cartridge-option{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:center;padding:12px;border:1px solid #dce3e8;background:#fff;transition:.2s}
.compatible-cartridge-option:hover{border-color:var(--blue);box-shadow:0 8px 20px rgba(21,49,70,.09);transform:translateY(-2px)}
.compatible-cartridge-image{display:flex;width:92px;height:92px;align-items:center;justify-content:center;background:#fff}
.compatible-cartridge-image img{display:block;width:100%;height:100%;object-fit:contain}
.compatible-cartridge-copy{display:flex;min-width:0;flex-direction:column}
.compatible-cartridge-copy small{color:var(--blue);font-style:normal;font-weight:700}
.compatible-cartridge-copy strong{font-size:15px;color:#263746}
.compatible-cartridge-copy em{color:var(--muted);font-size:12px;font-style:normal}
@media(max-width:700px){.compatible-cartridge-strip{align-items:stretch;flex-direction:column}.compatible-cartridge-strip-actions,.compatible-cartridge-options{grid-template-columns:1fr;min-width:0}.compatible-cartridge-option{grid-template-columns:82px minmax(0,1fr)}.compatible-cartridge-image{width:82px;height:82px}}
@media(max-width:600px){
  body.post-type-archive-hps_article .content-card-image,
  body.post-type-archive-hps_faq .content-card-image{height:250px}
}

/* Printer/scanner archive thumbnails follow the legacy 573x430 source frame. */
body.hps-product-group-printer .content-card-image{
  display:flex;
  width:100%;
  height:auto;
  aspect-ratio:573 / 430;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
}
body.hps-product-group-printer .content-card-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* Category-specific frames derived from one legacy reference image per area. */
body.hps-product-group-cartridge .content-card-image,
body.hps-product-group-other .content-card-image,
body.post-type-archive-hps_article .content-card-image,
body.post-type-archive-hps_faq .content-card-image{
  display:flex;
  width:100%;
  height:auto;
  padding:0;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
}
body.hps-product-group-cartridge .content-card-image{aspect-ratio:800 / 800}
body.hps-product-group-other .content-card-image{aspect-ratio:573 / 430}
body.post-type-archive-hps_article .content-card-image,
body.post-type-archive-hps_faq .content-card-image{aspect-ratio:384 / 400}

body.hps-product-group-cartridge .content-card-image img,
body.hps-product-group-other .content-card-image img,
body.post-type-archive-hps_article .content-card-image img,
body.post-type-archive-hps_faq .content-card-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
