/* The switch between the three generators (QR code, Smart Link, barcode): a segmented control that is a tablist on the
   public editors and a row of links in the signed-in app (shared/_editor_tabs). Tokens come from application.css. */

/* Doubled class: on the public pages the bar is also an .m-wrap, whose `padding: 0 var(--space-32)` (marketing.css loads later) would
   glue the bar to the panels below. */
.editor-tabs-bar.editor-tabs-bar { padding-top: var(--space-4); padding-bottom: var(--space-20); }
.content > .editor-tabs-bar { padding: 0; margin-bottom: var(--space-24); }

.editor-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: 560px; padding: var(--space-4); border-radius: var(--radius-3xl); background: var(--surface-2); border: 1px solid var(--line); }
.editor-tab { display: flex; align-items: center; justify-content: center; gap: var(--space-8); min-width: 0; min-height: 48px; padding: var(--space-8) var(--space-12); border: 1px solid transparent; border-radius: var(--radius-xl); color: var(--muted); font: var(--weight-semibold) var(--text-base)/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.editor-tab .type-icon { flex: none; }
.editor-tab-label { min-width: 0; overflow-wrap: anywhere; }
.editor-tab:hover { color: var(--text); }
/* The current one is told apart by a raised card, not by colour alone. */
.editor-tab[aria-selected="true"], .editor-tab[aria-current="page"] { background: var(--surface); border-color: var(--line); color: var(--accent-text); box-shadow: var(--shadow-tab); }
.editor-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.editor-tab[aria-busy="true"] { opacity: .65; cursor: progress; }

/* On a phone the three still share one row: the icon goes above the text. */
@media (max-width: 520px) {
  .editor-tab { flex-direction: column; justify-content: flex-start; gap: var(--space-4); min-height: 60px; padding: var(--space-8) var(--space-4); font-size: var(--text-sm); }
  .editor-tabs { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .editor-tab { transition: none; } }
