/**
 * @file
 * Interactive RSA demo styling.
 */
.wl-edu-rsa {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.14));
  border-radius: 12px;
  background: var(--color-surface-raised, rgba(255, 255, 255, 0.03));
  border-left: 3px solid var(--color-accent-secondary, #5b8dff);
}
.wl-edu-rsa.is-warn { border-left-color: #fbbf24; }

.wl-edu-rsa__controls { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-bottom: 0.9rem; }
.wl-edu-rsa__controls label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted, rgba(255, 255, 255, 0.55)); }
.wl-edu-rsa__controls select, .wl-edu-rsa__msg input {
  padding: 0.4rem 0.55rem; border-radius: 7px;
  border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.18));
  background: rgba(0, 0, 0, 0.32); color: var(--color-text-primary, #fff); font-size: 0.9rem;
}

.wl-edu-rsa__keys { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.8rem; }
.wl-edu-rsa__row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; padding: 0.4rem 0.6rem; border-radius: 8px; background: rgba(0, 0, 0, 0.24); }
.wl-edu-rsa__row span { font-size: 0.8rem; color: var(--color-text-muted, rgba(255, 255, 255, 0.65)); }
.wl-edu-rsa__row code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; font-weight: 700; color: var(--color-accent-secondary, #5b8dff); }
.wl-edu-rsa__row--secret { border: 1px solid rgba(91, 141, 255, 0.35); background: rgba(91, 141, 255, 0.07); }
.wl-edu-rsa__row--secret code { color: #5b8dff; }

.wl-edu-rsa__keypair { display: grid; gap: 0.4rem; margin-bottom: 0.9rem; font-size: 0.84rem; }
.wl-edu-rsa__keypair code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
.wl-edu-rsa__pub { color: #34d399; }
.wl-edu-rsa__pub code { color: #34d399; }
.wl-edu-rsa__priv { color: var(--color-text-muted, rgba(255, 255, 255, 0.6)); }
.wl-edu-rsa__priv code { color: #5b8dff; }

.wl-edu-rsa__msg { padding-top: 0.6rem; border-top: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.1)); }
.wl-edu-rsa__msg label { display: inline-flex; flex-direction: column; gap: 0.25rem; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted, rgba(255, 255, 255, 0.55)); margin-bottom: 0.5rem; }
.wl-edu-rsa__msg input { width: 7rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.wl-edu-rsa__flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.6;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
}
.wl-edu-rsa__flow code { font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 5px; background: rgba(0, 0, 0, 0.35); }
.wl-edu-rsa__flow .wl-edu-rsa__m { color: var(--color-accent-secondary, #5b8dff); }
.wl-edu-rsa__flow .wl-edu-rsa__ct { color: #f85149; }
.wl-edu-rsa__flow .wl-edu-rsa__out { color: #34d399; }
.wl-edu-rsa__flow .wl-edu-rsa__op { color: var(--color-text-muted, rgba(255, 255, 255, 0.4)); }

.wl-edu-rsa__note { margin: 0.7rem 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--color-text-muted, rgba(255, 255, 255, 0.6)); }
.wl-edu-rsa.is-warn .wl-edu-rsa__note { color: #fbbf24; }
