/* Pronunciation feature for GitHub Pages posts
   Put this file at: /assets/css/pronunciation.css
*/

.pronunciation-card {
  margin: 1.25rem 0 2rem;
  padding: 1rem;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fafafa;
}

.pronunciation-card p {
  margin-top: 0;
}

.pronunciation-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.accent-button,
.speak-word {
  border: 1px solid #d6d6d6;
  background: #f8f8f8;
  color: #222;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.accent-button {
  padding: 5px 12px;
  font-size: 0.9rem;
}

.accent-button.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.pronunciation-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.speak-word {
  padding: 6px 11px;
  font-weight: 600;
  font-size: 0.95rem;
}

.speak-word:hover,
.speak-word:focus {
  background: #fff3c4;
  border-color: #d7a900;
  outline: none;
}

.speak-word.is-playing {
  background: #e8f1ff;
  border-color: #6fa8ff;
}

.pronunciation-note {
  margin: 8px 0 0;
  color: #555;
  font-size: 0.95rem;
}
