/* CalcHub site-wide: top search bar + home page calculator */
.chs-top{display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:#fff;border-bottom:3px solid #DC2626;padding:10px clamp(16px,4vw,40px)}
.chs-brand{font-weight:800;font-size:18px;color:#0f172a;text-decoration:none}
.chs-brand b{color:#DC2626}
.chs{position:relative;flex:1;min-width:240px;max-width:640px;margin:0}
.chs-box{display:flex;border:2px solid #cbd5e1;border-radius:12px;overflow:hidden;background:#fff}
.chs-box:focus-within{border-color:#DC2626;box-shadow:0 0 0 3px rgba(220,38,38,.15)}
.chs-in{flex:1;min-width:0;border:0;padding:11px 14px;font:inherit;background:transparent;outline:0;color:#0f172a}
.chs-btn{border:0;background:#DC2626;color:#fff;font:inherit;font-weight:700;padding:0 20px;cursor:pointer}
.chs-btn:hover{background:#B91C1C}
.chs-list{position:absolute;z-index:60;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #fecaca;border-radius:12px;box-shadow:0 14px 34px rgba(15,23,42,.16)}
.chs-list[hidden]{display:none}
.chs-list a{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:8px;text-decoration:none;color:#334155}
.chs-list a strong{color:#0f172a}
.chs-list a span{font-size:12px;color:#94a3b8;white-space:nowrap}
.chs-list li.on a,.chs-list a:hover{background:#FEF2F2}
.chs-none{padding:10px;color:#64748b;font-size:14px}
.home .wp-block-post-title{display:none}
.chh{display:grid;gap:40px;grid-template-columns:1fr;align-items:center;margin:8px 0 44px}
@media(min-width:900px){.chh{grid-template-columns:1.1fr .9fr}}
.chh-h{font-size:clamp(30px,4.6vw,52px);line-height:1.08;margin:0 0 14px;color:#0f172a}
.chh-p{font-size:17px;max-width:46ch;margin:0 0 22px}
.chh .chs-box{box-shadow:0 6px 20px rgba(220,38,38,.12)}
.chh-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.chh-chips a{border:1px solid #fecaca;border-radius:999px;padding:6px 14px;font-size:14px;text-decoration:none;color:#B91C1C;background:#fff}
.chh-chips a:hover{background:#DC2626;color:#fff;border-color:#DC2626}
.chh-body{background:#DC2626;border-radius:26px;padding:18px;box-shadow:0 18px 40px rgba(185,28,28,.28),inset 0 -6px 0 rgba(0,0,0,.12)}
.chh-disp{background:#450a0a;border-radius:14px;padding:16px 18px;min-height:104px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;margin-bottom:16px}
.chh-disp small{color:#fca5a5;font-size:13px}
.chh-disp b{color:#fff1f2;font:700 clamp(24px,3.4vw,34px)/1.1 "IBM Plex Mono",Menlo,Consolas,monospace;text-align:right;font-variant-numeric:tabular-nums}
.chh-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.chh-key{background:#fff;border-radius:14px;padding:12px 4px 10px;text-align:center;text-decoration:none;color:#334155;box-shadow:0 5px 0 #fecaca;transition:transform .08s,box-shadow .08s}
.chh-key:hover{transform:translateY(3px);box-shadow:0 2px 0 #fecaca}
.chh-key i{display:block;font:700 26px/1.1 "IBM Plex Mono",Menlo,Consolas,monospace;color:#DC2626}
.chh-key strong{display:block;font-size:12px;color:#0f172a;margin-top:4px}
.chh-key span{display:block;font-size:11px;color:#64748b}
.chh-all{grid-column:1/-1;background:#450a0a;box-shadow:0 5px 0 rgba(0,0,0,.35);padding:12px}
.chh-all:hover{box-shadow:0 2px 0 rgba(0,0,0,.35)}
.chh-all strong{color:#fff;margin:0;font-size:14px}
