/* ── Font Control Plugin ─────────────────────────────────────────────
 * Toolbar widget for monospace font family + size. Lives in the
 * topbar next to the existing theme selector. Re-uses existing
 * topbar controls (.form-select-sm) for visual consistency.
 */

#font-mono-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  height: 30px;
}

#font-mono-select {
  /* Match .form-select form-select-sm sizing */
  height: 30px;
  padding: 0 24px 0 8px;
  font-size: 12px;
  background: var(--bg2);
  color: var(--text0);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-ui);
  max-width: 140px;
}

#font-mono-size-display {
  display: inline-block;
  min-width: 32px;
  text-align: center;
  font-size: 11px;
  color: var(--text2);
  font-family: var(--font-mono);
  user-select: none;
}

#btn-font-smaller,
#btn-font-larger {
  height: 30px;
  width: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  color: var(--text1);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#btn-font-smaller:hover,
#btn-font-larger:hover {
  background: var(--bg3);
  color: var(--accent);
  border-color: var(--accent);
}