/* Lemmario: le parti proprie della pagina. Il pannello destro (riquadri, titoletti, ricerca avanzata
   a scomparsa, conteggi e pagine) usa le classi comuni pnl-* di pannello.css, da caricare prima */
:root{
    --lem-accento-chiaro: #f5edda;
    --lem-bordo-chip: #d7d0be;
}

/* Titolo e filtri attivi (chip come nelle polirematiche) */
.lem-h1{margin-bottom: 12px;}
#risultati_lemmario{margin-top: 20px;}
.lem-attivi{display: flex; flex-wrap: wrap; gap: 6px;}
.lem-chip{
    display: inline-flex;
    align-items: center;
    background: var(--lem-accento-chiaro);
    border: 1px solid var(--lem-bordo-chip);
    border-radius: 14px;
    padding: 1px 4px 1px 10px;
    font-size: .8rem;
}
.lem-chip-link{
    margin-left: 6px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--pnl-accento);
    text-decoration: none;
}
.lem-chip-link:hover{text-decoration: underline;}
.lem-chip-x{
    border: 0;
    background: transparent;
    color: var(--pnl-accento);
    font-size: 1rem;
    line-height: 1;
    padding: 0 4px;
    margin-left: 4px;
    cursor: pointer;
}

/* tlio.css dà 20px a .alfabeto-lemmario */
.pnl-pannello .alfabeto-lemmario{margin-bottom: 12px;}
.alfabeto-lemmario .alfabeto a{font-size: 1.05rem; margin: 0 3px 3px 0;}

.lem-spunte{display: flex; flex-direction: column; justify-content: flex-end;}
.lem-spunte .form-check{margin-bottom: 0;}
.lem-n{font-size: .8rem; color: var(--pnl-testo-tenue);}

/* Anno della prima attestazione: due campi piccoli sopra il cursore */
.lem-anni-riga{display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px;}
.lem-anni{display: flex; align-items: center; gap: 4px; color: var(--pnl-testo-tenue);}
.lem-anni input{width: 4.6em; text-align: center; padding: 1px 4px; -moz-appearance: textfield; appearance: textfield;}
.lem-anni input::-webkit-outer-spin-button, .lem-anni input::-webkit-inner-spin-button{-webkit-appearance: none; margin: 0;}

/* Cursore a due pomelli: due input range sovrapposti; si prendono solo i pomelli, la traccia è un div sotto
   (da 8px a larghezza - 8px: la corsa del centro dei pomelli da 16px) */
.lem-cursore{position: relative; height: 22px; margin-top: 2px;}
.lem-cursore-traccia{position: absolute; left: 8px; right: 8px; top: 9px; height: 4px; border-radius: 2px; background: var(--pnl-bordo);}
.lem-cursore-sel{position: absolute; top: 0; bottom: 0; background: var(--pnl-accento); border-radius: 2px;}
.lem-cursore input[type=range]{
    position: absolute; left: 0; top: 0; width: 100%; height: 22px; margin: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.lem-cursore input[type=range]::-webkit-slider-runnable-track{height: 22px; background: none; border: 0;}
.lem-cursore input[type=range]::-moz-range-track{height: 22px; background: none; border: 0;}
.lem-cursore input[type=range]::-webkit-slider-thumb{
    -webkit-appearance: none; pointer-events: auto; cursor: pointer; box-sizing: border-box;
    width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: #fff; border: 2px solid var(--pnl-accento);
}
.lem-cursore input[type=range]::-moz-range-thumb{
    pointer-events: auto; cursor: pointer; box-sizing: border-box;
    width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--pnl-accento);
}
.lem-cursore input[type=range]:focus{outline: none;}
.lem-cursore input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow: 0 0 0 3px rgba(145, 0, 0, .25);}
.lem-cursore input[type=range]:focus-visible::-moz-range-thumb{box-shadow: 0 0 0 3px rgba(145, 0, 0, .25);}
.lem-cursore-estremi{display: flex; justify-content: space-between; font-size: .75rem; color: var(--pnl-testo-tenue); margin-bottom: 6px;}

/* Ciò che la ricerca nelle forme o nelle definizioni ha trovato, sotto la voce */
.lem-trovati{margin: -2px 0 8px 16px; font-size: .85rem; color: #555; line-height: 1.35;}
.lem-trovati mark{background: #fbe3a6; padding: 0 1px; border-radius: 2px;}
.lem-ord{font-weight: 600; color: var(--pnl-accento); margin-right: 2px;}
.lem-altre{font-style: italic; color: var(--pnl-testo-tenue);}
.lem-errore{color: var(--pnl-accento);}
/* gattino di GattoWeb (lemmario.js, gattoweb_url): risultati in tabella, gattino nella prima colonna */
.lem-tabella{border-collapse: collapse;}
.lem-tabella td{padding: 0; vertical-align: top;}
.lem-td-gatto{width: 28px; font-size: larger;}   /* come .entrata-lemmario: stessa riga di base */
.lem-gatto img{vertical-align: -5px;}
