/* Smarterbuys Store: page-level layout for the storefront pages (home, listings, product, content pages).
   Colours, radii, shadows and fonts come from tokens.css; components come from components.css and promo.css.
   Only what is particular to a page lives here.

   Written phone first, in four regions (docs/build-notes/devices/PHONE_SPEC.md section 0.2):
     1  shared rules and the phone (the default: every width up to 699.98px)
     2  tablet and up      @media (min-width: 700px)
     3  desktop            @media (min-width: 1200px)
     4  capability and modes: hover only for a mouse, reduced motion, forced colours, print
   A phone rule is never written under a max-width query. */

/* ===== 1 SHARED AND PHONE (default: every width up to 699.98px) ===== */

/* ---------------------------------------------------------------------------------------------- home */
/* A phone's home page: the poster (edge to edge, ending on the first screen), then one column in the phone's own
   order: the example, the categories as one swipeable row, the deals, the campaign band, the trust block. */
.home__hero { padding: 0; }
.home__lead { display: flex; flex-direction: column; gap: var(--section-gap); padding-top: 16px; }
.home__cats { margin-top: -12px; }                         /* wayfinding sits close under the example */
/* the heading "Shop by category" is said, not drawn, on a phone: the row of round pictures needs no title */
.home__cats-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home__campaign { --promo-band-radius: var(--r-card); }
.home__campaign .promo-band { border-radius: var(--r-card); overflow: hidden; }
/* A campaign the team placed at the top (or on a side: a phone has no side, so it is here too): the slim ribbon,
   edge to edge like the poster under it, 4px of page between them. The poster gives up the ribbon's height, so it
   still ends above the tab bar (PHONE_SPEC 2.2: its button inside the first screen). --home-ribbon-h is the
   ribbon as drawn (promo.css 8b: 55px on a phone) plus the 4px. */
.home__ribbon, .home__side { padding: 0 0 4px; --promo-band-radius: 0; }
.home:has(> .home__ribbon, > .home__side) { --home-ribbon-h: 58px; }
/* With the ribbon showing, the campaign's own announcement line (the same words' job, to the same page) is not
   drawn on a phone: the two together would push the offer's button under the tab bar. From 700px it is drawn. */
html:has(.home > .home__ribbon, .home > .home__side):has(.announce a[href^="/campaign/"]) { --announce-h: 0px; }
html:has(.home > .home__ribbon, .home > .home__side) .announce:has(a[href^="/campaign/"]) { display: none; }
@container promo-slide (max-width: 599.98px) {
  .home:has(> .home__ribbon, > .home__side) .promo-carousel--poster .promo-slide__canvas {
    min-height: clamp(440px, calc(100vh - var(--bar-top, 56px) - var(--announce-h, 0px) - var(--home-ribbon-h) - var(--bar-tab, 56px) - var(--safe-b, 0px) - 8px), 640px);
    min-height: clamp(440px, calc(100svh - var(--bar-top, 56px) - var(--announce-h, 0px) - var(--home-ribbon-h) - var(--bar-tab, 56px) - var(--safe-b, 0px) - 8px), 640px);
  }
}
/* nothing below the first screens is laid out until it is near. The deals row runs to the screen's edges, so its
   box does too (a contained box clips what leaves it). */
.home__deals { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); content-visibility: auto; contain-intrinsic-size: auto 480px; }
.home__trust { content-visibility: auto; contain-intrinsic-size: auto 132px; }
.featured, .how, .sisters { content-visibility: auto; contain-intrinsic-size: auto 600px; }

.featured__head { display: grid; gap: 12px; margin-bottom: 4px; }
/* three tabs in a 48px track */
.featured__tabs { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; margin: 0; padding: 4px; list-style: none; border-radius: 24px; background: var(--well); }
.featured__tabs::-webkit-scrollbar { display: none; }
.featured__tabs li { flex: 1 1 0; min-width: max-content; }
.featured__tabs .pill { width: 100%; min-height: 40px; padding-inline: 12px; white-space: nowrap; text-decoration: none; }
.featured__rail .section-head__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the rail's own head holds only "See all" (its title is said, not drawn): it stands at the end of the section's
   heading row, never alone on a row of its own under the tabs */
.featured > .wrap { position: relative; }
.featured__rail { position: static; }                          /* (its viewport places the arrows) */
.featured__rail .section-head { position: absolute; top: -10px; right: max(var(--gutter), var(--safe-r)); z-index: 1; margin: 0; min-height: var(--tap); justify-content: flex-end; }
.featured:has(.featured__panel:not([hidden]) .featured__rail .link-arrow) .featured__head > .section-head__title { padding-right: 88px; }

.how__example { display: none; margin-top: 20px; }        /* the page's copy is under the poster */

