/* The vote boards list (assets/boards.js), shared by the homepage #boards
   section and /vote. Lives here, not inline, for the same reason bagwork.css
   does: two pages, one look, one place to change it. Reads the site tokens
   (--panel, --line, --gold, --muted, --font-mono) that every page defines. */

.vb-wrap { width: min(680px, 100%); margin: 1.6rem auto 0; text-align: left; }

.vb__group + .vb__group { margin-top: 1.6rem; }
.vb__grouphead {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 0.6rem 0.2rem;
}
.vb__grouphint { color: var(--muted); letter-spacing: 0.06em; text-transform: none; }

.vb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

/* Whole row is the link. 44px+ tall so it is a thumb target on the phone,
   which is where voting actually happens. */
.vb {
  display: flex; align-items: center; gap: 0.85rem;
  min-height: 3.75rem; padding: 0.6rem 0.9rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel);
  color: var(--fg); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vb:hover { border-color: var(--gold); transform: translateY(-1px); }
.vb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.vb__icon { width: 40px; height: 40px; border-radius: 9px; flex: none; display: block; }
.vb__body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 0.1rem; }
.vb__name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.vb__meta {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--muted); line-height: 1.35;
}

.vb__action, .vb__done {
  flex: none;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.38rem 0.7rem; border-radius: 999px;
}
.vb__action { background: var(--gold); color: var(--bg); }
.vb__done { display: none; border: 1px solid var(--line); color: var(--gold); }
.vb__row.is-done .vb__action { display: none; }
.vb__row.is-done .vb__done { display: inline-block; }
.vb__row.is-done .vb { border-color: rgba(240, 192, 74, 0.14); }
.vb__row.is-done .vb__icon, .vb__row.is-done .vb__body { opacity: 0.55; }

@media (max-width: 420px) {
  .vb { padding: 0.55rem 0.7rem; gap: 0.7rem; }
  .vb__icon { width: 36px; height: 36px; }
  .vb__action, .vb__done { padding: 0.34rem 0.55rem; font-size: 0.62rem; }
}
