/*
  SFS cards: reusable cards, panels, and bordered containers.
  Form controls and buttons stay in their own files.
  Docs: _deploy/css-compartmentalisation-readable-map-20260704.md
  Related: _deploy/css-compartmentalisation-worklog-20260704.md; _deploy/css-compartmentalisation-verification-20260704.md
*/

/* Summary cards: compact facts only. */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.card {
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.card strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

/* Definition lists: useful metadata, not a panel wall. */
dl {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0;
  margin: 12px 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

dt,
dd {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}

dt {
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

dd {
  min-width: 0;
  word-break: break-word;
}

dt:last-of-type,
dd:last-of-type {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .cards {
    display: block;
  }

  .card {
    margin-bottom: 8px;
  }

  dl {
    display: block;
  }

  dt {
    border-bottom: 0;
  }

  dd {
    border-bottom: 1px solid var(--line-soft);
  }
}
