/* Affirmation widget. Tokens from _shared/embed.css. PX.fit scales the figure (wrap mode). */

.af-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.af {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  max-width: 100%;
  margin: 0;
  padding: 0 5%;
  line-height: 1.3;
  white-space: normal;
}

.af--center {
  align-items: center;
  text-align: center;
}

.af--left {
  align-items: flex-start;
  text-align: left;
}

.af-intro {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.5em;
  font-weight: 650;
}

.af-mark {
  font-size: 1.1em;
}

:root[data-style="neon"] .af-mark {
  text-shadow: var(--big-shadow);
}

.af-text {
  margin: 0;
  color: var(--fg);
  font-weight: 620;
  letter-spacing: var(--tracking);
  text-wrap: balance;
}

:root[data-style="neon"] .af-text {
  color: var(--big);
  text-shadow: var(--big-shadow);
}

:root[data-style="paper"] .af-text {
  font-style: italic;
  font-weight: 500;
}

.af-shuffle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  font-size: 14px;
  opacity: 0.55;
}

.af-shuffle:hover,
.af-shuffle:focus-visible {
  opacity: 1;
}
