/* Dictionary word pages (/dictionary and /dictionary/{pinyin}-{hanzi}).
   ------------------------------------------------------------------
   Every colour goes through a Bootstrap CSS variable rather than a literal, so the
   pages follow the site's dark-mode toggle without a second [data-bs-theme] block.
   The one exception is the stroke-order canvas, which HanziWriter draws in blue on
   a background it does not control - it needs an explicit light ground in both
   themes or the strokes disappear. */

.dict-headword {
    font-size: clamp(3rem, 12vw, 5rem);
    line-height: 1;
    font-weight: 600;
}

.dict-senses {
    padding-left: 1.25rem;
}

.dict-senses li {
    margin-bottom: .25rem;
}

.dict-part-card {
    background: var(--bs-tertiary-bg);
}

.dict-part-glyph {
    font-size: 2.25rem;
    line-height: 1.1;
}

.dict-part-glyph a {
    color: inherit;
    text-decoration: none;
}

.dict-part-glyph a:hover,
.dict-part-glyph a:focus {
    text-decoration: underline;
}

/* HanziWriter renders into a fixed 200x200 box; the white ground is deliberate in
   both themes (see the note at the top of this file). */
.dict-writer {
    width: 200px;
    height: 200px;
    background: #fff;
}

.dict-example-zh {
    font-size: 1.25rem;
    line-height: 1.6;
}

.dict-example + .dict-example {
    border-top: 1px solid var(--bs-border-color);
    padding-top: .75rem;
}

.dict-related {
    color: inherit;
    border-color: var(--bs-border-color) !important;
    transition: background-color .15s ease-in-out;
}

.dict-related:hover,
.dict-related:focus {
    background: var(--bs-tertiary-bg);
    color: inherit;
}

.dict-related-hanzi {
    font-size: 1.15rem;
    font-weight: 600;
}

