section#toc {
    page-break-after: always;
    page: toc;
}

section#toc a {
    color: black;
}

section#toc a::after {
    content: leader(dotted) " " target-counter(ro-attr(href url), page);
}

section#toc ul {
    list-style-type: none;
    padding-left: 0;
}

section#toc #toc-title {
    font-weight: bold;
    font-size: 2em;
    text-align: right;
    width: 100%;
    display: inline-block;
    height: 2em;
}

section#toc a.level-1 {
    font-weight: bold;
}


a[href] {
    -ro-link: ro-attr(href);
}

a[name] {
    -ro-anchor: ro-attr(name ro-ident);
}


/* No toc for document_type=drug-assessment*/
body[document_type="drug-assessment"] section#toc {
    display: none;
}

#toc .section-number {
    display: inline-block;
    text-align: right;
    width: 150px;
    vertical-align: top;
}

#toc .section-title {
    display: inline-block;
    max-width: 12cm;
    vertical-align: top;
    hyphens: auto;
    hyphenate-after: 5;
}


