/* Summary cards (respondent summary) and the creator's one-response view:
   one card per section; values loud, labels quiet. */
.cards {
  display: grid;
  gap: var(--space-3);
}

.card {
  border: var(--border) solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Heading strip: outlined number + section title + Change link,
   on paper-dim closed by an ink rule. */
.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-paper-dim);
  border-block-end: var(--border) solid var(--color-ink);
}

.card__head h2,
.card__head h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0;
}

/* Outlined, never filled: submit stays the only filled shape. */
.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  flex: none;
  border-radius: 50%;
  border: var(--border) solid var(--color-ink);
  background: var(--color-paper);
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.card__change {
  font-size: var(--text-sm);
  font-weight: 600;
  min-height: var(--target-min);
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-1);
}

.card__list {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
}

.card__list dt {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-ink-soft);
}

.card__list dd {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.card__list .not-answered {
  color: var(--color-ink-soft);
  font-weight: 400;
}

.card__head h2,
.card__head h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Change rewinds the path, so it is a button; it reads as the link it is drawn as
   (ink, underlined), never a second filled shape. */
button.card__change {
  background: none;
  border: none;
  color: var(--color-ink);
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
  cursor: pointer;
}
