.word-grid article {
  min-width: 0;
}

.word-grid .word-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.word-grid .word-title h2 {
  overflow-wrap: anywhere;
}

.word-grid .word-audio {
  gap: 6px;
}

.word-grid .word-audio button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  line-height: 1.3;
}

.word-grid article > :is(.word-actions, div:has(> .example-entry)) {
  padding-top: 12px;
  border-top: 1px solid #eee3dc;
}

.word-grid article > :is(.word-actions, div:has(> .example-entry)) > button:not(.share-trigger) {
  appearance: none;
  border: 1px solid #ded0c7;
  background: #fffaf5;
  color: #765749;
}

.word-grid article > :is(.word-actions, div:has(> .example-entry)) > button:not(.share-trigger):first-child {
  color: #28664d;
}

.word-grid article > :is(.word-actions, div:has(> .example-entry)) > button:not(.share-trigger):nth-child(2) {
  color: #8a4c1e;
}

.word-grid article > :is(.word-actions, div:has(> .example-entry)) > button:not(.share-trigger):hover:enabled,
.word-grid article > :is(.word-actions, div:has(> .example-entry)) > button:not(.share-trigger)[aria-pressed="true"] {
  background: #f3e8de;
  border-color: #c4a792;
}

.word-grid article > :is(.word-actions, div:has(> .example-entry)) > button:disabled {
  opacity: .55;
}

.word-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.word-grid article > .kana,
.word-grid article > .word-title:not(:has(+ .kana))::after {
  min-block-size: 1.4rem;
}

.word-grid article > .word-title:not(:has(+ .kana))::after {
  content: "";
  margin-block-start: -8px;
}

.word-grid article > .kana {
  margin-block: 0;
}

.word-grid article > .reference-examples,
.word-grid article > :is(.word-actions, div:has(> .example-entry)) {
  align-self: stretch;
}

.word-grid article > :is(.word-actions, div:has(> .example-entry)) {
  margin-block-start: auto !important;
}

.word-grid article > .reference-examples {
  margin-block-end: 18px;
}
