/* Structured address field — line1 / city / region / postal_code /
   country. Stored as a flat hash on disk (mirrors the risk_matrix
   compound-field pattern). Read+write share the panel surface so the
   editor preview matches the audit view. */
.structured-address {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.structured-address__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  align-items: center;
  gap: 0.75rem;
}

.structured-address__label {
  font-weight: 500;
  margin: 0;
}

.structured-address__input {
  max-width: 28rem;
}

/* Read-only mode — render as a plain <address> block, no border or
   surface chrome so it sits naturally inside the field dl. */
.structured-address--readonly {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  font-style: normal;
  line-height: 1.4;
}
