/* ==========================================================================
   M-Convert — Converter-specific enhancements
   Loaded on pages that present a converter widget. Keeps components.css
   focused on reusable primitives while allowing richer layouts here.
   ========================================================================== */

.converter--wide {
  max-width: 860px;
  margin-inline: auto;
}

.converter--compact {
  padding: var(--space-4);
}

.converter__hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.converter__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.converter__unit-symbol {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.converter__presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.converter__preset {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.converter__preset:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 480px) {
  .converter__presets {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-2);
  }
  .converter__preset { flex-shrink: 0; }
}