/* Neon Arena — the row vocabulary (Square-as-Document, R1).
   js/ui/row.js builds these: three kinds on one geometry (read-row ~32px
   feed lines · list-row 54px people/games · one-card the hero), one fixed
   three-zone composition — status stripe / icon · content stack · one accent
   or action — and a three-step type ladder.

   ZERO HOVER-LIFT. There is no transform in this file on purpose: the row
   answers the poll, not the cursor. The only hover reading is the hairline
   and the surface, the same quiet answer the ctx column already gives. */

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 5px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(var(--t-violet), 0.1);
  background: var(--row);
  color: var(--text);
  text-align: left;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
@media (hover: hover) {
  button.row:hover {
    border-color: rgba(var(--t-violet), 0.28);
    background: var(--row-hover);
  }
}
button.row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- zone 1: the status stripe + the icon ----------
   The stripe is the row's one word about state; its colour IS the tone the
   accent number repeats, so a row never carries two competing colours. */
.row-stripe {
  flex: 0 0 auto;
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: rgba(var(--t-mute), 0.2);
}
.row-tone-gold .row-stripe { background: var(--gold); box-shadow: 0 0 8px rgba(var(--t-gold), 0.5); }
.row-tone-ok .row-stripe { background: var(--ok); }
.row-tone-danger .row-stripe { background: var(--danger); }
.row-tone-violet .row-stripe { background: var(--violet); }
.row-tone-mute .row-stripe { background: rgba(var(--t-mute), 0.3); }

.row-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.row-icon { font-size: 16px; line-height: 1; }

/* ---------- zone 2: the content stack, three type steps ----------
   Role-named, not tag-named: title / sub / meta. Each step clips on one
   line — the row's height is the contract, and a wrapping line would spend
   pixels the fold does not have. */
.row-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row-title {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-sub {
  min-width: 0;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-meta {
  min-width: 0;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: rgba(var(--t-mute), 0.42);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- zone 3: the one accent number, or the action ----------
   The accent rides the mono face at the tone's colour — the single figure
   the row is allowed. An action (a button) sits under it when both ride. */
.row-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}
.row-accent {
  font-family: var(--font-mono);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-dim);
}
.row-tone-gold .row-accent { color: var(--gold); }
.row-tone-ok .row-accent { color: var(--ok); }
.row-tone-danger .row-accent { color: var(--danger); }
.row-tone-violet .row-accent { color: var(--violet); }

/* ---------- the three kinds ---------- */

/* read-row: the feed line. ~32px — the density probe's 34px ceiling. */
.row-read { min-height: 32px; gap: 8px; padding: 3px 10px; }
.row-read .row-icon { font-size: 13px; }
.row-read .row-title { font-size: 11.5px; }
.row-read .row-sub { font-size: 9.5px; }
.row-read .row-accent { font-size: 12px; }

/* list-row: people and games. 54 = the 44px touch door + 4+4 padding + 2
   border — the exact measure of shell.css .ctx-rival, the ctx grammar that
   already works. */
.row-list { min-height: 54px; padding: 4px 10px; }
.row-list .row-icon { font-size: 18px; }
.row-list .row-title { font-size: 13px; }
.row-list .row-sub { font-size: 11px; }
.row-list .row-accent { font-size: 15px; }

/* one-card: the hero row. The board/emblem rides the left zone at its own
   size; the ladder steps up; the accent is the clock's own 30px. */
.row-one {
  min-height: 96px;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
}
.row-one .row-icon { font-size: 34px; }
.row-one .row-body { gap: 5px; }
.row-one .row-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
.row-one .row-sub { font-size: 12px; }
.row-one .row-meta { font-size: 10px; }
.row-one .row-accent { font-size: 30px; }

/* The touch floor lives in base.css under this exact query; nothing here
   lowers a button row beneath it (a 32px read-row that IS a button keeps
   44px on a phone because base.css's (0,1,1) outranks the kind's (0,1,0) —
   the cascade does the right thing without a restatement). */
