/* EPCIgrid Line Hydraulics tool page */
:root{--navy:#0b3457;--deep:#06243e;--orange:#f5a15b;--ink:#172033;--mut:#5b6b7d;--line:#dbe3ec;--soft:#f5f8fb}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:#f3f6fa;line-height:1.5}
a{color:var(--navy)}[hidden]{display:none!important}button{font:inherit;cursor:pointer}
.container{width:min(1280px,calc(100% - 40px));margin-inline:auto}
.skip-link{position:absolute;left:-999px}.skip-link:focus{left:10px;top:10px;z-index:99;background:#fff;padding:8px}
/* site chrome (same look as the other pages) */
.commercial-header{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 2px 14px #0b345714}
.utility-bar{background:var(--deep);color:#dce9f4;font-size:11px}.utility-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:31px}
.utility-links{display:flex;gap:20px}.utility-links a{color:#dce9f4;text-decoration:none}
.main-nav-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0}
.commercial-brand{display:flex;align-items:center;gap:11px;color:var(--navy);text-decoration:none}.commercial-brand small{display:block;font-size:10px;letter-spacing:.08em;color:var(--mut)}
.commercial-brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--orange);color:var(--deep);font-weight:900}
.nav-actions a{display:inline-block;padding:9px 14px;border-radius:9px;background:var(--navy);color:#fff;text-decoration:none;font-weight:700;font-size:13px}
.category-nav{border-top:1px solid var(--line);background:#fff}.category-links{display:flex;gap:26px;overflow-x:auto}
.category-links a{padding:11px 0;color:var(--ink);text-decoration:none;font-weight:700;font-size:14px;border-bottom:3px solid transparent;white-space:nowrap}.category-links a.active{border-color:var(--orange);color:var(--navy)}
.site-footer{margin-top:40px;padding:36px 0 0;background:var(--deep);color:#dce9f4}.site-footer a{color:#dce9f4;display:block}.site-footer .social a{display:inline}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px}.footer-bottom{text-align:center;padding:18px;font-size:13px}.footer-bottom a{display:inline}
/* tool */
.lh-hero{background:linear-gradient(120deg,#06243e,#0b3457 60%,#145079);color:#fff;padding:30px 0 26px}
.lh-hero h1{margin:4px 0 6px;font-size:clamp(24px,3vw,34px)}.lh-hero p{margin:0;max-width:820px;color:#cfe0ef}.lh-kicker{font-size:12px;letter-spacing:.14em;color:var(--orange);font-weight:800}
.lh-bar-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}
.lh-bar-top input{min-width:240px;padding:9px 12px;border-radius:9px;border:1px solid #2a5476;background:#0b2a47;color:#fff;font-weight:700}
.lh-btn{padding:9px 13px;border-radius:9px;border:1px solid #2a5476;background:#0f3456;color:#e6f1fb;font-weight:700;font-size:13px}.lh-btn:hover{background:#174a75}
.lh-btn.pri{background:var(--orange);color:var(--deep);border-color:var(--orange)}
.lh-saved{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;font-size:12px;color:#9fb8cf}
.lh-chip{display:inline-flex;border:1px solid #2a5476;border-radius:20px;overflow:hidden}.lh-chip button{border:0;background:#0b2a47;color:#cfe0ef;padding:4px 10px;font-size:12px}.lh-chip button+button{padding:4px 8px;color:#ff9b7a}
.lh-main{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;margin-top:20px;align-items:start}
.lh-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:0 1px 2px #0b34570d}
.lh-card h2{margin:0 0 10px;font-size:17px}.lh-card h2 small{font-weight:600;color:var(--mut);font-size:12px;margin-left:6px}
.lh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.lh-f{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--mut);position:relative}.lh-f>span{font-weight:700}
.lh-f input,.lh-f select{width:100%;padding:8px 9px;border:1px solid #c9d5e1;border-radius:8px;font:inherit;font-size:14px;color:var(--ink);background:#fff}
.lh-f em{position:absolute;right:9px;bottom:9px;font-style:normal;font-size:11px;color:var(--mut);pointer-events:none}
.lh-f input[type=number]{padding-right:48px}.lh-wide{grid-column:span 2}
.lh-add{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.lh-add button{border:1px dashed #9db3c8;background:var(--soft);border-radius:10px;padding:9px 14px;font-weight:800;color:var(--navy)}.lh-add button:hover{background:#e9f1f8}
.lh-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.lh-item{border:1px solid var(--line);border-left:5px solid #3b82c4;border-radius:11px;padding:10px 12px;background:#fff}
.lh-fitting{border-left-color:#2aa198}.lh-valve{border-left-color:#e08a1e}.lh-instrument{border-left-color:#d64f6b}
.lh-item-h{display:flex;align-items:center;gap:10px;margin-bottom:8px}.lh-ico{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;background:var(--soft);font-weight:900;color:var(--navy)}
.lh-item-h strong{font-size:14px}.lh-res{margin-left:auto;text-align:right;line-height:1.2}.lh-res b{display:block;font-size:14px;color:var(--navy)}.lh-res small{color:var(--mut);font-size:11px}
.lh-acts{display:flex;gap:3px}.lh-acts button{width:28px;height:28px;border:1px solid var(--line);background:#fff;border-radius:7px;color:var(--mut)}.lh-acts button:hover{background:var(--soft);color:var(--ink)}
.lh-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.lh-notes{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.lh-notes span{font-size:11.5px;padding:3px 8px;border-radius:12px;background:#eef3f8;color:#3c4f63}.lh-notes span.bad{background:#fdecec;color:#a02c2c}
.lh-empty{padding:18px;text-align:center;color:var(--mut);border:1px dashed var(--line);border-radius:11px}
.lh-results{position:sticky;top:120px;display:flex;flex-direction:column;gap:16px}
.lh-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.lh-tile{background:var(--soft);border-radius:11px;padding:10px 12px}.lh-tile span{display:block;font-size:11.5px;color:var(--mut);font-weight:700}.lh-tile b{display:block;font-size:19px;color:var(--navy)}.lh-tile small{font-size:11px;color:var(--mut)}
.lh-bar{display:flex;height:16px;border-radius:8px;overflow:hidden;background:#eef3f8;margin:4px 0 8px}.lh-bar i{display:block;height:100%}
.lh-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--mut)}.lh-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.lh-warn h3{margin:0 0 6px;font-size:14px;color:#a02c2c}.lh-warn ul{margin:0;padding-left:18px;font-size:13px}.lh-warn .ok{margin:0;color:#307c42;font-size:13px;font-weight:600}
.lh-canvas{width:100%;height:240px;display:block}
.lh-tablewrap{overflow-x:auto}.lh-table{width:100%;border-collapse:collapse;font-size:12.5px}.lh-table th{background:var(--soft);text-align:right;padding:7px 8px;font-size:11.5px;color:var(--mut)}
.lh-table th:nth-child(2),.lh-table td:nth-child(2){text-align:left}.lh-table td{padding:6px 8px;border-top:1px solid var(--line);text-align:right;white-space:nowrap}.lh-table td:nth-child(2){white-space:normal}.lh-table tr.warn td{background:#fff8ec}
.lh-method{font-size:12.5px;color:var(--mut)}.lh-method summary{cursor:pointer;font-weight:700;color:var(--navy)}
.lh-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:var(--deep);color:#fff;padding:10px 16px;border-radius:10px;font-weight:600;z-index:99;box-shadow:0 6px 24px #0005}
@media(max-width:980px){.lh-main{grid-template-columns:1fr}.lh-results{position:static}.lh-tiles{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr}.utility-row>span{display:none}}
@media print{.commercial-header,.lh-bar-top,.lh-saved,.lh-add,.lh-acts,.site-footer,.lh-noprint{display:none!important}body{background:#fff}.lh-hero{background:#fff;color:#000;padding:0}.lh-hero p{color:#333}
.lh-main{grid-template-columns:1fr}.lh-results{position:static}.lh-card{box-shadow:none;break-inside:avoid}.lh-f input,.lh-f select{border:0;padding:0}.lh-item{break-inside:avoid}}
