@charset "UTF-8";
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
a { color: #174c9c; text-underline-offset: 3px; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, article:focus-visible { outline: 3px solid #174c9c; outline-offset: 3px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.search-panel { position: sticky; top: 0; z-index: 1; padding-top: 18px; background: #fff; border-bottom: 1px solid #ccc; }
h1 { margin: 0 0 12px; font-size: 22px; font-weight: 600; }
#search-form { display: flex; gap: 10px; }
#query { flex: 1; min-width: 0; height: 48px; padding: 9px 12px; border: 1px solid #888; border-radius: 4px; font-size: 20px; color: #000; background: #fff; }
button { padding: 10px 20px; border: 1px solid #444; border-radius: 4px; background: #fff; color: #000; }
button:hover { background: #f0f0f0; }
#search-button { background: #222; color: #fff; font-size: 18px; }
#search-button:hover { background: #000; }
.search-options { display: flex; align-items: center; gap: 24px; min-height: 43px; font-size: 15px; }
.search-options label { display: flex; align-items: center; gap: 5px; }
.search-options input { width: 16px; height: 16px; accent-color: #222; }
.search-options select { padding: 2px 5px; border: 1px solid #aaa; border-radius: 3px; background: #fff; color: #000; }
main { min-height: 50vh; padding-bottom: 24px; }
#result-count { margin: 18px 0; font-size: 16px; line-height: 1.6; color: #333; }
#message { padding-block: 14px; font-size: 18px; line-height: 1.8; }
#message p { margin: 0 0 12px; }
.word-result { padding-block: 6px 28px; border-bottom: 1px solid #bbb; margin-bottom: 24px; scroll-margin-top: 165px; }
.word-title { margin: 0 0 18px; font-size: 30px; line-height: 1.4; overflow-wrap: anywhere; }
.meaning-entry + .meaning-entry { margin-top: 24px; padding-top: 24px; border-top: 1px solid #ddd; }
.meaning-title { margin: 0 0 12px; font-size: 23px; line-height: 1.4; }
.entry-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.description { color: #000; font-size: 22px; line-height: 1.85; overflow-wrap: anywhere; }
.description p { margin: 0 0 14px; }
.entry-meanings { color: #000; font-size: 18px; line-height: 1.7; margin: 14px 0 0; overflow-wrap: anywhere; }
.entry-source { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: #444; overflow-wrap: anywhere; }
.sign-illustration { margin: 0; }
.sign-illustration a { display: block; }
.sign-illustration img { display: block; width: 100%; height: auto; max-height: 330px; object-fit: contain; }
.sign-illustration figcaption { margin-top: 8px; font-size: 14px; text-align: center; color: #444; }
.image-fallback { font-size: 18px; line-height: 1.8; }
#load-more { display: block; margin: 0 auto 20px; font-size: 17px; }
footer { border-top: 1px solid #ddd; padding-block: 14px; color: #555; font-size: 13px; line-height: 1.8; }
footer p { margin: 0; }
@media (max-width: 700px) {
  .entry-body { grid-template-columns: 1fr; gap: 16px; }
  .sign-illustration { max-width: 380px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 28px); }
  .search-panel { padding-top: 12px; }
  h1 { font-size: 20px; margin-bottom: 10px; }
  #query { font-size: 18px; }
  #search-button { padding-inline: 18px; }
  .search-options { gap: 20px; font-size: 14px; }
  .word-title { font-size: 28px; }
  .description { font-size: 21px; }
}
