
:root{--bg:#f6f8fb;--panel:#fff;--text:#111827;--muted:#64748b;--line:#dbe3ef;--blue:#2563eb;--blue2:#1d4ed8;--soft:#eff6ff;--nav:#08111f;--nav2:#101d31;--shadow:0 14px 38px rgba(15,23,42,.07);--radius:14px}
*{box-sizing:border-box}body{margin:0;font:14px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}
.app{display:flex;min-height:100vh}.sidebar{width:276px;background:linear-gradient(180deg,var(--nav),var(--nav2));color:#d9e5f6;padding:20px 16px;position:sticky;top:0;height:100vh;overflow:auto;flex-shrink:0}.brand{display:flex;gap:11px;align-items:center;margin-bottom:30px}.logo{width:44px;height:44px;color:#2f7df6;display:grid;place-items:center}.logo svg{width:44px;height:44px}.brand strong{font-size:19px;letter-spacing:-.04em;color:white;display:block;line-height:1}.brand strong span{color:#2f7df6}.brand small{font-size:12px;color:#9fb0c7;font-weight:600}
.side-nav p{margin:24px 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#9fb0c7;font-weight:800}.side-nav p span{text-transform:none}.side-nav a,.locked{display:flex;align-items:center;gap:8px;padding:9px 10px;margin:2px 0;border-radius:9px;font-weight:650;color:#cbd7e8;font-size:13px}.side-nav a:hover,.side-nav a.active{background:var(--blue);color:white}.locked{opacity:.48}.locked:before{content:"▧";font-size:11px}.locked:after{content:"🔒";margin-left:auto;font-size:10px}.side-card{margin-top:28px;border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:13px;background:rgba(255,255,255,.04)}.side-card strong{display:block;color:white;font-size:13px}.side-card span{display:block;margin-top:5px;color:#b8c5d8;font-size:12px}
.main{flex:1;min-width:0}.topbar{height:58px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}.topbar nav{display:flex;gap:26px;font-size:13px;font-weight:700;color:#334155}.menu-btn{display:none;background:white;border:1px solid var(--line);border-radius:9px;padding:7px 10px}
.dashboard{padding:24px 28px 28px}.page-title{margin-bottom:16px}.page-title h1{font-size:24px;line-height:1.15;margin:0 0 5px;letter-spacing:-.03em}.page-title p{margin:0;color:#475569}.eyebrow{font-size:11px;color:var(--blue);font-weight:900;text-transform:uppercase;letter-spacing:.1em;margin:0 0 6px!important}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.converter-shell{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);display:grid;grid-template-columns:260px 1fr;overflow:hidden}.converter-shell.standalone{max-width:980px}.unit-tabs{border-right:1px solid var(--line);padding:18px}.unit-tabs h3,.converter-main h3{font-size:14px;margin:0 0 12px}.unit-tabs button{width:100%;text-align:left;background:white;border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:4px 0;font-weight:700;color:#334155}.unit-tabs button.active{border-color:#8bb7ff;background:#f4f8ff;color:var(--blue)}.converter-main{padding:22px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}label{font-weight:700;font-size:12px;color:#334155}input,select{width:100%;margin-top:6px;border:1px solid var(--line);border-radius:9px;padding:10px 11px;font:inherit;background:white}button{font:inherit}.button{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:9px;padding:10px 13px;font-weight:800;cursor:pointer}.primary{background:var(--blue);color:white}.primary:hover{background:var(--blue2)}.secondary{background:white;border:1px solid var(--line);color:var(--blue)}.full{width:100%}.result-line{margin:14px 0;padding:13px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;display:flex;justify-content:space-between}.result-line strong{font-size:15px}.info-box{margin-top:16px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;padding:13px;color:#1e3a8a}.info-box p{margin:6px 0 0}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}.mini-card,.blog-panel,.about-box,.calc-card,.calc-info,.post-card,.article{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.mini-card{padding:17px}.mini-card h3{font-size:15px;margin:0 0 4px}.mini-card p{font-size:12px;color:#475569;margin:0 0 10px}.mini-card strong{font-size:12px;color:var(--blue)}.card-head{display:flex;justify-content:space-between}.formula{font-family:Georgia,serif;font-size:18px;background:#1f1f1f;color:white;border-radius:8px;padding:12px;margin:10px 0;text-align:center}.formula.big{font-size:24px}.small{font-size:12px!important;color:#64748b!important}.coming{background:#f8fbff;border-color:#bfdbfe}.coming ul{padding-left:18px;margin:10px 0 0;color:#475569;font-size:12px}
.blog-panel{padding:16px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.panel-head h3{font-size:14px;margin:0}.panel-head a{font-size:12px;color:var(--blue);font-weight:800}.blog-teaser{display:block;border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:16px}.blog-teaser h4{font-size:14px;line-height:1.25;margin:9px 0 5px}.blog-teaser p{font-size:12px;color:#475569;margin:0 0 5px}.blog-teaser time,.post-card time,.article time{font-size:12px;color:#64748b}.thumb,.post-thumb{height:90px;border-radius:9px;background:linear-gradient(135deg,#334155,#93c5fd),radial-gradient(circle at 30% 50%,#2563eb 0 15%,transparent 16%);background-blend-mode:multiply}.thumb.second,.post-thumb.second{background:linear-gradient(135deg,#0f172a,#64748b)}.thumb.third,.post-thumb.third{background:linear-gradient(135deg,#475569,#cbd5e1)}.post-thumb.fourth{background:linear-gradient(135deg,#1e3a8a,#93c5fd)}
.about-box{padding:18px;margin-top:20px}.about-box h2{font-size:18px;margin:0 0 8px}.about-box p{color:#475569;margin:0}.calc-page{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:20px}.calc-info{padding:20px}.formula-box h3{font-size:15px;margin:0 0 10px}.calc-card{padding:18px;align-self:start;position:sticky;top:76px}.calc-card h2{font-size:17px;margin:0 0 12px}.calc-card label{display:block;margin:12px 0}.calc-card label div{display:flex;gap:8px;align-items:center}.calc-card label span{white-space:nowrap;border:1px solid var(--line);border-radius:9px;padding:10px;background:#f8fafc;color:#64748b}.result-box{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:14px}.result-box div{display:flex;justify-content:space-between;gap:12px;padding:12px 13px;border-bottom:1px solid var(--line);background:#fbfdff}.result-box div:last-child{border-bottom:0}.result-box span{color:#64748b}.result-box strong{font-size:15px}.warning{margin-top:12px;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:10px;padding:12px;font-weight:700}.hidden{display:none}
.blog-list{display:grid;grid-template-columns:1fr;gap:14px;max-width:940px}.post-card{display:grid;grid-template-columns:210px 1fr;gap:18px;padding:14px}.post-card h2{font-size:20px;margin:8px 0 5px}.post-card p{color:#475569;margin:0 0 8px}.tool-tag{display:inline-flex;background:#eff6ff;color:var(--blue);border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900}.article{max-width:820px;padding:28px}.article h1{font-size:34px;line-height:1.15;margin:8px 0}.article h2{font-size:20px;margin-top:24px}.article p,.article li{font-size:16px;color:#334155}.text-link{color:var(--blue);font-weight:800}
.footer{border-top:1px solid var(--line);padding:18px 28px;display:flex;justify-content:space-between;gap:14px;color:#64748b;font-size:12px}
@media(max-width:1180px){.dashboard-grid{grid-template-columns:1fr}.blog-panel{display:none}.card-grid{grid-template-columns:repeat(2,1fr)}.calc-page{grid-template-columns:1fr}.calc-card{position:static}}
@media(max-width:820px){.app{display:block}.sidebar{display:none;position:fixed;z-index:20;width:280px}.sidebar.open{display:block}.menu-btn{display:block}.dashboard{padding:18px 14px}.topbar{padding:0 14px}.converter-shell{grid-template-columns:1fr}.unit-tabs{border-right:0;border-bottom:1px solid var(--line)}.two-col{grid-template-columns:1fr}.card-grid{grid-template-columns:1fr}.post-card{grid-template-columns:1fr}.footer{flex-direction:column;padding:18px 14px}}

/* --- V5 unit converter UX fix --- */
.unit-tabs button {
  cursor: pointer;
}
.converter-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px 18px;
  align-items:end;
}
.value-unit-row{
  display:grid;
  grid-template-columns: minmax(0,1fr) 160px;
  gap:10px;
}
.value-unit-row input,
.value-unit-row select{
  margin-top:6px;
}
@media(max-width:820px){
  .converter-form{grid-template-columns:1fr}
  .value-unit-row{grid-template-columns:1fr}
}

/* --- V6 Unit Converter refinements --- */
.converter-shell.standalone{
  max-width:1120px;
}
.converter-main .button.primary{
  display:none;
}
.result-line.large{
  margin-top:20px;
  border-color:#bfdbfe;
  background:#f8fbff;
  padding:16px 18px;
}
.result-line.large strong{
  font-size:18px;
}
.fluid-box{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px 18px;
  background:#fff;
}
.fluid-box h3{
  margin:0 0 6px;
  font-size:15px;
}
.fluid-box p{
  margin:0 0 12px;
  color:#475569;
}
.fluid-box .result-line{
  margin-top:12px;
}
#mass-flow-box,
#pressure-fluid-box{
  display:none;
}
body.uc-pressure #pressure-fluid-box,
body.uc-flow #mass-flow-box{
  display:block;
}
.unit-tabs button{
  position:relative;
}
.unit-tabs button:before{
  content:"";
  width:18px;
  height:18px;
  border-radius:6px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  display:inline-block;
  vertical-align:middle;
  margin-right:10px;
}

/* --- V7 Hydraulic Power page layout --- */
.hydraulic-page .page-title .eyebrow{
  display:none;
}
.wide-calc-card,
.formula-section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px 22px;
  max-width:1180px;
  margin-bottom:18px;
}
.wide-calc-card h2,
.formula-section h2{
  font-size:18px;
  margin:0 0 16px;
}
.wide-calc-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 36px;
  align-items:end;
}
.wide-calc-grid label{
  display:block;
}
.wide-calc-grid label div{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:10px;
  align-items:center;
}
.wide-calc-grid label span{
  white-space:nowrap;
  border:1px solid var(--line);
  border-radius:9px;
  padding:10px;
  background:#f8fafc;
  color:#64748b;
  margin-top:6px;
}
.hydraulic-result{
  margin:0;
  align-self:end;
}
.formula-section .formula-content{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:28px;
  align-items:start;
}
.formula.light{
  display:inline-block;
  background:#f8fafc;
  color:#1e293b;
  border:1px solid var(--line);
  font-size:20px;
  padding:12px 18px;
  margin:8px 0 0;
  min-width:0;
}
.formula-notes ul{
  columns:2;
  gap:28px;
  margin:0;
  padding-left:18px;
  color:#475569;
}
.formula-notes li{
  break-inside:avoid;
  margin-bottom:7px;
}
@media(max-width:900px){
  .wide-calc-grid,
  .formula-section .formula-content{
    grid-template-columns:1fr;
  }
  .formula-notes ul{
    columns:1;
  }
}
@media(max-width:560px){
  .wide-calc-grid label div{
    grid-template-columns:1fr;
  }
}

/* --- V8 logo update --- */
.brand{
  display:block;
  margin-bottom:26px;
}
.brand-image{
  width:220px;
  height:auto;
  display:block;
}
.logo{
  display:none!important;
}

/* --- V11 Pipe Velocity + NPSH helper --- */
.npsh-helper-box{
  border:1px solid var(--line);
  background:#f8fbff;
  border-radius:12px;
  padding:16px 18px;
  margin-bottom:20px;
}
.npsh-helper-box h3{
  font-size:15px;
  margin:0 0 5px;
}
.npsh-helper-box p{
  margin:0 0 14px;
  color:#475569;
}
.wide-calc-grid.compact-helper{
  grid-template-columns:1fr 1fr 1.2fr;
  gap:16px;
}
input:disabled,
select:disabled{
  background:#f1f5f9;
  color:#64748b;
}
@media(max-width:1000px){
  .wide-calc-grid.compact-helper{
    grid-template-columns:1fr;
  }
}

/* --- V12 notes --- */
.note-list{
  margin:10px 0 12px;
  padding-left:20px;
  color:#475569;
}
.note-list li{
  margin:6px 0;
}

/* --- V13 navigation cleanup --- */
.topbar{
  display:none;
}
.dashboard{
  padding-top:28px;
}
.side-nav p{
  margin-top:22px;
}
.side-nav a.active{
  background:var(--blue);
  color:#fff;
}
@media(max-width:820px){
  .topbar{
    display:flex;
    height:52px;
    justify-content:flex-start;
  }
  .topbar nav{
    display:none;
  }
  .dashboard{
    padding-top:18px;
  }
}

/* --- V14 collapsible coming soon + feedback --- */
.coming-details{
  margin:22px 0 4px;
}
.coming-details summary{
  cursor:pointer;
  list-style:none;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#9fb0c7;
  font-weight:800;
  padding:8px 10px;
  border-radius:9px;
}
.coming-details summary::-webkit-details-marker{
  display:none;
}
.coming-details summary:after{
  content:"▾";
  float:right;
  color:#9fb0c7;
}
.coming-details[open] summary:after{
  content:"▴";
}
.coming-details summary span{
  text-transform:none;
}
.coming-details .locked{
  margin-left:0;
}
.calc-feedback{
  max-width:1180px;
  margin:18px 0 0;
  background:#f8fbff;
  border:1px solid #bfdbfe;
  border-radius:var(--radius);
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  color:#334155;
}
.calc-feedback strong{
  color:#0f172a;
}
.calc-feedback span{
  color:#64748b;
}
.calc-feedback a{
  color:var(--blue);
  font-weight:800;
  margin-left:auto;
}
.feedback-box{
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px 18px;
  background:#f8fafc;
  margin:16px 0 22px;
}
.feedback-box h3{
  margin:0 0 8px;
}
@media(max-width:700px){
  .calc-feedback{
    display:block;
  }
  .calc-feedback span,
  .calc-feedback a{
    display:block;
    margin:5px 0 0;
  }
}

/* --- V15 engineering tables --- */
.table-wrap{
  overflow:auto;
  margin:18px 0 30px;
  border:1px solid var(--line);
  border-radius:14px;
}
.eng-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  min-width:760px;
}
.eng-table thead{
  background:#f8fafc;
}
.eng-table th,
.eng-table td{
  padding:14px 16px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
  vertical-align:top;
}
.eng-table th{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#475569;
}
.eng-table tbody tr:hover{
  background:#f8fbff;
}

/* --- V20 expanded NPSH article --- */
.article-wide{
  max-width:1080px;
}
.article-wide .lead{
  font-size:18px;
  color:#334155;
}
.article-formula{
  margin:16px 0;
}
.compare-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:20px 0;
}
.compare-card{
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fbff;
  padding:18px 20px;
}
.compare-card h3{
  margin-top:0;
}
.article-diagram{
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
  margin:26px 0;
  padding:22px;
  position:relative;
  overflow:hidden;
}
.npsh-diagram{
  min-height:230px;
  display:flex;
  align-items:center;
  gap:28px;
}
.npsh-diagram .tank{
  width:210px;
  height:150px;
  border:3px solid #334155;
  border-top:0;
  border-radius:0 0 18px 18px;
  position:relative;
  background:white;
}
.npsh-diagram .tank span{
  position:absolute;
  top:-32px;
  left:0;
  font-weight:800;
  color:#334155;
}
.npsh-diagram .water{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:90px;
  background:linear-gradient(180deg,#93c5fd,#2563eb);
  border-radius:0 0 14px 14px;
}
.npsh-diagram .pipe{
  height:18px;
  flex:1;
  min-width:160px;
  background:#64748b;
  border-radius:999px;
}
.npsh-diagram .pump-symbol{
  width:130px;
  height:130px;
  border-radius:50%;
  background:#2563eb;
  color:white;
  display:grid;
  place-items:center;
  font-weight:900;
  box-shadow:0 10px 30px rgba(37,99,235,.3);
}
.arrow-label{
  position:absolute;
  left:270px;
  right:40px;
  font-size:13px;
  font-weight:800;
}
.arrow-label.top{
  top:26px;
  color:#166534;
}
.arrow-label.bottom{
  bottom:24px;
  color:#9a3412;
}
.curve-diagram{
  min-height:280px;
}
.curve-diagram svg{
  width:100%;
  height:240px;
}
.curve-diagram .axis{
  position:absolute;
  font-size:13px;
  font-weight:900;
  color:#475569;
}
.curve-diagram .axis.y{
  top:18px;
  left:18px;
}
.curve-diagram .axis.x{
  bottom:16px;
  right:24px;
}
@media(max-width:820px){
  .compare-grid{
    grid-template-columns:1fr;
  }
  .npsh-diagram{
    display:block;
  }
  .npsh-diagram .tank{
    margin:40px auto 22px;
  }
  .npsh-diagram .pipe{
    height:14px;
    margin:20px 40px;
  }
  .npsh-diagram .pump-symbol{
    margin:0 auto;
  }
  .arrow-label{
    position:static;
    margin:10px 0;
  }
}

/* --- V21 friction + article polish --- */
.article-wide h3{
  margin-top:22px;
}
.article-wide .lead{
  font-size:18px;
  color:#334155;
}

/* --- V22 blog thumbnails + technical illustrations --- */
.post-thumb{
  position:relative;
  overflow:hidden;
  background:#e2e8f0;
}
.post-thumb:before,
.post-thumb:after{
  content:"";
  position:absolute;
  display:block;
}
.thumb-npsh{
  background:linear-gradient(135deg,#dbeafe,#eff6ff);
}
.thumb-npsh:before{
  width:80px;height:80px;border:8px solid #2563eb;border-radius:50%;
  right:28px;top:24px;
}
.thumb-npsh:after{
  left:24px;bottom:22px;width:160px;height:22px;background:#64748b;border-radius:999px;
}
.thumb-pipe{
  background:linear-gradient(135deg,#f8fafc,#dbeafe);
}
.thumb-pipe:before{
  left:22px;top:48px;width:220px;height:28px;background:#2563eb;border-radius:999px;
}
.thumb-pipe:after{
  left:58px;top:34px;width:72px;height:56px;border:10px solid #64748b;border-left:0;border-bottom:0;border-radius:0 40px 0 0;
}
.thumb-impeller{
  background:linear-gradient(135deg,#e0f2fe,#dbeafe);
}
.thumb-impeller:before{
  width:95px;height:95px;border-radius:50%;background:conic-gradient(#2563eb 0 12%,transparent 12% 25%,#2563eb 25% 37%,transparent 37% 50%,#2563eb 50% 62%,transparent 62% 75%,#2563eb 75% 87%,transparent 87%);
  left:80px;top:18px;
}
.thumb-api{
  background:linear-gradient(135deg,#1e3a8a,#93c5fd);
}
.thumb-api:before{
  content:"API";
  color:#fff;
  font-weight:900;
  font-size:42px;
  left:42px;top:35px;
}
.thumb-sealless{
  background:linear-gradient(135deg,#0f172a,#64748b);
}
.thumb-sealless:before{
  width:160px;height:54px;border:8px solid #bfdbfe;border-radius:999px;
  left:42px;top:38px;
}
.thumb-sealless:after{
  width:58px;height:58px;border-radius:50%;background:#2563eb;
  left:92px;top:36px;
}
.thumb-motor{
  background:linear-gradient(135deg,#e2e8f0,#bfdbfe);
}
.thumb-motor:before{
  width:130px;height:78px;border-radius:18px;background:#334155;left:44px;top:28px;
}
.thumb-motor:after{
  width:56px;height:56px;border-radius:50%;border:8px solid #2563eb;left:168px;top:38px;
}
.thumb-coupling{
  background:linear-gradient(135deg,#eff6ff,#cbd5e1);
}
.thumb-coupling:before{
  left:26px;top:58px;width:220px;height:16px;background:#334155;border-radius:999px;
}
.thumb-coupling:after{
  left:102px;top:36px;width:72px;height:60px;background:#2563eb;border-radius:14px;
}
.thumb-seal{
  background:linear-gradient(135deg,#f8fafc,#cbd5e1);
}
.thumb-seal:before{
  left:28px;top:58px;width:220px;height:16px;background:#475569;border-radius:999px;
}
.thumb-seal:after{
  left:112px;top:28px;width:52px;height:76px;border:8px solid #2563eb;border-radius:12px;
}
.thumb-toolkit{
  background:linear-gradient(135deg,#dbeafe,#f8fafc);
}
.thumb-toolkit:before{
  width:92px;height:92px;border-radius:50%;background:conic-gradient(#2563eb 0 12%,transparent 12% 25%,#2563eb 25% 37%,transparent 37% 50%,#2563eb 50% 62%,transparent 62% 75%,#2563eb 75% 87%,transparent 87%);
  left:84px;top:20px;
}

/* Coupling article illustrations */
.coupling-illustration,
.seal-illustration{
  min-height:230px;
}
.coupling-illustration{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
}
.shaft{
  width:180px;
  height:24px;
  background:#475569;
}
.coupling-body{
  display:flex;
  align-items:center;
  gap:8px;
  padding:18px;
  border-radius:18px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
}
.hub{
  width:58px;height:82px;background:#2563eb;border-radius:14px;
}
.disc-pack{
  width:34px;height:92px;background:repeating-linear-gradient(90deg,#334155 0 4px,#94a3b8 4px 8px);
  border-radius:8px;
}
.diagram-caption{
  position:absolute;
  bottom:14px;
  left:22px;
  color:#64748b;
  font-size:13px;
  font-weight:700;
}
.mini-coupling{
  height:96px;
  border-radius:12px;
  background:#f1f5f9;
  margin-bottom:12px;
  position:relative;
}
.mini-coupling:before{
  content:"";
  position:absolute;
  left:20px;right:20px;top:42px;height:14px;background:#475569;border-radius:999px;
}
.mini-coupling.elastomer:after{
  content:"";
  position:absolute;
  left:105px;top:22px;width:54px;height:54px;background:#2563eb;border-radius:50%;
}
.mini-coupling.disc:after{
  content:"";
  position:absolute;
  left:104px;top:16px;width:58px;height:66px;background:repeating-linear-gradient(90deg,#2563eb 0 5px,#bfdbfe 5px 10px);
  border-radius:8px;
}

/* Seal article illustrations */
.seal-illustration{
  display:flex;
  align-items:center;
  justify-content:center;
}
.seal-shaft{
  position:absolute;
  left:70px;
  right:70px;
  height:22px;
  background:#475569;
  border-radius:999px;
}
.packing-box,
.mechanical-seal{
  position:relative;
  z-index:1;
  width:160px;
  height:110px;
  border-radius:18px;
  display:grid;
  place-items:center;
  text-align:center;
  font-weight:800;
  color:#0f172a;
  margin:0 28px;
  border:1px solid var(--line);
  background:#fff;
}
.packing-box{
  box-shadow:inset 0 0 0 16px #cbd5e1;
}
.mechanical-seal{
  box-shadow:inset 0 0 0 12px #bfdbfe;
}
.mechanical-seal:after{
  content:"";
  position:absolute;
  width:60px;height:60px;border:8px solid #2563eb;border-radius:50%;
}
.seal-icon{
  height:96px;
  border-radius:12px;
  background:#f1f5f9;
  margin-bottom:12px;
  position:relative;
}
.seal-icon:before{
  content:"";
  position:absolute;
  left:24px;right:24px;top:42px;height:14px;background:#475569;border-radius:999px;
}
.packing-icon:after{
  content:"";
  position:absolute;
  left:110px;top:18px;width:44px;height:60px;background:repeating-linear-gradient(0deg,#64748b 0 8px,#cbd5e1 8px 16px);border-radius:8px;
}
.mech-icon:after{
  content:"";
  position:absolute;
  left:102px;top:18px;width:58px;height:58px;border:8px solid #2563eb;border-radius:50%;
}
@media(max-width:820px){
  .shaft{width:80px}
  .coupling-body{padding:12px}
  .hub{width:42px;height:64px}
  .disc-pack{height:72px}
  .seal-illustration{display:block;text-align:center}
  .seal-shaft{display:none}
  .packing-box,.mechanical-seal{margin:18px auto}
}


/* --- V23 realistic blog thumbnails --- */
.post-thumb{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  min-height:150px;
}

.post-thumb:before,
.post-thumb:after{
  content:"";
  position:absolute;
}

/* NPSH */
.thumb-npsh{
  background:linear-gradient(180deg,#dbeafe 0%,#93c5fd 45%,#334155 46%,#1e293b 100%);
}
.thumb-npsh:before{
  width:110px;
  height:110px;
  border-radius:50%;
  border:10px solid #1d4ed8;
  right:26px;
  top:18px;
  box-shadow:inset 0 0 0 12px #bfdbfe;
}
.thumb-npsh:after{
  left:24px;
  bottom:24px;
  width:180px;
  height:24px;
  background:#64748b;
  border-radius:999px;
}

/* Pipe */
.thumb-pipe{
  background:linear-gradient(135deg,#eff6ff,#bfdbfe);
}
.thumb-pipe:before{
  left:16px;
  right:16px;
  top:58px;
  height:34px;
  background:#2563eb;
  border-radius:999px;
  box-shadow:0 0 0 10px #64748b;
}
.thumb-pipe:after{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#dbeafe;
  left:72%;
  top:58px;
}

/* Impeller */
.thumb-impeller{
  background:radial-gradient(circle at center,#1e293b 0%,#334155 40%,#64748b 100%);
}
.thumb-impeller:before{
  width:120px;
  height:120px;
  border-radius:50%;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:
    conic-gradient(
      #60a5fa 0 12%,
      transparent 12% 20%,
      #2563eb 20% 32%,
      transparent 32% 40%,
      #60a5fa 40% 52%,
      transparent 52% 60%,
      #2563eb 60% 72%,
      transparent 72% 80%,
      #60a5fa 80% 92%,
      transparent 92%
    );
}
.thumb-impeller:after{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#0f172a;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

/* API */
.thumb-api{
  background:linear-gradient(135deg,#0f172a,#2563eb);
}
.thumb-api:before{
  content:"API 610";
  color:#fff;
  font-size:32px;
  font-weight:900;
  left:26px;
  top:52px;
}

/* Sealless */
.thumb-sealless{
  background:linear-gradient(135deg,#111827,#475569);
}
.thumb-sealless:before{
  width:180px;
  height:58px;
  border-radius:999px;
  border:10px solid #93c5fd;
  left:36px;
  top:42px;
}
.thumb-sealless:after{
  width:70px;
  height:70px;
  border-radius:50%;
  background:#2563eb;
  left:92px;
  top:36px;
}

/* Motor */
.thumb-motor{
  background:linear-gradient(135deg,#e2e8f0,#93c5fd);
}
.thumb-motor:before{
  width:170px;
  height:80px;
  border-radius:22px;
  background:#334155;
  left:40px;
  top:34px;
}
.thumb-motor:after{
  width:56px;
  height:56px;
  border-radius:50%;
  border:10px solid #2563eb;
  left:182px;
  top:46px;
}

/* Coupling */
.thumb-coupling{
  background:linear-gradient(135deg,#f8fafc,#cbd5e1);
}
.thumb-coupling:before{
  left:18px;
  right:18px;
  top:64px;
  height:18px;
  background:#475569;
  border-radius:999px;
}
.thumb-coupling:after{
  width:90px;
  height:50px;
  background:#2563eb;
  left:50%;
  top:48px;
  transform:translateX(-50%);
  border-radius:12px;
  box-shadow:-36px 0 0 #64748b,36px 0 0 #64748b;
}

/* Seal */
.thumb-seal{
  background:linear-gradient(135deg,#f8fafc,#cbd5e1);
}
.thumb-seal:before{
  left:22px;
  right:22px;
  top:64px;
  height:16px;
  background:#475569;
  border-radius:999px;
}
.thumb-seal:after{
  width:78px;
  height:78px;
  border-radius:50%;
  border:12px solid #2563eb;
  left:50%;
  top:34px;
  transform:translateX(-50%);
}

/* Toolkit */
.thumb-toolkit{
  background:linear-gradient(135deg,#0f172a,#1d4ed8);
}
.thumb-toolkit:before{
  width:120px;
  height:120px;
  border-radius:50%;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:
    conic-gradient(
      #93c5fd 0 10%,
      transparent 10% 20%,
      #60a5fa 20% 30%,
      transparent 30% 40%,
      #93c5fd 40% 50%,
      transparent 50% 60%,
      #60a5fa 60% 70%,
      transparent 70% 80%,
      #93c5fd 80% 90%,
      transparent 90%
    );
}
.thumb-toolkit:after{
  width:32px;
  height:32px;
  border-radius:50%;
  background:#0f172a;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

/* --- V24 ATEX and material equivalents --- */
.image-panel{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:14px;
  margin:22px 0;
  box-shadow:var(--shadow);
}
.image-panel img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
}
.image-panel p{
  color:#64748b;
  font-size:13px;
  margin:10px 4px 0;
}
.thumb-atex{
  background:linear-gradient(135deg,#fff7ed,#facc15);
}
.thumb-atex:before{
  width:160px;
  height:95px;
  border-radius:50%;
  background:rgba(245,158,11,.55);
  right:16px;
  top:32px;
}
.thumb-atex:after{
  content:"ATEX";
  left:28px;
  top:52px;
  color:#7c2d12;
  font-size:34px;
  font-weight:900;
}

/* --- V26 production basics --- */
.legal-footer{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}
.legal-footer a{
  color:#64748b;
  font-weight:700;
}
.cookie-banner{
  position:fixed;
  left:24px;
  right:24px;
  bottom:24px;
  max-width:760px;
  margin:auto;
  background:#0f172a;
  color:#fff;
  border-radius:16px;
  padding:16px 18px;
  box-shadow:0 20px 60px rgba(15,23,42,.35);
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  z-index:9999;
}
.cookie-banner.show{
  display:flex;
}
.cookie-banner p{
  margin:4px 0 0;
  color:#cbd5e1;
  font-size:13px;
}
.cookie-actions{
  display:flex;
  gap:10px;
}
.cookie-actions button{
  border:1px solid rgba(255,255,255,.25);
  background:#fff;
  color:#0f172a;
  border-radius:10px;
  padding:9px 12px;
  font-weight:800;
  cursor:pointer;
}
.cookie-actions button:first-child{
  background:transparent;
  color:#fff;
}
@media(max-width:700px){
  .cookie-banner{
    display:none;
    left:12px;
    right:12px;
    bottom:12px;
    flex-direction:column;
    align-items:flex-start;
  }
  .cookie-banner.show{
    display:flex;
  }
}

/* --- V28 updates --- */
.beta-tag{
  font-size:10px;
  font-weight:900;
  color:#f59e0b;
  margin-left:4px;
}

/* --- V30 affinity article thumbnail --- */
.thumb-affinity{
  background:linear-gradient(135deg,#eff6ff,#bfdbfe);
}
.thumb-affinity:before{
  left:26px;
  bottom:26px;
  width:210px;
  height:95px;
  border-left:6px solid #334155;
  border-bottom:6px solid #334155;
}
.thumb-affinity:after{
  left:48px;
  top:82px;
  width:180px;
  height:6px;
  background:#2563eb;
  transform:rotate(-24deg);
  border-radius:999px;
  box-shadow:0 -30px 0 #60a5fa;
}
