﻿.kanji-entry { padding: 28px 0 35px; border-top: 1px solid #cfcfc9; }
.kanji-entry p:not(.language-tag) { max-width: 750px; color: #6c6b68; line-height: 1.6; }
.kanji-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.kanji-buttons button, .kanji-pagination button { padding: 12px 18px; border: 1px solid #c8202e; background: transparent; color: #a91d2a; font: 700 14px 'DM Sans', sans-serif; cursor: pointer; }
.kanji-buttons button:hover { background: #c8202e; color: #fff; }
.kanji-entry .kanji-disclaimer { font-size: 13px; }
.kanji-dialog { width: min(950px, 94vw); max-height: 90vh; padding: 32px; border: 0; background: white; color: #171718; overflow-y: auto; }
.kanji-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.kanji-dialog-header { display: flex; justify-content: space-between; gap: 15px; }
.kanji-dialog-header h3 { margin: 8px 0; }.kanji-dialog-header p:last-child, .kanji-credit { color: #6c6b68; font-size: 13px; line-height: 1.6; }
.kanji-close { align-self: start; border: 0; background: transparent; color: #171718; font-size: 32px; cursor: pointer; }
.kanji-search-label { display: grid; gap: 8px; max-width: 400px; margin-top: 20px; font-size: 13px; font-weight: 700; }
.kanji-search-label input { width: 100%; padding: 12px; border: 1px solid #bcbab4; font: inherit; }
#kanji-status { min-height: 1.4em; color: #6c6b68; font-size: 13px; }
.kanji-table-wrap { overflow-x: auto; }.kanji-table { width: 100%; min-width: 520px; border-collapse: collapse; text-align: left; }
.kanji-table th, .kanji-table td { border-bottom: 1px solid #dfded9; padding: 12px; vertical-align: top; line-height: 1.6; }
.kanji-table thead th { background: #f1f0ec; font-size: 13px; }.kanji-table tbody th { color: #c8202e; font-size: 28px; font-weight: 400; }
.kanji-table td { font-size: 14px; }.kanji-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0; font-size: 13px; }
.kanji-pagination button:disabled { opacity: .4; cursor: default; }.kanji-credit a { color: #a91d2a; text-decoration: underline; }
.kanji-dialog button:focus-visible, .kanji-buttons button:focus-visible, .kanji-search-label input:focus-visible { outline: 3px solid #f4af28; outline-offset: 3px; }
@media (max-width: 750px) { .kanji-dialog { padding: 20px; }.kanji-table th, .kanji-table td { padding: 10px; } }
.kanji-readings { display: flex; flex-wrap: wrap; gap: 6px; }
.kanji-reading-audio {
  border: 1px solid #d7b8ba;
  border-radius: 4px;
  padding: 5px 7px;
  background: #fff;
  color: #86212b;
  font: inherit;
  cursor: pointer;
}
.kanji-reading-audio:hover { background: #f9eeee; }
#kanji-audio-status { min-height: 1.4em; color: #6c6b68; font-size: 13px; line-height: 1.5; }
