.riz-toc {
	font-weight: 500;
	max-width: unset;
	background: #f9f9f9;
	border: 1px solid #aaa;
	border-radius: 4px;
	padding: 10px;
	margin-bottom: 1.5em;
}
.riz-toc div {
	display: table;
	width: 100%;
    font-size: 1.1em;
    padding: 0;
}
.riz-toc p {
	display: table-cell;
	line-height: 32px;
	margin-bottom: 0;
	min-width: 165px;
}
.riz-toc button {
	display: table-cell;
	width: 34px;
	padding: 3px 8px 1px;
	border: solid 1px #aaa;
	border-radius: 10px;
	background: inherit;
	color: inherit;
}
.riz-toc button > img {
	width: 16px;
}
.riz-toc ol, .riz-toc ul {
	padding-bottom: 0;
	margin-bottom: 0;
	counter-reset: item;
}
.riz-toc ul {
	list-style: none;
}
.riz-toc nav > ol, .riz-toc nav > ul {
	margin-left:0;
}
.riz-toc li > ol, .riz-toc li > ul,
.riz-toc ol > ol,  .riz-toc ul > ul {
	margin-left:1em;
}
.riz-toc li {
	white-space: nowrap;
	padding: 3px 0;
}
.riz-toc li:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
}
.riz-toc .toc-h2, .riz-toc .toc-h3, .riz-toc .toc-h4, .riz-toc .toc-h5, .riz-toc .toc-h6 {
	font-size: 93%;
}
.riz-toc a {
	color: #444;
	box-shadow: none;
	text-decoration: none;
	text-shadow: none;
	display: inline-flex;
	align-items: stretch;
	flex-wrap: nowrap;
}
.riz-toc a:hover {
	text-decoration: underline;
}
/*.riz-toc nav ul li a::before {
    content: counters(item, '.', decimal) '. ';
    display: inline-block;
    counter-increment: item;
    flex-grow: 0;
    flex-shrink: 0;
    margin-right: .2em;
    float: left;
}*/
.riz-toc .toc-num {
  display: inline-block;
  margin-right: .3em;
  flex: 0 0 auto;
}