html{
    --jhb-red-main-color: #b10e0e;
    --jhb-light-grey: #f2f2f2;
    --jhb-dark-grey: #cdcdcd;
    --jhb-white: #ffffff;
    --jhb-very-dark-grey: #303030;
    --jhb-orange: #f6a623;
    --jhb-header-background: #1b4965;
    --jhb-green:#A6CE39;

    /* Colors: */
    --jhb-color-ffffff: #FFFFFF;
    --jhb-color-a2a1a1: #A2A1A1;
    --jhb-color-000000: #000000;
    --jhb-color-62b6cb: #62B6CB;
    --jhb-color-1b4965: #1B4965;
    --jhb-color-b10e0e: #B10E0E;
    --jhb-color-cbeef7: #CBEEF7;
    --jhb-color-a6ce39:#A6CE39;

    /*--jhb-red:#c32b2a;*/

    /* Font/text values */
    --jhb-font-family-inter: Inter;
    --jhb-font-style-normal: normal;
    --jhb-font-weight-bold: bold;
    --jhb-font-weight-normal: normal;

    --jhb-font-size-12: 0.75em;
    --jhb-font-size-small: 0.75em;

    --jhb-font-size-14:0.875rem;

    --jhb-font-size-16: 1rem;
    --jhb-font-size-normal:1rem;

    --jhb-font-size-medium:1.125rem;
    --jhb-font-size-20: 1.25rem;
    --jhb-font-size-larger: 1.25em;

    --jhb-font-size-22: 1.375rem;
    --jhb-font-size-large: 1.375em;

    --jhb-font-size-largest:1.75rem;
    --jhb-character-spacing-0: 0;
    --jhb-line-spacing-18: 1.125rem;
    --jhb-line-spacing-22: 1.375rem;
    --jhb-line-spacing-30: 1.875rem;

    --jhb-section-spacing:3rem;

    --jhb-spacing-small:0.25rem;
    --jhb-spacing-smaller:0.5rem;
    --jhb-spacing:1rem;
    --jhb-spacing-bigger:1.5rem;
    --jhb-spacing-big:2rem;

    --jhb-header-height:8rem;
    --tp-menu-height: 4rem;


    box-sizing:border-box;

}
*, *::before, *::after{
    box-sizing:inherit;
}
body{
    font-family: "Inter";
    margin:0;
    padding:0;
    border:0;
    overflow-x:hidden;
}
a, a:link, a:visited{
    color:black;
}

.topbar{
    border-left-color:var(--jhb-color-62b6cb);
    border-left-style: solid;
    border-left-width: 1.125rem;
    position:relative;
    justify-content: flex-start;
    display: flex;
    align-items: center;
    padding-left:1rem;
    background: var(--jhb-color-1b4965);
    height:var(--tp-menu-height);
}
.logo {
    /*background-image: url("../images/jhblogo.svg");*/
}

.logo{
    height:100%;
    width:7rem;
    display:flex;
    align-items:center;
    margin-right:1rem;
}
.logo::before{
    position:absolute;
    content:'';
    width:0.125rem;
    height:100%;
    background:white;
    left:0;
    top:0;

}

.toolbar{
    --app-toolbar-font-size:1rem;
    width: calc(100% - 2rem);
    display:flex;
    justify-content:space-between;
    background-color: var(--jhb-white);
    padding: 1rem;

    * , a, a:link, a:visited{
        color:var(--jhb-red-main-color);
    }
    input{
        border:thin solid #dddddd;
        font-size: var(--jhb-font-size-normal);
    }
}


.toolbar-right{
    min-width: 15rem;
    display: flex;
}
.toolbar-right > * {
    display: inline-block;
}
.toolbar .toolbar-right a{
    text-decoration: none;
}
.toolbar-right .selected-lang a{
    text-decoration: underline;
}



pb-page > header {
    position:fixed;
    width:100vw;
    z-index:10;
    max-width:90rem;
    height:var(--jhb-header-height);
    top:0;
}
pb-drawer .toolbar{
    justify-content:flex-start;
    padding-left:0;
}
.toolbar pb-download{
    margin-top: 2em;
    margin-right: 1rem;
    color:var(--jhb-red-main-color);
    font-size:1.375rem;
    font-weight:600;
}

