
:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#14243a;background:#f5f8fc}
*{box-sizing:border-box}body{margin:0;line-height:1.65}a{color:#1559a7}a:hover{text-decoration-thickness:2px}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #2d75df;outline-offset:3px}
header{background:#101d32;color:white;padding:1rem max(1.5rem,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}header img{width:218px;height:auto}header nav{display:flex;gap:.8rem;flex-wrap:wrap}header nav a{color:#f2f6fc;font-size:.94rem;text-decoration:none}header nav a:hover{text-decoration:underline}
main{width:min(1080px,calc(100% - 2rem));margin:2rem auto 5rem}.eyebrow{font-size:.76rem;letter-spacing:.13em;text-transform:uppercase;color:#1463b7;font-weight:750}h1{font-size:clamp(2.15rem,5vw,3.45rem);letter-spacing:-.045em;line-height:1.12;margin:.55rem 0 1rem}h2{font-size:1.55rem;line-height:1.25;margin:2rem 0 .65rem}h3{line-height:1.35;margin:1.2rem 0 .4rem}.lead{font-size:1.14rem;max-width:810px;color:#3e536e}.meta{font-size:.84rem;color:#536680}.hero{padding:2.2rem 0 1.8rem;border-bottom:1px solid #cbd7e5}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin:1.4rem 0}.card,.article,.calculator,.notice{border:1px solid #d2deeb;background:white;border-radius:14px;padding:clamp(1.1rem,3vw,1.8rem)}.card{display:block;color:inherit;text-decoration:none;transition:border-color .2s,transform .2s}.card:hover{border-color:#4b85cf;transform:translateY(-2px)}.card h2,.card h3{margin-top:0}.card p{color:#486078}.article{margin:1.4rem 0}.article ul,.article ol{padding-left:1.5rem}.article li{margin:.4rem 0}.notice{border-left:5px solid #f2ad3f;background:#fffaf0;margin:1rem 0}.notice p{margin:.25rem 0}.calculator{background:#f0f7ff;border-color:#a9caed;margin:1.6rem 0}.calculator h2{margin-top:0}.inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:1rem}.inputs label{font-size:.9rem;font-weight:650;display:flex;flex-direction:column;gap:.3rem}.inputs input{min-height:44px;padding:.55rem;border:1px solid #a0b9d4;border-radius:8px;background:white;font-size:1rem;width:100%}.result{background:#0e2b4a;color:#fff;border-radius:12px;padding:1rem;margin-top:1.1rem;min-height:4.5rem}.result b{font-size:1.6rem;display:block}.result small{display:block;opacity:.9}.error{color:#9f281e;background:#fff1ee;padding:.7rem;border-radius:8px}.scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:580px;font-size:.93rem}th,td{text-align:left;padding:.76rem;border:1px solid #d3e0ec;vertical-align:top}th{background:#eff5fb}code{background:#eef3fa;padding:.15rem .35rem;border-radius:4px}footer{background:#102137;color:#dfebf8;padding:2rem max(1.5rem,calc((100vw - 1100px)/2))}footer a{color:#d9ecff}footer nav{display:flex;gap:1rem;flex-wrap:wrap}.small{font-size:.86rem;color:#526680}.kpi{border-top:2px solid #3e79bc;padding-top:.7rem}.tag{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;font-weight:750;color:#1562ad}blockquote{margin:1rem 0;padding:.8rem 1.2rem;border-left:4px solid #3c7dca;background:#f1f7fd}button.print{border:1px solid #195fae;background:#195fae;color:#fff;padding:.7rem 1.1rem;border-radius:8px;font-weight:700;cursor:pointer}button.print:hover{background:#0c427d}
@media(max-width:600px){main{margin-top:1rem}.hero{padding:1.3rem 0}header{padding:1rem}header nav{gap:.7rem}.calculator{padding:1rem}table{font-size:.85rem}}@media print{header,footer,.print{display:none!important}body{background:#fff}main{width:100%;margin:0}.article,.calculator{border:0;box-shadow:none;break-inside:avoid}a{color:#14243a;text-decoration:none}.result{color:black;background:#fff;border:1px solid #aaa}}
/* Five-point 4–20 mA loop worksheet: readable on narrow screens without clipping. */
#loop-sheet-table input[type="number"]{display:block;width:100%;min-width:110px;min-height:42px;padding:.45rem .55rem;border:1px solid #95adca;border-radius:7px;background:#fff;color:#14243a;font:inherit}
#loop-sheet-table th[scope="row"]{white-space:nowrap}
#loop-sheet-table td:nth-child(4),#loop-sheet-table td:nth-child(5){font-variant-numeric:tabular-nums}
#loop-sheet-summary{padding:.75rem 1rem;background:#e5f0fc;border-left:4px solid #2266ac;border-radius:6px;color:#123451;font-weight:600}
#loop-export-sheet:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:600px){#loop-sheet-table{min-width:780px}#loop-sheet-table input[type="number"]{font-size:16px}}
@media print{#loop-export-sheet{display:none}#loop-sheet-table input[type="number"]{border:0;border-bottom:1px solid #999;border-radius:0}}
