/* Shared read-only condensed patient profile card.
   Sits inside an already-padded container (e.g. the receptionist quick-view
   dialog body), so it adds no outer padding of its own. Uses the app's shadcn
   design tokens to stay consistent in light/dark. */

.ahr-patient-profile-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: hsl(var(--foreground));
}

/* Identity header: photo + name + "age • sex • phone" */
.ahr-patient-profile-card__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid hsl(var(--border));
}

.ahr-patient-profile-card__identity-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ahr-patient-profile-card__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

.ahr-patient-profile-card__subline {
  margin-top: 2px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

/* Grouped sections: Contact / Personal / Care & identity. Each heading is an h3 subsection drawn as
   the deck's band caption (h3.ak-caption), and the group spaces it from its fields. */
.ahr-patient-profile-card__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ahr-patient-profile-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.ahr-patient-profile-card__field--full {
  grid-column: 1 / -1;
}

.ahr-patient-profile-card__label {
  margin-bottom: 2px;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.ahr-patient-profile-card__value {
  font-size: 14px;
  line-height: 1.4;
  color: hsl(var(--foreground));
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .ahr-patient-profile-card__grid {
    grid-template-columns: 1fr;
  }
}
