/*
 * Copyright (c) 2017-2023 XMLmind Software. All rights reserved.
 *
 * This file is part of the XMLmind Web Help Compiler project.
 * For conditions of distribution and use, see the accompanying LEGAL.txt file.
 */

ul.toc-toc,
ol.toc-toc,
.toc-toc ul,
.toc-toc ol {
    list-style-type: none;
    list-style-image: none;
    padding: 0;
    margin: 0;
}

.toc-toc li {
    background-repeat: no-repeat;
    /* padding-top + (line_height - icon_size)/2 */
    background-position: 0px calc(0.25ex + ((1.5em - 16px) / 2)); 
    padding: 0.25ex 0 0 22px; 
    margin: 0;
}

.toc-toc li.toc-collapsed {
    /*icon_size = 16px; color = #323232 */
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNzkyIDE3OTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzMyMzIzMiI+PHBhdGggZD0iTTExNTIgODk2cTAgMjYtMTkgNDVsLTQ0OCA0NDhxLTE5IDE5LTQ1IDE5dC00NS0xOS0xOS00NXYtODk2cTAtMjYgMTktNDV0NDUtMTkgNDUgMTlsNDQ4IDQ0OHExOSAxOSAxOSA0NXoiLz48L2c+PC9zdmc+Cg==);
}

.toc-toc li.toc-expanded {
    /*icon_size = 16px */
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNzkyIDE3OTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzMyMzIzMiI+PHBhdGggZD0iTTE0MDggNzA0cTAgMjYtMTkgNDVsLTQ0OCA0NDhxLTE5IDE5LTQ1IDE5dC00NS0xOWwtNDQ4LTQ0OHEtMTktMTktMTktNDV0MTktNDUgNDUtMTloODk2cTI2IDAgNDUgMTl0MTkgNDV6Ii8+PC9nPjwvc3ZnPgo=);
}

.toc-toc li > * { 
    margin: 0;
}

.toc-toc li > a:link,
.toc-toc li > a:visited,
.toc-toc li > a {
    color: inherit;
    text-decoration: none;
    cursor: pointer; 
}
