/* Regression fixes: layer hit-testing, real image fit, typography and touch targets. */
:root{--bw-purple:#746100;--bw-accent:#665600}
.bw-restored .text-primary,.bw-document-stats dd{color:#746100}
.bw-restored .bw-cta-banner{isolation:isolate;background:#332b33}
.bw-restored .bw-cta-banner>div:first-child{position:relative;z-index:1}
.bw-restored .bw-cta-banner>div:last-child{z-index:0;pointer-events:none}
.bw-restored .bw-cta-banner h2,.bw-restored .bw-cta-banner p{color:#fff}
.bw-restored .bw-home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:32px 0;padding:0}
.bw-restored .bw-home-stats>div{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;padding:16px 6px;text-align:center}
.bw-restored .bw-home-stats dt,.bw-restored .bw-home-stats dd{margin:0;width:100%;padding:0}
.bw-restored .bw-home-stats dd{order:-1;white-space:nowrap;font-size:24px;line-height:1.5}
.bw-restored .bw-home-stats dt{font-size:14px;line-height:1.5}
.bw-restored img.bw-about-intro-image{object-fit:contain;aspect-ratio:2/1;height:auto;width:100%}
.bw-certificate-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:32px}
.bw-certificate-grid figure{margin:0;padding:16px;border:1px solid #ddd;border-radius:12px;background:#fff;text-align:center}
.bw-certificate-grid img{width:100%;height:auto;aspect-ratio:2/3;object-fit:contain}
.bw-certificate-grid figcaption{margin-top:12px;font-size:16px}
.bw-empty-state{min-height:360px;padding-top:64px;padding-bottom:64px}
.bw-empty-state p{margin:28px 0;color:#4b5563;line-height:1.8}
.bw-editorial-content{max-width:100%;line-height:1.9;overflow-wrap:anywhere}
.bw-editorial-content p{margin:0 0 24px}.bw-editorial-content img{max-width:100%;height:auto;margin:24px auto;display:block}
.bw-editorial-content h2{font-size:26px;line-height:1.5;margin:36px 0 20px}.bw-editorial-content h3{font-size:22px;line-height:1.5}
.bw-slide-controls{gap:0;bottom:0;max-width:100%;width:max-content;padding:0 3px;box-sizing:border-box;background:#0007;border-radius:6px}
.bw-slide-controls button[data-bw-dot]{width:26px;height:44px;flex:0 0 26px;background:transparent;border:0;border-radius:0;position:relative}
.bw-slide-controls button[data-bw-dot]::after{content:"";position:absolute;width:9px;height:9px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:#fff}
.bw-slide-controls button[data-bw-dot][aria-pressed=true]::after{background:#fed900}
.bw-slide-controls .bw-slide-pause{min-height:44px;min-width:52px;font-size:12px;background:transparent;padding:0 8px;white-space:nowrap}
.bw-slide-prev,.bw-slide-next{min-width:44px;min-height:44px;background:#0009}
.bw-menu-toggle{min-width:44px;min-height:44px;padding:6px}
.bw-language-switch{display:flex;gap:0;flex-shrink:0;font-size:13px;line-height:1.3;align-items:center}
.bw-language-switch a{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:4px 7px;color:#4b5563;border-bottom:3px solid transparent}
.bw-language-switch a[aria-current=true]{color:#222;border-bottom-color:#fed900;font-weight:600}
.bw-header-inner{gap:16px}.bw-nav{gap:16px;font-size:15px}.bw-brand img{max-width:180px}
html[lang=en-US] .bw-restored h1,html[lang=en-US] .bw-restored h2{overflow-wrap:break-word;font-size:clamp(28px,3vw,40px)}
html[lang=en-US] .bw-restored h3{font-size:22px;line-height:1.4}
html[lang=en-US] .bw-restored .bw-home-stats dd{font-size:22px}
html[lang=en-US] .bw-nav{gap:12px;font-size:13px}
.bw-translation-note{padding:14px 18px;border-left:3px solid #b79a00;background:#f5f5f5;color:#4b5563;margin:24px 0;font-size:14px}
.bw-restored dd{margin-inline-start:0}
html[lang=en-US] .bw-restored{overflow-wrap:anywhere}
.bw-restored .grid>*{min-width:0}
@media(min-width:641px) and (max-width:1100px){.bw-restored .bw-home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1200px){.bw-nav{display:none}.bw-menu-toggle{display:block}.bw-mobile-nav.is-open{display:grid;gap:10px;padding:16px 4%;max-height:75vh;overflow:auto}.bw-mobile-nav a{min-height:44px;display:flex;align-items:center}.bw-header-inner{min-height:68px}}
@media(max-width:640px){.bw-restored .bw-home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bw-certificate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bw-certificate-grid figure{padding:8px}.bw-header-inner{gap:4px}.bw-brand img{max-width:140px}.bw-language-switch{margin-left:auto}.bw-language-switch a{padding:4px;min-width:44px}.bw-slide-controls{gap:0}.bw-slide-controls .bw-slide-pause{font-size:12px}.bw-slide-prev,.bw-slide-next{top:20%;font-size:28px}.bw-editorial-content h2{font-size:23px}.bw-editorial-content p{font-size:16px}}
@media(max-width:359px){.bw-brand img{max-width:118px}.bw-language-switch{font-size:12px}.bw-slide-controls button[data-bw-dot]{width:25px;flex-basis:25px}}
