/* Pronunciation and popup illustrations, enabled only on media-enhanced pages. */
.vocab-word,
.vocab-word.translation-word {
  cursor: pointer;
}

.vocabulary-speaker {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(40, 92, 84, 0.24);
  border-radius: 50%;
  color: var(--accent-deep, #285c54);
  background: var(--card, #fffdf8);
  vertical-align: middle;
  cursor: pointer;
  touch-action: manipulation;
}

.vocabulary-speaker:hover,
.vocabulary-speaker.is-playing {
  border-color: var(--accent-deep, #285c54);
  background: #e1eee7;
}

.vocabulary-speaker:focus-visible {
  outline: 3px solid #285c54;
  outline-offset: 3px;
}

.vocabulary-table__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.vocabulary-table .vocabulary-speaker {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
}

.vocabulary-table .vocabulary-speaker svg {
  width: 18px;
  height: 18px;
}

.vocabulary-table [data-vocabulary-row] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vocabulary-table [data-vocabulary-row] > * {
  vertical-align: middle;
}

.vocabulary-table [data-vocabulary-row]:hover,
.vocabulary-table [data-vocabulary-row]:active,
.vocabulary-table [data-vocabulary-row]:focus-within {
  background: rgba(217, 235, 229, 0.4);
}

.vocabulary-table [data-vocabulary-row].is-playing {
  background: #e1eee7;
}

.vocabulary-table [data-vocabulary-row].is-playing .vocabulary-speaker {
  color: var(--ink, #20332e);
}

.vocabulary-picture-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.vocabulary-picture-card__heading h3 {
  flex: 1 1 auto;
}

.vocabulary-dialog__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.vocabulary-dialog__heading h2 {
  padding-right: 0;
  overflow-wrap: anywhere;
}

.vocabulary-dialog__speaker-slot {
  display: flex;
  flex-shrink: 0;
}

.vocabulary-dialog__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 15rem;
  aspect-ratio: 4 / 3;
  margin-top: 1.2rem;
  padding: 0.4rem;
  border: 1px solid rgba(40, 92, 84, 0.1);
  border-radius: 0.8rem;
  object-fit: contain;
  background: #fffaf0;
}

.vocabulary-audio-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
}

.vocabulary-audio-status:not(:empty) {
  margin-top: 0.75rem;
}

.vocabulary-grid-dialog > .vocabulary-audio-status:not(:empty) {
  margin: 1rem 1.5rem 0;
}

@media (max-width: 34rem) {
  .vocabulary-dialog__content {
    padding: 1.5rem;
  }

  .vocabulary-dialog__heading h2 {
    font-size: 1.7rem;
  }
}

@media print {
  .vocabulary-speaker,
  .vocabulary-audio-status {
    display: none !important;
  }
}
