/* autotocsummary - стилове (добавя се автоматично от extensions/toctree_summary.py) */

/* Подробен запис: thumbnail вляво, текст вдясно */
.rst-content .autotocsummary-entry {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 20px;
}

.rst-content .autotocsummary-thumb {
    flex: 0 0 120px;
    width: 120px;
    height: 80px;
    margin: 0;
}

.rst-content .autotocsummary-thumb img {
    display: block;
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e1e4e5;
    background: #f3f6f6;
}

.rst-content .autotocsummary-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.rst-content .autotocsummary-text p {
    margin: 0 0 2px;
}

/* Дата - по-малка и по-бледа, над заглавието */
.rst-content .autotocsummary-date,
.rst-content p.autotocsummary-page-date {
    font-size: 0.8em;
    color: #808080;
}

.rst-content p.autotocsummary-page-date {
    margin: 0 0 2px;
}

/* Кратък списък: „дата: заглавие“ */
.rst-content ul.autotocsummary-compact {
    margin-top: 8px;
}

@media (max-width: 480px) {
    .rst-content .autotocsummary-entry { gap: 10px; }
    .rst-content .autotocsummary-thumb,
    .rst-content .autotocsummary-thumb img { width: 72px; height: 54px; flex-basis: 72px; }
}
