/* sidebar */

@media screen and (max-width: 1000px) and (min-width: 801px){
    .collapsable_filter{
        width: calc(25% - .3rem);
        height: 100%;
    }
}

@media screen and (max-width: 800px) and (min-width: 401px){
    .collapsable_filter{
        width: calc(50% - .2rem);
        height: 100%;
    }
}

@media screen and (max-width: 400px){
    .collapsable_filter{
        width: 100%;
    }
}

@media screen and (max-width: 1000px) and (min-width: 801px){
    #collapsable_filter_language{
		margin-right: .2rem;
    }
    
    #collapsable_filter_topic, #collapsable_filter_type{
		margin-left: .2rem;
		margin-right: .2rem;
    }
    
    #collapsable_filter_origin{
		margin-left: .2rem;
    }
}

@media screen and (max-width: 800px) and (min-width: 401px){
    #collapsable_filter_language, #collapsable_filter_type{
		margin-right: .2rem;
    }
    
    #collapsable_filter_topic, #collapsable_filter_origin{
		margin-left: .2rem;
    }
}

/* displayed resources */

.resource_above_box{
    display: flex;
    align-items: flex-end;
    font-size: 0.85rem;
}

.resource_above_box_corner{
    padding: .5rem;
    border-left: 1px solid var(--light-border-color);
    border-right: 1px solid var(--light-border-color);
    border-top: 1px solid var(--light-border-color);
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    font-style: italic;
    background-color: var(--light-background-color-white);
}

.resource_above_box_left_corner{
    max-width: calc(60% - 1rem);
}

.resource_above_box_right_corner{
    max-width: 40%;
    margin-left: auto;
    border-color: var(--light-color-dim-purple);
    border-width: 2px;
}

.resource_above_box_highlighted_topic{
    color: var(--light-color-dim-purple);
}

.resource_box_highlighted{
    border-color: var(--light-color-dim-purple);
    border-width: 2px;
}

.resource_before_additional_informations{
    display: flex;
    flex-direction: column;
    padding-top: .5rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

.resource_titlebar{
    display: flex;
    flex-direction: row;
}

.resource_titlebar_title{
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
}

.resource_titlebar_title_no_bold{
    font-weight: normal;
}

.resource_titlebar_right_part{
    margin-left: .5rem;
}

.resource_author{
    margin-left: 1.5rem;
    font-style: italic;
}

.resource_description{
    margin-top: .5rem;
    margin-left: .5rem;
    margin-right: .5rem;
}

.resource_access_categories{
    display: flex;
    flex-direction: column;
    align-self: center;
    margin-top: .5rem;
}

.resource_access_category{
    display: flex;
    flex-direction: row;
    margin-top: .2rem;
}

.resource_access_icon{
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.1em;
    margin-right: 0.4em;
}

.resource_secondary_languages{
    margin-top: .5rem;
    text-align: center;
}

.resource_secondary_languages_button{
    display: inline-block;
    margin-top: .5rem;
    padding-top: .3rem;
    padding-bottom: .3rem;
    padding-left: .5rem;
    padding-right: .5rem;
    border: 1px solid var(--light-border-color);
    border-radius: .5rem;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.resource_secondary_languages_content{
    display: flex;
    flex-direction: column;
    text-align: left;
}

.resource_secondary_languages_title{
    display: block;
    margin-top: .5rem;
    font-weight: bold;
}

.resource_additional_informations{
    display: flex;
    flex-direction: row;
    margin-top: .5rem;
    padding-left: .5rem;
    padding-right: .5rem;
    border-top: 1px solid var(--light-border-color);
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.2rem;
}

.resource_additional_information{   
    padding-bottom: .5rem;
}

.resource_additional_information:not(:last-of-type){
    padding-right: .5rem;
}

.resource_additional_information:not(:first-of-type){
    padding-left: .5rem;
}

.resource_additional_information_title{
    margin-bottom: .25rem;
    font-style: italic;
}

.resource_additional_information_origin{
    flex-shrink: 0;
    width: 26%;
}

.resource_additional_information_topic{
    flex-shrink: 0;
    width: 35%;
}

.resource_additional_information_type{
    flex-shrink: 0;
    width: 20%;
}

.resource_additional_information_last_updated{
    flex-grow: 1;
}

/* read page header */

#read_page_header{
    display: flex;
    flex-direction: column;
    margin-left: 3rem;
    margin-right: 3rem;
    padding: .75rem;
    border: 1px solid var(--light-border-color);
    border-radius: .5rem;
    line-height: var(--small-line-height);
    font-size: 0.95rem;
}

#read_page_header + .toc{
    margin-top: 3em;
}

.read_page_header_categories{
    margin: auto;
}

.read_page_header_category{
    display: flex;
    flex-direction: row;
}

#read_page_header_details{
    margin-top: .5rem;
    text-align: center;
}

#read_page_header_details summary{
    display: inline-block;
    margin-top: .5rem;
    padding-top: .3rem;
    padding-bottom: .3rem;
    padding-left: .5rem;
    padding-right: .5rem;
    border: 1px solid var(--light-border-color);
    border-radius: .5rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

#read_page_header_details_contents{
    text-align: left;
}

#read_page_header hr{
	margin-top: 1rem;
}
