.dhtd, .dhtd-box { --c-blue: var(--dht-blue-700, #1d4ed8); --c-navy: var(--dht-blue-900, #0b1f4d); --c-red: var(--dht-red, #ef3340); --c-line: var(--dht-line, #e2e8f0); --c-muted: var(--dht-muted, #64748b); --c-ink: var(--dht-ink, #0f172a); }

.dhtd-box { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--c-line); border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: 0 12px 30px -18px rgba(11,31,77,.45); transition: border-color .15s, box-shadow .15s; margin: 0; }
.dhtd-box:focus-within { border-color: var(--c-blue); box-shadow: 0 0 0 5px rgba(37,99,235,.14), 0 12px 30px -18px rgba(11,31,77,.45); }
.dhtd-box-ico { color: var(--c-muted); flex: 0 0 auto; }
.dhtd-box input[type="search"] { flex: 1 1 auto; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; height: 44px; margin: 0; padding: 0 4px; font-size: 16px; color: var(--c-ink); outline: 0; }
.dhtd-box input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.dhtd-box button[type="submit"] { flex: 0 0 auto; margin: 0; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--c-red); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; text-transform: none; letter-spacing: 0; line-height: 1; transition: background .15s; }
.dhtd-box button[type="submit"]:hover { background: var(--dht-red-600, #d6202d); }
.dhtd-box-lg { padding: 8px 8px 8px 20px; }
.dhtd-box-lg input[type="search"] { height: 52px; font-size: 18px; }
.dhtd-box-lg button[type="submit"] { min-height: 52px; padding: 0 28px; }

.dhtd-suggest { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(15,23,42,.4), 0 0 0 1px var(--c-line); padding: 6px; text-align: left; }
.dhtd-suggest a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; color: var(--c-ink); text-decoration: none; font-size: 15px; }
.dhtd-suggest a b { font-family: var(--dht-font-ko, sans-serif); font-weight: 700; color: var(--c-navy); white-space: nowrap; }
.dhtd-suggest a span { color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dhtd-suggest a:hover, .dhtd-suggest a.is-active { background: var(--dht-blue-50, #eef3ff); }
.dhtd-suggest .dhtd-suggest-all { color: var(--c-blue); font-weight: 600; border-top: 1px solid var(--c-line); border-radius: 0 0 10px 10px; margin-top: 4px; }

.dhtd { max-width: 860px; margin: 0 auto 40px; }
.dhtd-hint { color: var(--c-muted); font-size: 14px; margin: 12px 4px 22px; }
.dhtd-count { color: var(--c-muted); font-size: 14px; margin: 0 0 12px; }
.dhtd-results { display: grid; gap: 14px; transition: opacity .15s; }
.dhtd-results.is-loading { opacity: .5; }

.dhtd-card { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.dhtd-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.dhtd-word { font-family: var(--dht-font-ko, sans-serif); font-size: 28px; font-weight: 700; color: var(--c-navy); line-height: 1.2; }
.dhtd-roma { color: var(--c-muted); font-size: 15px; font-style: italic; }
.dhtd-hanja { font-size: 14px; color: #7c3aed; background: #f5f3ff; padding: 2px 8px; border-radius: 8px; }
.dhtd-pos, .dhtd-level { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dhtd-pos { background: var(--dht-blue-50, #eef3ff); color: var(--c-blue); }
.dhtd-level { background: #ecfdf5; color: #047857; }
.dhtd-mean { font-size: 17px; color: var(--c-ink); margin: 0 0 10px; line-height: 1.6; }
.dhtd-ex { border-left: 3px solid var(--c-red); background: #fff7f7; border-radius: 0 12px 12px 0; padding: 10px 14px; margin: 0 0 10px; }
.dhtd-ex p { margin: 0; }
.dhtd-ex-ko { font-family: var(--dht-font-ko, sans-serif); font-size: 16px; color: var(--c-ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dhtd-ex-vi { color: var(--c-muted); font-size: 15px; margin-top: 4px !important; }

.dhtd-say { display: inline-grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 1.5px solid #c7d7fe; background: var(--dht-blue-50, #eef3ff); color: var(--c-blue); cursor: pointer; line-height: 1; transition: background .15s, color .15s, transform .15s; }
.dhtd-say:hover { background: var(--c-blue); color: #fff; transform: scale(1.06); }
.dhtd-say.is-playing { background: var(--c-red); border-color: var(--c-red); color: #fff; }

.dhtd-empty { text-align: center; background: #fff; border: 1px dashed var(--dht-line-2, #cbd5e1); border-radius: 18px; padding: 28px 20px; color: var(--c-muted); }
.dhtd-empty p { margin: 0 0 8px; }
.dhtd-featured-title { font-weight: 700; color: var(--c-ink); margin: 0 0 12px; }
.dhtd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dhtd-chip { font-family: var(--dht-font-ko, sans-serif); padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); color: var(--c-navy) !important; text-decoration: none !important; font-weight: 600; transition: all .15s; }
.dhtd-chip:hover { background: var(--c-navy); border-color: var(--c-navy); color: #fff !important; }
.dhtd-chip small { font-family: var(--dht-font, sans-serif); font-weight: 400; color: var(--c-muted); margin-left: 4px; }
.dhtd-chip:hover small { color: #c7d2fe; }
.dhtd-empty .dhtd-chips { justify-content: center; margin-top: 4px; }
.dhtd-empty .dhtd-featured-title { margin-top: 16px; }

@media (max-width: 549px) {
  .dhtd-box button[type="submit"] { padding: 0 16px; }
  .dhtd-box-lg input[type="search"] { font-size: 16px; height: 46px; }
  .dhtd-box-lg button[type="submit"] { min-height: 46px; padding: 0 18px; }
  .dhtd-word { font-size: 24px; }
  .dhtd-card { padding: 16px; }
}

.dhtd-word { text-decoration: none !important; }
a.dhtd-word:hover { color: var(--c-blue); }
.dhtd-card-foot { margin-top: 4px; }
.dhtd-card-foot a { font-weight: 600; color: var(--c-blue) !important; text-decoration: none; }
.dhtd-card-foot a:hover { text-decoration: underline; }

.dhtd-wp { --c-blue: var(--dht-blue-700, #1d4ed8); --c-navy: var(--dht-blue-900, #0b1f4d); --c-red: var(--dht-red, #ef3340); --c-line: var(--dht-line, #e2e8f0); --c-muted: var(--dht-muted, #64748b); --c-ink: var(--dht-ink, #0f172a); }
.dhtd-wp-title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.1; font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; }
.dhtd-wp-title span { font-family: var(--dht-font-ko, sans-serif); color: var(--c-navy); }
.dhtd-wp-title small { font-size: .45em; font-weight: 700; color: var(--c-muted); letter-spacing: 0; }
.dhtd-wp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; position: relative; }
.dhtd-wp-sub .dhtd-roma { font-size: 17px; }
.dhtd-say-slow { width: auto !important; padding: 0 10px !important; font-size: 12px; font-weight: 800; border-radius: 999px !important; }
.dhtd-wp-lead { position: relative; max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--dht-text, #1e293b); margin: 0; }
.dhtd-wp-lead em { color: #7c3aed; font-style: normal; font-weight: 700; }
.dhtd-wp-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.dhtd-wp-card, .dhtd-wp-next { min-width: 0; }
.dhtd-wp-card { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: 22px 24px; }
.dhtd-wp-card h2 { font-size: 19px; font-weight: 800; margin: 0 0 12px; color: var(--c-ink); }
.dhtd-wp-card h2::after { display: none; }
.dhtd-muted { color: var(--c-muted); font-size: 14.5px; margin: 0 0 12px; }
.dhtd-senses { margin: 0 0 12px; padding-left: 22px; font-size: 18px; line-height: 1.7; color: var(--c-ink); }
.dhtd-senses li { margin: 0 0 4px; }
.dhtd-senses li::marker { color: var(--c-blue); font-weight: 800; }
.dhtd-hv { background: linear-gradient(135deg, #f5f3ff, #fff 60%); border-color: #e9e3ff; }
.dhtd-hv-chars { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.dhtd-hv-char { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid #e9e3ff; text-decoration: none !important; transition: transform .18s, box-shadow .18s; }
.dhtd-hv-char:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(124,58,237,.6); }
.dhtd-hv-han { font-size: 40px; line-height: 1.1; color: #4c1d95; font-family: 'Noto Serif SC', 'Songti SC', serif; }
.dhtd-hv-viet { font-size: 15px; font-weight: 700; color: #7c3aed; }
.dhtd-hv-sum { margin: 0; font-size: 16px; }
.dhtd-hv-sum span { font-family: var(--dht-font-ko, sans-serif); font-weight: 700; }
.dhtd-pron { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.dhtd-pron > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 14px; background: var(--dht-bg, #f6f8fc); min-width: 110px; }
.dhtd-pron small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.dhtd-pron span { font-size: 22px; font-weight: 700; color: var(--c-navy); }
.dhtd-pron span[lang="ko"] { font-family: var(--dht-font-ko, sans-serif); }
.dhtd-pron .dhtd-pron-arrow { background: none; min-width: 0; padding: 0 2px; justify-content: center; font-size: 22px; color: var(--c-muted); }
.dhtd-rules { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.6; }
.dhtd-conj-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: 14px; }
.dhtd-conj { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.dhtd-conj th { background: var(--c-navy); color: #fff; text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border: 0; }
.dhtd-conj td { padding: 9px 14px; border: 0; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.dhtd-conj tr:last-child td { border-bottom: 0; }
.dhtd-conj tbody tr:nth-child(even) td { background: #fbfcfe; }
.dhtd-conj-ko { font-family: var(--dht-font-ko, sans-serif); font-size: 17px; font-weight: 700; color: var(--c-navy); white-space: nowrap; }
.dhtd-conj-ko .dhtd-say { width: 28px; height: 28px; margin-left: 6px; vertical-align: middle; }
.dhtd-conj-roma { color: var(--c-muted); font-style: italic; white-space: nowrap; }
.dhtd-conj td.dhtd-muted { margin: 0; font-size: 13.5px; }
.dhtd-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dhtd-rel { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--c-line); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.dhtd-rel:hover { border-color: transparent; box-shadow: 0 14px 30px -20px rgba(11,31,77,.5); }
.dhtd-rel b { font-family: var(--dht-font-ko, sans-serif); font-size: 18px; color: var(--c-navy); }
.dhtd-rel i { font-style: normal; font-size: 12.5px; font-weight: 700; color: #7c3aed; }
.dhtd-rel span { font-size: 14px; color: var(--c-muted); }
.dhtd-postlinks { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.dhtd-wp-next { padding: 6px 0 0; }
.dhtd-hj-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dhtd-hj-big { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 28px; background: #fff; border: 1px solid #e9e3ff; box-shadow: 0 24px 50px -30px rgba(124,58,237,.6); }
.dhtd-hj-big span { font-size: 76px; line-height: 1; color: #4c1d95; font-family: 'Noto Serif SC', 'Songti SC', serif; }
.dhtd-hj-big small { font-size: 18px; font-weight: 800; color: #7c3aed; margin-top: 6px; }
.dhtd-hj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dhtd-hj-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--c-line); background: #fff; text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
.dhtd-hj-item:hover { border-color: transparent; box-shadow: 0 14px 30px -20px rgba(11,31,77,.5); }
.dhtd-hj-ko { font-family: var(--dht-font-ko, sans-serif); font-size: 20px; font-weight: 700; color: var(--c-navy); }
.dhtd-hj-han { align-self: center; font-size: 16px; color: #4c1d95; font-family: 'Noto Serif SC', 'Songti SC', serif; }
.dhtd-hj-hv { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: #7c3aed; }
.dhtd-hj-mean { grid-column: 1 / -1; font-size: 14.5px; color: var(--c-muted); }
@media (max-width: 640px) {
  .dhtd-wp-card { padding: 18px; }
  .dhtd-hj-big { display: none; }
  .dhtd-pron span { font-size: 19px; }
}
.dhtd-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dhtd-learn-link { font-size: 14px; font-weight: 700; color: var(--c-blue) !important; text-decoration: none !important; }
.dhtd-learn-link:hover { text-decoration: underline !important; }
.dhtd-featured .dhtl-wotd { margin-bottom: 18px; }