@charset "utf-8";
/**
 * 고전 해몽 사전 / 타로 카드 기본 해설
 * body.wr-plus 없이 .haemong-dict-section 만으로 적용 (앱 WebView 캐시·스코프 누락 대비)
 */

.haemong-dict-section {
  max-width: 720px;
  margin: 24px auto 8px;
  padding: 16px 12px 18px;
  text-align: left;
  box-sizing: border-box;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 4px;
  box-shadow: none;
  background: var(--bg-secondary, #f5f5f5);
  color: var(--text-primary, #222);
}

.haemong-dict-section .haemong-dict-head h3 {
  margin: 0 0 6px;
  font-size: 1.15em;
  font-weight: 700;
  text-align: left;
  color: var(--text-primary, #222);
}

.haemong-dict-section .haemong-dict-head p {
  margin: 0 0 14px;
  font-size: 0.92em;
  line-height: 1.45;
  text-align: left;
  color: var(--text-secondary, #666);
  font-weight: 400;
}

.haemong-dict-section .haemong-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.haemong-dict-section .haemong-search,
.haemong-dict-section #tarot-dict-search,
.haemong-dict-section #tarot-dict-suit {
  flex: 1 1 140px;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 4px;
  background: var(--bg-primary, #fff);
  color: var(--text-primary, #222);
}

.haemong-dict-section .haemong-cats,
.haemong-dict-section .haemong-mids {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  justify-content: flex-start;
}

.haemong-dict-section .haemong-cat-btn,
.haemong-dict-section .haemong-mid-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.88em;
  font-weight: 400;
  font-family: inherit;
  line-height: 1.35;
  border-radius: 4px !important;
  box-shadow: none !important;
  border: 1px solid var(--border-color, #ccc) !important;
  background: var(--bg-primary, #fff) !important;
  color: var(--text-primary, #222) !important;
}

.haemong-dict-section .haemong-cat-btn:hover,
.haemong-dict-section .haemong-mid-btn:hover {
  background: var(--bg-tertiary, #eee) !important;
}

.haemong-dict-section .haemong-cat-btn.is-active,
.haemong-dict-section .haemong-mid-btn.is-active {
  background: var(--bg-tertiary, #e8e8e8) !important;
  border-color: var(--theme-green, #5a7a3a) !important;
  color: var(--text-primary, #222) !important;
}

.haemong-dict-section .haemong-items {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  text-align: left;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 4px;
  background: var(--bg-primary, #fff);
  box-sizing: border-box;
}

.haemong-dict-section .haemong-items:empty {
  display: none;
}

.haemong-dict-section .haemong-item {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 400;
  text-align: left;
  color: var(--text-primary, #222);
}

.haemong-dict-section .haemong-item:last-child {
  border-bottom: 0;
}

.haemong-dict-section .haemong-item.is-active,
.haemong-dict-section .haemong-item:hover {
  background: var(--bg-secondary, #f5f5f5);
}

.haemong-dict-section .haemong-detail {
  padding: 12px;
  min-height: 4em;
  text-align: left;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 4px;
  background: var(--bg-primary, #fff);
  box-sizing: border-box;
}

.haemong-dict-section .tarot-dict-item-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  border-radius: 0;
  box-shadow: none;
  padding: 8px 10px;
  color: var(--text-primary, #222);
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.haemong-dict-section .tarot-dict-item-btn:hover {
  background: var(--bg-secondary, #f5f5f5);
}

.haemong-dict-section .defines-empty,
.haemong-dict-section .defines-loading {
  margin: 0;
  padding: 10px;
  text-align: left;
  color: var(--text-secondary, #666);
  font-size: 0.9em;
  list-style: none;
}
