/* 치과 백과사전 — 목록 dictionary.html · 용어 쪽 dictionary/<주소>.html (scripts/build-dictionary.py · 2026-11-23) */
.dict-tools { display: grid; gap: 14px; margin-bottom: 20px; }
.dict-search { width: 100%; max-width: 560px; font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--gray-200); border-radius: 10px; background: #fff; color: var(--dark); }
.dict-search:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.dict-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dict-chip { font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--gray-200); border-radius: 999px; background: #fff; color: var(--gray-600); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.dict-chip:hover { border-color: var(--navy); color: var(--navy); }
.dict-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dict-idx { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.dict-idx button, .dict-idx span { min-width: 36px; height: 36px; padding: 0 6px; font: inherit; font-size: 15px; border: 0; border-radius: 8px; background: none; display: inline-grid; place-items: center; }
.dict-idx button { color: var(--navy); font-weight: 700; cursor: pointer; }
.dict-idx button:hover { background: var(--off-white); }
.dict-idx button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.dict-idx .is-empty { color: var(--gray-200); }
.dict-count { font-size: 14px; color: var(--gray-600); margin: 0 0 14px; }
.dict-count strong { color: var(--navy); }
.dict-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dict-card[hidden] { display: none; }
.dict-card a { height: 100%; display: grid; align-content: start; gap: 6px; padding: 20px; border: 1px solid var(--gray-100); border-radius: 12px; background: #fff; color: inherit; transition: border-color .2s, transform .25s, box-shadow .25s; }
.dict-card a:hover, .dict-card a:focus-visible { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,22,40,.08); }
.dict-gl { font-size: 12px; font-weight: 600; color: var(--gold); }
.dict-card strong { font-size: 18px; color: var(--navy); }
.dict-card em { font-style: normal; font-size: 13px; color: var(--gray-500); }
.dict-def { font-size: 14.5px; line-height: 1.65; color: var(--gray-600); }
.dict-empty { padding: 24px 0; color: var(--gray-600); }
/* 용어 쪽 */
.dict-term { max-width: 820px; }
.dict-term h1 { font-size: 34px; line-height: 1.35; font-weight: 700; color: var(--navy); margin: 0; word-break: keep-all; }
.dict-term h1 em { font-style: normal; font-size: 17px; font-weight: 500; color: var(--gray-500); margin-left: 8px; }
.dict-tag { display: inline-block; margin: 14px 0 0; padding: 4px 10px; border-radius: 6px; background: var(--off-white); font-size: 13px; font-weight: 600; color: var(--gray-600); }
.dict-lede { margin: 20px 0 0; padding: 18px 20px; background: var(--off-white); border-left: 4px solid var(--gold); font-size: 18px; line-height: 1.7; color: var(--navy); font-weight: 500; }
.dict-term h2 { font-size: 21px; font-weight: 700; color: var(--navy); margin: 44px 0 12px; }
.dict-term p, .dict-term li { font-size: 16.5px; line-height: 1.85; color: var(--gray-600); }
.dict-when { margin: 0; padding-left: 20px; list-style: disc; }
.dict-warn { padding: 14px 18px; border: 1px solid #EFE3CF; border-radius: 10px; background: #FBF6EE; color: #5A4A3A !important; }
.dict-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; }
.dict-acts a { padding: 13px 20px; border: 1px solid var(--navy); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--navy); transition: background .2s, color .2s; }
.dict-acts a:hover { background: var(--navy); color: #fff; }
.dict-acts a.is-call { background: var(--gold); border-color: var(--gold); color: #fff; }
.dict-acts a.is-call:hover { background: var(--gold-light); border-color: var(--gold-light); }
.dict-posts { margin: 0; padding-left: 20px; list-style: disc; }
.dict-posts a, .dict-more a { color: var(--gold); font-weight: 600; }
.dict-meta { margin: 40px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--gray-100); font-size: 14px !important; }
.dict-pending { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #FBF6EE; color: #8A5A1E; font-weight: 600; }
.dict-note { font-size: 14px !important; margin: 6px 0 0; }
.dict-more { margin: 64px 0 0; padding: 28px; border-radius: 14px; background: var(--off-white); max-width: 820px; }
.dict-more h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.dict-more ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dict-more li a { font-size: 15px; }
@media (max-width: 768px) {
  .dict-cards { grid-template-columns: 1fr; gap: 10px; }
  .dict-card a { padding: 16px; }
  .dict-idx button, .dict-idx span { min-width: 32px; height: 34px; font-size: 14px; }
  .dict-term h1 { font-size: 26px; }
  .dict-term h1 em { display: block; margin: 6px 0 0; font-size: 15px; }
  .dict-lede { font-size: 16.5px; padding: 14px 16px; }
  .dict-term h2 { font-size: 19px; margin-top: 36px; }
  .dict-acts a { flex: 1 1 100%; text-align: center; }
  .dict-more { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .dict-card a { transition: none; } .dict-card a:hover { transform: none; } }
/* 거르기 도구는 js/dictionary.js가 돈 뒤에만 보임(JS가 없으면 카드 50개만 · 검수 11-23) */
html:not(.dict-js) .dict-tools { display: none; }