pb-progress{
    top:0;
    position: absolute;
}

.page main.notoc{
    display:block;
}

.page, .article-page{
    max-width:90rem;
    margin:0 auto;
}

/*.article-page pb-page,*/
/*.page pb-page{*/
/*    max-width:1280px;*/
/*    margin:0 60px;*/
/*}*/

.page-blockquote {
    padding: 0 0 0 1.5625rem;
    margin: 1.25rem 0;
    font-size: 92%;
}

.doclink {
    text-decoration: none;
    color: black;
}


h1{
    font-size:var(--jhb-font-size-largest);
    font-weight:var(--jhb-font-weight-bold);
}
p{
    margin-top:0.5em;
    font-size:var(--jhb-font-size-normal);
}

ul{
    list-style:none;
    padding:0;
    margin:0;
}
article{
    width:10.5rem;
    height:10.5rem;
    overflow:hidden;
    position:relative;
    line-height:1rem;
}
article h2 {
    font-size: var(--jhb-font-size-14);
    padding: 0.5rem;
    background: var(--jhb-red-main-color);
    color: white;
    margin: 0;
}

article p{
    padding:0 0.5rem;
    font-size:var(--jhb-font-size-small);
    height:100%;
    /*overflow:auto;*/
    text-overflow:ellipsis;

}
article span[itemprop="jhb-issue-number"] {
    font-weight: bold;
}

.collection section{
    display:flex;
    flex-wrap:wrap;
    gap:0.5rem;
    margin-bottom:1rem;
}
.collection section a{
    border:thin solid black;
    text-decoration:none;
    background:var(--jhb-light-grey);
    aspect-ratio:1;
    /*transition:all 0.4s;*/
}
.collection section a:hover {
    background: white;
    /*transform:scale(1.2);*/
    /*z-index:10;*/
}
.collection section article > span{
    display:block;
}
.collection section header{
    width:100%;
}


.footer img {
    background-color: white;
    padding: var(--jhb-spacing-small);
    height: 2.5rem;
    width: auto;
    background-size: 100% 100%;
    cursor: pointer;
}

.jhb-issues {
    display: flex;
    flex-flow: row wrap;
}

.issue-info, .issue-info:visited {
    list-style: none;
    border-style: solid;
    border-width: 0.125rem;
    height: 15.625rem;
    width: 15.625rem;
    margin: 1em;
    padding: 1em;
    color: black;
}

.issue-info:hover {
    background-color: #f2f2f2;
}

.jhb-issue-number,.jhb-issue-year {
    color: black;
    display: block;
    font-size: larger;
}

