/* Scoped to the tolerance calculator only. */
#wcn-tolerance-r4{margin:0 0 24px;color:#142d38;--tr4:#175d78;--tr4-light:#e9f4f8;--tr4-border:#d5e2e8;line-height:1.5}#wcn-tolerance-r4 h2,#wcn-tolerance-r4 h3{margin:0 0 12px;line-height:1.3}#wcn-tolerance-r4 h2{font-size:clamp(1.45rem,2.4vw,1.9rem)}#wcn-tolerance-r4 h3{font-size:1.1rem}#wcn-tolerance-r4 p{margin:0 0 12px}#wcn-tolerance-r4 .tr4-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}#wcn-tolerance-r4 .tr4-kicker{font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;font-weight:750;color:#315d73;margin-bottom:6px}#wcn-tolerance-r4 .tr4-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:17px 0}#wcn-tolerance-r4 button,#wcn-tolerance-r4 select{font:inherit;color:inherit}#wcn-tolerance-r4 button{cursor:pointer;border:1px solid #b9ccd5;background:#fff;border-radius:8px;padding:10px 12px;font-weight:650}#wcn-tolerance-r4 button:focus-visible,#wcn-tolerance-r4 select:focus-visible,#wcn-tolerance-r4 input:focus-visible{outline:2px solid #16677e;outline-offset:3px}#wcn-tolerance-r4 button:disabled{opacity:.48;cursor:default}#wcn-tolerance-r4 .tr4-tabs button{min-height:76px;text-align:left;line-height:1.25;font-size:.95rem;display:flex;flex-direction:column;justify-content:center;gap:6px}#wcn-tolerance-r4 .tr4-tabs small{font-weight:400;font-size:.76rem;opacity:.85}#wcn-tolerance-r4 .tr4-tabs button[aria-pressed=true]{background:#174d66;color:white;border-color:#174d66}#wcn-tolerance-r4 .tr4-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr) minmax(0,.84fr);gap:12px;align-items:start}#wcn-tolerance-r4 .tr4-box{border:1px solid var(--tr4-border);border-radius:12px;background:white;padding:16px;min-width:0}#wcn-tolerance-r4 .tr4-input{margin:0 0 12px}#wcn-tolerance-r4 input,#wcn-tolerance-r4 select{background:#fff;border:1px solid #9db5c2;border-radius:7px;min-height:42px;width:100%;padding:8px;min-width:0}#wcn-tolerance-r4 label{font-size:.86rem}#wcn-tolerance-r4 .tr4-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#wcn-tolerance-r4 .tr4-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}#wcn-tolerance-r4 .tr4-value{min-width:0;border:1px solid var(--tr4-border);border-radius:9px;padding:10px;background:#f7fafb}#wcn-tolerance-r4 .tr4-value span{display:block;color:#4b6470;font-size:.76rem;line-height:1.3}#wcn-tolerance-r4 .tr4-value strong{display:block;margin:4px 0 0;color:#155977;font-size:clamp(1rem,1.6vw,1.3rem);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}#wcn-tolerance-r4 .tr4-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}#wcn-tolerance-r4 .tr4-result-head h3{margin:0;max-width:100%;overflow-wrap:anywhere}#wcn-tolerance-r4 .tr4-unit{width:90px;display:flex;align-items:center;gap:5px}#wcn-tolerance-r4 .tr4-unit select{min-height:34px;padding:3px 6px}#wcn-tolerance-r4 svg{width:100%;height:auto;display:block;font-family:Inter,system-ui,Arial,sans-serif}#wcn-tolerance-r4 .tr4-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}#wcn-tolerance-r4 .tr4-actions button{font-size:.82rem;padding:8px 10px}#wcn-tolerance-r4 .tr4-primary{background:var(--tr4);color:white;border-color:var(--tr4)}#wcn-tolerance-r4 .tr4-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 12px}#wcn-tolerance-r4 .tr4-presets button{background:#edf5f8;color:#175d78;padding:8px}#wcn-tolerance-r4 .tr4-note{font-size:.81rem;color:#526a76}#wcn-tolerance-r4 .tr4-side a{display:block;margin:8px 0;font-size:.86rem}#wcn-tolerance-r4 .tr4-side h3:not(:first-child){margin-top:20px}#wcn-tolerance-r4 .tr4-decision:not(:empty),#wcn-tolerance-r4 .tr4-notice:not(:empty){border-radius:8px;padding:10px;font-size:.88rem;margin:10px 0}#wcn-tolerance-r4 .tr4-decision.in{background:#e8f4ec;color:#185c35}#wcn-tolerance-r4 .tr4-decision.out{background:#fce9e9;color:#9e2525}#wcn-tolerance-r4 .tr4-decision.uncertain,#wcn-tolerance-r4 .tr4-warn{background:#fff2db;color:#815515}#wcn-tolerance-r4 .tr4-symbol{display:inline-flex;font-size:2rem;color:#175d78;font-weight:700;min-width:60px;justify-content:center;margin:8px 0;border:1px solid #b9ccd5;border-radius:8px;padding:4px 16px}#wcn-tolerance-r4 .tr4-source{font-size:.82rem;margin-top:14px;overflow-wrap:anywhere}#wcn-tolerance-r4 .tr4-source a{white-space:normal}#wcn-tolerance-r4 .tr4-source p:last-child{margin-bottom:0}#wcn-tolerance-r4 textarea{width:100%;padding:8px;font:inherit;border:1px solid #b9ccd5;border-radius:6px}#wcn-tolerance-r4 .tr4-ednote{padding:10px;border-left:3px solid #5b91a8;background:#edf5f8;font-size:.85rem}#wcn-tolerance-r4 .tr4-static-example{padding:12px 15px;background:#edf5f8;border-radius:10px;margin-top:14px;font-size:.87rem}#wcn-tolerance-r4 .tr4-static-example p{margin:0}
@media(max-width:1000px){#wcn-tolerance-r4 .tr4-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}#wcn-tolerance-r4 .tr4-side{grid-column:1/-1}#wcn-tolerance-r4 .tr4-presets{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:680px){#wcn-tolerance-r4 .tr4-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}#wcn-tolerance-r4 .tr4-tabs button{min-height:62px}#wcn-tolerance-r4 .tr4-grid{grid-template-columns:1fr}#wcn-tolerance-r4 .tr4-side{grid-column:auto}#wcn-tolerance-r4 .tr4-presets{grid-template-columns:repeat(3,minmax(0,1fr))}#wcn-tolerance-r4 .tr4-box{padding:12px}#wcn-tolerance-r4 .tr4-value strong{font-size:1.03rem}}@media print{header,footer,.breadcrumbs,.hero,.bodygrid,.cta,#wcn-tolerance-r4 .tr4-tabs,#wcn-tolerance-r4 .tr4-actions,#wcn-tolerance-r4 .tr4-side{display:none!important}#wcn-tolerance-r4 .tr4-grid{display:grid;grid-template-columns:1fr 1.5fr}#wcn-tolerance-r4 .tr4-box{break-inside:avoid}body{background:white}}
/* Keep the existing SEO heading visible while giving the calculator more space. */
main:has(> #wcn-tolerance-r4)>.hero{padding:clamp(18px,2.4vw,30px);margin-bottom:20px}main:has(> #wcn-tolerance-r4)>.hero h1{font-size:clamp(1.7rem,3vw,2.4rem);margin-bottom:10px}main:has(> #wcn-tolerance-r4)>.hero .lead{max-width:100%;margin-bottom:0;font-size:1rem}#wcn-tolerance-r4 .tr4-unit{width:auto}#wcn-tolerance-r4 .tr4-unit select{width:72px}#wcn-tolerance-r4 .tr4-source summary{font-weight:650;cursor:pointer;margin-bottom:8px}#wcn-tolerance-r4 .tr4-source details{margin-bottom:10px}
