/* Linecheck components — plain CSS on the tokens. No framework. */

.lc-icon {
  font-family: var(--font-icons), sans-serif; font-weight: 400; font-style: normal;
  font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none;
  white-space: nowrap; direction: ltr; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased; display: inline-block;
}

/* Button */
.lc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap-min); padding: 0 var(--space-6); border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 17px; line-height: 24px;
  border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer;
  white-space: nowrap;
}
.lc-btn--primary { background: var(--action); color: var(--on-action); }
.lc-btn--primary:active { background: var(--action-pressed); }
.lc-btn--secondary { background: var(--surface-raised); border-color: var(--border-strong); }
.lc-btn--secondary:active, .lc-btn--ghost:active { background: var(--surface-raised); }
.lc-btn--block { display: flex; width: 100%; }

/* Counter */
.lc-counter { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.lc-step {
  width: var(--counter-button-width); height: var(--tap-counter); border-radius: var(--radius-md);
  background: var(--surface-raised); border: 1px solid var(--border-strong); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.lc-step:active { background: var(--surface); }
.lc-step .lc-icon { font-size: 32px; }
.lc-count { font-family: var(--font-sans); font-size: 52px; line-height: 56px; min-width: var(--tap-counter); text-align: center; color: var(--ink); }

/* Choice */
.lc-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lc-choice {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: var(--tap-min); min-width: var(--tap-min); padding: 0 var(--space-4);
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface-raised); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 24px; cursor: pointer;
}
.lc-choice .lc-icon { font-size: 20px; display: none; }
.lc-choice[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.lc-choice[aria-pressed="true"] .lc-icon { display: inline-block; }

/* Status */
.lc-status { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.lc-status .lc-icon { font-size: 20px; }
.lc-status--sent { color: var(--success); }
.lc-status--failed { color: var(--danger); }
.lc-status--failed .lc-icon { color: var(--danger-mark); }

/* Callout */
.lc-callout {
  display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4);
  border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--border);
  color: var(--ink); font-family: var(--font-sans);
}
.lc-callout__title { font-size: 16px; line-height: 24px; margin: 0; }
.lc-callout__text { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: var(--space-1) 0 0; }
.lc-callout__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.lc-callout--error { border-color: var(--danger-mark); }
.lc-callout--error > .lc-icon { color: var(--danger-mark); }
.lc-callout--error .lc-callout__title { color: var(--danger); }

/* Beer row (inside a list group) */
.lc-rows { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.lc-row {
  display: flex; align-items: center; gap: var(--space-3); width: 100%;
  min-height: var(--tap-min); padding: var(--space-3) var(--space-4);
  border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left;
  font-family: var(--font-sans); color: var(--ink); cursor: pointer;
}
.lc-row:last-child { border-bottom: 0; }
.lc-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-row__name { font-size: 16px; line-height: 24px; }
.lc-row__detail { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.lc-row__value { font-size: 17px; line-height: 24px; font-variant-numeric: tabular-nums; }
.lc-row > .lc-icon { color: var(--ink-muted); }

/* App bar */
.lc-appbar {
  display: flex; align-items: center; gap: var(--space-2); min-height: 56px;
  padding: var(--space-1) var(--space-2); background: var(--band); color: var(--on-band);
  font-family: var(--font-sans); border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) { .lc-appbar { border-bottom-color: transparent; } }
.lc-appbar__back {
  width: var(--tap-min); height: var(--tap-min); border: 0; background: none; color: inherit;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); cursor: pointer;
}
.lc-appbar__titles { display: flex; flex-direction: column; min-width: 0; }
.lc-appbar__title { font-size: 18px; line-height: 24px; }
.lc-appbar__sub { font-size: 13px; line-height: 18px; color: var(--on-band-muted); }

/* Focus, everywhere */
.lc-btn:focus-visible, .lc-step:focus-visible, .lc-choice:focus-visible,
.lc-row:focus-visible, .lc-appbar__back:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
