/* 单词记忆表 · 音标与中文释义排版 */
.theme-words__table thead th {
  font-family: "Noto Sans SC", "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.theme-words__cell--ipa {
  font-family:
    "Charis SIL",
    "Lucida Sans Unicode",
    "DejaVu Sans",
    "Segoe UI",
    "Noto Sans",
    sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: #6d6560;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  padding-right: 0.55rem;
}

.theme-words__cell--pos {
  font-family: "Noto Sans SC", "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--tw-head-text, #4a4a4a);
  min-width: 0;
}

.theme-words__cell--pos strong {
  font-size: 0.68rem;
  font-weight: 500;
  color: #9a8f86;
  letter-spacing: 0.05em;
}

/* 词义挖空：中文释义是单元格文本节点，必须连同词性一起藏掉 */
.theme-words--cloze-meaning .theme-words__cell--pos:not(.is-revealed) {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.theme-words--cloze-meaning .theme-words__cell--pos:not(.is-revealed) strong,
.theme-words--cloze-meaning .theme-words__cell--pos:not(.is-revealed) .theme-words__pos-extra {
  visibility: hidden !important;
}

.theme-words--cloze-meaning .theme-words__cell--pos:not(.is-revealed)::after {
  font-size: 0.92rem;
  line-height: 1.35;
  -webkit-text-fill-color: #b0a0a8;
}

.theme-words--cloze-meaning .theme-words__cell--pos.is-revealed {
  -webkit-text-fill-color: currentColor;
}

.theme-words__pos-extra {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.theme-words--compact .theme-words__table col.col-ipa {
  width: 18%;
}

.theme-words--compact .theme-words__table col.col-pos {
  width: 28%;
}

.theme-words--hide-ipa.theme-words--compact .theme-words__table col.col-pos {
  width: 44%;
}

@media (max-width: 900px) {
  .theme-words__cell--ipa {
    font-size: 0.78rem;
  }

  .theme-words__cell--pos {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .theme-words__cell--pos strong {
    font-size: 0.62rem;
  }
}

@media (max-width: 820px) {
  .theme-words__detail-label {
    font-size: 0.72rem;
  }

  .theme-words__detail-en {
    font-family: "DM Sans", "Noto Sans", sans-serif;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .theme-words__detail-note {
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .theme-words__detail-card .theme-words__phrases li {
    font-family: "DM Sans", "Noto Sans SC", sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .theme-words__detail-card .theme-words__ex-zh {
    font-family: "Noto Sans SC", sans-serif;
    font-size: 0.76rem;
    line-height: 1.52;
  }
}
