/* Styles for index.html only — the Junta Directiva/Logos/Datos de
   interés content that's unique to the homepage. The shared sidebar
   shell (.shell/.sidebar/.topbar/.content...) every page now uses lives
   in style.css instead, since it's no longer specific to this page. */

.columns {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.board-card {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

/* Only added for admin/board viewers (dashboard.js) — /socio?login=…
   is admin/board-only, so a plain member's card stays inert, the same
   as members.js's own clickable-rows split. */
.board-grid-clickable .board-card {
  cursor: pointer;
}

.board-grid-clickable .board-card:hover {
  background: var(--surface-muted);
}

.board-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Without this, .board-card's flex layout leaves this div sized to its
   own content (name/lastname/meta) rather than filling what's left of
   the card next to .board-dot — and .board-meta's own
   justify-content: space-between only has that shrunk width to push
   the phone link across, not the full card. */
.board-info {
  flex: 1;
  min-width: 0;
}

.board-name {
  font-weight: 600;
}

.board-lastname {
  margin-bottom: 6px;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.board-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.board-phone {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.board-phone:hover {
  text-decoration: underline;
}

/* A small blue "pill" link/button — used for "Copiar NIF/IBAN". */
.link-pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--link);
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.06);
  color: var(--link);
  font: inherit;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.link-pill:hover {
  background: rgba(47, 111, 237, 0.14);
}

.link-pill-small {
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.72rem;
}

.info-list {
  margin: 0;
}

.info-row {
  margin-bottom: 12px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row dt {
  color: var(--ink-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-row dd {
  margin: 2px 0 0;
}

/* Memorias de actividades: a year per entry, but there can be many, so
   — unlike Documentos/Actas asambleas above — they run inline and wrap
   instead of one per line. */
.year-list {
  margin: 12px 0 0;
  line-height: 1.9;
}

.year-list a {
  color: var(--link);
  font-size: 0.85rem;
  text-decoration: none;
}

.year-list a:hover {
  text-decoration: underline;
}