/* the two sister sites: two rows, the title and where it leads */
.sisters__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sister { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; height: 100%; padding: 12px 16px; border-radius: var(--r-card); color: var(--navy); text-decoration: none; background: var(--tile); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.sister:active { opacity: .72; }
.sister--finance { background: var(--navy); color: #fff; }
.sister__eyebrow { display: none; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted); }
.sister--finance .sister__eyebrow { color: var(--mint); }
.sister__title { font: 700 1rem/1.25 var(--font-display); }
.sister__text { display: none; color: var(--slate); max-width: 46ch; }
.sister--finance .sister__text { color: var(--on-dark-soft); }
/* "Visit Mammoth Loans": the words are for screen readers here, the arrow is the cue */
.sister__go { flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0; font-weight: 700; text-decoration: none; }
.sister--finance:focus-visible { outline-color: var(--mint); }

.recent__example { margin-top: 20px; }

/* ---------------------------------------------------------------------------------------------- listings */
/* On a phone the page starts with products: a 44px title row, one row of chips, the Filter and Sort bar (which then
   stays in view), and the first card. The representative example is in the list, after the second product. */
.listing__head { padding: 12px 0 8px; }
.listing__titles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.listing__title { font-size: 1.375rem; line-height: 1.1; }
.listing__count { margin: 0; font-size: .875rem; color: var(--muted); font-weight: 600; }
.listing__lead { display: none; margin: 12px 0 0; }

/* one swipeable row: a parent's sub-categories, or a leaf's sisters with "All ..." first */
.listing__subs { margin: 0; padding: 0 0 8px; }
.listing__subs .chip { text-decoration: none; white-space: nowrap; }
.listing__subs .chips, .listing__applied { flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; margin: -4px calc(var(--gutter) * -1); padding: 4px var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.listing__subs .chips::-webkit-scrollbar, .listing__applied::-webkit-scrollbar { display: none; }
.listing__subs .chips > li, .listing__applied > li { flex: none; }

/* exactly one copy of the example is displayed at any width: the one inside the list on a phone (when the page
   has it), the one above the list everywhere else */
.listing__example { margin: 0; }
.listing__example--top { margin-bottom: 8px; }
.listing--example-inline .listing__example--top { display: none; }
.listing__note { margin: 0 0 8px; font-size: .9375rem; color: var(--slate); }
.listing__none { padding: 8px 0 24px; }
.listing--none .listing__none { padding-top: 16px; }
.listing__none .empty { border-color: transparent; }        /* on a phone the empty state is the page, not a box on it */
.listing__tiles { margin-top: 12px; }
.listing__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.listing__main { min-width: 0; display: grid; gap: 8px; scroll-margin-top: calc(var(--header-h) + 8px); }

/* Filter and Sort: two equal controls in a band of the page's colour that stays under the header (and at the top
   of the screen while the header is away) */
.listing__bar { position: sticky; top: var(--stuck-h); z-index: 30; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px; margin: -4px calc(var(--gutter) * -1) 0; padding: 6px var(--gutter); background: var(--page); transition: top var(--t-slow) var(--ease), box-shadow var(--t-med); }
/* (without script the sort has its own Go button: the Filter link takes only its width, the sort keeps its words; that
   rule is the layout's <noscript> one, so the first paint before the script arrives is the scripted bar: U_speed) */
html.header-away .listing__bar { box-shadow: 0 10px 16px -14px rgba(16, 11, 52, .45); }   /* (--stuck-h is then the top of the screen) */
.listing__filter-btn { display: inline-flex; width: 100%; min-height: 48px; padding: 0 16px; text-decoration: none; }
.listing__applied { align-items: center; }
.listing__applied .chip { text-decoration: none; background: var(--panel); border-color: var(--panel); }
.listing__clear, .filters__clear { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px; font-weight: 700; font-size: .9375rem; color: var(--navy); white-space: nowrap; }

/* the platform's own picker, drawn as a pill that shows the current order */
.sort { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.sort__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.sort__select { flex: 1 1 auto; min-width: 0; }
.sort__select .field__input { min-height: 48px; min-width: 0; padding: 0 38px 0 16px; border-radius: var(--r-pill); font-size: .9375rem; font-weight: 600; text-overflow: ellipsis; }
.sort__select svg { right: 12px; }
.sort__go { flex: none; }
/* With the script the sort box applies itself and "Go" is not drawn. Written for the FIRST paint too (html carries
   no-js until app.js runs, seconds later on a slow phone): the layout's <noscript> rule draws it without the script
   (src/web/layout.js, U_speed). */
html:is(.js, .no-js) .sort__go { display: none; }

/* The filters. Without the script (and until it has made its sheet) the form is a panel under the results that the
   Filter button links to; with it, list.js moves the panel into a bottom sheet. Either way the options are chips:
   the real checkboxes and radios are inside them, drawn invisible, so it is one ordinary form. */
.filters { order: 2; margin-top: 16px; padding: 4px 16px 16px; border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--card); scroll-margin-top: calc(var(--header-h) + 72px); }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.filters__title { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.filters__group { margin: 0; padding: 12px 0 16px; border: 0; border-top: 1px solid var(--hair); min-width: 0; }
.filters__group:where(:first-of-type) { border-top: 0; padding-top: 4px; }
/* a legend sits ON its fieldset's top border unless it is floated: floated, the rule runs clear above it */
.filters__legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font: 700 1rem/1.3 var(--font-display); color: var(--navy); }
.filters__list { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.filters__check { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--control); border-radius: var(--r-pill); background: #fff; color: var(--navy); font-weight: 600; }
.filters__check .check__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.filters__check .check__label { line-height: 1.3; }
.filters__check:has(.check__input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.filters__check:has(.check__input:focus-visible) { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-gap); }
.filters__check:active { opacity: .72; }
/* the count is written "(13)"; a chip draws it as "13", lighter than the name */
.filters__count { font-size: 0; color: var(--muted); font-weight: 500; }
.filters__count::after { content: attr(data-n); font-size: .9375rem; }
.filters__check:has(.check__input:checked) .filters__count { color: var(--on-dark-soft); }
.filters__actions { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.filters__actions .btn { flex: 1 1 auto; width: auto; min-height: 52px; }
.filters__clear-more { display: none; }
.filters__scrim { display: none; }
/* in the sheet (list.js: dialog.sheet.sheet--filters): the panel loses its own frame, its head is the sheet's head
   and its actions are the sheet's foot, pinned */
.sheet--filters .filters { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.sheet--filters .filters__head { padding: 0 4px 0 20px; }
.sheet--filters .filters__title { font: 700 1.25rem/1.2 var(--font-display); }
.sheet--filters .filters__title svg { display: none; }
.sheet--filters .filters__group:where(:first-of-type) { padding-top: 8px; }
.sheet--filters .filters__actions { padding: 0; border-top: 0; }                 /* in the sheet's foot, which has its own rule and padding */
.sheet--filters a.filters__clear { display: none; }                               /* the sheet has its own "Clear all" (list.js) */
button.filters__clear { border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* A vivid heading panel (the deals page). On a phone it is a slim strip, so the deals themselves reach the first
   screen; the carousel the team can set up for this page is for 700px and wider. (The strip's artwork is held still
   on a phone by list.js, with the artwork's own data-promo-paused switch.) */
.store-banner-wrap { padding-top: 8px; }
.store-banner { border-radius: var(--r-card); min-height: 64px; display: grid; align-items: center; }
.store-banner__inner { position: relative; padding: 12px 16px; display: grid; gap: 4px; }
.store-banner__inner p { margin: 0; }
.store-banner__eyebrow { display: none; justify-self: start; padding: 6px 14px; border-radius: var(--r-pill); background: var(--promo-accent, #FFE14D); color: var(--promo-on-accent, #100B34); font: 800 .8125rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.store-banner__title { font: 800 1.625rem/1.1 var(--font-display); letter-spacing: var(--track-display); color: var(--promo-fg, #fff); text-wrap: balance; }
.store-banner__text { display: none; max-width: 44ch; font-size: 1.0625rem; font-weight: 600; color: var(--promo-fg-2, #fff); }
.store-campaign { padding-top: 12px; }
.store-carousel { display: none; padding-top: 16px; }
.store-banner-wrap + .listing .listing__head, .store-campaign + .listing .listing__head, .store-carousel + .listing .listing__head { padding-top: 8px; }
/* the background was drawn for a slide with a product in its middle: here its disc and ring sit to the right, clear
   of the words, and the small sparkle that landed on the first letter of the sentence is not drawn */
.store-banner > .promo-bg__art { --promo-fx: 88%; --promo-fy: 30%; --promo-r: 16cqi; }
.store-banner .promo-bg__art::after { display: none; }
h1.store-banner__title { margin: 0; }
/* the deals page on a phone: the count rides on the strip, beside the title, so the products start 34px higher
   (the listing's own title row is then empty and not drawn; from 700px it is the listing's again) */
.store-banner__inner:has(.store-banner__count) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.store-banner__count { grid-column: 2; grid-row: 1; font-size: .8125rem; font-weight: 700; color: var(--promo-fg, #fff); white-space: nowrap; }
.store-banner__inner:has(.store-banner__count) .store-banner__title { font-size: clamp(1.125rem, 4.6vw + .25rem, 1.625rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line beside the count */
.store-banner-wrap:has(.store-banner__count) + .listing--head-in-banner > .listing__head { display: none; }

/* ---------------------------------------------------------------------------------------------- product */
/* A phone's product page is one column that ends its first screen on the buy button: the gallery (edge to edge, as
   tall as the buy block leaves), then a CENTRED, ranked buy block; everything longer than two lines is left-aligned
   below. The markup holds two columns (.product__panel, .product__media): here they are flattened and the six blocks
   take the phone's order. */
.product { padding-bottom: 8px; }
.product__layout { display: flex; flex-direction: column; }
.product__panel, .product__media { display: contents; }
.product__gallery { order: 1; min-width: 0; margin-inline: calc(var(--gutter) * -1); }
.product__head { order: 2; padding: 12px 0 0; text-align: center; }
.product__buy { order: 3; display: flex; flex-direction: column; min-width: 0; margin-top: 8px; }
.assure { order: 4; }
.product__features { order: 5; }
.product__finance { order: 6; }

.product__brand { margin: 0 0 4px; font-size: var(--fs-eyebrow); font-weight: 700; line-height: 16px; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted); }
.product__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 1.25rem; font-weight: 700; line-height: 1.2; text-wrap: balance; }
/* the brand is the line above: in the heading it stays for screen readers and search engines, undrawn */
.product__name-brand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product__model { display: none; margin: 8px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.product__flag { display: none; margin: 0; }              /* on a phone the badges ride on the picture */
.product__stock { order: 4; margin: 10px 0 0; text-align: center; font-size: var(--fs-xs); }
.product__h2 { font-size: 1.25rem; margin-bottom: 12px; }
.product__nofinance { margin: 6px 0 0; font-size: .9375rem; line-height: 1.45; text-align: center; color: var(--slate); }
.product__unavailable { order: 3; margin-top: 12px; text-align: left; }
/* a pre-order: how it is placed, under the stock line that says when it is expected */
.product__preorder { order: 5; display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--slate); }
.product__preorder svg { flex: none; margin-top: 2px; }
.product__features, .product__finance { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.product__finance { display: grid; gap: 12px; scroll-margin-top: calc(var(--header-h) + 12px); }
/* a bundle: "What's in this bundle", each part on a well with its picture in a fixed box (nothing moves as it loads) */
.product__bundle { order: 5; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.bparts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bparts__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: var(--r-well); background: var(--well); }
.bparts__media { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; overflow: hidden; border-radius: 10px; background: var(--card); }
.bparts__img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.bparts__text { min-width: 0; font-size: .9375rem; line-height: 1.35; }
.bparts__name { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.bparts__qty { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.bparts__price { text-align: right; font: 700 1rem/1.25 var(--font-display); color: var(--ink); white-space: nowrap; }
.bparts__each { display: block; font: 400 var(--fs-xs)/1.3 var(--font-body); color: var(--muted); }
.bparts__total { margin: 12px 0 0; font-size: .9375rem; }

/* one button, the whole width: the basket has the stepper, so no quantity box here (one is posted) */
.buy { order: 3; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.buy__qty { display: none; gap: 4px; flex: 0 0 104px; }
.buy__label { font-size: var(--fs-sm); font-weight: 600; }
.buy__btn { flex: 1 1 100%; width: auto; min-height: 56px; font-size: 1.125rem; box-shadow: var(--glow-mint); }
/* "View basket" beside the page's own button once something is added: from 1200px only (below, the action bar
   says "In your basket / View basket"; from 1200px that bar is a band at the top and only follows the button) */
.buy__view { display: none; }

/* delivery and what happens next: two plain rows */
.assure { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); font-size: .9375rem; line-height: 1.5; }
.assure__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.assure__item + .assure__item { border-top: 1px solid var(--hair); }
.assure__item > svg { flex: none; margin-top: 1px; color: var(--mint-deep); }
.assure a { font-weight: 600; }

/* key features: up to four short facts as tiles (the value over its label), the rest as ticked lines */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.facts__item { display: flex; flex-direction: column-reverse; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 12px; border-radius: var(--r-well); background: var(--well); }
.facts__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* three short facts ("10 kg", "1400 rpm", "A") stand in one row; under 375px they are two and one wide (small phones, below) */
.facts.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts.facts--3 .facts__item:last-child:nth-child(odd) { grid-column: auto; }
.facts__value { font: 700 1.125rem/1.2 var(--font-display); color: var(--navy); overflow-wrap: anywhere; }
.facts__label { font-size: var(--fs-eyebrow); line-height: 1.3; color: var(--muted); }
.ticks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.ticks svg { flex: none; margin-top: 3px; padding: 2px; border-radius: 50%; background: var(--mint); color: var(--ink); }

/* The gallery: a native scroll-snap row, one picture a swipe. Its height is what the buy block of a three-line name
   leaves on the first screen (--pdp-k), and less again while the cookie notice is open, so the name always stands
   above the notice and the buy button never leaves the first screen. */
.gallery { position: relative; display: block; --pdp-k: 290px; --gallery-floor: max(160px, 200px - var(--consent-h)); --gallery-h: clamp(var(--gallery-floor), calc(100vh - var(--header-h) - max(var(--pdp-k), var(--consent-h) + 189px)), 100vw); }
@supports (height: 100svh) {
  .gallery { --gallery-h: clamp(var(--gallery-floor), calc(100svh - var(--header-h) - max(var(--pdp-k), var(--consent-h) + 189px)), 100vw); }
}
/* a price under the loan minimum: its monthly line ("or from X a month with Y more in your basket") is one line of
   22px longer than a price in range, and the gallery gives way by that line so the button stays on the first screen */
.product:has(.price__monthly--more) .gallery { --pdp-k: 318px; }
.gallery__track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; background: #fff; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(var(--focus-w) * -1); }
.gallery__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery__open { display: grid; place-items: center; height: var(--gallery-h); padding: 12px 20px 16px; cursor: zoom-in; }
.gallery__open:focus-visible { outline-offset: -6px; }
.gallery__slide--cutout .gallery__open { padding: 12px 8px 16px; }
/* the frame is never larger than the picture's own pixels (its inline max-width and max-height): the white takes the rest */
.gallery__frame { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.gallery__img { display: block; width: 100%; height: 100%; object-fit: contain; }
html.no-js .gallery__img[data-src] { display: none; }      /* pictures 2 on: without the script the <noscript> copy is drawn */
.gallery__slide--cutout .gallery__img { filter: drop-shadow(0 10px 12px rgba(16, 11, 52, .16)); }
.gallery__none { display: grid; place-items: center; height: var(--gallery-h); background: radial-gradient(circle at 50% 42%, #fff 0, var(--well) 70%); color: var(--control); }
.gallery__flags { position: absolute; z-index: 1; top: 12px; left: 12px; display: grid; justify-items: start; gap: 6px; margin: 0; pointer-events: none; }
.gallery__flags .badge { min-height: 30px; font-size: .9375rem; }
.gallery__count { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: inline-flex; align-items: center; min-height: 26px; margin: 0; padding: 0 10px; border-radius: 13px; background: rgba(16, 11, 52, .72); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }
.gallery__thumbs { display: none; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gallery__thumb { display: block; width: 60px; height: 60px; padding: 6px; border: 2px solid var(--hair); border-radius: var(--r-well); background: #fff; transition: border-color var(--t-fast) var(--ease); }
.gallery__thumb[aria-current="true"] { border-color: var(--navy); }
.gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* The larger view: the whole screen. A top row (the count, Close), the pictures as a sideways strip, each slide its
   own scroller (a picture made larger pans inside it), and a row of thumbnails clear of the home indicator. */
.zoom { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--navy); overflow: hidden; }
.zoom[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.zoom::backdrop { background: rgba(16, 11, 52, .72); }
.zoom__bar { position: relative; display: grid; place-items: center; min-height: 56px; padding: var(--safe-t) max(4px, var(--safe-r)) 0 max(4px, var(--safe-l)); }
.zoom__count { margin: 0; font-size: .9375rem; font-weight: 600; min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; }
.zoom__close { position: absolute; right: max(4px, var(--safe-r)); bottom: 4px; width: 48px; height: 48px; }
.zoom__strip { display: flex; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.zoom__strip::-webkit-scrollbar { display: none; }
.zoom__strip:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: calc(var(--focus-w) * -1); }
.zoom__strip.is-zoomed { overflow-x: hidden; }             /* a picture made larger: one finger pans it, the strip holds */
.zoom__slide { flex: 0 0 100%; display: flex; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-snap-align: start; scroll-snap-stop: always; touch-action: pan-x pan-y; scrollbar-width: none; }
.zoom__slide::-webkit-scrollbar { display: none; }
/* fitted to its slide, and never beyond the picture's own pixels (--own-w, --own-h: written by the server, or by
   the script once it has seen the file) */
.zoom__img { display: block; flex: none; margin: auto; width: 100%; height: 100%; max-width: var(--own-w, none); max-height: var(--own-h, none); object-fit: contain; }
.zoom__slide.is-zoomed .zoom__img { max-width: none; max-height: none; }
.zoom__nav { display: none; align-items: center; justify-content: center; gap: 18px; padding: 10px 0 0; }
.zoom__thumbs { display: flex; gap: 8px; margin: 0; padding: 10px max(16px, var(--safe-r)) calc(12px + var(--safe-b)) max(16px, var(--safe-l)); list-style: none; overflow-x: auto; scrollbar-width: none; }
.zoom__thumbs::-webkit-scrollbar { display: none; }
.zoom__thumbs > li { flex: none; }
.zoom__thumbs > li:first-child { margin-left: auto; }
.zoom__thumbs > li:last-child { margin-right: auto; }
.zoom__thumb { display: block; width: 56px; height: 56px; padding: 4px; border: 0; border-radius: var(--r-well); background: var(--well); box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; }
.zoom__thumb[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--navy); }
.zoom__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* a phone on its side (a window 520px high or less, wider than tall): the larger view gives the picture the height;
   no arrow row (a swipe moves), a slimmer top row and smaller thumbnails */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .zoom .zoom__nav { display: none; }
  .zoom .zoom__bar { min-height: 44px; }
  .zoom .zoom__close { width: 44px; height: 44px; bottom: 0; }
  .zoom .zoom__thumbs { padding-top: 6px; padding-bottom: calc(6px + var(--safe-b)); }
  .zoom .zoom__thumb { width: 40px; height: 40px; padding: 3px; }
}

/* below the first screen: flat sections */
.pdetails { margin-top: 16px; }
.pdetails .accordion__body { max-width: 860px; }
/* a long description is held to eight lines by the script, with "Read more" under it (without the script it is whole) */
[data-clamp].is-clamped { position: relative; max-height: 192px; padding-bottom: 0; overflow: hidden; }
[data-clamp].is-clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(rgba(251, 248, 243, 0), var(--page)); pointer-events: none; }
.pdetails__more { width: 100%; min-height: 48px; margin: 6px 0 12px; }
.spec { table-layout: fixed; width: 100%; font-size: var(--fs-sm); }
.spec th { width: 44%; }
.spec th, .spec td { overflow-wrap: anywhere; }
/* nothing below the fold is laid out until it is near (the rail bleeds to the screen's edges, so its box does too) */
.pdetails { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.product__related { margin-inline: calc(var(--gutter) * -1); padding: 16px var(--gutter) 0; content-visibility: auto; contain-intrinsic-size: auto 392px; }
/* the note the action bar carries for a price under the least we finance (the bar itself is the chrome's) */
.product__barnote { font: 700 .8125rem/1.25 var(--font-body); color: var(--navy); }

/* ---------------------------------------------------------------------------------------------- content pages */
/* How it works, Help and the pages the team writes: one column on a phone, the side cards after the content. */
.content__head { padding: 16px 0 12px; }
.content__head h1 { font-size: var(--fs-h1); }
.content__layout, .help__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.content__side, .help__side { display: grid; gap: 16px; }
.content__body { font-size: 1rem; line-height: 1.6; }
/* page bodies start at h2 under the page's h1 (content.js pageBody) */
.content__body h2 { margin: 1.6em 0 .5em; font-size: 1.25rem; line-height: var(--lh-snug); color: var(--navy); }
.content__body h3 { font-size: 1.0625rem; }
.content__body h4 { font-size: 1rem; }
.content__body table { display: block; max-width: 100%; overflow-x: auto; }       /* a table scrolls inside its own box, never the page */
.content__updated { margin: 28px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.content__contact { display: grid; gap: 16px; margin-bottom: 28px; max-width: 560px; }
.content__address { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: var(--slate); }
.content__address svg { flex: none; color: var(--mint-deep); }
.content__cookie { margin-top: 24px; }
.content__example { margin-top: 24px; max-width: 70ch; }

/* "On this page": on a phone one closed row that opens the list of the page's sections */
.content__toc { margin: 0 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.content__toc-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 4px; font: 700 1.0625rem/1.25 var(--font-display); color: var(--navy); cursor: pointer; list-style: none; }
.content__toc-title::-webkit-details-marker { display: none; }
.content__toc-title::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform var(--t-med) var(--ease); }
.content__toc[open] > .content__toc-title::after { transform: translateY(3px) rotate(-135deg); }
.content__toc-list { margin: 0; padding: 0 4px 12px; list-style: none; }
.content__toc-list a { display: flex; align-items: center; min-height: 48px; font-weight: 600; color: var(--navy); }

/* "Top": appears once a long page has been scrolled two screens (content.js), above whatever is docked */
.totop { position: fixed; z-index: 30; right: max(12px, var(--safe-r)); bottom: calc(12px + max(var(--tab-now), var(--act-now)) + var(--consent-h)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow-lift); cursor: pointer; }
.totop:active { transform: scale(.94); }
html.sheet-open .totop, html.search-open .totop { display: none; }

.contact-card { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-card); background: var(--navy); color: #fff; }
.contact-card__title { font-size: 1.375rem; color: #fff; }
.contact-card__text { margin: 0; color: var(--on-dark-soft); font-size: .9375rem; }
.contact-card__list { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.contact-card__list li { display: flex; align-items: center; gap: 12px; min-height: var(--tap); }
.contact-card__list svg { flex: none; color: var(--mint); }
.contact-card__list a { display: inline-flex; align-items: center; min-height: var(--tap); color: #fff; font: 800 1.25rem/1.3 var(--font-display); overflow-wrap: anywhere; }
.contact-card a:focus-visible { outline-color: var(--mint); }

.help__group + .help__group { margin-top: 28px; }
.help__h2 { font-size: 1.25rem; margin-bottom: 8px; }

/* How it works: the title, the lead and the two buttons are the first screen; the example is straight under them */
.hiw__hero { padding: 12px 0 0; max-width: 880px; }
.hiw__hero .eyebrow { margin-bottom: 4px; }
.hiw__title { font-size: 1.875rem; line-height: 1.08; letter-spacing: var(--track-display); text-wrap: balance; margin-bottom: 8px; }
.hiw__hero .lead { margin: 0; line-height: 1.45; }
.hiw__hero .btn-row { display: grid; gap: 8px; margin-top: 12px; }
.hiw__hero .btn-row .btn { width: 100%; }
.hiw__example { margin-top: 14px; max-width: 880px; }
.hiw h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.hiw .section { padding-top: 20px; }
.hiw__split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hiw__split p { color: var(--slate); max-width: 56ch; }
.hiw__small { margin: 16px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.hiw__after { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: after; }
.hiw__after li { position: relative; padding-left: 46px; color: var(--slate); counter-increment: after; }
.hiw__after li::before { content: counter(after); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tile); color: var(--navy); font: 800 .9375rem/1 var(--font-display); }
.hiw__after strong { color: var(--navy); }
/* what it costs: the words, then the illustration, flat on the page like the product page's payments */
.hiw__cost { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; padding: 0; margin-top: 20px; border-radius: 0; background: none; }
.hiw__cost-text p { color: var(--slate); max-width: 56ch; }

/* ---------------------------------------------------------------------------------------------- compare */
/* Compare is a tablet and desktop tool: under 700px the product page's Compare button and the listing's tray are
   not drawn, and a tray that is not drawn takes no room at the foot of the window. The page /compare works at
   every width: its table scrolls sideways inside its own box, the specification names pinned at the left edge. */
.product__compare, .compare-tray { display: none; }
html:has(.compare-tray:not([hidden])) { --tray-now: 0px; }
.compare { padding-top: 12px; padding-bottom: var(--section-gap); }
.compare__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 12px; }
.compare__heading { margin: 0; font-size: var(--fs-h1); }
.compare__count { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.compare__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin-top: 10px; }
.compare__clear { margin: 0; }
.compare__note, .compare__example, .compare__none-yet { margin: 0 0 16px; }
.compare__note a { font-weight: 700; }
.compare__nodiff { display: none; margin: 0 0 16px; color: var(--slate); }
.compare--diff .compare__nodiff { display: block; }
/* (position: relative: the visually hidden words inside the table are placed, and clipped, by this box and cannot widen the page) */
.compare__scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--r-well); background: var(--card); }
.compare__scroll:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.compare__table { --cols: 2; --name-w: 112px; --col-min: 152px; width: 100%; min-width: calc(var(--name-w) + var(--cols) * var(--col-min)); border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: var(--fs-sm); line-height: 1.4; }
.compare__table--1 { --cols: 1; }
.compare__table--3 { --cols: 3; }
.compare__table--4 { --cols: 4; }
.compare__table th, .compare__table td { padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; background: var(--card); }
.compare__table tr > :first-child { position: sticky; left: 0; z-index: 1; width: var(--name-w); }
.compare__names th { padding-top: 14px; padding-bottom: 6px; font-weight: 700; }
.compare__name { display: block; color: var(--ink); text-decoration: none; }
.compare__brand { display: block; margin-bottom: 2px; font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.compare__cards td { padding-top: 4px; padding-bottom: 16px; }
.compare__pic { display: block; width: 100%; max-width: 160px; aspect-ratio: 1; margin: 0 0 10px; }
.compare__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.compare__cards .price__now { font-size: 1.25rem; }
.compare__stock { margin: 8px 0 10px; }
.compare__buy, .compare__remove { margin: 0; }
.compare__buy .btn { padding: 0 10px; gap: 6px; }
.compare__buy + .compare__remove, .compare__none + .compare__remove { margin-top: 6px; }
.compare__none { display: grid; align-items: center; min-height: var(--btn-h-sm); margin: 0; font-weight: 700; color: var(--stock-off); }
.compare__table .compare__grouphead th { position: static; padding: 20px 12px 8px; border-top: 1px solid var(--line); font: 800 1rem/1.2 var(--font-display); color: var(--navy); }
.compare__grouptitle { position: sticky; left: 12px; display: inline-block; }
.compare__row > * { border-top: 1px solid var(--hair); }
.compare__row th { font-weight: 600; color: var(--slate); }
.compare__table .compare__row:nth-child(even of .compare__row) > * { background: var(--panel); }
.compare__unstated { color: var(--muted); }
/* "Show only differences": rows, and whole groups, where every product states the same are left out */
.compare--diff .compare__row[data-same="true"], .compare--diff .compare__group[data-same="true"] { display: none; }
.compare--diff .compare__table .compare__row:nth-child(even of .compare__row) > * { background: var(--card); }
.compare--diff .compare__table .compare__row:nth-child(even of .compare__row:not([data-same="true"])) > * { background: var(--panel); }

/* ---------------------------------------------------------------------------------------------- small phones */
/* (one of the three refinements inside the phone range that PHONE_SPEC 0.2 allows) Under 375px wide the buy block
   is set a size smaller, so it is shorter and the gallery keeps its height. */
@media (max-width: 374.98px) {
  .gallery { --pdp-k: 274px; }
  .product:has(.price__monthly--more) .gallery { --pdp-k: 299px; }       /* the line of 20px more (above) */
  .facts.facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts.facts--3 .facts__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .product__name { font-size: 1.125rem; }
}

/* ===== 2 TABLET AND UP ===== */
/* From 700px the pages are panes side by side (docs/build-notes/devices/TABLET_DESKTOP_SPEC.md). Three words:
   TALL  any window from 700px that is not WIDE (an upright tablet, a split window): the plain rules of this block;
   WIDE  1000px or wider and wider than tall (a tablet on its side, every laptop and monitor);
   LOW   700px or wider and 520px high or less (a phone on its side): nothing is pinned.
   Everything that pins itself under the header uses --stuck-h (the header that is showing, the test ribbon included). */
@media (min-width: 700px) {
  /* ---- home: one order at every width, the markup's (the lead's decision, 18 Nov: what is seen is what the keyboard
     and a screen reader meet): the offer, the example, the categories as one compact row, the biggest reductions,
     the campaign band, the trust block */
  .home__hero { padding: 16px max(var(--gutter), var(--safe-r)) 0 max(var(--gutter), var(--safe-l)); }
  .home__lead { gap: 24px; padding-top: 16px; }
  .home__cats { margin-top: 0; }
  .home__cats-title { margin-bottom: 12px; }
  /* a compact row: the tiles are wider than tall, so the categories cost the first screens little above the deals */
  .home__cats .tile__art { aspect-ratio: 3 / 2; max-height: 150px; }
  .home__cats .tile { gap: 8px; }
  .home__deals { margin-inline: 0; padding-inline: 0; content-visibility: visible; }
  .home__trust { content-visibility: visible; }
  .home__campaign { --promo-band-radius: var(--r-hero); }
  .home__campaign .promo-band { border-radius: var(--r-hero); }
  /* the ribbon at the top: inside the content width, a card's corners, the offer 16px under it */
  .home__ribbon, .home__side { padding: 12px max(var(--gutter), var(--safe-r)) 0 max(var(--gutter), var(--safe-l)); --promo-band-radius: var(--r-card); }
  .home__ribbon .promo-band, .home__side .promo-band { border-radius: var(--r-card); overflow: hidden; }
  html:has(.home > .home__ribbon, .home > .home__side) .announce:has(a[href^="/campaign/"]) { display: block; }
  .home__deals, .home__campaign { margin-top: calc(var(--section-gap) - 24px); }            /* sections again, not items of the lead */
  .home__cats-title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }   /* "Shop by category" shows */
  .featured, .how, .sisters { content-visibility: visible; }
  .featured__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 8px; }
  .featured__tabs { display: inline-flex; border-radius: 28px; }
  .featured__tabs li { flex: none; min-width: 0; }
  .featured__tabs .pill { width: auto; min-height: var(--tap); padding-inline: 20px; }
  .featured__rail .section-head { top: 2px; margin: 0; }
  .featured:has(.featured__panel:not([hidden]) .featured__rail .link-arrow) .featured__head > .section-head__title { padding-right: 0; }
  .featured:has(.featured__panel:not([hidden]) .featured__rail .link-arrow) .featured__head { padding-right: 104px; }
  .how__example { display: block; }
  .sisters__list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
  .sister { display: grid; align-items: normal; justify-content: normal; gap: 8px; min-height: 0; padding: 28px; }
  .sister__eyebrow, .sister__text { display: block; }
  .sister__title { font-size: 1.5rem; line-height: 1.2; }
  .sister__go { flex: 0 1 auto; margin-top: 8px; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

  /* ---- listings: a title row, the example in one block, the Filter and Sort bar, then a pane beside the results */
  .listing__head { padding: 0 0 10px; }
  .listing__titles { gap: 6px 16px; }
  .listing__title { font-size: 1.875rem; line-height: var(--lh-tight); }
  .listing__count { font-size: inherit; }
  .listing__lead { display: block; }
  .listing__subs { margin-bottom: 14px; padding: 0; }
  .listing__subs .chips, .listing__applied { flex-wrap: wrap; overflow-x: visible; overscroll-behavior-x: auto; margin: 0; padding: 0; scroll-padding-inline: 0; scrollbar-width: auto; }
  .listing__subs .chips > li, .listing__applied > li { flex: 0 1 auto; }
  .listing__subs--sisters { display: none; }                    /* a leaf's sisters: the trail and the menu do that job here, and the row would cost the first screen 58px */
  .listing__example--top, .listing--example-inline .listing__example--top { display: block; margin-bottom: 14px; }
  .listing .product-grid__item--wide { display: none; }          /* the copy inside the list is the phone's: one copy is shown at any width */
  .listing__note { margin: 0 0 14px; font-size: inherit; }
  .listing__tiles { margin-top: 22px; }
  .listing__none .empty { border-color: var(--line); }
  .listing__bar { position: static; z-index: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 0; background: none; box-shadow: none; transition: none; }
  .listing__filter-btn { display: inline-flex; width: auto; min-height: var(--btn-h-sm); padding: 0 20px; }
  .listing__filter-btn[aria-expanded="true"] { --btn-bg: var(--navy); --btn-fg: #fff; background: var(--navy); color: #fff; }
  .sort { gap: 10px; min-width: auto; margin-left: auto; }
  .sort__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .sort__select { flex: 0 1 auto; min-width: auto; }
  .sort__select .field__input { min-height: var(--tap); min-width: 200px; padding: 0 46px 0 16px; font-size: 1rem; text-overflow: clip; }
  .sort__select svg { right: 14px; }
  .listing__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .listing__main { gap: 16px; scroll-margin-top: calc(var(--stuck-h) + 12px); }
  /* The pane. Its state is two classes on the layout that ONLY the shopper sets (pane-open, pane-closed), so the
     first paint is already right and nothing shifts when the script arrives: closed on a TALL window, open on a
     WIDE one, and always open (with its own button) without the script. */
  .filters { display: none; order: 0; position: sticky; top: calc(var(--stuck-h) + 12px); max-height: calc(100vh - var(--stuck-h) - 24px); max-height: calc(100dvh - var(--stuck-h) - 24px); overflow-y: auto; overscroll-behavior: contain; margin-top: 0; padding: 14px 16px; scroll-margin-top: 0; }
  /* the pane scrolls by itself: a box it moves into view by the keyboard stops clear of the cookie notice or a bar
     at the window's foot (the page's own scroll-padding does not reach inside it), and the pane ends above them */
  .filters { scroll-padding-block: 8px calc(max(var(--act-now), var(--tray-now)) + var(--consent-h) + 16px); max-height: calc(100dvh - var(--stuck-h) - 24px - max(var(--act-now), var(--tray-now)) - var(--consent-h)); }
  .listing__layout.pane-open { grid-template-columns: 256px minmax(0, 1fr); }
  .listing__layout.pane-open .filters, html.no-js .filters { display: block; }
  /* <html> carries no-js until app.js runs, seconds after the first paint on a slow connection: the first paint is
     the scripted page (the pane shut until the shopper opens it; a WIDE window opens it, below), and the pane that is
     always open without JavaScript, with no Filter button, is the layout's <noscript> rule (U_speed, 18 Nov) */
  .listing__layout:not(.pane-open) .filters { display: none; }
  .filters__head { min-height: 0; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
  .filters__title { font-size: 1.125rem; }
  .filters__group { padding: 12px 0; }
  .filters__legend { margin-bottom: 4px; }
  /* rows with ticks, not the phone's chips */
  .filters__list { display: grid; gap: 0; }
  .filters__check { position: static; display: flex; gap: 12px; min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: none; color: inherit; font-weight: inherit; }
  .filters__check .check__input { position: static; inset: auto; width: 24px; height: 24px; opacity: 1; }
  .filters__check .check__label { line-height: 1.55; }
  .filters__check:has(.check__input:checked) { background: none; color: inherit; }
  .filters__check:has(.check__input:focus-visible) { outline: 0; }
  .filters__check:active { opacity: 1; }
  .filters__check:has(.check__input:checked) .filters__count { color: var(--muted); }
  .filters__count { font-size: inherit; }
  .filters__count::after { content: none; }
  .filters__actions { display: grid; gap: 4px; justify-items: center; padding-top: 14px; }
  .filters__actions .btn { width: 100%; min-height: var(--btn-h); }
  .filters__clear { order: 2; }
  .filters__clear-more { display: inline; }
  html:is(.js, .no-js) .filters__actions .btn { display: none; }                         /* a tick applies at once (no script: <noscript>) */
  html:is(.js, .no-js) .filters__actions:not(:has(.filters__clear)) { display: none; }
  /* WIDE: the pane is open unless the shopper closed it, and the title, the count, the Filter button and Sort share
     one row */
  @media (min-width: 1000px) and (orientation: landscape) {
    .listing__layout:not(.pane-closed) { grid-template-columns: 256px minmax(0, 1fr); }
    .listing__layout:not(.pane-closed) .filters { display: block; }
    .listing { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
    .listing > * { grid-column: 1 / -1; min-width: 0; }
    .listing > .listing__head { grid-column: 1; grid-row: 1; }
    .listing > .listing__bar { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 10px; gap: 16px; }
  }
  @media (max-height: 900px) { .listing__lead { display: none; } }
  @media (max-height: 520px) { .filters { position: static; max-height: none; } }       /* LOW */

  /* ---- the deals heading panel: the full panel, or (a window 1000px high or less) a strip with its title alone;
     with a carousel set up the carousel shows and the phone's strip does not */
  .store-banner-wrap { padding-top: 16px; }
  .store-banner-wrap--strip { display: none; }
  .store-banner { border-radius: var(--r-hero); min-height: 200px; }
  .store-banner__inner { padding: 36px clamp(22px, 5vw, 56px); gap: 8px; }
  .store-banner__eyebrow, .store-banner__text { display: block; }
  .store-banner__count { display: none; }
  .store-banner-wrap:has(.store-banner__count) + .listing--head-in-banner > .listing__head { display: block; }
  .store-banner__title { font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem); line-height: 1; }
  .store-campaign { padding-top: 16px; }
  .store-carousel { display: block; }
  .store-banner-wrap + .listing .listing__head, .store-campaign + .listing .listing__head, .store-carousel + .listing .listing__head { padding-top: 20px; }
  .store-banner > .promo-bg__art { --promo-fx: 80%; --promo-fy: 50%; --promo-r: 11cqi; }
  @media (max-height: 1000px) {
    .store-banner { min-height: 0; }
    .store-banner__inner { padding-block: 12px; }
    .store-banner-wrap + .listing .listing__head { padding-top: 12px; }
    .store-banner__title { font-size: 2.25rem; }
    .store-banner__eyebrow, .store-banner__text { display: none; }
  }

  /* ---- product: two columns that each flow on their own. Left (.product__media): the gallery, key features,
     delivery and what happens next. Right (.product__panel): brand, name, price with its credit lines, stock, the
     button, then "Your payments" and the example. The text of the panel is left-aligned. */
  .product__layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(290px, 39%, 400px); gap: 0 24px; align-items: start; padding-top: 8px; }
  .product__media { display: grid; grid-column: 1; grid-row: 1; gap: 28px; min-width: 0; }
  .product__panel { display: grid; grid-column: 2; grid-row: 1; gap: 14px; min-width: 0; text-align: left; }
  .product__media > *, .product__panel > * { order: 0; }
  .product__head { padding: 0; text-align: left; }
  .product__buy { display: grid; gap: 14px; margin-top: 0; }
  .product__buy > * { order: 0; }
  /* larger text (130%): nothing in the panel is wider than its column; the button and its neighbours wrap */
  .product__panel > *, .product__buy, .product__finance { min-width: 0; }
  .product__buy, .product__finance { grid-template-columns: minmax(0, 1fr); }
  .product__gallery { position: static; width: 100%; max-width: 640px; margin: 0; padding: 0; }
  .product__brand { margin: 0 0 6px; line-height: inherit; }
  .product__name { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: clamp(1.25rem, .95rem + .9vw, 1.875rem); line-height: 1.18; }
  .product__model { display: block; }
  .product__flag { display: block; }
  .product__stock { margin: 0; text-align: left; font-size: inherit; }
  .product__h2 { margin-bottom: 10px; }
  .product__nofinance { margin: 0; font-size: var(--fs-sm); line-height: inherit; text-align: left; }
  .product__unavailable { margin-top: 0; }
  .product__features, .product__finance { margin-top: 0; padding-top: 0; border-top: 0; }
  .product__bundle { margin-top: 0; padding-top: 0; border-top: 0; }
  .bparts__item { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .bparts__media { width: 80px; height: 80px; }
  .product__finance { gap: 14px; margin-top: 6px; }
  .buy { flex-wrap: wrap; margin-top: 0; }
  .buy__qty { display: grid; flex: 0 0 88px; }
  .buy__qty .field__input, .buy__btn { min-height: 56px; }
  .buy__btn { flex: 1 1 11rem; min-width: 0; padding: 0 16px; }
  .assure { gap: 12px; margin: 0; padding: 14px 16px; border-top: 0; border-radius: var(--r-well); background: var(--well); font-size: var(--fs-sm); }
  .assure__item { padding: 0; }
  .assure__item + .assure__item { border-top: 0; }
  .facts { margin-bottom: 14px; }
  .ticks { gap: 8px; font-size: inherit; }
  .gallery { display: grid; gap: 12px; }
  .gallery__track { border: 1px solid var(--hair); border-radius: var(--r-hero); }
  .gallery__track:focus-visible { outline-offset: var(--focus-gap); }
  .gallery__open { aspect-ratio: 1; height: auto; padding: 12px; }
  .gallery__open:focus-visible { border-radius: var(--r-hero); }
  .gallery__slide--cutout .gallery__open { padding: 12px 12px 16px; }      /* room for the cut-out's own shadow */
  .gallery__none { height: auto; aspect-ratio: 1; border-radius: var(--r-hero); }
  .gallery__flags, .gallery__count { display: none; }
  .gallery__thumbs { display: flex; flex-flow: row wrap; gap: 10px; }
  .gallery__thumb { width: 64px; height: 64px; }
  /* TALL (an upright tablet, a split window): the picture column is not held to the window's height, so the well
     takes picture 1's shape: a tall product a taller well, a wide one a shorter well (src/store/product.js shapeOf) */
  @media (max-width: 999.98px), (orientation: portrait) {
    .gallery[data-shape="tall"] .gallery__open { aspect-ratio: 4 / 5; }
    .gallery[data-shape="wide"] .gallery__open { aspect-ratio: 4 / 3; }
  }
  /* the narrowest tablets: the thumbnails stay one row and scroll, never four and one */
  @media (max-width: 743.98px) { .gallery__thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; } .gallery__thumbs > li { flex: none; } }
  /* the larger view on a touch screen stays the phone's whole-screen sheet, with its arrows and 64px thumbnails */
  .zoom__nav { display: flex; }
  .zoom__thumbs { justify-content: center; }
  .zoom__thumb { width: 64px; height: 64px; }
  .pdetails { margin-top: 48px; content-visibility: visible; }
  [data-clamp].is-clamped { max-height: none; padding-bottom: 24px; overflow: visible; }  /* the description is whole */
  [data-clamp].is-clamped::after { content: none; }
  .pdetails__more { display: none; }
  .pdetails .accordion__body:has(.spec) { max-width: none; }
  .spec { table-layout: auto; font-size: .9375rem; }
  .spec th, .spec td { overflow-wrap: break-word; }
  .spec tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .spec tr { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
  .spec th { width: auto; }
  .product__related { margin-inline: 0; padding: var(--section-gap) 0 0; content-visibility: visible; }
  @media (min-width: 1000px) and (orientation: landscape) {
    .product__layout { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr); column-gap: 40px; }
    .product__gallery { max-width: max(440px, calc(100vh - var(--header-h) + 40px)); max-width: max(440px, calc(100dvh - var(--header-h) + 40px)); }   /* the picture is never taller than the window allows */
    /* the thumbnails stand down the left of the picture; the rail takes the picture's height and scrolls inside itself */
    .gallery:not(.gallery--none) { grid-template-columns: 68px minmax(0, 1fr); align-items: start; }
    .gallery__thumbs { grid-column: 1; grid-row: 1; flex-flow: column nowrap; gap: 8px; contain: size; align-self: stretch; overflow-y: auto; scrollbar-width: none; }
    .gallery__thumbs::-webkit-scrollbar { display: none; }
    .gallery__track { grid-column: 2; grid-row: 1; }
    .gallery:not(:has(.gallery__thumbs)) { grid-template-columns: minmax(0, 1fr); }
    .gallery:not(:has(.gallery__thumbs)) .gallery__track { grid-column: 1; }
    .gallery__thumb { width: 68px; height: 68px; }
    .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .facts__item:last-child:nth-child(odd) { grid-column: auto; }
  }
  /* A WIDE window: "Your payments" follows the button closely, so that at scroll 0 the payment figure and its
     "89.9% APR representative" are either both on the first screen or both below it (they are never parted by the
     fold: TABLET_DESKTOP_SPEC 4.1). Only spacing changes here: the words and their order are the same everywhere. */
  @media (min-width: 1000px) and (orientation: landscape) {
    .product__finance { margin-top: 0; }
  }
  /* (a window 700px high or less keeps the roomier spacing: there the figure starts below the first screen) */
  @media (min-width: 1000px) and (orientation: landscape) and (min-height: 700.02px) and (max-height: 860px) {
    .product__panel .finance { gap: 12px; padding-top: 20px; }
    .product__panel .finance__logo { height: 32px; }
  }
  @media (min-width: 1000px) and (max-height: 760px) { .product__name { font-size: 1.5rem; } .product__panel { gap: 10px; } }   /* SHORT */
  @media (min-width: 1000px) and (min-height: 700.02px) and (max-height: 760px) {
    .product__layout { padding-top: 0; }
    .product__name { font-size: 1.375rem; }
    .product__buy { gap: 10px; }
    .product__panel .buy__qty .field__input, .product__panel .buy__btn { min-height: 52px; }
    .product__panel .finance { gap: 10px; padding-top: 16px; }
    .product__panel .finance__logo { height: 28px; }
    .product__panel .finance__options .pill { min-height: 40px; }
  }
  @media (max-height: 520px) { .product__gallery { max-width: calc(100vh - 24px); max-width: calc(100dvh - 24px); } }           /* LOW */

  /* ---- content pages: the text and a pinned side column; a long page's "On this page" open under its title */
  .content__head { padding: 8px 0 20px; }
  .content__layout, .help__layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; max-width: 1120px; }
  .content__side, .help__side { position: sticky; top: calc(var(--stuck-h) + 16px); }
  .content__body { font-size: 1.0625rem; line-height: inherit; }
  .content__body h2 { font-size: var(--fs-h3); }
  .content__body h3 { font-size: 1.125rem; }
  .content__toc { margin: 0 0 24px; padding: 16px 20px; border: 0; border-radius: var(--r-well); background: var(--panel); max-width: 70ch; }
  .content__toc-title { min-height: 0; padding: 0; font-size: 1rem; cursor: default; pointer-events: none; }
  .content__toc-title::after { content: none; }
  .content__toc-list { columns: 2; column-gap: 32px; margin: 8px 0 0; padding: 0; }
  .content__toc-list li { break-inside: avoid; }
  .content__toc-list a { display: inline-flex; min-height: 44px; font-size: var(--fs-sm); }
  .totop { right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: calc(24px + max(var(--act-now), var(--tray-now)) + var(--consent-h)); }
  .contact-card { padding: 24px; }
  .contact-card__list a { font-size: 1.125rem; font-weight: 700; }
  .contact-card__list a[href^="mailto:"] { font-size: .9375rem; overflow-wrap: normal; }   /* breaks only after its @ (content.js) */
  /* the help page: the side column stands level with the title (the title is in the first column, as on a text page) */
  .help .content__head .lead { margin-top: 12px; }
  .help__group + .help__group { margin-top: 36px; }
  .help__h2 { font-size: 1.5rem; margin-bottom: 12px; }
  .hiw__hero { padding: 24px 0 8px; }
  .hiw__hero .eyebrow { margin-bottom: 8px; }
  .hiw__title { font-size: var(--fs-display); line-height: 1.04; margin-bottom: 16px; }
  .hiw__hero .lead { margin: 0 0 1em; line-height: inherit; }
  .hiw__hero .btn-row { display: flex; gap: 12px; margin-top: 24px; }
  .hiw__hero .btn-row .btn { width: auto; }
  .hiw__example { margin-top: 24px; }
  .hiw .section { padding-top: var(--section-gap); }
  .hiw h2 { margin-bottom: 16px; }
  .hiw__split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
  .hiw__cost { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 24px 40px; margin-top: var(--section-gap); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-hero); background: var(--tile); }
  @media (max-height: 520px) { .content__side, .help__side { position: static; } }       /* LOW */

  /* ---- compare: the product page's button, the listing's tray, the page's table */
  /* the product page's Compare: after "Your payments" and the example (never between the button and the figures) */
  .product__compare { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 0; }
  .product__compareform { margin: 0; }
  .product__comparebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; margin-left: -8px; border: 0; border-radius: var(--r-pill); background: none; color: var(--navy); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; }
  .product__comparebtn[aria-pressed="true"] .product__compare-off, .product__comparebtn[aria-pressed="false"] .product__compare-on { display: none; }
  .product__compare-on { display: inline-flex; align-items: center; gap: 6px; }
  .product__compare-on > svg { padding: 2px; border-radius: 50%; background: var(--mint); color: var(--ink); }
  .product__comparebtn[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
  .product__comparelink { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 700; color: var(--navy); }
  .product__comparelink[hidden], .product__comparefull[hidden] { display: none; }
  .product__comparefull { flex: 1 1 100%; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--slate); }
  .compare-tray { display: block; position: fixed; inset: auto 0 0 0; z-index: var(--z-dock); padding-bottom: var(--safe-b); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px rgba(16, 11, 52, .1); }
  .compare-tray[hidden] { display: none; }
  html:has(.compare-tray:not([hidden])) { --tray-now: calc(72px + var(--safe-b)); }
  .compare-tray__row { display: flex; align-items: center; gap: 16px; height: 71px; }      /* with the top edge: 72px */
  .compare-tray__label { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 1rem/1 var(--font-display); color: var(--navy); }
  .compare-tray__items { display: flex; gap: 20px; margin: 0 auto 0 4px; padding: 0; list-style: none; }
  .compare-tray__item { position: relative; width: 56px; height: 56px; }
  .compare-tray__img { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
  .compare-tray__form { position: absolute; top: -14px; right: -18px; margin: 0; }
  .compare-tray__remove { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--navy); cursor: pointer; }
  .compare-tray__remove svg { box-sizing: content-box; padding: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--control); }
  .compare-tray__clear { margin: 0; }
  .compare-tray__clear .btn { padding: 0 12px; }
  .compare-tray__hint { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--slate); }
  .compare-tray__go[hidden], .compare-tray__hint[hidden] { display: none; }
  /* (the listing's last row and the page turner clear the tray: the footer's own padding is A's) */
  .compare { padding-top: 16px; }
  .compare__head { margin-bottom: 16px; }
  .compare__tools { width: auto; margin: 0 0 0 8px; }
  .compare__note, .compare__example { margin-bottom: 20px; }
  .compare__example { max-width: 880px; }
  .compare__table { --name-w: 148px; --col-min: 220px; font-size: .9375rem; }
  .compare__table th, .compare__table td { padding: 12px 14px; }
  .compare__names th { padding-top: 16px; padding-bottom: 8px; font-size: 1rem; }
  .compare__cards td { padding-top: 6px; padding-bottom: 20px; }
  .compare__cards .price__now { font-size: 1.5rem; }
  .compare__table .compare__grouphead th { padding: 26px 14px 10px; font-size: 1.125rem; }
  .compare__grouptitle { left: 14px; }
  /* one, two or three products do not stretch across a wide page */
  .compare__scroll:has(.compare__table--1) { max-width: 520px; }
  .compare__scroll:has(.compare__table--2) { max-width: 800px; }
  .compare__scroll:has(.compare__table--3) { max-width: 1080px; }
  /* a table wider than its box fades at its right edge: there is more to the side (compare.js marks .can-scroll
     and takes the fade away at the end) */
  .compare__scroll.can-scroll { mask-image: linear-gradient(90deg, #000 calc(100% - 48px), rgba(0, 0, 0, .25)); }
  .compare__scroll.can-scroll.at-end { mask-image: none; }
  /* from 1000px the columns always fit the page (four of them are 180px or more), so the table is not a scrolling
     box and the row of names can stay under the header while the page scrolls */
  @media (min-width: 1000px) {
    .compare__scroll { overflow: visible; }
    .compare__table { --name-w: 168px; min-width: 0; }
    .compare__title { -webkit-line-clamp: 2; }
    .compare__names > * { position: sticky; top: var(--stuck-h); z-index: 2; box-shadow: 0 1px 0 var(--line); background: var(--card); }
    .compare__table .compare__grouphead th { position: relative; z-index: 0; }          /* tucks wholly under the pinned row */
    .compare__grouptitle { position: static; }
    .compare__table .compare__names > :first-child { z-index: 3; }
    .compare__names > :first-child { border-top-left-radius: var(--r-well); }
    .compare__names > :last-child { border-top-right-radius: var(--r-well); }
    .compare__table tr:last-child > :first-child { border-bottom-left-radius: var(--r-well); }
    .compare__table tr:last-child > :last-child { border-bottom-right-radius: var(--r-well); }
  }
  @media (max-height: 520px) { .compare__names > * { position: static; } }       /* LOW: nothing is pinned */
}

/* ===== 3 DESKTOP ===== */
@media (min-width: 1200px) {
  .listing__title { font-size: 2rem; }
  .spec tbody { column-gap: 56px; }
  .spec tr { grid-template-columns: 38% minmax(0, 1fr); }
  .content__layout, .help__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .compare__table { --name-w: 200px; }
  /* the gallery's picture as large as its well allows (the white inset is thinner on a large screen) */
  .gallery__open { padding: 8px; }
  .gallery__slide--cutout .gallery__open { padding: 8px 8px 14px; }
  .buy__view:not([hidden]) { display: inline-flex; flex: 0 0 auto; min-height: 56px; padding: 0 20px; font-size: 1rem; }
}
@media (min-width: 1340px) {
  /* ---- home with a campaign on the left or right, from 1340px: two columns inside the content width. (Measured,
     18 Nov: under about 1340px the main column is under 960px and the offer slide drops its three zones for a
     tall two-column slide whose button falls under the fold at 1280 x 720; so below 1340px the side campaign is
     the ribbon at the top, as on a tablet.) The panel runs down its
     side beside the main sections (the offer, the example, the categories, the reductions, the trust strip, the
     featured and team rails, "Pick up where you left off"): it spans the first 20 rows of the grid, they take a row
     each in the other column, and "How it works" and the sister sites take the full width after the 20th row
     (rows with nothing in them are 0 high). Pinned under the header and never taller than the window (the
     picture gives way first: promo.css 8b), so it stops where the main sections stop. The main sections' own
     .wrap gutters are the grid's now; their grids and rails size themselves by their own boxes (container
     queries), so they simply take what the narrower column leaves. */
  .home--side { --home-side-w: clamp(260px, 19vw, 300px); display: grid; grid-template-columns: [main-start] minmax(0, 1fr) [main-end]; column-gap: 28px; row-gap: 0; align-items: start; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), var(--safe-l)) max(var(--gutter), var(--safe-r)); }
  .home--camp-left { grid-template-columns: [side-start] var(--home-side-w) [side-end main-start] minmax(0, 1fr) [main-end]; }
  .home--camp-right { grid-template-columns: [main-start] minmax(0, 1fr) [main-end side-start] var(--home-side-w) [side-end]; }
  .home--side > * { grid-column: main; min-width: 0; }
  /* the column runs the height of those rows; the panel inside it is what is pinned (a pinned grid item would be
     held by the whole grid in Chromium, and so run on over "How it works") */
  .home--side > .home__side { grid-column: side; grid-row: 1 / span 20; align-self: stretch; margin-top: 16px; padding: 0; container: campaign-rail / inline-size; --promo-band-radius: var(--r-hero); }
  .home--side > .home__side > .promo-band { position: sticky; top: calc(var(--stuck-h) + 16px); z-index: 1; max-height: calc(100vh - var(--stuck-h) - 32px); max-height: calc(100dvh - var(--stuck-h) - 32px); border-radius: var(--r-hero); }
  .home--side > .how, .home--side > .sisters { grid-column: 1 / -1; }
  .home--side > .wrap, .home--side > * > .wrap { max-width: none; padding-inline: 0; }
  .home--side .featured__rail .section-head { right: 0; }
}
/* from 1600px the product page has a third column: the gallery pinned, the name to the key features in the middle,
   "Your payments" and the example pinned at the right */
@media (min-width: 1600px) {
  .product__layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(340px, .8fr); grid-auto-rows: min-content; column-gap: 40px; }
  .product__panel, .product__media { display: contents; }
  .product__gallery { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: calc(var(--stuck-h) + 16px); align-self: start; max-width: none; }
  .product__head { grid-column: 2; grid-row: 1; padding-bottom: 14px; }
  .product__buy { grid-column: 2; grid-row: 2; }
  .assure { grid-column: 2; grid-row: 3; margin-top: 14px; }
  .product__features { grid-column: 2; grid-row: 4; margin-top: 28px; }
  .product__bundle { grid-column: 2; grid-row: 4; margin-top: 28px; }
  .product__bundle ~ .product__features { grid-row: 5; }
  .product__finance { grid-column: 3; grid-row: 1 / span 6; position: sticky; top: calc(var(--stuck-h) + 16px); align-self: start; margin: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* while the band (the action bar under the header) is showing, the pinned columns stand under it */
  html:has(.actbar[data-buybar]:not([hidden]):not(.is-away)) :is(.product__gallery, .product__finance) { top: calc(var(--stuck-h) + 76px); }
}

/* from 1600px the text pages are a centred block, not a column at the left of a wide screen; How it works puts its
   three steps beside the title and the example */
@media (min-width: 1600px) {
  .content__layout, .help__layout { margin-inline: auto; }
  .hiw > .wrap { display: grid; grid-template-columns: minmax(0, 880px) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .hiw > .wrap > * { grid-column: 1 / -1; }
  .hiw > .wrap > .hiw__hero { grid-column: 1; grid-row: 1; }
  .hiw > .wrap > .hiw__example { grid-column: 1; grid-row: 2; }
  .hiw > .wrap > .hiw__steps { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding-top: 24px; }
  .hiw__steps .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hiw__steps .steps__item { flex-direction: row; gap: 16px; padding: 20px 24px; }
}

/* ===== 4 CAPABILITY AND MODES ===== */
@media (hover: hover) and (pointer: fine) {
  .sister:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
  .listing__applied .chip:hover { border-color: var(--navy); }
  .gallery__thumb:hover:not([aria-current="true"]) { border-color: var(--control); }
  .zoom__thumb:hover:not([aria-current="true"]) { box-shadow: inset 0 0 0 2px var(--control); }
  .content__toc-list a:hover { text-decoration: underline; }
  .compare__name:hover .compare__title { text-decoration: underline; }
  .product__comparebtn:hover { background: var(--well); }
  .compare-tray__remove:hover svg { background: var(--well); box-shadow: 0 0 0 1px var(--navy); }
}
/* a mouse or a trackpad from 700px: closer rows in the filter pane; the larger view is a centred dialog that shows
   one picture at a time (its arrows, thumbnails and keys change it) and can bring a picture to its own size */
@media (min-width: 700px) and (hover: hover) and (pointer: fine) {
  .filters__check { min-height: 36px; padding: 5px 0; }
  .filters__list--scroll { max-height: 216px; overflow-y: auto; padding-right: 6px; }
  .content__toc-list a { min-height: 32px; }
  .zoom, .zoom.sheet--full { inset: 0; width: min(96vw, 1400px); height: 96vh; max-height: 96vh; margin: auto; padding: 0 16px 12px; border-radius: var(--r-card); box-shadow: var(--shadow-pop); }
  .zoom__bar { min-height: 56px; padding: 0; }
  .zoom__close { right: -8px; }
  .zoom__strip { overflow: hidden; scroll-snap-type: none; }
  .zoom__slide { cursor: default; }
  .zoom__slide.can-zoom { cursor: zoom-in; }
  .zoom__slide.is-zoomed { cursor: zoom-out; }
  .zoom__nav { gap: 12px; }
  .zoom__thumbs { padding: 10px 0 0; }
  .gallery__open { cursor: zoom-in; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__track, .zoom__strip { scroll-behavior: auto; }
  .listing__bar { transition: none; }
}
/* forced colours: what was drawn with a shadow or a fill gets a real edge */
@media (forced-colors: active) {
  .filters__check, .zoom__thumb, .gallery__thumb, .facts__item, .totop, .gallery__count { border: 1px solid CanvasText; }
  .filters__check:has(.check__input:checked), .zoom__thumb[aria-current="true"], .gallery__thumb[aria-current="true"] { border-width: 3px; }
  .listing__bar { border-bottom: 1px solid CanvasText; }
  .compare-tray { border-top: 1px solid CanvasText; }
  .compare__row > * { border-top: 1px solid CanvasText; }
}
/* print: the page's words and pictures, without what is fixed to the window */
@media print {
  .totop, .listing__bar, .filters, .gallery__count, .gallery__thumbs, .pdetails__more, .compare-tray, .compare__tools, .compare__buy, .compare__remove { display: none !important; }
  .compare__scroll { overflow: visible; border: 0; }
  .compare__names > * { position: static; }
  [data-clamp].is-clamped { max-height: none; overflow: visible; }
  [data-clamp].is-clamped::after { content: none; }
  .home__deals, .home__trust, .featured, .how, .sisters, .pdetails, .product__related { content-visibility: visible; }
}
