/* =====================================================================
   CONVERSIONS HUB STYLING & INPUT OVERRIDES
   ===================================================================== */
#cr-conv-hub .cr-converters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

#cr-conv-hub .cr-card {
  background: #ffffff;
  border: 1px solid var(--mc-line, #E5E7EB);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 15px rgba(6,78,59,.04);
}

#cr-conv-hub .cr-wide {
  grid-column: 1 / -1;
}

#cr-conv-hub .cr-card h2 {
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 4px !important;
}

#cr-conv-hub .cr-card-sub {
  font-size: 13px;
  color: var(--mc-text-soft, #6B7280);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

#cr-conv-hub .cr-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

#cr-conv-hub .cr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#cr-conv-hub .cr-field label {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--mc-ink, #064E3B);
}

#cr-conv-hub input[type="number"],
#cr-conv-hub select {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: #374151 !important;
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

#cr-conv-hub input[type="number"]:focus,
#cr-conv-hub select:focus {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

#cr-conv-hub .cr-hint {
  font-size: 11.5px;
  color: var(--mc-text-soft, #6B7280);
  margin-top: 2px;
}

#cr-conv-hub .cr-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

#cr-conv-hub .cr-fact {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
}

#cr-conv-hub .cr-fact strong {
  display: block;
  font-size: 13.5px;
  color: var(--mc-ink, #064E3B);
  margin-bottom: 2px;
}

/* Reference Table Cell Padding Fix */
#cr-conv-hub .cr-table-wrap {
  background: #fff;
  border: 1px solid var(--mc-line, #E2E8F0);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(6,78,59,0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#cr-conv-hub .cr-table-wrap table {
  background: #fff;
}

#cr-conv-hub .cr-table-wrap table th,
#cr-conv-hub .cr-table-wrap table td {
  padding: 12px 16px !important;
  text-align: left;
  vertical-align: middle;
  background: #fff;
}

/* Crop target tables grid */
#cr-conv-hub .cr-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  #cr-conv-hub .cr-converters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #cr-conv-hub .cr-converters {
    grid-template-columns: 1fr;
  }
  #cr-conv-hub .cr-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  #cr-conv-hub .cr-row2 {
    grid-template-columns: 1fr;
  }
}
