/* Guides and FAQ: hub, guide pages, and their bands on category and system pages.
   Built on the shared tokens and patterns of styles.css (cat-hero, sys-stats, chips, sys-rail). */
/* Hub hero: the numbered index of guides stands where categories show a photo. */
.guides-hero-grid{align-items:end}
.guides-index ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--grey-3a)}
.guides-index a{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;align-items:baseline;padding:14px 0;border-bottom:1px solid var(--grey-3a);color:var(--grey-d6);font-size:.95rem;line-height:1.4;transition:color .25s,padding-left .35s var(--ease,ease)}
.guides-index a:hover{color:white;padding-left:6px}
.guides-index .guide-num{color:var(--red)}
.guide-num{font-size:.75rem;letter-spacing:.06em;font-variant-numeric:tabular-nums;color:var(--muted);font-weight:500}
/* Guide cards: hub grid and category rail */
.guide-card{display:flex;flex-direction:column;min-width:0;background:white;border:1px solid var(--grey-da);transition:transform .5s var(--ease,ease),box-shadow .5s var(--ease,ease),border-color .3s}
.guide-card[hidden]{display:none}
.guide-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -24px var(--black-a35);border-color:var(--grey-bb)}
.guide-card-media{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--grey-e4e4e2)}
.guide-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease,ease)}
.guide-card:hover .guide-card-media img{transform:scale(1.04)}
.guide-card-body{display:flex;flex-direction:column;gap:10px;padding:18px 20px 20px;flex:1}
.guide-card-top{display:flex;gap:12px;align-items:baseline;justify-content:space-between}
.guide-card-top .guide-num{color:var(--red)}
.guide-tags{font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);text-align:right;line-height:1.4}
.guide-card-title{font-size:1.16rem;line-height:1.3;letter-spacing:-.03em;font-weight:500}
.guide-card-summary{font-size:.9rem;line-height:1.5;color:var(--muted)}
.guide-card-more{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid var(--grey-ee);font-size:.8rem}
.guide-card-more>span:first-child{color:var(--muted)}
.guide-card-more>span:last-child{display:inline-flex;align-items:center;gap:8px}
.guide-card-more .arrow{transition:transform .4s var(--ease,ease)}
.guide-card:hover .guide-card-more .arrow{transform:translateX(4px)}
.guides-finder{margin:0 0 22px}
.guides-finder .finder-row{grid-template-columns:112px minmax(0,1fr)}
.guide-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,calc((100% - 48px)/4));gap:16px;overflow-x:auto;padding:4px 2px 18px;scroll-snap-type:x proximity;scrollbar-width:thin}
.guide-rail .guide-card{scroll-snap-align:start}
.guide-rail .guide-card:hover{transform:none}
.cat-guides{background:var(--grey-e8e8e6)}
.cat-guides .text-link{margin-top:14px}
.cat-products+.cat-guides{padding-top:0}
/* FAQ */
.guides-faq{background:var(--grey-e8e8e6)}
.faq-nav{margin-bottom:10px}
.faq-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:24px 48px;padding:34px 0;border-top:1px solid var(--line);scroll-margin-top:150px}
.faq-group:first-of-type{border-top:0}
.faq-group-title{font-size:clamp(1.4rem,2vw,1.9rem);line-height:1.15}
.faq-list{border-top:1px solid var(--grey-c9c9c6)}
.faq-item{border-bottom:1px solid var(--grey-c9c9c6);scroll-margin-top:150px}
/* Where the block around the list draws its own line (a group of the hub, the pagers that always follow
   a guide's questions), the list keeps only the lines between questions: one line where two blocks meet */
