/* RapidTables-style calculator chrome — do not mix with calc-desk on same page unless needed */
.rt-tool {
  background: #eee8d5;
  border-radius: 10px;
  padding: 16px 18px 18px;
  margin: 0 0 22px;
  max-width: 640px;
}
.rt-tool .rt-fn {
  font-family: "Times New Roman", Times, serif;
  font-size: 28px;
  font-weight: 700;
  margin-right: 8px;
  line-height: 1;
}
.rt-tool .rt-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.rt-tool input[type="text"],
.rt-tool input[type="number"],
.rt-tool textarea {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 7px 10px;
  background: #fff;
  min-width: 120px;
  font-size: 15px;
}
.rt-tool select {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 6px 8px;
  background: #fff;
  font-size: 14px;
}
.rt-tool .rt-pi {
  border: 1px solid #888;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  cursor: pointer;
  line-height: 1.2;
}
.rt-tool .rt-pi:hover { background: #e8e8e8; }
.rt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.rt-btn-calc {
  background: #ff6b1a !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  cursor: pointer;
}
.rt-btn-reset {
  background: #546e7a !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  cursor: pointer;
}
.rt-tool .rt-out {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 16px;
}
.rt-tool .rt-out[readonly] { background: #fff; }
.rt-tool .rt-label {
  display: block;
  font-size: 13px;
  color: #444;
  margin: 0 0 4px;
}
.rt-tool .rt-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 12px;
}
.rt-tool .rt-pair label {
  display: block;
  font-size: 12px;
  color: #666;
  margin: 0 0 4px;
}
.rt-tool .rt-note {
  font-size: 13px;
  color: #555;
  margin: 8px 0 0;
  font-family: "Times New Roman", Times, serif;
}
.rt-next {
  display: inline-block;
  margin: 0 0 20px;
  font-weight: 600;
  color: #ff6b1a !important;
  text-decoration: none !important;
}
.rt-next:hover { text-decoration: underline !important; }
.rt-table-wrap { overflow-x: auto; margin: 12px 0 24px; }
.rt-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 520px;
  font-size: 14px;
}
.rt-table th,
.rt-table td {
  border: 1px solid #bbb;
  padding: 8px 10px;
  text-align: center;
}
.rt-table th { background: #e8e8e8; font-weight: 700; }
.rt-table td { background: #fff; }
.rt-related,
.rt-see {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}
.rt-related a,
.rt-see a {
  background: #ff6b1a !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
/* Aliases used by some pages / older hooks */
.rt-box,
.rt-calc-box { /* same beige panel */
  background: #eee8d5;
  border-radius: 10px;
  padding: 16px 18px 18px;
  margin: 0 0 22px;
  max-width: 640px;
}
.rt-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 10px;
  color: #222;
}
.rt-hint { font-size: 14px; color: #555; margin: 0 0 10px; }
.rt-error { color: #b71c1c; font-size: 13px; margin: 6px 0; display: none; }
.rt-sci-key {
  border: 1px solid #888;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 6px 10px;
  min-width: 40px;
  cursor: pointer;
  font-size: 14px;
}
.rt-sci-key:hover { background: #e8e8e8; }
@media (max-width: 560px) {
  .rt-tool .rt-pair { grid-template-columns: 1fr; }
  .rt-tool .rt-fn { font-size: 22px; }
}
