/* /range/ - the "explore the range" page. Uses the tokens from site.css and
   the .tf-grid/.tf-card/.tbl-find components from product.css; adds the
   filter bar, the 18 large family-entry cards, and their in-place expand
   panels. */

/* ---- heading row: the compact filter sits beside the heading, in the
   dead space a left-aligned h1 would otherwise leave. It's a utility, not
   a feature, so it stays small - no eyebrow, no h2, just search, two
   dropdowns and a quiet count. The decoder is the page's centrepiece and
   gets the full width below, not a half-share of this row. */
.rng-top{display:grid;grid-template-columns:1fr minmax(296px,360px);gap:25.2px;
  align-items:start;margin:14px 0 12px}
/* kept compact so a full row of families fits under it on the first screen */
.rng-top .pd-head{padding:0;border-bottom:0}
.rng-top .pd-head h1{font-size:clamp(30px,3vw,42px);margin:0}
.rng-top .pd-head h1 em{display:block;margin-top:6px;font-size:.5em;letter-spacing:-.005em}
.rng-top .pd-lede{font-size:15px;margin:10px 0 0}

.rng-filters{padding:0}


/* the decoder folds away behind the "Decode a model number" button: the
   grid row animates from 0fr to 1fr, so it opens to its real height */
.rng-dec{display:grid;grid-template-rows:1fr;border-top:1px solid var(--line);padding:36px 0 8px;margin:24px 0 72px;
  transition:grid-template-rows .45s var(--ease),padding .45s var(--ease),margin .45s var(--ease),border-color .3s var(--ease)}
.rng-dec-in{min-height:0;overflow:hidden;padding:4px;margin:-4px;transition:opacity .35s var(--ease)}
.rng-dec.is-collapsed{grid-template-rows:0fr;padding-top:0;padding-bottom:0;margin:0;border-top-color:transparent}
.rng-dec.is-collapsed .rng-dec-in{opacity:0}
.rng-dec-tg{margin-top:16px;padding:9px 18px;font-size:14px}
.rng-dec-tg .chev{width:14px;height:14px;transition:transform .3s var(--ease)}
.rng-dec-tg[aria-expanded="true"] .chev{transform:rotate(180deg)}

.rng-dec-lede{color:var(--muted);font-size:14.5px;line-height:1.55;max-width:52ch}
.rng-dec h2{font-size:clamp(24px,2.4vw,34px);margin:0 0 12.6px}
.rng-dec .dec-tabs{margin-top:18.9px}

@media(max-width:860px){
  .rng-top{grid-template-columns:1fr;gap:16px;margin:10px 0 12px;align-items:start}
}
/* a short laptop window: the heading gives up its second line so the
   first row of families still fits */
@media(min-width:861px) and (max-height:820px){
  .rng-top{margin:6px 0 18px}
  .rng-top .pd-head h1{font-size:34px}
  .rng-top .pd-lede{display:none}
}
/* on a phone the search box and the two filters say what the page does */
@media(max-width:560px){
  .rng-top .pd-lede{display:none}
  .rng-dec-tg{margin-top:12px}
}
@media(max-width:560px) and (max-height:760px){
  .rng-top{gap:12px;margin-bottom:18px}
  .rng-top .pd-head h1 em{display:none}
  .rng-dec-tg{margin-top:10px}
}

.rng-search{position:relative;margin:0 0 10px}
.rng-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);
  width:15px;height:15px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round}
.rng-search input{width:100%;padding:10px 13px 10px 38px;border:1px solid var(--line-2);
  border-radius:9px;background:var(--surface);font-family:inherit;font-size:13.65px;color:var(--text);
  -webkit-appearance:none;appearance:none;transition:border-color .2s var(--ease)}
.rng-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.rng-search input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}

/* side by side: the labels are short now ("Pressure class", "End
   connection"), and a row saves the height a full first row of families
   needs */
.rng-fsel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.rng-fsel .rng-sel{min-width:0}
/* the select's arrow: the shape comes from an SVG mask, the colour from a
   token, so it follows the theme */
.rng-sel{position:relative;display:block}
.rng-sel:after{content:"";position:absolute;right:8px;top:50%;width:13px;height:13px;margin-top:-6.5px;
  background:var(--muted);pointer-events:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/13px 13px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/13px 13px no-repeat}
