/* ============================================================
   COMMIT — shared site chrome
   Layers on tokens.css. The single definition of the components
   that appear on more than one page: the brand lockup, buttons,
   and the header/footer row.

   PADDING CONVENTION (read before touching a header/footer):
     • .wrap owns HORIZONTAL padding (tokens.css).
     • the full-width parent (nav / header / footer / section)
       owns VERTICAL padding.
     • .row owns NO padding.
   A `padding` shorthand on a .wrap/.row element out-specifies
   .wrap and zeroes its sides, bleeding the bar to the screen
   edge. Keeping padding off .row is what prevents that — don't
   add a `padding` shorthand to a row.
   ============================================================ */

/* header / footer row — flex only, never padding (see convention above) */
.row { display: flex; align-items: center; justify-content: space-between; }

/* ---- brand lockup (comet glyph + wordmark) ----
   mono mark — black on light, white on dark (tints the glyph's alpha,
   the web equivalent of the app's themed tintColor). */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 28px; height: 28px; filter: brightness(0); }
html.dark .brand img { filter: brightness(0) invert(1); }
.brand .wm, .brand span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  font-size: 16px;
  padding-left: 0.20em;
}

/* ---- buttons ----
   primary = solid purple (a solid accent, NOT the gradient — the gradient
   stays reserved for data/artwork). Ghost = hairline outline. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer;
  padding: 13px 22px;
  transition: transform .15s, box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--glow-primary); }
.btn-primary:hover { background: #7a4dff; border-color: #7a4dff; }
.btn-primary svg { width: 17px; height: 17px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-sm { padding: 9px 16px; font-size: 12px; }
