/* Scoped home composition; shared product geometry is preserved. */
.home .features-container { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; align-items:stretch; height:auto; }
.home .feature-card { display:flex; min-width:0; padding:20px; height:auto; width:auto; min-height:0; box-sizing:border-box; align-items:stretch; justify-content:flex-start; color:#1c2126; }
.home .feature-content { display:flex; flex-direction:column; width:100%; min-width:0; gap:16px; flex:1; align-items:stretch; justify-content:flex-start; }
.home .feature-heading { display:flex; align-items:center; gap:12px; min-height:40px; }
.home .feature-icon { width:36px; height:36px; flex:0 0 36px; object-fit:contain; margin:0; }
.home .feature-name { font:400 16px/24px 'Onest',sans-serif; margin:0; }
.home .feature-description { font:400 14px/1.8 'Onest',sans-serif; margin:0; height:auto; }
.home .special-offers-container { overflow:visible; }
/* Homepage rails share a bounded card width. JS fits a whole number of cards
   into a centered native snap viewport, reserving arrows only when needed. */
.home { --home-card-width:230px; --home-card-gap:15px; }
.home.content .product-scroller { padding:0; }
.home.content .product-scroller > .products-grid:is(.scrollable,.special-offers-grid) { display:flex !important; flex-wrap:nowrap !important; gap:var(--home-card-gap); width:var(--rail-viewport-width,100%) !important; max-width:100%; margin:0 auto; max-height:none; overflow-x:auto !important; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-padding:0; scrollbar-width:none; scroll-behavior:auto; }
.home.content .product-scroller > .products-grid::-webkit-scrollbar { display:none; }
.home.content .product-scroller > .products-grid:is(.scrollable,.special-offers-grid) > .product-card-related { width:var(--rail-card-width,var(--home-card-width)) !important; max-width:var(--rail-card-width,var(--home-card-width)) !important; min-width:0 !important; flex:0 0 var(--rail-card-width,var(--home-card-width)) !important; scroll-snap-align:start; scroll-snap-stop:always; }
.home .product-scroller__arrow[hidden] { display:none; }
.home .home-product-card:focus-visible { outline-offset:-3px !important; }
.home .home-product-card { text-decoration:none !important; color:inherit; }
.home .home-product-card:focus-visible { outline:2px solid #2a85f7 !important; outline-offset:3px !important; }
.home .feature-card { text-decoration:none !important; }
.home .feature-card:focus-visible { outline:2px solid #2a85f7; outline-offset:3px; }
.product-scroller { position:relative; min-width:0; padding:0 48px; }
.product-scroller > .products-grid.scrollable { width:100%; max-width:100%; }
.product-scroller__arrow { position:absolute; top:74px; width:44px; height:44px; border:1px solid #c9d6e2; border-radius:50%; background:#fff; color:#2269bb; font:400 28px/1 'Onest',sans-serif; cursor:pointer; z-index:2; }
.product-scroller__arrow--prev { left:0; }
.product-scroller__arrow--next { right:0; }
.product-scroller__arrow:disabled { opacity:.35; cursor:default; }
.product-scroller__arrow:focus-visible { outline:2px solid #2a85f7; outline-offset:2px; }
@media(max-width:1000px) { .home .features-container { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .home .features-container { grid-template-columns:1fr; }  }

/* Variant D: shared desktop row height; three complete teaser controls. */
.home-feature-row { display:grid; grid-template-columns:minmax(0,2.12fr) minmax(300px,1fr); gap:24px; margin-bottom:36px; }
.home-feature-row .hero-banner { width:100%; height:auto; min-height:400px; margin:0; border-radius:14px; position:relative; }
.home-feature-row .hero-content { padding:28px 30px; gap:22px; max-width:480px; box-sizing:border-box; }
.home-feature-row .hero-title { font:600 30px/1.25 'Onest',sans-serif; max-width:420px; margin:0; }
.home-blog { box-sizing:border-box; min-width:0; min-height:400px; padding:20px 22px; border-radius:14px; background:#f3f7fc; display:flex; flex-direction:column; }
.home-blog__heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 9px; min-height:28px; }
.home-blog__heading h2 { font:600 18px/1.4 'Onest',sans-serif; margin:0; }
.home-blog__heading > a { font:400 12px/20px 'Onest',sans-serif; color:#2a85f7; flex:none; min-height:44px; display:flex; align-items:center; }
.home-blog__stories { display:grid; grid-auto-rows:minmax(0,1fr); flex:1; min-height:0; }
.home-blog__story { display:grid; grid-template-columns:84px minmax(0,1fr); gap:14px; align-items:center; min-width:0; padding:8px 0; }
.home-blog__story + .home-blog__story { border-top:1px solid #dfe7ef; }
.home-blog__image { display:flex; align-items:center; justify-content:center; width:84px; height:74px; background:#edf3f9; border-radius:8px; }
.home-blog__image img { display:block; width:100%; height:100%; object-fit:contain; }
.home-blog__image img[hidden] { display:none; }
.home-blog__copy { min-width:0; }
.home-blog__copy time { display:block; color:#74808b; font:400 12px/1.5 'Onest',sans-serif; margin-bottom:5px; }
.home-blog__copy h3, .home-blog__copy h3 a { margin:0; font:400 14px/1.5 'Onest',sans-serif; color:#1c2126; overflow-wrap:anywhere; }
.home-blog__copy h3 a:hover { color:#2a85f7; }
.home-blog a:focus-visible { outline:2px solid #2a85f7; outline-offset:3px; }
@media(min-width:851px) and (max-width:1150px) {
 .home-feature-row { grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr); gap:18px; }
 .home-blog { padding:18px; }
 .home-blog__heading h2 { font-size:16px; }
 .home-blog__story { grid-template-columns:68px minmax(0,1fr); gap:11px; padding:6px 0; }
 .home-blog__image { width:68px; height:66px; }
 .home-feature-row .hero-title { font-size:27px; max-width:360px; }
}
@media(max-width:850px) {
 .home-feature-row { grid-template-columns:1fr; gap:18px; }
 .home-feature-row .hero-banner { height:auto; min-height:288px; border-radius:12px; }
 .home-feature-row .hero-content { position:relative; height:auto; min-height:288px; padding:24px; max-width:310px; gap:24px; justify-content:space-between; }
 .home-feature-row .hero-title { font-size:27px; max-width:245px; }
 .home-blog { min-height:0; padding:16px 18px; border-radius:12px; }
 .home-blog__heading { margin-bottom:7px; }
 .home-blog__heading h2 { font-size:16px; }
 .home-blog__stories { display:block; }
 .home-blog__story { grid-template-columns:72px minmax(0,1fr); gap:13px; padding:13px 0; min-height:98px; box-sizing:border-box; }
 .home-blog__image { width:72px; height:68px; }
 .home-blog__story:last-child { padding-bottom:3px; }
}

.home-feature-row .hero-banner > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.home-feature-row .hero-banner::after { content:""; display:block; position:absolute; inset:0; background:linear-gradient(90deg,rgba(16,22,25,.88),rgba(16,22,25,.42) 51%,transparent 78%); z-index:1; }
.home-feature-row .hero-content { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; height:auto; min-height:400px; z-index:2; position:relative; color:white; }
.home-feature-row .hero-button { display:inline-flex; width:auto; height:auto; min-height:44px; padding:12px 24px; margin:0; font:500 14px/20px 'Onest',sans-serif; box-sizing:border-box; }
.home .brand-logo img { width:100%; height:100%; object-fit:contain; }
@media(max-width:850px) {
 .home-feature-row .hero-content { height:auto; min-height:288px; justify-content:space-between; }
 .home-feature-row .hero-banner::after { background:linear-gradient(90deg,rgba(16,22,25,.94),rgba(16,22,25,.67) 46%,rgba(16,22,25,.08) 80%); }
}

.home .feature-card { background:#f4f4f4; padding:20px !important; }
.home .feature-heading { min-height:48px; }

.home-feature-row .hero-content { top:0; left:0; right:auto; bottom:auto; width:100%; transform:none; }
.home-blog__heading h2 { font:600 18px/1.4 'Onest',sans-serif !important; }
.home-blog__copy h3, .home-blog__copy h3 a { font:400 14px/1.5 'Onest',sans-serif !important; }
.product-scroller { width:100%; max-width:100%; box-sizing:border-box; align-self:stretch; }
@media(max-width:1150px) { .home-blog__heading h2 { font-size:16px !important; } }

.home .category-card img { object-fit:contain; }

.home-feature-row .hero-banner { display:flex; }
.home-feature-row .hero-banner > img { object-position:right center; }
.home-feature-row .hero-content { flex:1; }
.home-blog__copy .home-blog__link { display:flex; align-items:flex-end; gap:4px; min-width:0; }
.home-blog__title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; text-overflow:ellipsis; min-width:0; max-height:42px; }
.home-blog__arrow { flex:none; line-height:21px; }

@media(max-width:850px) {
 .home-feature-row .hero-banner { overflow:hidden; background:#172023; }
 .home-feature-row .hero-content { flex:0 0 calc(100% - 104px); width:calc(100% - 104px); max-width:400px; padding:24px 16px; }
 .home-feature-row .hero-title { max-width:100%; overflow-wrap:anywhere; hyphens:auto; hyphenate-limit-chars:6 4 3; text-wrap:wrap; }
 .home-feature-row .hero-button { max-width:100%; padding:12px 10px; text-align:center; }
 .home-feature-row .hero-banner > img { left:auto; right:0; top:50%; bottom:auto; width:42%; height:280px; transform:translateY(-50%); object-fit:cover; object-position:74% center; border-radius:0; mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent); }
 .home-feature-row .hero-banner::after { background:linear-gradient(90deg,#172023 0%,#172023 56%,transparent 74%); }
}

@media(max-width:360px) {
 .home-feature-row .hero-content { flex-basis:calc(100% - 90px); width:calc(100% - 90px); }
 .home-feature-row .hero-banner > img { height:240px; }
}

/* Mobile peer headings follow the accepted special-offers/service size. */
.mobile-portal .home h2.home-section-heading,
.mobile-portal .home #complecttitle.home-section-heading,
.mobile-portal .home #sectionnewtitle.home-section-heading {
  font: 600 18px/22px 'Onest', Arial, sans-serif !important;
}
