/* Photographic pipe comparison. Each slice uses one fifth of a coordinated image. */
body.rr-home .rr-content-wrap .rr-pipe-explorer { width:min(var(--rr-shell),calc(100% - 80px)); margin:0 auto 30px; padding-top:0; border-top:0; background:transparent; scroll-margin-top:110px; }
.rr-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body.rr-home .rr-explorer-intro { display:flex; align-items:end; justify-content:space-between; gap:24px; padding:0 32px; }
body.rr-home .rr-explorer-intro h2 { margin:12px 0 0; color:var(--rr-green-900); font-size:var(--rr-font-heading); font-weight:500; line-height:1.4; scroll-margin-top:110px; }
body.rr-home .rr-explorer-hint { margin:0 0 8px; color:var(--rr-text-muted); font-size:var(--rr-font-small); }
body.rr-home .rr-explorer-heading { position:relative; display:flex; align-items:end; justify-content:space-between; min-height:0; gap:28px; }
body.rr-home .rr-explorer-view { position:relative; height:clamp(450px,38vw,560px); overflow:hidden; isolation:isolate; background:var(--rr-white); }
body.rr-home .rr-explorer-view::after { content:""; position:absolute; z-index:3; left:50%; bottom:-20px; width:124%; height:95px; border-radius:50%; background:#fff; box-shadow:0 0 0 14px #fff; filter:blur(16px); transform:translateX(-50%); pointer-events:none; }
body.rr-home .rr-explorer-watermark { position:relative; z-index:2; display:block; width:100%; max-width:820px; padding:0; background:transparent; color:inherit; text-align:left; transform:translate3d(0,var(--rr-title-y,0),0) scale(var(--rr-title-scale,1)); transform-origin:left center; will-change:transform; }
body.rr-home .rr-material-list { display:grid; gap:14px; padding:0 12px; }
body.rr-home .rr-material-list .rr-material-panel:not([hidden]) { position:relative; display:grid; grid-template-columns:minmax(210px,.95fr) minmax(180px,.9fr) minmax(260px,1.28fr) minmax(180px,.9fr) auto; align-items:center; gap:18px; min-height:150px; overflow:hidden; padding:0 18px 0 0; border:1px solid var(--rr-border); border-radius:0; background:var(--rr-white); color:var(--rr-green-900); box-shadow:none; text-decoration:none; cursor:pointer; animation:none; transition:border-color 220ms ease,box-shadow 220ms ease; }
body.rr-home .rr-material-list .rr-material-panel:is(:hover,:focus-visible) {
  border-color:var(--rr-green-200);
  --rr-material-shadow:color-mix(in srgb,var(--rr-green-900) 4%,transparent);
  box-shadow:0 0 0 1px var(--rr-material-shadow),0 1px 1px -.5px var(--rr-material-shadow),0 3px 3px -1.5px var(--rr-material-shadow),0 6px 6px -3px var(--rr-material-shadow),0 12px 12px -6px var(--rr-material-shadow),0 24px 24px -12px var(--rr-material-shadow);
}
body.rr-home .rr-material-list .rr-material-panel:focus-visible { outline:2px solid var(--rr-green-700); outline-offset:3px; }
body.rr-home .rr-material-visual { position:relative; z-index:1; display:block; align-self:center; width:100%; height:150px; min-width:0; overflow:hidden; background:var(--rr-white); }
/* Match the visible bundle height, not the transparent source canvas. */
body.rr-home #rr-material-galvanize { --rr-pipe-size:1.0983; --rr-pipe-top:-.8%; }
body.rr-home #rr-material-stainless { --rr-pipe-size:.9744; --rr-pipe-top:1.96%; }
body.rr-home #rr-material-carbon { --rr-pipe-size:1.1047; --rr-pipe-top:-1.35%; }
body.rr-home #rr-material-ppr { --rr-pipe-size:1.1047; --rr-pipe-top:-1.35%; }
body.rr-home .rr-material-list .rr-material-image { position:absolute; top:var(--rr-pipe-top,0); left:0; display:block; width:calc(100% * var(--rr-pipe-size,1)); max-width:none; height:calc(150px * var(--rr-pipe-size,1)); border-radius:0; object-fit:cover; object-position:left center; transform:translate(-10%,-8px); transform-origin:left center; transition:transform 380ms cubic-bezier(.22,1,.36,1); }
@media (hover:hover) and (pointer:fine) {
  body.rr-home .rr-material-list .rr-material-panel:hover .rr-material-image { transform:translate(0,-6px); }
  body.rr-home .rr-material-list .rr-material-panel:hover .rr-material-detail > span { transform:translateX(4px); }
}
body.rr-home .rr-material-list .rr-material-panel:focus-visible .rr-material-image { transform:translate(0,-6px); }
body.rr-home .rr-material-list .rr-material-panel:focus-visible .rr-material-detail > span { transform:translateX(4px); }
body.rr-home .rr-material-panel { --rr-material-scale:1; }
body.rr-home .rr-material-heading { display:grid; align-content:center; gap:4px; min-width:0; }
body.rr-redesign #rr-main .rr-material-eyebrow { color:var(--rr-green-500); font-size:var(--rr-type-utility); font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
body.rr-redesign #rr-main .rr-material-title { color:var(--rr-green-900); font-size:var(--rr-type-subheading); font-weight:700; line-height:1.25; }
body.rr-home .rr-material-list .rr-material-title { position:relative; }
body.rr-home .rr-material-list .rr-material-title::before { content:""; position:absolute; width:10px; height:10px; left:-16px; top:.625em; border-radius:50%; background:#e92243; opacity:0; transform:translate(-84px,-50%); pointer-events:none; transition:transform 300ms cubic-bezier(.22,1,.36,1),opacity 160ms ease; }
body.rr-home .rr-material-list .rr-material-panel:is(:hover,:focus-visible) .rr-material-title::before { opacity:1; transform:translate(0,-50%); }
@media (prefers-reduced-motion:reduce) {
  body.rr-home .rr-material-list .rr-material-title::before { transition:none; }
}
body.rr-redesign #rr-main .rr-material-subtitle { color:var(--rr-text-muted); font-size:var(--rr-type-utility); line-height:1.4; }
body.rr-home .rr-material-benefits, body.rr-home .rr-material-specs { display:grid; align-content:center; gap:8px; min-width:0; margin:0; padding:10px 0 10px 20px; border-left:1px solid var(--rr-border); }
body.rr-home .rr-material-benefit, body.rr-home .rr-material-spec { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; gap:10px; min-width:0; color:var(--rr-text-muted); line-height:1.35; }
body.rr-home .rr-material-icon { display:grid; width:32px; height:32px; place-items:center; border-radius:50%; background:var(--rr-green-50); color:var(--rr-green-900); }
body.rr-home .rr-material-icon svg { width:18px; height:18px; }
body.rr-home .rr-material-list .rr-material-detail { justify-self:end; display:inline-flex; min-width:148px; min-height:48px; align-items:center; justify-content:center; gap:12px; padding:0 18px; border-radius:999px; background:var(--rr-green-900); color:var(--rr-white); font-weight:600; line-height:1; white-space:nowrap; transition:background-color 180ms ease; }
body.rr-home .rr-material-list .rr-material-detail > span { display:inline-block; transition:transform 220ms ease; }
body.rr-home .rr-material-list .rr-material-panel:is(:hover,:focus-visible) .rr-material-detail { background:var(--rr-green-800); }
body.rr-home .rr-explorer-list { position:absolute; inset:0 7%; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
body.rr-home .rr-explorer-option { position:relative; display:flex; align-items:end; justify-content:center; min-width:0; margin:0; padding:0 5px 14px; border:0; border-radius:0; box-shadow:none; background:transparent; color:var(--rr-green-900); cursor:pointer; touch-action:pan-y; }
body.rr-home .rr-explorer-option:focus-visible { outline:2px solid var(--rr-green-700); outline-offset:-2px; }
body.rr-home .rr-explorer-option::after { content:""; position:absolute; z-index:4; right:5px; bottom:14px; left:5px; height:1px; background:var(--rr-border); pointer-events:none; }
body.rr-home .rr-explorer-option.is-selected::after { background:var(--rr-green-700); }
body.rr-home .rr-pipe-viewport { position:absolute; inset:0 0 28px; overflow:hidden; pointer-events:none; }
body.rr-home .rr-pipe-photo { position:absolute; inset:0 0 -210px; background-image:url('images/products/pipe-materials-photo-v1.png'); background-size:500% 100%; background-position:calc(var(--pipe-index) * 25%) top; background-repeat:no-repeat; transform:translateY(-55px); transition:transform 540ms cubic-bezier(.2,.8,.2,1),filter 400ms ease,opacity 400ms ease; }
@media (hover:hover) and (pointer:fine) { body.rr-home .rr-explorer-option:hover:not(.is-selected) .rr-pipe-photo { transform:translateY(var(--rr-pipe-hover-y,-75px)); } }
body.rr-home .rr-explorer-option:focus-visible:not(.is-selected) .rr-pipe-photo { transform:translateY(var(--rr-pipe-hover-y,-75px)); }
body.rr-home .rr-explorer-list.has-selection .rr-explorer-option:not(.is-selected) .rr-pipe-photo { filter:blur(3px); opacity:.62; }
body.rr-home .rr-explorer-option.is-selected .rr-pipe-photo { transform:translateY(-90px); }
body.rr-home .rr-explorer-label { position:absolute; z-index:5; top:14px; right:0; left:0; display:block; padding:0 5px; text-align:center; pointer-events:none; }
body.rr-home .rr-explorer-label strong { display:block; font-size:18px; font-weight:500; line-height:1.25; }
body.rr-home .rr-explorer-label > span { display:block; margin-top:2px; color:var(--rr-text-muted); font-size:15px; line-height:1.25; }
body.rr-home .rr-explorer-details { min-height:210px; scroll-margin-top:92px; }
body.rr-home .rr-material-panel:not([hidden]) { animation:rr-material-reveal 320ms ease both; }
body.rr-home .rr-material-idle { display:flex; min-height:210px; flex-direction:column; align-items:center; justify-content:center; padding:24px 32px; border-block:1px solid var(--rr-border); text-align:center; }
@keyframes rr-material-reveal { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
body.rr-home .rr-material-panel[hidden], body.rr-home .rr-material-idle[hidden] { display:none; }
body.rr-home .rr-material-idle > span { display:block; margin:0 0 6px; color:var(--rr-green-900); font-size:24px; font-weight:500; }
body.rr-home .rr-material-panel p, body.rr-home .rr-material-idle p { margin:0; color:var(--rr-text-muted); font-size:16px; line-height:1.5; }
body.rr-home .rr-material-panel a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:0 24px; border:0; border-radius:999px; background:var(--rr-green-900); box-shadow:0 8px 22px rgba(14,56,40,.18); color:var(--rr-white); font-size:16px; font-weight:600; line-height:1.2; text-decoration:none; white-space:nowrap; transition:background-color 220ms ease,box-shadow 220ms ease,transform 220ms ease; }
body.rr-redesign.rr-home .rr-content-wrap .elementor .rr-material-panel a { color:var(--rr-white); }
body.rr-home .rr-material-panel a:hover { background:var(--rr-green-800); box-shadow:0 11px 26px rgba(14,56,40,.22); transform:translateY(-2px); }
body.rr-home .rr-material-panel a:focus-visible { outline:2px solid var(--rr-green-700); outline-offset:3px; }
/* Keep the desktop row composition on tablets: image, paired information, action.
   Phone cards below 768px retain their separate compact composition. */
@media (min-width:768px) and (max-width:1366px) {
  body.rr-home .rr-material-list .rr-material-panel:not([hidden]) {
    grid-template-columns:clamp(128px,18vw,190px) minmax(0,1fr) minmax(0,1fr) 140px;
    gap:12px; min-height:178px; padding:12px 16px 12px 0;
  }
  body.rr-home .rr-material-visual { grid-column:1; grid-row:1 / 3; height:150px; align-self:center; }
  body.rr-home .rr-material-heading { grid-column:2 / 4; grid-row:1; align-self:end; padding:0; }
  body.rr-home .rr-material-benefits,
  body.rr-home .rr-material-specs { align-self:start; padding:0 0 0 12px; }
  body.rr-home .rr-material-benefits { grid-column:2; grid-row:2; }
  body.rr-home .rr-material-specs { grid-column:3; grid-row:2; }
  body.rr-home .rr-material-benefit,
  body.rr-home .rr-material-spec { grid-template-columns:24px minmax(0,1fr); gap:8px; }
  body.rr-home .rr-material-icon { width:24px; height:24px; }
  body.rr-home .rr-material-list .rr-material-detail { grid-column:4; grid-row:1 / 3; justify-self:end; align-self:center; margin:0; }
}
@media (max-width:980px) { body.rr-home .rr-content-wrap .rr-pipe-explorer { width:min(var(--rr-shell),calc(100% - 48px)); } }
@media (max-width:900px) { body.rr-home .rr-explorer-list { inset-inline:2%; } }
@media (max-width:700px) {
  body.rr-home .rr-content-wrap .rr-pipe-explorer { width:min(var(--rr-shell),calc(100% - 36px)); }
  body.rr-home .rr-explorer-intro { display:block; padding-inline:16px; }
  body.rr-home .rr-explorer-intro h2 { font-size:28px; }
  body.rr-home .rr-explorer-hint { margin-top:12px; }
  body.rr-home .rr-explorer-heading { min-height:0; }
  body.rr-home .rr-material-list { padding-inline:0; }
  body.rr-home .rr-material-list .rr-material-panel:not([hidden]) { grid-template-columns:1fr; gap:0; min-height:0; padding:0 0 20px; }
  body.rr-home .rr-material-visual { grid-column:1; grid-row:1; height:190px; }
  body.rr-home .rr-material-list .rr-material-image { min-height:0; height:calc(190px * var(--rr-pipe-size,1)); }
  body.rr-home .rr-material-heading { grid-column:1; grid-row:2; padding:20px 20px 12px; }
  body.rr-home .rr-material-benefits, body.rr-home .rr-material-specs { grid-column:1; grid-row:auto; align-self:auto; margin:0 20px; padding:12px 0; border-left:0; border-top:1px solid var(--rr-border); }
  body.rr-home .rr-material-list .rr-material-detail { grid-column:1; grid-row:auto; justify-self:start; align-self:auto; min-height:48px; margin:16px 20px 0; }
  body.rr-home .rr-explorer-view { height:350px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x proximity; scrollbar-width:none; }
body.rr-home .rr-explorer-view::after { position:absolute; left:0; bottom:3px; width:660px; height:48px; border-radius:50%; background:#fff; box-shadow:0 0 0 10px #fff; filter:blur(10px); transform:none; }
  body.rr-home .rr-explorer-view::-webkit-scrollbar { display:none; }
  body.rr-home .rr-explorer-hint::after { content:" · ปัดซ้าย–ขวาเพื่อดูท่ออื่น"; }
  body.rr-home .rr-explorer-watermark { max-width:100%; }
  body.rr-home .rr-explorer-list { left:0; right:auto; width:660px; }
  body.rr-home .rr-explorer-option { padding-inline:1px; scroll-snap-align:center; touch-action:auto; }
  body.rr-home .rr-pipe-viewport { bottom:30px; }
  body.rr-home .rr-pipe-photo { bottom:-150px; transform:translateY(-10px); --rr-pipe-hover-y:-23px; }
  body.rr-home .rr-explorer-option.is-selected .rr-pipe-photo { transform:translateY(-40px); }
  body.rr-home .rr-explorer-label { top:14px; padding:0 2px; }
  body.rr-home .rr-explorer-label strong { font-size:12px; }
  body.rr-home .rr-explorer-label > span { font-size:11px; }
  body.rr-home .rr-explorer-details { min-height:160px; }
  body.rr-home .rr-material-idle { min-height:160px; padding:20px 16px; }
}
@media (prefers-reduced-motion:reduce) { body.rr-home .rr-pipe-photo, body.rr-home .rr-explorer-watermark, body.rr-home .rr-material-list .rr-material-panel, body.rr-home .rr-material-list .rr-material-image, body.rr-home .rr-material-list .rr-material-detail > span { transition:none; } body.rr-home .rr-explorer-watermark { transform:none; will-change:auto; } body.rr-home .rr-material-panel:not([hidden]) { animation:none; } body.rr-home .rr-material-list .rr-material-panel:is(:hover,:focus-visible) .rr-material-image { transform:scale(var(--rr-material-scale,1.15)); } body.rr-home .rr-material-list .rr-material-panel:is(:hover,:focus-visible) .rr-material-detail > span { transform:none; } }
