body {
    --pb-content-font-family: var(--pb-skarga-font-family);
    --pb-content-font-weight:300;
    --pb-content-font-size: 18px;
    --pb-base-font-size: 18px;
    --pb-base-line-height: 1.6;
    --pb-footnote-font-size: 75%;
    --pb-skarga-font-family: "Jost", Verdana, "Helvetica", sans-serif;
    --pb-menubar-background-color: #2d2b25;
    --pb-footer-font-family: "Jost", "Oswald", sans-serif;
    --pb-base-font-family: 'Jost', 'Roboto', 'Noto', sans-serif;
    --pb-serif-font-family: "Jost", "Junicode", Georgia, "Times New Roman", serif;
    --pb-highlight-color: #5B3E061C;
    --pb-logo-image-width: 100px;
    --pb-logo-image-height: 40px;
    background-color: #FFFCF8;
}

pb-view, pb-view-annotate, pb-load  {
    font-family: var(--pb-content-font-family);
    font-size: var(--pb-content-font-size);
    position: relative;
    hyphens: auto;
}

div._pb_panel pb-view#view1 {
    font-family: "Crimson Pro", Georgia, "Times New Roman", serif;

}


.splash {
    background-image: url("../images/pisma-skargi.svg");
}

.logo {
    background-image: url("../images/ps.svg");
}

body {
    /* background-color: #3C332333; */
}

main.home {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: auto;
    max-width: 1200px;
    min-height: 50vh;

    @media (max-width: 1023px) {
        margin: 0 8px;
    }
}

header.hero.small {
    min-height: 80px;
    background-position: top center;
}

