/* ─────────────────────────────────────────────────────────────────────────
   INFO PROGRESS — a holon's chapters, how much of each is filled in
   (METIS-pub#126).

   The chapter chips are the shared .chip (crm/partials/info_progress_chips.html:
   --solid done, --subtle begun, --outline empty) in a .chip-row; nothing here
   restyles them. What is new is the hexagon, one side per chapter
   (crm/partials/info_progress_hex.html), and the welcome page's layout around
   it. Its sides read the same three states: accent done, accent-soft begun,
   border empty.
   ───────────────────────────────────────────────────────────────────────── */

@layer components {

  .info-progress {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
  }

  /* ── The hexagon ── */
  .info-hex {
    flex: none;
    display: block;
    overflow: visible;
  }

  .info-hex--lg { width: calc(var(--space-16) + var(--space-8)); }
  .info-hex--sm { width: var(--space-8); }

  .info-hex__ground { fill: var(--color-surface); }

  .info-hex__side {
    stroke: var(--color-border);
    stroke-width: 6;
    stroke-linecap: round;
  }
  .info-hex__side--part { stroke: var(--color-accent-soft); }
  .info-hex__side--done { stroke: var(--color-accent); }

  .info-hex__initials {
    fill: var(--color-text-muted);
    font-family: var(--font-ui);
    font-size: var(--text-2xl);
    font-weight: 600;
  }
  /* At 32px wide the initials would be unreadable specks; the name beside
     the small figure says who it is. */
  .info-hex--sm .info-hex__initials { display: none; }

  /* ── The welcome page ── */
  .info-progress-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) 0;
  }
  .info-progress-card + .info-progress-card { border-top: 1px solid var(--color-border); }

  .info-progress-card__body {
    flex: 1 1 16rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .info-progress-card__body p { margin: 0; }
  .info-progress-card__name { font-weight: 600; }

  /* "0 of 6" stays on one line; a long camp name wraps instead. */
  .info-village__count {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }

  .info-village {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: var(--space-2) var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .info-village__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
  }
  .info-village__item a { min-width: 0; overflow-wrap: anywhere; }
}