.faq-group .faq-list{border-top:0}
.faq-group .faq-item:last-child,.guide-faq .faq-item:last-child{border-bottom:0}
.faq-item summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:18px;align-items:center;padding:18px 0;min-height:44px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-q{font-size:1.04rem;line-height:1.4;letter-spacing:-.015em;font-weight:500;margin:0}
.faq-icon{position:relative;width:30px;height:30px;border:1px solid var(--grey-aa);border-radius:50%;transition:background .25s,border-color .25s}
.faq-icon::before,.faq-icon::after{content:"";position:absolute;top:14px;left:9px;width:10px;height:1px;background:var(--ink);transition:transform .3s var(--ease,ease)}
.faq-icon::after{transform:rotate(90deg)}
.faq-item[open] .faq-icon{background:var(--action);border-color:var(--action)}
.faq-item[open] .faq-icon::before{background:white}
.faq-item[open] .faq-icon::after{transform:rotate(0);background:white}
.faq-item summary:hover .faq-q{color:var(--action)}
.faq-a{padding:0 48px 22px 0}
.faq-a p{color:var(--grey-3b);font-size:.97rem;line-height:1.65;max-width:68ch}
.faq-a a,.guide-article a{text-decoration:underline;text-decoration-color:var(--grey-b9);text-underline-offset:4px;transition:text-decoration-color .25s,color .25s}
.faq-a a:hover,.guide-article a:hover{color:var(--action);text-decoration-color:currentColor}
.faq-item:target summary .faq-q{color:var(--action)}
.guide-faq .faq-list{max-width:980px}
/* Guide page */
.guide-hero .guide-title{font-size:clamp(2.1rem,3.7vw,3.7rem);line-height:1.05;letter-spacing:-.05em;hyphens:auto;overflow-wrap:anywhere}
.guide-hero .cat-hero-media{min-height:380px}
.guide-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.guide-facts dt{order:2;margin:6px 0 0;text-transform:none;letter-spacing:0;font-size:.8rem;line-height:1.4}
.guide-facts div{display:flex;flex-direction:column}
.guide-facts dd{white-space:nowrap;font-size:clamp(1.25rem,1.9vw,1.7rem);letter-spacing:-.03em;font-weight:500}
.guide-meta{margin-top:20px;font-size:.8rem;color:var(--grey-9a)}
.guide-layout{display:grid;grid-template-columns:minmax(200px,270px) minmax(0,1fr);gap:clamp(30px,5vw,90px);align-items:start}
.guide-toc{position:sticky;top:calc(var(--header-h,86px) + 24px)}
.guide-toc .eyebrow{color:var(--muted);margin-bottom:14px}
.guide-toc ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.guide-toc a{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;padding:11px 0;border-bottom:1px solid var(--line);font-size:.86rem;line-height:1.4;color:var(--muted);transition:color .25s}
.guide-toc a:hover,.guide-toc a.is-current{color:var(--ink)}
.guide-toc a.is-current .guide-num{color:var(--red)}
.guide-article{max-width:780px;min-width:0}
.guide-section{padding:0 0 44px;scroll-margin-top:110px}
.guide-section+.guide-section{padding-top:40px;border-top:1px solid var(--line)}
.guide-section h2{display:flex;gap:16px;align-items:baseline;font-size:clamp(1.5rem,2.3vw,2.15rem);line-height:1.15;margin-bottom:20px}
.guide-section h2 .guide-num{color:var(--red);flex-shrink:0}
.guide-section>p{font-size:1.04rem;line-height:1.72;color:var(--grey-2c)}
.guide-section>*+*{margin-top:18px}
.guide-section .check-list li{font-size:1rem;line-height:1.6}
.guide-steps{list-style:none;margin:0;padding:0;counter-reset:none;display:grid;gap:0;border-top:1px solid var(--grey-de)}
.guide-steps li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:14px;align-items:start;padding:15px 0;border-bottom:1px solid var(--grey-de);font-size:1rem;line-height:1.6}
/* Steps that end a section: the next section's line is the only one, and so is the sources' line right after
   a guide's last section (a topic of corrosion protection has its systems button there, so its steps keep the line) */
