/* Art. 50 AI Act — kit UI (interazione + etichetta output) */
.art50-interaction {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(241, 245, 249, 0.92);
  color: #334155;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
}
.art50-interaction--compact {
  margin: 0.35rem 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.74rem;
}
.art50-interaction__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 0.3rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.art50-interaction__text {
  flex: 1 1 12rem;
  min-width: 0;
}
.art50-interaction__product {
  font-weight: 600;
  color: #0f172a;
}
.art50-interaction__link {
  flex: 0 0 auto;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.art50-interaction__link:hover,
.art50-interaction__link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.art50-output-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
}
.art50-output-label__text {
  white-space: normal;
}

/* Contesti scuri (Idea Experience / Atrio overlay) */
.art50-interaction--on-dark {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}
.art50-interaction--on-dark .art50-interaction__product {
  color: #f8fafc;
}
.art50-interaction--on-dark .art50-interaction__link {
  color: #93c5fd;
}
.art50-output-label--on-dark {
  background: rgba(248, 250, 252, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}
.art50-output-label--on-paper {
  background: color-mix(in srgb, #0f4c5c 8%, #fff);
  border-color: color-mix(in srgb, #0f4c5c 28%, #cbd5e1);
  color: #0f172a;
}

@media print {
  .art50-interaction,
  .art50-output-label {
    break-inside: avoid;
  }
}
