/* Base tooltip styles - colors are dynamic and applied via JavaScript */
.mw-dclick-tooltip {
    position: absolute;
    z-index: 99999;
    max-width: 340px;
    max-height: 450px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    pointer-events: none;   /* outer shell, inner handles events */
    direction: ltr;
    text-align: left;
}
.mw-dclick-inner {
    position: relative;
    pointer-events: auto;
}
/* Main headword */
.mw-dclick-word {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 14px;
}
/* Speaker buttons (pronunciation) — no box, just a colored icon */
.mw-audio-btn {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0 0 0 4px;
    font-size: 13px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    outline: none;
}
.mw-audio-btn:hover,
.mw-audio-btn:focus {
    opacity: 0.8;
}
/* American pronunciation — blue */
.mw-audio-btn-us {
    color: #4da6ff;
}
/* British pronunciation — red */
.mw-audio-btn-uk {
    color: #ff4d4d;
}
/* IPA line */
.mw-dclick-ipa {
    font-style: italic;
    margin-bottom: 6px;
}
/* Note shown when the requested word is a derived/related form,
   not an exact headword match (e.g. "bewilderment" -> "bewilder") */
.mw-note {
    font-size: 11px;
    font-style: italic;
    margin-bottom: 6px;
}
/* Part of speech */
.mw-pos {
    margin-top: 6px;
    font-weight: 600;
}
/* Entry id (test:1, listen up, etc.) */
.mw-id {
    font-size: 11px;
    font-style: italic;
    font-weight: bold;
}
/* Sense text */
.mw-sense {
    margin-top: 3px;
    line-height: 1.4;
}
/* Grammar labels [T], [I], etc. */
.mw-gram {
    display: inline-block;
    font-size: 11px;
    font-style: italic;
    margin-right: 4px;
}
/* Example sentences */
.mw-examples {
    margin-top: 2px;
    font-size: 12px;
}
/* Phrasal variants */
.mw-pvas {
    margin-top: 2px;
    font-size: 12px;
}
/* Run-on / idiom heading */
.mw-runons-heading {
    margin-top: 8px;
    font-weight: 700;
    border-top: 1px solid;
    padding-top: 6px;
}
/* Run-on phrase (drp) */
.mw-runon-phrase {
    margin-top: 4px;
    font-weight: 600;
}
/* Run-on definition */
.mw-runon-def {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
}
/* Run-on grammar label */
.mw-runon-gram {
    font-size: 11px;
    font-style: italic;
}
/* Run-on examples */
.mw-runon-examples {
    margin-top: 1px;
    font-size: 12px;
}