.rng-fsel select{width:100%;padding:8.5px 28px 8.5px 11px;border:1px solid var(--line-2);
  border-radius:9px;background:var(--surface);
  font-family:inherit;font-size:12.6px;font-weight:600;color:var(--text-2);cursor:pointer;
  -webkit-appearance:none;appearance:none;transition:border-color .2s var(--ease)}
.rng-fsel select:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}

.rng-active{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.rng-achip{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;
  background:var(--brand-tint);border:1px solid var(--brand-tint-2);color:var(--accent-strong);font-size:11.6px;
  font-weight:650;cursor:pointer;transition:border-color .2s var(--ease),background .2s var(--ease)}
.rng-achip:hover{background:var(--brand-tint-2)}
.rng-achip span{font-size:13px;line-height:1;opacity:.75}

.rng-count{margin:8px 0 0;font-size:12px;color:var(--muted)}
.rng-clear[hidden]{display:none}
.rng-clear{display:inline-block;margin-top:4px;font-size:11.6px;font-weight:650;color:var(--accent-strong);
  text-decoration:underline;text-underline-offset:2px}

@media(max-width:560px){
}

/* ---- the 18 family cards: a real entry point, not the full model list ---- */
/* no dense packing: it pulled a card of the next group up into the gap left by an odd-sized
   group (Ball Valves showed under Tube & pipe fittings) - each group starts on its own row */
.rng-fam-grid{display:grid;margin:4px 0 56px}   /* columns and gaps: "Range cards, D1c" below */
.rng-fam{display:contents}
.rng-fam[hidden]{display:none}

.rng-fam-card{display:flex;flex-direction:column;background:var(--surface);border:1.5px solid var(--line-2);border-radius:var(--r2);overflow:hidden;transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.rng-fam-grid.is-filtering .rng-fam-h{cursor:default}

.rng-fam-h{display:block;width:100%;padding:0;margin:0;background:none;border:0;text-align:left;
  color:inherit;cursor:pointer;font:inherit}
.rng-fam-im{display:block;aspect-ratio:16/10;background:var(--plate);overflow:hidden}
/* set by the page script when the first row needs to be shorter to fit */
.rng-fam-grid[style*="--fam-im-h"] .rng-fam-im{aspect-ratio:auto;height:var(--fam-im-h)}
.rng-fam-im img{width:100%;height:100%;object-fit:cover;display:block}
.rng-fam-t{position:relative;display:flex;flex-direction:column;gap:5px;border-top:2px solid var(--accent);padding:12px 44px 12px 16px}
.rng-fam-t h3{margin:0;font-size:clamp(18px,1.6vw,21px);letter-spacing:-.03em;transition:color .2s var(--ease)}
.rng-fam-t .rng-n{font-size:13.3px;color:var(--muted);font-weight:550}
.rng-fam-card:hover .rng-fam-t h3{color:var(--accent-strong)}
.rng-fam-h .cv{position:absolute;right:16px;top:14px;width:18px;height:18px;stroke:var(--muted);
  fill:none;stroke-width:2.2;transition:transform .32s var(--ease)}
.rng-fam.is-open .rng-fam-h .cv{transform:rotate(180deg)}
.rng-fam-h:hover .cv{stroke:var(--accent-strong)}
.rng-all{margin:4px 16px 14px;align-self:flex-start;padding:8px 18px;font-size:13.5px}

.rng-fam-b{grid-column:1/-1;padding:8px 0 30px;margin-top:-8px}
.rng-fam-b[hidden]{display:none}

.rng-ph{width:100%;height:100%;background:var(--surface-raised);display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:4px;color:var(--muted)}
.rng-ph svg{width:22px;height:22px;stroke:var(--muted);fill:none;stroke-width:1.6}
.rng-ph b{font-size:10.6px;font-weight:650}

/* a drawing is line art on white, not a photo - contain it rather than
   cropping it the way a photo's cover fit would */
.tf-im.is-drawing{background:var(--plate)}
.tf-im.is-drawing img{object-fit:contain;padding:10px}

.rng-grid .tf-s i{font-style:normal;color:var(--muted)}
.rng-grid .tf-c{font-weight:720;font-size:13.65px;letter-spacing:-.008em}
.rng-none{text-align:center;padding:40px 0}

/* ---- grouped range (20 Oct): the five groups of the Products menu, each family a wide banner card ---- */
.rng-jump{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0 0 2px}
.rng-jump a{display:inline-flex;align-items:baseline;gap:6px;padding:4px 0;color:var(--text-2);transition:color .2s var(--ease)}
.rng-jump a b{font-size:13px;font-weight:600;letter-spacing:-.01em}
.rng-jump a span{font-family:var(--mono);font-size:10.5px;color:var(--muted)}
.rng-jump a:hover{color:var(--accent-strong)}
.rng-grp{grid-column:1/-1;display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin:20px 0 -4px;padding-top:12px;border-top:1px solid var(--line-2);scroll-margin-top:110px}
.rng-grp:first-of-type{margin-top:6px}
.rng-grp[hidden]{display:none}
.rng-grp-n{font-family:var(--mono);font-size:13px;color:var(--accent);letter-spacing:.1em}
.rng-grp h2{margin:0;font-size:clamp(24px,2.5vw,36px);letter-spacing:-.035em}
.rng-grp p{margin:0 0 0 auto;font-family:var(--mono);font-size:12.5px;color:var(--muted)}
.rng-fam-card{container-type:inline-size}
.rng-fam-t .rng-desc{font-size:13.6px;line-height:1.5;color:var(--text-2);max-width:46ch}
@media(max-width:560px){.rng-grp p{margin-left:0;flex-basis:100%}.rng-jump a span{display:none}}
.rng-fam-card .rng-all{margin-top:auto}
.rng-fam-t{flex:0 0 auto}
.rng-fam-h{flex:0 0 auto}
.rng-fam-card{justify-content:flex-start}
/* richer family cards: facts, what it is used for, sample codes */
.rng-more{display:grid;gap:8px;padding:0 16px}
.rng-uses{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.rng-uses li{position:relative;padding-left:14px;font-size:13px;line-height:1.45;color:var(--text-2)}
.rng-uses li:before{content:"";position:absolute;left:0;top:.62em;width:6px;height:2px;background:var(--accent)}
.rng-codes{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;font-size:12px;color:var(--muted)}
.rng-codes b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:500;color:var(--text);background:var(--surface-hover);border-radius:5px;padding:3px 8px}
.rng-fam-card .rng-all{margin-top:8px}
/* the whole card is the link to the family page (no more drop-down); the text block is tighter */
.rng-fam-card{position:relative;padding-bottom:14px}
.rng-fam-h::after{content:"";position:absolute;inset:0;z-index:var(--z-content)}
.rng-fam-h:focus-visible{outline:none}
.rng-fam-h:focus-visible::after{outline:2px solid var(--accent);outline-offset:-3px;border-radius:var(--r2)}
.rng-fam-t{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:3px 12px;padding:11px 16px 8px}
.rng-fam-t .rng-desc{grid-column:1/-1}
.rng-fam-t .rng-n{grid-column:2;grid-row:1;white-space:nowrap}
.rng-fam-t .rng-n::after{content:"\2192";display:inline-block;margin-left:6px;color:var(--accent);transition:transform .25s var(--ease)}
.rng-fam-card:hover .rng-n::after{transform:translateX(4px)}
.rng-more{padding-bottom:0}
@media(prefers-reduced-motion:reduce){.rng-fam-t .rng-n::after{transition:none}.rng-fam-card:hover .rng-n::after{transform:none}}

/* Range cards, D1c (18 Nov 2026; Siddhesh picked D1c from the Range page options): one bordered card per series -
   the series group photo on its plate (the same photo the Products menu shows), a caption bar under it with the name,
   the model count and a round arrow. The banner scene, chips, facts and sample codes are gone from the cards. */
.rng-fam-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media(max-width:699px){.rng-fam-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
.rng-fam-card{padding-bottom:0;container-type:normal;transition:border-color .2s var(--ease),box-shadow .2s var(--ease),transform .25s var(--ease)}
.rng-fam-card:hover{border-color:var(--accent)}
.rng-fam-im{display:block;aspect-ratio:11/10;height:auto;min-height:0;background:var(--plate);overflow:hidden}
.rng-fam-im img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .35s var(--ease)}
.rng-fam-card:hover .rng-fam-im img{transform:scale(1.05)}
.rng-fam-t{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:end;gap:1px 8px;
  min-height:78px;box-sizing:border-box;padding:14px 16px 16px;border-top:1px solid var(--line-2)}
.rng-fam-t h3{grid-column:1;grid-row:1;font-size:clamp(17px,1.5vw,21px);line-height:1.12;text-transform:uppercase;letter-spacing:0}
.rng-fam-t .rng-n{grid-column:1;grid-row:2;font-family:var(--mono);font-size:12.5px;font-weight:400;color:var(--muted)}
.rng-fam-t .rng-n::after{content:none}
.rng-go{grid-column:2;grid-row:1/3;align-self:end;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;
  border:1px solid var(--line-2);color:var(--text);transition:background .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease)}
.rng-fam-card:hover .rng-go{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.rng-fam-card:hover .rng-fam-t h3{color:var(--accent-strong)}
@media(prefers-reduced-motion:reduce){.rng-fam-im img{transition:none}.rng-fam-card:hover .rng-fam-im img{transform:none}}
.rng-fam-h{display:flex;flex-direction:column;flex:1 1 auto}
.rng-fam-t{flex:1 1 auto}

/* ---- hero and filter bar (18 Nov 2026, Siddhesh: "build the first idea on the range page") ----------------------
   The page opens like a family page: the glass ribbon with one product from six series on it (hero in the markup,
   its rules are .pd-hero.is-glass.lap-hero in product.css), and the filters sit under it as one bar on the lower part
   of the ribbon - search, four selects, then the count - instead of in a column beside the heading. */
.rng-hero .gh-row img{max-height:min(100%,clamp(140px,20vh,190px))}
body:has(:is(.rng-hero,.rng-min)) .rng-top{display:block;margin:0 0 14px;padding-top:8px}
body:has(:is(.rng-hero,.rng-min)) .rng-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
body:has(:is(.rng-hero,.rng-min)) .rng-filters .rng-search{flex:1 1 320px;margin:0}
body:has(:is(.rng-hero,.rng-min)) .rng-filters .rng-fsel{flex:2 1 560px;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body:has(:is(.rng-hero,.rng-min)) .rng-filters .rng-active{flex:1 1 100%}
body:has(:is(.rng-hero,.rng-min)) .rng-filters .rng-count{flex:0 0 auto;margin:0}
body:has(:is(.rng-hero,.rng-min)) .rng-search input,body:has(:is(.rng-hero,.rng-min)) .rng-sel select{background:var(--glass);
  border-color:var(--glass-line);box-shadow:0 8px 20px -16px var(--glass-shade),0 1px 2px var(--glass-edge),inset 0 1px 0 var(--glass-hi)}
@media(max-width:860px){body:has(:is(.rng-hero,.rng-min)) .rng-filters .rng-fsel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body:has(:is(.rng-hero,.rng-min)) .rng-filters .rng-fsel{flex-basis:100%}}
.rng-hero .pd-hero-t h1{font-size:clamp(30px,3vw,44px)}
@media(min-width:761px){.rng-hero .gh-row{left:37%}}
@media(max-width:1100px){body:has(:is(.rng-hero,.rng-min)) .rng-filters .rng-search{flex-basis:100%}body:has(:is(.rng-hero,.rng-min)) .rng-filters .rng-fsel{flex-basis:100%}}

/* the floating header stays near-opaque on /range/ (19 Nov 2026; kept when the hexagon hero was removed, 1 Dec) */
body:has(:is(.rng-hero,.rng-min)){--glass-bar:color-mix(in srgb,var(--surface) 94%,transparent)}

/* Minimal hero, 25 Nov 2026 (Siddhesh: "minimal", no fade, light and dark): page background, no picture, no overlay. */
.rng-min{padding:calc(var(--hdr) + 48px) 0 8px;background:none}
.rng-min .crumb{margin:0 0 14px}
.rng-min h1{margin:0;font-size:clamp(34px,4vw,52px);line-height:1.02;color:var(--text)}
.rng-min-sub{margin:10px 0 0;font-family:var(--mono);font-size:14px;letter-spacing:.02em;color:var(--muted)}
.rng-min + .wrap .rng-top{padding-top:28px}
@media (max-width:700px){
  .rng-min{padding:calc(var(--hdr) + 28px) 0 4px}
  .rng-min + .wrap .rng-top{padding-top:18px}
}

/* Job 7: range filters stay legible and easy to tap. */
@media(max-width:860px){
  .rng-search input,.rng-fsel select{min-height:44px;font-size:16px}
  .rng-achip{min-height:44px;align-items:center;padding:8px 12px;font-size:14px}
  .rng-clear{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
  .rng-count{font-size:14px}
}
