.hot-tool {
  --ink: #192d3d;
  --muted: #5b6d78;
  --line: #d8e2e4;
  --accent: #087d76;
  --accent-dark: #06645f;
  color: var(--ink);
}

.hot-tool .calculator-card {
  max-width: 680px;
  margin: 1.5rem auto 2rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdfc;
  box-shadow: 0 12px 32px rgb(25 45 61 / 8%);
}

.hot-tool .eyebrow {
  margin: 0 0 .45rem;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hot-tool label {
  display: block;
  margin: 1rem 0 .4rem;
  font-weight: 700;
}

.hot-tool .input-row {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.hot-tool input[type="number"],
.hot-tool select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: .65rem .8rem;
  border: 1px solid #aebfc3;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.hot-tool .input-row input { flex: 1; min-width: 0; }
.hot-tool .unit-mark { min-width: 2.5rem; color: var(--muted); font-weight: 650; }
.hot-tool .field-help { margin: .35rem 0 .8rem; color: var(--muted); font-size: .9rem; }

.hot-tool .angle-panel {
  margin-top: 1.2rem;
  padding: .15rem 1rem .75rem;
  border-left: 3px solid #88c5bd;
  border-radius: 0 10px 10px 0;
  background: #f0f8f6;
}

.hot-tool .check-label { display: flex; align-items: center; gap: .6rem; }
.hot-tool input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.hot-tool input:focus-visible, .hot-tool select:focus-visible, .hot-tool button:focus-visible { outline: 3px solid #f1b84b; outline-offset: 2px; }

.hot-tool button {
  min-height: 46px;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.hot-tool button:hover { background: var(--accent-dark); }
.hot-tool #calculate { width: 100%; margin-top: 1.25rem; }
.hot-tool .error-message { margin: .75rem 0 0; color: #a12e25; font-weight: 650; }
.hot-tool .results { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.hot-tool .result-heading { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.hot-tool .result-heading h2 { margin: 0; font-size: 1.35rem; }
.hot-tool .frequency-tag { padding: .4rem .65rem; border-radius: 99px; background: #e3f2ef; color: #145f59; font-weight: 700; white-space: nowrap; }
.hot-tool .length-list { margin: 1rem 0; }
.hot-tool .length-row { display: flex; justify-content: space-between; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.hot-tool .length-row dt { font-weight: 650; }
.hot-tool .length-row dd { display: grid; gap: .15rem; margin: 0; text-align: right; }
.hot-tool .length-row dd strong { font-size: 1.08rem; }
.hot-tool .length-row dd span { color: var(--muted); font-size: .85rem; }
.hot-tool .total-row { color: #075f59; }
.hot-tool .result-note { color: var(--muted); font-size: .92rem; }
.hot-tool .button-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.hot-tool .secondary-button { flex: 1 1 150px; background: #e3eeec; color: #154b48; }
.hot-tool .secondary-button:hover { background: #d0e4e0; }
.hot-tool .article-copy { max-width: 760px; margin: 2rem auto; line-height: 1.72; }
.hot-tool .article-copy h2 { margin-top: 2rem; line-height: 1.25; }
.hot-tool .formula { padding: .75rem 1rem; overflow-wrap: anywhere; border-radius: 8px; background: #f0f5f4; }

@media print {
  .hot-tool .calculator-card > :not(.results), .hot-tool .results .button-row, .hot-tool .results #copy-status, .hot-tool .article-copy { display: none !important; }
  .hot-tool .calculator-card { max-width: none; border: 0; box-shadow: none; }
  .hot-tool .results { display: block !important; }
}

@media (max-width: 420px) {
  .hot-tool .length-row { align-items: flex-start; }
  .hot-tool .length-row dt { max-width: 45%; }
  .hot-tool .result-heading h2 { font-size: 1.15rem; }
}
