h2 {
    font-size: 2.5rem !important;
}
h3 {
    font-size: 2rem !important;
}
h4 {
    font-size: 1.5rem !important;
}

body, p, li {
    font-size: 1.2rem !important;
    line-height: 1.2; /* Slightly more breathing room between lines */
}

h1 {
    font-size: 3rem !important;
    margin-bottom: 0.5rem;
}

@media only screen and (max-width: 768px) {
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 1.8rem !important; }
    body, p, li { font-size: 1.1rem !important; }
}

.paper h2 {
    margin-bottom: 0 !important;
}

.toc-style ul,
.toc-style nav ul {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.toc-style li {
    /*margin-bottom: 0.1rem;*/
    /*margin-top: .2rem;*/
}

.toc nav {
    /*padding: 1rem;*/
}

.toc nav ul {
    list-style: none !important;
    /*padding-top: .2rem;*/
    /*padding-bottom: .2rem;*/
}

.toc nav > ul > li {
    list-style: none !important;
    font-weight: bold;
    font-size: 1.2rem;
    padding-bottom: .2rem;
    padding-top: .2rem !important;
}

.toc nav > ul > li > ul {
    padding-left: 1.5rem;
    /*padding-bottom: .2rem;*/
    padding-top: .2rem !important;
}

.toc nav > ul > li > ul > li {
    font-weight: normal;
    font-size: 1rem;
    border: none;
    padding-bottom: .2rem !important;
    padding-top: .2rem !important;
}

.toc nav a {
    padding-bottom: 0 !important;
}

/* Links */
.toc a {
    text-decoration: none;
    color: var(--secondary);
}
.toc a:hover {
    color: var(--success);
    text-decoration: underline;
}

ul li {
    padding-top: .4rem;
}