header.hero {
    min-width: 100%;
    min-height: 300px;
    background-image: url('../images/skarga_bg_03.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #FFFCF8;
    margin: 0px;
    padding: 0px;
    overflow: scroll;
}

.hero section {
    margin: auto;
    max-width: 1200px;

    @media (max-width: 1023px) {
        margin: 0 8px;
    }
}

.hero h1 {
    /* margin: auto; */
    padding-top: 1em;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;

    /* margin: 0; */
    margin-inline-start: 0px;
    font-size: 58pt;
    font-family: Merchant, Jost, serif;
}

.hero h2 {
    padding-top: 0.1em;
    margin-top: 0;
    margin-bottom: 0;
    /* margin: 0; */
    /* margin-inline-start: 0px; */
    font-family: Jost, sans-serif;
    font-size: 32pt;
    /* vertical-align: middle; */
}

.home section {
    max-width: 700px;
}

section.narrow {
    max-width: 350px;
}

footer {
    margin: auto;
    background-color: #fff;
    padding: 1em;
    font-family: var(--pb-footer-font-family);
    border-top: 4px solid #F1EDE6;
    max-width: 100%;
    overflow: scroll;
}

.contact {
    text-align: right;
    padding-right: 5vw;
    font-style: normal;
    font-weight: 200;
    font-size: 16px;
    line-height: 140%;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.uppercase {
    text-transform: uppercase;
}

.menubar a {
    text-transform: uppercase;
    font-size: smaller;
}

.visuallyhidden {
    display: none;
}
/* Gilroy > Questrial  */

.author {

    nav {
        background-color: #F1EDE6;
        padding: 1em;
    }

    ul {
        margin-block-start: 0;
        margin-block-end: 0;
        padding-inline-start: 1em;
        margin-right: 1em;
        /* margin-bottom: 0; */
        font-weight: 400;   
    }

    li {
        list-style: none;
    }

    

    ul ul li {
        font-size: smaller;
        font-weight: 300;
        /* :before { 
            content: "\00B7\0020"; 
        } */
    }

    hr {
        border: none;
        height: 0.5px;
        /* Set the hr color */
        color: #C3BEB5;  /* old IE */
        background-color: #C3BEB5;  /* Modern Browsers */
    }

    a {
        text-decoration: none;
        color: var(--pb-link-color);
    }
}




.browse {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 16px;
    padding: 0;
}


/* Search mask */

.search-mask {

    main {
        /* margin: 0 20px 0 20px; */
        --pb-browse-toolbar-justify-content: space-between;
        max-width: 100%;
        overflow: scroll;
    }
    
    app-header-layout {
        background-size: 100% auto;
        background-repeat-x: no-repeat;
        min-height: 100vh;
    }

    
    
    @media (max-width: 1023px) {
        main {
            margin: 0 8px 0 8px;
        }
        .doclist {
            margin-bottom: 20px;
        }
        .documents {
            padding-left: 10px;
        }
        .documents .label {
            display: none;
        }
        .toolbar pb-search {
            padding-left: 0;
        }
        #facets {
            display: none;
        }
        app-header-layout {
            background-repeat-y: no-repeat;
        }
    }
    
    .tp-title {
        font-family: var(--pb-heading-font-family);
        font-size: 36px;
        font-weight: 400;
    }
    
    .tp-title span {
        color: #9e9e9e;
        font-size: 26px;
        margin-top: 12px;
    }

    @media (min-width: 1024px) {
        .toolbar {
            display: none;
        }
        
    }
    
    
    .doclist {
        --paper-tabs-selection-bar-color: #607D8B;
        --paper-tab-content: {
            font-family: var(--pb-heading-font-family);
            font-weight: 400;
        }
        ;
        --paper-card-header: {
            background-color: #d1dae0;
        }
        ;
        --paper-card-header-text: {
            font-family: var(--pb-heading-font-family);
            font-size: 16px;
            font-weight: 400;
        }
        ;
    }
    
    .doclist  {
        padding: 0;
    }
    
     .browse {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 16px;
        padding: 0;
    }
    
    .doclist dts-client {
        padding: 0 20px;
    }
/*     
    aside {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
     */
    aside .odds,
    aside .upload {
        --paper-card-header: {
            background-color: #607D8B;
        }
        ;
        --paper-card-header-text: {
            font-family: var(--pb-heading-font-family);
            font-size: 16px;
            font-weight: 400;
            color: white;
        }
        ;
    }
    
    aside .upload {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .browse aside {
        padding: 0 10px;
    }

    pb-select {
        margin-top: 0;
    }

    #document-list {
        margin-top: 1rem;
        min-width: 800px;
    }

    .parent-link iron-icon {
        padding-right: 4px;
    }

    .parent-link {
        display: block;
        margin-bottom: 10px;
        padding: 6px 0;
    }

    .collection {
        margin-top: 8px;
        padding-top: 12px;
    }

    .documents img, .documents svg {
        margin-right: 40px;
    }

    @media (max-width: 1023px) {
        .documents img, .documents svg  {
            display: none;
        }
    }

    .documents ul {
        list-style: none;
    }
    
    .documents div {
        margin: 0;
    }
    
    .documents .error {
        color: #c02020;
    }
    
    .documents a,
    .documents a:visited {
        color: #303F9F;
        text-decoration: none;
    }
    
    .documents li {
        display: flex;
        flex-direction: row;
        margin-bottom: 10px;
        padding: 6px 0;
        border-bottom: thin solid var(--paper-grey-300);
    }
    
    .documents li:last-child {
        border: none;
    }
    
    .documents .document-select {
        flex: 0 0;
        margin-right: 20px;
    }
    
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--pb-heading-font-family);
        font-weight: 400 !important;
        line-height: 1.2;
    }
    
    div._pb_panel pb-view#view1 h2 {
        color: #9c412b,
    }
    h5 {
        font-size: 1rem;
        margin: 0;
    }
    
    .welcome {
        display: grid;
        grid-template-columns: 1fr 400px;
        align-items: center;
        min-height: 15vh;
        width: 100%;
    }

    .side {
        max-width: 40vw;
        padding-left: 3em;
    }

    .side strong {
        color: var(--pb-color-focus);
    }

    .thumbnail img {
        border-radius:35px;
        border-color: #19232d;
        border-style: groove;
        box-shadow: 1px 1px 1px 1px  #19232d;
    }

    #download-button {
        display: none;
    } 

}

a:link {
    text-decoration: none;
}

/* Home page */

.homepage {



    #hero {
        color: rgba(219, 211, 190, 1);
        /* color: rgba(170, 162, 143, 1); */
        height: 20rem;
        background-color: black;
        margin: 0;
        display: flex;

    }


    
}

#content p.tei-p2 {
    font-family: 'Crimson Pro';
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    

}

div.drawer-content pb-load {
font-size:small;

}

pb-split-list {
    --pb-categorized-list-columns: 1;
    --pb-highlight-color: maroon;
    min-width: 900px;
}

.glossary {
    display: block;
    margin-bottom: 1em;
    /* max-height: 100px; */
    
}

.glossary:first-of-type {
    margin-top: 2em;
}

.glossary-headword {
    display: block;
    font-size: 1.3em;
    font-weight: 500;
}

.glossary-desc {
  display: block;
}