.jhb-issue-title {
    /* https://stackoverflow.com/questions/3922739/limit-text-length-to-n-lines-using-css */
    color: black;
    font-size: larger;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

.jhb-intro-text {
    font-size: x-large;
}

.document-info {
    padding: 0.375rem;
}

.document:hover {
    background-color: #f2f2f2;
    border-radius: 0.125rem;
}

.article-link p {
    color: var(--pb-color-primary);
    padding: 0.375rem;
}

.content-page-author-name {
    font-style: italic;
}

.content-page-abstract {
    text-align: justify;
}

.issue-year {
    font-size: xx-large;
    color: black;
}
.issue-year-toolbar {
    font-size: var(--jhb-font-size-largest);
    color: black;
}
.issue-number-toolbar {
    font-size: var(--jhb-font-size-largest);
    font-weight: bold;
    color: black;
}
.issue-topic {
    font-size: x-large;
    color: black;
}

.issue-topic h4 {
    text-transform: uppercase;
    font-size: x-large;
    color: black;
    margin-bottom: -1em;
}

.issue-topic p {
    font-size: x-large;
    font-weight: bold;
    color: black;
}

.issue-data {
    margin-bottom: 1em;
    padding-left: 0.5em;
    border-left-color: #8bbfaf;
    border-left-style: solid;
    border-left-width: 0.625rem;
}

.issue-data a {
    text-transform: uppercase;
    font-size: x-large;
    color: black;
}

.articles h5 {
    text-transform: uppercase;
    font-size: x-large;
    color: black;

}

.article-link {
    width: 50rem;
    display: block;
    margin-bottom: 1em;
}

.article-title {
    display: block;
    font-size: large;
    color: black;
}
.article-title-toolbar {
    display: block;
    font-size: var(--jhb-font-size-16);
    color: black;
}

.article-author {
    color: black;
    font-size: large;
    display: block;
    font-style: italic;
}

.article-author-toolbar {
    color: black;
    font-size: var(--jhb-font-size-16);
    display: block;
    font-style: italic;
}

.article-topic {
    border-left-color:var(--jhb-red-main-color);
    border-left-style: solid;
    border-left-width: 0.625rem;
    margin-bottom: 1em;
    padding-left: 0.5em;
}

.article-treatise {
    border-left-color:var(--jhb-color-62b6cb);
    border-left-style: solid;
    border-left-width: 0.625rem;
    margin-bottom: 1em;
    padding-left: 0.5em;
}

.article_sources {
    border-left-color:var(--jhb-color-62b6cb);
    border-left-style: solid;
    border-left-width: 0.625rem;
    margin-bottom: 1em;
    padding-left: 0.5em;
}

@media (max-width: 55rem) {
    /*main{*/
    /*    display:block;*/
    /*    width:auto;*/
    /*margin:0 auto;*/
    /*margin-bottom:8rem;*/
    /*    padding: 1rem;*/
    /*    margin:4rem 0;*/
    /*}*/
}

@media (min-width: 55rem) {
    /*main{*/
    /*    display:block;*/
    /*    width:52.875rem;*/
    /*    margin:0 auto;*/
    /*    margin-bottom:8rem;*/
    /*    margin-top:10rem;*/
    /*}*/
}

.maindivider{
    height:0.1em;
    margin:0;
}
.menubar{
    align-items:center;
}

.menubar pb-media-query{
    display:flex;
    flex:none;
}
.menu-title{
    font-size:var(--jhb-font-size-large);
}
.menubar .menu-list{
    padding:0;
}
.langselect{
    margin-left:1rem;
}
.mobile-menu .langselect{
    margin-left:0;
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    /*padding-top: 2em;*/
}

nav ul {
    display: block;
    list-style-type: none;
    margin: 0;
    padding:0;
}

nav a {
    text-decoration: none;
    font-size: 1rem;
}

nav li {
    display:inline-block;
    list-style-type: none;
    padding-left:0.25rem;
}

#navbar .menu-list li{
    padding-left:0.25rem;
    border:thin solid;
    padding:0;
}

.page-footer__links a, .page-footer__links span {
    padding: .6rem 1.2rem;
}


pb-lang label{
    display:none;
}

pb-media-query{
    display:flex;
}

ul.dropdown-content li {
    display: none;
    list-style: none;
}

li:hover > ul.dropdown-content li {
    display: flex;
    flex: 1;
}

li > ul.dropdown-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 0;
    background: white;
    color: #1b4965;
}



.dropdown-content {
    position: absolute;
    display: none;
}

[type='search']{
    color:var(--jhb-red-main-color);
}
[type='search']::placeholder{

    color:var(--jhb-red-main-color);
}




.article-page main {
    margin: var(--jhb-header-height) 0 0 0;
    display: grid;
    grid-template-columns: 16.625rem 1fr;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    grid-gap: 2rem;
    width: calc(100% - 1rem);
    padding: 0 1rem;
    margin-top: 1rem;
}
/*
@media (max-width: 768px) {
    .toolbar .tp-title{
        display: none;
    }
}
*/


