/* Buyer guides follow the Dinghong wordmark, red accents and workshop photography. */
.by{--by-red:#ce2529;--by-ink:#202624;--by-soft:#595e5a;--by-paper:#f3f2ed;--by-line:#d4d7cf;color:var(--by-ink);font-family:var(--font,Arial,sans-serif);font-size:16px;line-height:1.55;background:white}
.by :where(h1,h2,h3,h4,p,figure){margin:0}
.by [hidden]{display:none!important}
.by-wrap{width:min(1200px,90%);margin-inline:auto}
.by [id]{scroll-margin-top:calc(var(--header-h,80px) + 18px)}
.by :where(a,button,summary,input,textarea):focus-visible{outline:3px solid #2884ac;outline-offset:4px}
.by h1,.by h2,.by h3{font-weight:700;line-height:1.04;letter-spacing:-.045em;text-wrap:balance}
.by h1{font-size:clamp(50px,6.2vw,94px)}
.by h2{font-size:clamp(32px,4vw,59px)}
.by h3{font-size:clamp(25px,2.7vw,40px)}
.by .by-label,.by-caption{font:700 12px/1.4 var(--font,Arial,sans-serif);letter-spacing:.12em;text-transform:uppercase}
.by .by-label{display:flex;align-items:center;gap:10px}
.by .by-label:before{content:"";display:inline-block;width:24px;height:3px;background:var(--by-red);flex:none}
.by-hero{display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);background:#202624;color:white}
.by-hero-copy{padding:clamp(42px,6.3vw,95px) clamp(26px,5vw,84px);align-self:center}
.by-hero h1{margin:22px 0}
.by-hero-copy>p:not(.by-label){max-width:43ch;color:#e2e6df;font-size:clamp(16px,1.4vw,20px);line-height:1.55}
.by-hero figure{position:relative;min-height:350px;overflow:hidden}
.by-hero figure img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center}
.by-hero .by-button{margin-top:28px}
.by-button,.by-link{display:inline-flex;align-items:center;justify-content:space-between;gap:17px;font-weight:700;text-decoration:none}
.by-button{background:var(--by-red);color:white;padding:13px 20px;border:0;border-radius:2px;cursor:pointer;font:700 15px/1.45 var(--font,Arial,sans-serif);width:fit-content}
.by-button:hover{background:#a81d21;color:white}
.by-button span,.by-link span{font-size:1.17em}
.by-link{color:var(--by-ink);border-bottom:1px solid #acb1a9;padding:5px 0}
.by-link:hover{color:#b12327;border-color:currentColor}
.by-section{padding-block:clamp(45px,6vw,84px)}
.by-heading,.by-case-intro,.by-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:30px}
.by-heading{margin-bottom:27px}
.by-heading>p,.by-case-intro>p{max-width:40ch;color:var(--by-soft);line-height:1.55}
.by-picks{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}
.by-picks a{font-weight:650;padding:10px 16px;border:1px solid var(--by-line);border-radius:3px}
.by-picks a:hover,.by-picks a[aria-current="true"]{color:white;background:var(--by-ink);border-color:var(--by-ink)}
.by-guide{display:grid;grid-template-columns:1.15fr 1fr;background:var(--by-paper);margin-bottom:18px;min-width:0}
.by-guide-body{padding:clamp(23px,3.9vw,55px)}
.by-guide h3{margin:16px 0}
.by-guide p:not(.by-label),.by-inside article p,.by-story p{color:var(--by-soft)}
.by-guide h4,.by-story h3{font-size:16px;font-weight:700;line-height:1.4;letter-spacing:0}
.by-guide h4{margin:24px 0 5px}
.by-guide ul{margin:0;padding-left:20px}
.by-actions{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:22px}
.by-guide-image{min-height:260px;position:relative;overflow:hidden;background:#e7e9e3}
.by-guide-image img{position:absolute;width:100%;height:100%;object-fit:cover}
.by-machine{background:white;box-shadow:inset 0 0 0 1px var(--by-line)}
.by-machine img{object-fit:contain;padding:6%}
.by-bottom{align-items:center;border-top:2px solid var(--by-ink);padding:28px 0 clamp(45px,6vw,80px)}
.by-bottom h2{font-size:clamp(28px,3vw,46px)}
.by-case-intro{padding-block:clamp(44px,5vw,80px) 34px}
.by-case-intro h1{margin-top:16px}
.by-case-intro>p{border-left:3px solid var(--by-red);padding-left:20px}
.by-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.by-gallery figure{background:var(--by-paper);overflow:hidden}
.by-gallery img{width:100%;aspect-ratio:1.36;object-fit:cover;object-position:center 40%}
.by-gallery.by-case-photos{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.7vw,24px)}
.by-case-photos figure{margin:0}
.by-case-photos a{display:block}
.by-case-photos a:focus-visible{outline:3px solid var(--by-red);outline-offset:-3px}
.by-gallery.by-case-photos figure img,.by-gallery.by-case-photos figure:first-child img{display:block;width:100%;height:auto;aspect-ratio:1478/1064;object-fit:contain}
.by-case-photos figcaption{padding:10px 2px;font-weight:650;font-size:15px;line-height:1.35}
@media(max-width:1050px){.by-gallery.by-case-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.by-gallery.by-case-photos figure:first-child{grid-column:auto}}
@media(max-width:540px){.by-gallery.by-case-photos{grid-template-columns:1fr}}

.by-caption{grid-column:1/-1;color:var(--by-soft);font-size:11px;letter-spacing:.075em;margin-top:6px}
.by-stories details{border-top:1px solid var(--by-line)}
.by-stories details:last-child{border-bottom:1px solid var(--by-line)}
.by-stories summary{cursor:pointer;list-style:none;display:grid;grid-template-columns:minmax(145px,1fr) minmax(0,3fr) 28px;align-items:center;gap:18px;padding:22px 0}
.by-stories summary::-webkit-details-marker{display:none}
.by-stories summary strong{font-size:clamp(20px,2.2vw,31px);line-height:1.2;letter-spacing:-.035em}
.by-plus{border:1px solid var(--by-line);width:28px;height:28px;display:grid;place-items:center;border-radius:50%}
.by-plus:after{content:"+";line-height:1}
.by-stories details[open] .by-plus:after{content:"−"}
.by-story{display:grid;grid-template-columns:1fr 1.6fr;gap:34px;padding:clamp(20px,3vw,37px);background:var(--by-paper);margin-bottom:20px}
.by-story h3{margin-bottom:5px}
.by-story .by-link{margin-top:12px}
.by-about{color:var(--by-ink);background:var(--by-paper)}
.by-about .by-hero-copy>p:not(.by-label){color:var(--by-soft)}
.by-inside{display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,2.8vw,40px)}
.by-inside img{width:100%;aspect-ratio:2.1;object-fit:cover}
.by-inside article>div{padding:19px 0}
.by-inside article p{margin:9px 0 12px}
.by-brief{background:#202624;color:white;padding:clamp(40px,5vw,74px) 0}
.by-brief-inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:7%}
.by-brief h2{margin:17px 0}
.by-brief-inner>div>p:not(.by-label){color:#d1d7d2;max-width:37ch}
.by-brief form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}
.by-brief label{display:grid;gap:6px;font-weight:650}
.by-brief input,.by-brief textarea{width:100%;font:400 16px/1.4 var(--font,Arial,sans-serif);border:1px solid #a3a9a4;border-radius:2px;color:var(--by-ink);background:white;padding:11px}
.by-brief textarea{resize:vertical}
.by-wide,.by-status{grid-column:1/-1}
.by-status{color:#dce9d9;font-size:14px}
.by-status:empty{display:none}
.main-nav a.by-current{color:#bc1d22}
@media(max-width:760px){
.by-wrap{width:calc(100% - 36px)}.by-hero{grid-template-columns:1fr}.by-hero-copy{padding:34px 22px}.by-hero figure{min-height:0;aspect-ratio:2.35}.by-hero h1{margin:14px 0}.by-hero .by-button{margin-top:18px}.by-heading,.by-bottom,.by-case-intro{align-items:flex-start;flex-direction:column;gap:15px}.by-heading{margin-bottom:18px}.by-guide{grid-template-columns:1fr}.by-guide-image{min-height:0;height:205px}.by-guide-body{padding:23px}.by-picks a{font-size:14px;padding:8px 10px}.by-story,.by-inside,.by-brief-inner{grid-template-columns:1fr}.by-story{gap:18px}.by-stories summary{grid-template-columns:1fr 28px;gap:7px 12px}.by-stories summary .by-label{grid-column:1/-1}.by-caption{line-height:1.55}.by-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.by-gallery figure:first-child{grid-column:1/-1}.by-gallery figure:first-child img{aspect-ratio:2}.by-inside{gap:18px}.by-brief-inner{gap:24px}.by-inside article>div{padding:14px 0}
}
@media(max-width:480px){.by-brief form{grid-template-columns:1fr}.by-wide,.by-status{grid-column:auto}.by h1{font-size:clamp(42px,12.5vw,58px)}}
