/* HWC Tools — styled with the hwc-lite theme variables (fallbacks included). */
.hwc-tool{--hwt-r:var(--r,22px);--hwt-rs:var(--rs,12px);margin:2em 0;padding:24px;background:var(--card,#fff);border:1px solid var(--line,#d5e4e6);border-radius:var(--hwt-r);box-shadow:var(--sh,0 1px 2px rgba(16,48,58,.04),0 8px 24px rgba(16,48,58,.06));color:var(--fg,#26383f);font-family:var(--sans,system-ui,sans-serif);font-size:16px;line-height:1.5}
.hwc-tool *,.hwc-tool *::before,.hwc-tool *::after{box-sizing:border-box}
.hwc-tool__head{display:flex;gap:14px;align-items:flex-start;margin:0 0 18px}
.hwc-tool__icon{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--tile,#e4f0f1);color:var(--teal,#0d6670)}
.hwc-tool .hwc-tool__title,.entry-content .hwc-tool .hwc-tool__title{margin:2px 0 2px;font-family:var(--serif,Georgia,serif);font-size:1.35rem;line-height:1.25;color:var(--ink,#10303a)}
.hwc-tool__sub{margin:0;font-size:.92rem;color:var(--muted,#4e6670)}
.hwc-tool__group{margin:0 0 16px;padding:18px;border:1px solid var(--line,#d5e4e6);border-radius:calc(var(--hwt-rs) + 4px);background:var(--bg,#f3f8f8);min-width:0}
.hwc-tool__group:last-of-type{margin-bottom:14px}
.hwc-tool__legend{float:left;width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 4px;padding:0;font-weight:700;font-size:1.02rem;color:var(--ink,#10303a)}
.hwc-tool__legend+*{clear:both}
.hwc-tool__legend-sub{font-weight:400;font-size:.88rem;color:var(--muted,#4e6670)}
.hwc-tool__step{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--teal,#0d6670);color:#fff;font-size:.82rem;font-weight:700}
.hwc-tool__q{margin:0 0 12px;font-size:.95rem;color:var(--fg,#26383f)}
.hwc-tool__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.hwc-tool__grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hwc-tool__field{display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:12px;background:var(--card,#fff);border:1px solid var(--line,#d5e4e6);border-radius:var(--hwt-rs)}
.hwc-tool__label{font-weight:600;font-size:.93rem;line-height:1.3;color:var(--ink,#10303a)}
.hwc-tool__hint{display:block;font-weight:400;font-size:.8rem;color:var(--muted,#4e6670)}
.hwc-step{display:flex;align-items:center;gap:6px}
.hwc-step__btn{flex:0 0 40px;width:40px;height:40px;padding:0;display:grid;place-items:center;border:1px solid var(--line,#d5e4e6);border-radius:50%;background:var(--tile,#e4f0f1);color:var(--teal,#0d6670);font:700 1.2rem/1 var(--sans,system-ui,sans-serif);cursor:pointer;transition:background .15s,color .15s}
.hwc-step__btn:hover{background:var(--teal,#0d6670);color:#fff}
.hwc-step__btn:active{transform:scale(.95)}
.hwc-step__input{flex:1 1 auto;min-width:0;width:56px;height:40px;padding:0 4px;text-align:center;border:1px solid var(--line,#d5e4e6);border-radius:10px;background:#fff;color:var(--ink,#10303a);font:700 1.08rem/1 var(--sans,system-ui,sans-serif);-moz-appearance:textfield;appearance:textfield}
.hwc-step__input::-webkit-outer-spin-button,.hwc-step__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hwc-step__unit{font-size:.85rem;color:var(--muted,#4e6670);margin-left:-2px}
.hwc-tool .hwc-step__btn:focus-visible,.hwc-tool .hwc-step__input:focus-visible,.hwc-tool .hwc-step__input:focus{outline:2px solid var(--teal,#0d6670);outline-offset:1px;box-shadow:0 0 0 4px rgba(13,102,112,.15);border-color:var(--teal,#0d6670)}
.hwc-tool__result{display:flex;flex-direction:column;gap:2px;margin-top:14px;padding:16px 18px;min-height:112px;border-radius:var(--hwt-rs);background:var(--ink,#10303a);color:#eaf4f5}
.hwc-tool__result-label{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9fd3d8}
.hwc-tool__result-value{font-size:1.15rem;color:#fff}
.hwc-tool__result-value b{font-family:var(--serif,Georgia,serif);font-size:2rem;line-height:1.15;font-weight:700;margin-right:2px}
.hwc-tool__about{font-size:.95rem;color:#cfe6e8}
.hwc-tool__result-note{font-size:.9rem;color:#cfe6e8}
.hwc-tool__result-err{font-size:1rem;color:#ffd9c2;font-weight:600;margin-top:6px}
.hwc-tool [hidden]{display:none!important}
.hwc-tool__source{margin:0;padding:10px 0 0;font-size:.8rem;line-height:1.5;color:var(--muted,#4e6670)}
@media (max-width:600px){
	.hwc-tool{padding:16px;margin:1.6em 0}
	.hwc-tool__group{padding:14px 12px}
	.hwc-tool__head{gap:12px}
	.hwc-tool__icon{flex-basis:42px;width:42px;height:42px}
	.hwc-tool .hwc-tool__title,.entry-content .hwc-tool .hwc-tool__title{font-size:1.2rem}
	.hwc-tool__grid{grid-template-columns:1fr;gap:8px}
	.hwc-tool__field{flex-direction:row;align-items:center;gap:10px;padding:10px 12px}
	.hwc-tool__label{flex:1 1 auto}
	.hwc-step{flex:0 0 auto}
	.hwc-step__input{flex:0 0 52px;width:52px}
}
@media (prefers-reduced-motion:reduce){.hwc-step__btn{transition:none}}