@media (max-width: 55rem) {
    .tp-title{
        display: none;
    }
    main,
    .article-page main{
        display:block;
        position: relative;
        width:auto;
        padding: 1rem;
        margin:4rem 0;
    }
    main pb-drawer{
        display: none;
    }

    #view1 {
        grid-column: 1 / 1;
    }
    footer {
        grid-column: 1 / 1;
    }
    #footer-nav{
        display:block;
        width:100%;
    }
    .content-body pb-navigation {
        display: none;
    }
    .toolbar{
        display:none;
    }
}
@media (max-width: 34rem){
    article{
        width:100%;
        height:auto;
    }
    .collection section{
        flex-direction:column;
    }
    .collection section a{
        aspect-ratio:unset;
        /*transition:none;*/
    }
    .collection section a:hover {
        background: white;
        /*transform:scale(1.0);*/
    }

}
@media (min-width: 55rem) {
    main{
        display:block;
        width:52.875rem;
        margin:0 auto;
        margin-bottom:8rem;
        margin-top:10rem;
    }

    .breadcrumbs {
        grid-column: 2 / 2;
    }
    #view1 {
        grid-column: 2 / 2;
        overflow: auto;
        padding: 0 0 0 4rem;
        margin-top:-2em;
        margin-bottom:3rem;
        overflow:auto;
    }
    details.mobile-menu{
        display:none;
    }

    .toolbar .tp-title{
        font-weight:200;
    }
    footer .logos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(8.75rem, 0.1fr));
        grid-gap: 0.1rem;
        list-style: none;
        margin-left: -7rem;

    }


}
.tp-title {
    font-family: "Inter", "Arial", Verdana, "Helvetica", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: white !important;
    white-space:nowrap;
}

footer {
    justify-content: center;
    margin: 0 auto;
    padding: 0 1rem;
    /*position: fixed;*/
    bottom: 0;
    width: calc(100vw - 2rem);
    background: white;
    max-width: 90rem;
    left: -1rem;
    text-align: center;
}
footer #version {
    color:var(--jhb-red-main-color);
    text-align: right;
    font-size: xx-small;
}
footer nav {
    border-top: thin solid var(--jhb-red-main-color);
    padding: 0.5rem 0 1rem 0;
    display: grid;
    grid-template-columns: minmax(auto, 1fr) minmax(auto, 1fr);
    grid-gap: 1rem;
    align-items: start;
    margin: 0 auto;
    max-width: 90rem;
}
footer nav a,
footer nav a:link,
footer nav a:visited{
    color: var(--jhb-red-main-color);
}
footer nav > div{
    display:flex;
    align-items:start;
    padding:0;
    height:var(--tp-menu-height);
}
footer nav .powered-by{
    position:absolute;
}
footer img{
    height:3rem;
}
footer nav .link-devider {
    padding: 0 1rem;
    display: inline-block;
    /* display: flex; */
    /* align-self: center; */
    margin-top: -0.25rem;
    color: var(--jhb-red-main-color);
}

footer .tp-logo img{
    padding:0 1rem;
}

footer pb-navigation[direction=forward] {
    float: right;
}
footer .tp-logo{
    padding:1rem 0;
    position:relative;
}


footer .logos__item img {
    display: block;
    max-width: 100%;
    height: 3rem;
    object-fit: contain;
    mix-blend-mode: multiply;
}

footer .logos__item a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.toc {
    grid-column: 1 / 1;
    grid-row: 1 / span 3;
    overflow: auto;
    font-size: var(--pb-base-font-size);
    background-color: var(--pb-drawer-background-color);
    margin-left:-0.5rem;
    height: fit-content;
}

.drawer-content {
    overflow: unset;
    padding:0;
    margin:0;
}


.toolbar pb-navigation {
    display: none;
}


.div-abstract {
    font-size: 92%;
    padding: 0 2em;
}
#toc > div > ul{
    border-left: 0.5rem solid #62b6cb;
}

.download-links {
    display: flex;
    width: 100%;
    font-size: larger;
    font-weight: var(--pb-heading-font-weight);
}

.download-links a {
    padding-right: 1em;
    color: var(--jhb-red-main-color);
}

.download-links a iron-icon {
    color: var(--jhb-red-main-color);
}