.guide-section:not(:last-of-type)>.guide-steps:last-child>li:last-child,.guide-section:last-of-type:nth-last-child(2)>.guide-steps:last-child>li:last-child{border-bottom:0}
.guide-step-num{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ink);color:white;font-size:.72rem;font-weight:600;margin-top:-1px;font-variant-numeric:tabular-nums}
.guide-steps li:hover .guide-step-num{background:var(--red)}
.guide-table{overflow-x:auto;background:white;border:1px solid var(--grey-dd);scrollbar-width:thin}
.guide-table:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.guide-table table{width:100%;border-collapse:collapse;font-size:.9rem;line-height:1.45}
.guide-table th,.guide-table td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--grey-ec)}
.guide-table thead th{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:500;background:var(--grey-fa);white-space:nowrap}
.guide-table tbody th{font-weight:500}
.guide-table tbody tr:last-child>*{border-bottom:0}
.guide-table td{font-variant-numeric:tabular-nums}
.guide-article .source-note{margin-top:8px;padding-top:22px;border-top:1px solid var(--line)}
.guide-article .source-note strong{font-weight:500;color:var(--ink)}
/* Dew point check */
.dew-tool{margin-top:24px;padding:24px;background:white;border:1px solid var(--grey-dd);border-left:3px solid var(--red)}
.dew-title{font-weight:500;font-size:1.05rem}
.dew-intro{font-size:.88rem;color:var(--muted);margin-top:6px}
.dew-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.dew-fields label{display:flex;flex-direction:column;gap:6px;font-size:.8rem;color:var(--muted);margin:0}
.dew-fields input{width:100%;min-height:46px;margin:0;padding:0 14px;border:1px solid var(--grey-bb);border-radius:4px;background:var(--grey-fa);font-size:1.05rem;color:var(--ink);font-variant-numeric:tabular-nums}
.dew-fields input:focus{outline:3px solid var(--red-a30);border-color:var(--red)}
.dew-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0 0}
.dew-result div{border-top:1px solid var(--grey-e3);padding-top:10px}
.dew-result dt{font-size:.78rem;color:var(--muted)}
.dew-result dd{margin:4px 0 0;font-size:1.6rem;letter-spacing:-.03em;font-weight:500;font-variant-numeric:tabular-nums}
.dew-verdict{margin-top:14px;font-size:.92rem;font-weight:500;padding-left:26px;position:relative}
.dew-verdict:empty{display:none}
.dew-verdict::before{content:"";position:absolute;left:2px;top:.35em;width:12px;height:7px;border-left:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(-45deg)}
.dew-verdict.is-wait{color:var(--action)}
.dew-verdict.is-wait::before{width:10px;height:10px;border:0;border-radius:50%;background:var(--action);transform:none;top:.35em}
/* Products and systems of a guide */
.guide-related{background:var(--grey-e8e8e6)}
.guide-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.guide-product{display:flex;flex-direction:column;background:white;border:1px solid var(--grey-da);min-width:0;transition:border-color .3s,box-shadow .5s var(--ease,ease)}
.guide-product:hover{border-color:var(--grey-bb);box-shadow:0 18px 40px -24px var(--black-a35)}
.guide-product-media{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--grey-e4e4e2)}
.guide-product-media img{width:100%;height:100%;object-fit:cover}
.guide-product-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:end;padding:16px 18px 18px}
.guide-product-body .product-type{grid-column:1/-1;margin:0}
@supports (grid-template-rows:subgrid){@media(min-width:601px){
.guide-product-body{grid-row:2/-1;grid-template-rows:subgrid;row-gap:4px;align-content:start}
.guide-product-body>:is(.product-type,.guide-product-name){align-self:start}
}}
.guide-product-name{font-size:1.06rem;line-height:1.3;letter-spacing:-.025em;font-weight:500;overflow-wrap:anywhere}
.guide-product .arrow{transition:transform .4s var(--ease,ease)}
.guide-product:hover .arrow{transform:translateX(4px)}
.guide-related-block{margin-top:48px}
.guide-related-block h3{font-size:clamp(1.4rem,2vw,1.9rem)}
.guide-related-block>p{color:var(--muted);margin:8px 0 20px}
.guide-related-block .sys-rail{grid-auto-columns:minmax(250px,calc((100% - 42px)/4))}
.guide-faq+.guide-pagers{padding-top:0}
.guide-pager-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;align-items:start;border-top:1px solid var(--line);padding-top:26px}
.guide-pager{display:flex;flex-direction:column;gap:6px;min-width:0}
.guide-pager--next{text-align:right}
.guide-pager-label{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.guide-pager-title{font-size:1.02rem;line-height:1.35;font-weight:500;transition:color .25s}
.guide-pager:hover .guide-pager-title{color:var(--action)}
.guide-pager--prev .guide-pager-label::before{content:"← "}
.guide-pager--next .guide-pager-label::after{content:" →"}
/* System page: guides under the substrate requirements */
.guide-links{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.guide-links p{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.guide-links a{display:inline-flex;align-items:center;gap:10px;padding:6px 0;font-size:.94rem;font-weight:500;line-height:1.4}
.guide-links a:hover{color:var(--action)}
.guide-links .arrow{flex-shrink:0;transition:transform .4s var(--ease,ease)}
.guide-links a:hover .arrow{transform:translateX(4px)}
@media(max-width:1150px){
.guide-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.guide-rail{grid-auto-columns:minmax(260px,calc((100% - 16px)/2))}
.guide-related-block .sys-rail{grid-auto-columns:minmax(250px,calc((100% - 14px)/2))}
.faq-group{grid-template-columns:1fr;gap:16px}
}
@media(max-width:900px){
.guide-layout{grid-template-columns:1fr}
.guide-toc{position:static}
.guides-hero-grid{align-items:start}
}
@media(max-width:760px){
.guides-finder .finder-row{grid-template-columns:1fr}
.guide-rail,.guide-related-block .sys-rail{grid-auto-columns:minmax(240px,82%)}
.guide-hero .cat-hero-media{min-height:0;height:240px}
.guide-facts{grid-template-columns:1fr;gap:0}
.guide-facts div{flex-direction:row;align-items:baseline;justify-content:space-between;gap:16px;padding:10px 0}
.guide-facts dt{margin:0;text-align:right}
.guide-section h2{font-size:1.5rem}
.guide-section>p{font-size:1rem}
.faq-a{padding-right:0}
.guide-table table{min-width:560px}
.dew-fields,.dew-result{grid-template-columns:1fr}
.guide-pager-row{grid-template-columns:1fr 1fr}
.guide-pager-row>.text-link{grid-column:1/-1;grid-row:2;justify-self:center}
}
@media(max-width:600px){
.guide-product-grid{grid-template-columns:1fr}
.guide-product{flex-direction:row}
.guide-product-media{width:112px;flex-shrink:0;aspect-ratio:auto}
.guide-product-body{align-content:center;padding:14px 16px}
.guide-pager-row{grid-template-columns:1fr;gap:18px}
.guide-pager--next{text-align:left}
.guide-pager-row>.text-link{grid-row:auto;justify-self:start}
}
@media(max-width:380px){
.guide-hero .guide-title{font-size:1.9rem}
}
@media(prefers-reduced-motion:reduce){
.guide-card,.guide-card-media img,.guides-index a{transition:none}
}
