/* DLEEP — modern compact bilingual dictionary theme
   Typography and spacing aligned with the compact 法汉大词典 stylesheet.
   Original custom elements are preserved; no HTML or JavaScript changes required. */

:root {
    --dleep-ink: #26364a;
    --dleep-muted: #718096;
    --dleep-heading: #24466f;
    --dleep-blue: #356da5;
    --dleep-blue-soft: #edf3fa;
    --dleep-cyan: #3f9fbd;
    --dleep-spanish: #28765d;
    --dleep-chinese: #465b78;
    --dleep-red: #ad5058;
    --dleep-line: #dce5ee;
    --dleep-panel: #f6f8fb;
    --dleep-white: #ffffff;
}

/* Entry card and base typography */
entry {
    display: block;
    box-sizing: border-box;
    margin: 0 0 .85em;
    padding: .7em .85em .75em;
    border: 1px solid var(--dleep-line);
    border-bottom: 1px solid var(--dleep-line);
    border-radius: 8px;
    background: var(--dleep-white);
    color: var(--dleep-ink);
    font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.48;
}

/* Headword */
headword {
    display: inline-block;
    margin: 0 .35em .16em 0;
    color: var(--dleep-heading);
    font-family: Georgia, "Charis SIL", "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    vertical-align: baseline;
}

/* Part of speech */
pos {
    display: inline-block;
    margin: 0 .25em .25em 0;
    padding: .12em .52em;
    border: 1px solid #d9e5f2;
    border-radius: 6px;
    background: var(--dleep-blue-soft);
    color: var(--dleep-blue);
    font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
    font-size: .84em;
    font-style: italic;
    font-weight: 600;
    line-height: 1.35;
}

/* Senses and definitions */
sense {
    display: block;
    margin: .22em 0 .42em 1.05em;
    color: var(--dleep-ink);
    line-height: 1.48;
}

def {
    line-height: 1.48;
}

def es {
    color: var(--dleep-ink);
    font-family: Georgia, "Charis SIL", "Times New Roman", serif;
    font-size: 1em;
}

def cn {
    margin-left: .42em;
    color: var(--dleep-chinese);
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    font-size: .96em;
}

/* Numbered sense marker */
num {
    display: inline-block;
    min-width: 1.45em;
    margin-right: .35em;
    color: var(--dleep-blue);
    font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
    font-size: .9em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Bilingual examples */
example {
    display: block;
    box-sizing: border-box;
    margin: .2em 0 .28em 1.8em;
    padding: .22em .55em;
    border-left: 3px solid #b9d5ce;
    border-radius: 0 5px 5px 0;
    background: var(--dleep-panel);
    font-size: 1em;
    font-style: normal;
    line-height: 1.42;
}

example es {
    display: inline;
    color: var(--dleep-spanish);
    font-family: Georgia, "Charis SIL", "Times New Roman", serif;
    font-size: 1em;
    font-style: italic;
    line-height: 1.42;
}

example cn {
    display: inline;
    margin-left: .42em;
    color: var(--dleep-chinese);
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    font-size: .94em;
    font-style: normal;
    line-height: 1.42;
}

/* Subentries */
subword {
    display: block;
    margin: .7em 0 .35em 1em;
    padding: .28em .65em;
    border-left: 3px solid #8daaca;
    border-radius: 0 6px 6px 0;
    background: var(--dleep-blue-soft);
    color: var(--dleep-heading);
    font-family: Georgia, "Charis SIL", "Times New Roman", serif;
    font-size: 1.08em;
    font-weight: 700;
    line-height: 1.35;
}

/* Phrases and phrase headings */
phrase {
    display: block;
    margin: .32em 0 .42em 1.05em;
    color: var(--dleep-ink);
    line-height: 1.46;
}

phrase_head {
    margin-right: .38em;
    color: var(--dleep-blue);
    font-weight: 700;
}

/* Usage labels and references */
tag {
    display: block;
    margin: .25em 0 .28em 1.8em;
    color: var(--dleep-red);
    font-size: .84em;
    font-weight: 650;
    line-height: 1.4;
}

word_ref {
    color: var(--dleep-blue);
    font-family: Georgia, "Charis SIL", "Times New Roman", serif;
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: #b9cce0;
    text-underline-offset: .15em;
}

note {
    display: block;
    box-sizing: border-box;
    margin: .35em 0 .4em 1.8em;
    padding: .28em .55em;
    border: 1px solid #ead4d6;
    border-left: 3px solid var(--dleep-red);
    border-radius: 5px;
    background: #fcf6f6;
    color: #91434b;
    font-size: .84em;
    line-height: 1.42;
}

/* Responsive sizing */
@media (max-width: 700px) {
    entry {
        margin-bottom: .7em;
        padding: .58em .62em .65em;
        font-size: 14px;
        line-height: 1.46;
    }

    headword {
        font-size: 23px;
        line-height: 1.18;
    }

    pos {
        font-size: .82em;
        padding: .1em .45em;
    }

    sense,
    def,
    phrase {
        line-height: 1.46;
    }

    example {
        margin-left: 1.1em;
        padding: .18em .42em;
        line-height: 1.38;
    }

    example es,
    example cn {
        line-height: 1.38;
    }

    subword {
        margin-left: .65em;
        font-size: 1.04em;
    }

    tag,
    note {
        margin-left: 1.1em;
    }
}
