/* global */
/*— cadratin*/ 

.kw_trans{
    display: none;
}
.kw_transof{
    display: none;
}
.kw_uri{
    display: none;
}
.kw_sup_block{
    display: none;
    padding: 1rem;
    padding-top: 0;
    margin-top: calc(var(--fsXSmall) * -1);
}

[data-page-template=home] .kw_trans{
    display: table;
}
[data-page-template=home] .kw_transof{
    display: table;
}
[data-page-template=home] .kw_uri{
    display: table;
}

body[data-device-width=small] [data-page-template=home] .kw_sup_block{
    display: table;
}
body[data-device-width=small] [data-page-template=home] .info > .counter {
    display: none;
}


span.occurs{
    color: currentColor;
    font-family: 'muli';
    font-weight: 100;
}

/*span.occurs:before{
    content: "(";
}
span.occurs:after{
    content: " occurences)";
}*/

/*v1 validée*/
/*div[data-item-type="article"]{
    color: orangered;
}
div[data-item-type="article"] a{
    color: orangered;
}
div[data-item-type="dossier"]{
    color: green;
}
div[data-item-type="dossier"] a{
    color: green;
}
div[data-item-type="keyword"]{
    color: navy;
}
div[data-item-type="keyword"] a{
    color: navy;
}
*/

div.item-sorter{
    color: var(--colorDark);
    font-family: 'muli';
    font-weight: 92%;
    font-weight: 100;
}
div.item-sorter > div{
    padding: 0.56rem;
    background-color: var(--colorFirst);
}

div.item-sorter > ul{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--colorFirst);
    /*border-top: 1px solid var(--colorSecond);*/
    margin-bottom: 1rem;
}
div.item-sorter > ul > li{
    width: 50%;
    padding: 0.56rem;
    cursor: pointer;
}
div.item-sorter > ul > li:nth-child(2){
    border-left: 1px solid var(--colorSecond);
    border-bottom-right-radius: 4px;
}
div.item-sorter > ul > li:nth-child(1){
    border-bottom-left-radius: 4px;
}
div.item-sorter > ul > li:hover{
    background-color: var(--colorSecond);
}
div.item-sorter > ul > li.active{
    /*background-color: var(--colorThird);*/
    text-decoration: underline;
}
div.item-sorter > ul > li.active:hover{}
div.item-sorter > ul > li[data-item-order="asc"]:after{
    content: " ↑";
    float: right;
}
div.item-sorter > ul > li[data-item-order="desc"]:after{
    content: " ↓";
    float: right;
}


/*div.counter{
    margin: 0 1rem;
    margin-bottom: 1rem;
    font-family: 'muli';
    font-weight: 100;
    font-size: 92%;
    text-align: right;
}
span.counter{
    display: table;
    margin: 0;
    margin-bottom: 0.56rem;
    font-family: 'muli';
    font-weight: 100;
    font-size: 92%;
    text-align: right;
}*/
span.counter{
    float: right;
    margin: 0;
    margin-bottom: 0.56rem;
    font-family: 'muli';
    font-weight: 100;
    font-size: 92%;
    text-align: right;
}


.logo{
    opacity: 0.9;
}
.logocaption {
margin-top: var(--lhSmall);
font-size: var(--fsSmall);
line-height: var(--fsMedium);
color: #c42;
color: var(--figure);
font-family: 'muli';
font-weight: 100;
}
.items .item{
    /*display: flex;*/
    margin-bottom: 2rem;
    /*box-shadow: 0 0 1px grey;*/
    /*border-radius: 4px;
    background-color: white;*/
    overflow: hidden;
}
/*.items .item:hover{
    background-color: white;
}*/
.item > .info{
    padding: 0.56rem 0rem;
    padding-bottom: 0.36rem;
    /*background-color: rgb(241,241,241);*/
    margin: 0 1rem;
    border-bottom: 1px solid currentColor;
    /*color: black;*/
    font-family: 'muli';
    font-weight: 100;
    font-size: 92%;
    line-height: var(--lhSmall);
}

ul.user_list:before{
/*    content: "⦁ ";
    font-size: var(--fsLarge);
    color: currentColor;*/
}
ul.user_list{
    display: table;
    width: 100%;
}
ul.user_list > li.user_wrapper{
    display: inline;
}

.items .item .user_wrapper:after {
    content: ", ";
    /*color: var(--colorDark);*/
}

.items .item .user_wrapper:last-child::after {
    content: ".";
    content: "";
    /*color: var(--colorDark);*/
}

.items > .column > .item > .abstract{
    padding: 1rem;
    padding-top: 0;
    font-family: 'jannon';
    font-size: var(--fsSmall);
    line-height: var(--lhSmall);
    display: table;
    /*word-break: break-all;*/
    /*color: var(--colorDark);*/
}

.items > .item > .abstract{
    padding: 1rem;
    padding-top: 0;
    font-family: 'jannon';
    font-size: var(--fsSmall);
    line-height: var(--lhSmall);
    display: table;
    /*word-break: break-all;*/
    word-break: normal;
}

/* MASONRY */

/* layout */

.items[data-items-mode="masonry"] {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
    margin-top: 1rem;
}

.items[data-items-mode="masonry"] > .item {
    z-index: -1000;
    position: fixed;
    bottom: 0;
    right: 0;
    overflow: hidden;
}
.items[data-items-mode="masonry"] .item > .info{}
.items[data-items-mode="masonry"] .item > .ref{
    padding: 1rem;
}



.items[data-items-mode="masonry"] > .column {
    flex: 1 1;
/*    margin-left: 1rem;
    margin-right: 1rem;*/
}

.items[data-items-mode="masonry"] > .column:first-child {
    /*margin-left: 1rem;*/
}

.items[data-items-mode="masonry"] > .column:last-child {
    /*margin-right: 1rem;*/
}


.items[data-items-mode="masonry"] .item .logo {
    margin: 1rem; width: calc(100% - 2rem);
    margin-top: 0.42rem;
    /*border: 1px solid currentColor;*/
    /*box-shadow: 0 0 2px currentColor;*/
    /*filter: grayscale(1);*/
    /*transition: 500ms;*/
    background-color: currentColor;
    background-color: var(--colorSecond);
}
.items[data-items-mode="masonry"] .item .logo:hover{
    /*filter: grayscale(1);*/
    /*padding: 1rem;*/
}


/* display */
.items[data-items-mode="masonry"] > .column > .item > .logo.top {
    display: none;
}
.items[data-items-mode="masonry"] > .column > .item > .logo.middle {
    display: block;
}
.items[data-items-mode="masonry"] > .column > .item > .logo.bottom {
    display: none;
}



/* BLOCK */
/* layout */
[data-page-template="list"] .items[data-items-mode="block"] > .item:first-of-type{
    margin-top: 1rem;
}
[data-page-template="list"] .items[data-items-mode="block"] > .item{
    margin-bottom: 2rem;
    overflow: hidden;
}

body[data-device-width=small] .items[data-items-mode="block"] > .item {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
body[data-device-width=large][data-aside-state="open"] .items[data-items-mode="block"] > .item {
/*    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;*/
}
body[data-device-width=large][data-aside-state="close"] .items[data-items-mode="block"] > .item {
/*    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;*/
}


[data-page-template="list"] .items[data-items-mode="block"] .item > .info{
    /*border-bottom: none;*/
    width: calc(100% - 2rem);
    /*background-color: springgreen;*/
}


[data-page-template="list"] .items[data-items-mode="block"] .item > .ref {
    vertical-align: top;
    padding: 1rem;
}
[data-page-template="list"] .items[data-items-mode="block"] .item > .abstract {
    vertical-align: top;
    padding: 1rem;
}

[data-page-template="list"] .items[data-items-mode="block"] > .item > .logo {
    vertical-align: top;
    padding: 1rem;
    background-color: transparent;
}

[data-device-width="large"] [data-page-template="list"] .items[data-items-mode="block"] > .item > .abstract{
    display: table;
    padding-right: 2rem;
    width: calc(66% - 1rem);
    border-right: 1px solid var(--colorSecond);
    float: left;
}
[data-device-width="large"] [data-page-template="list"] .items[data-items-mode="block"] > .item > .ref{
    display: table;
    padding-right: 2rem;
    width: calc(66% - 1rem);
    border-right: 1px solid var(--colorSecond);
    float: left;
}
[data-device-width="large"] [data-page-template="list"] .items[data-items-mode="block"] > .item > .logo{
    display: inline-block;
    float: right;
    min-width: 128px;
    max-width: calc(34% + 1rem);
    float: right;
}

[data-device-width="large"] [data-page-template="list"] .items[data-items-mode="block"] > .item > .counter{
    width: calc(100% - 2rem);
    text-align: left;
    display: table;
}

[data-device-width="small"] [data-page-template="list"] .items[data-items-mode="block"] > .item > .ref{
    display: table;
    width: 100%;
}
[data-device-width="small"] [data-page-template="list"] .items[data-items-mode="block"] > .item > .abstract{
    display: table;
    width: 100%;
}


/* display for detail template (vue dossier:detail) */

[data-page-template="list"] .items[data-items-mode="block"] .item > .info{
    /*border-bottom: none;*/
    width: calc(100% - 2rem);
    /*background-color: springgreen;*/
}


/*details*/
[data-page-template="detail"] .items[data-items-mode="block"] > .item:first-of-type{
    margin-top: 1rem;
}

[data-page-template="list"] .items[data-items-mode="block"] > .item{
    margin-bottom: 2rem;
    overflow: hidden;
}
[data-page-template="detail"] .items[data-items-mode="block"] > .item{
    margin-bottom: 2rem;
    overflow: hidden;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item > .ref {
    vertical-align: top;
    padding: 1rem;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item > .abstract {
    vertical-align: top;
    padding: 1rem;
}

[data-page-template="detail"] .items[data-items-mode="block"] > .item > .logo {
    vertical-align: top;
    padding: 1rem;
    background-color: transparent;
}

.items[data-items-mode="block"] > .item > .logo {
    display: none;
    width: 100%;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item .logo {
    display: none;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item .logo.top {
    display: none;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item .logo.middle {
    display: inline-block;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item .logo.bottom {
    display: none;
}
[data-page-template="detail"] .items[data-items-mode="block"] > .item > .abstract {
    display: block;
}

[data-device-width="large"] [data-page-template="detail"] .items[data-items-mode="block"] > .item > .abstract{
    display: table;
    padding-right: 2rem;
    width: calc(66% - 1rem);
    border-right: 1px solid var(--colorSecond);
    float: left;
}
[data-device-width="large"] [data-page-template="detail"] .items[data-items-mode="block"] > .item > .ref{
    display: table;
    padding-right: 2rem;
    width: calc(66% - 1rem);
    border-right: 1px solid var(--colorSecond);
    float: left;
}
[data-device-width="large"] [data-page-template="detail"] .items[data-items-mode="block"] > .item > .logo{
    display: inline-block;
    float: right;
    min-width: 128px;
    max-width: calc(34% + 1rem);
    float: right;
}

[data-device-width="large"] [data-page-template="detail"] .items[data-items-mode="block"] > .item > .counter{
    width: calc(100% - 2rem);
    text-align: left;
    display: table;
}

[data-device-width="small"] [data-page-template="detail"] .items[data-items-mode="block"] > .item > .ref{
    display: table;
    width: 100%;
}
[data-device-width="small"] [data-page-template="detail"] .items[data-items-mode="block"] > .item > .abstract{
    display: table;
    width: 100%;
}

/* display */
.items[data-items-mode="block"] > .item > .logo {
    display: none;
    width: 100%;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item .logo {
    display: none;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item .logo.top {
    display: none;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item .logo.middle {
    display: inline-block;
}
[data-page-template="detail"] .items[data-items-mode="block"] .item .logo.bottom {
    display: none;
}
[data-page-template="detail"] .items[data-items-mode="block"] > .item > .abstract {
    display: block;
}


.logo > img{
    /*margin-bottom: 1rem;*/
    display: table;
    min-width: 128px;
    width: 100%;
}



/* INLINE */
/* layout */
.items[data-items-mode="inline"] > .item {
    display: inline-block;
    margin: 0;
    margin-bottom: 4px;
    margin-right: 3px;
}
.items[data-items-mode="inline"] > .item > .ref {
    /*font-weight: bold;*/
    padding: 2px 4px;
    margin: 0;
    font-size: var(--fsSmall);
    line-height: var(--lhSmall);
}
.items[data-items-mode="inline"] > .item > .counter{
    display: none;
}

.items[data-items-mode="inline"] > .item > .ref:after {
    content:"";
}
.items[data-items-mode="inline"] > .item:last-child > .ref:after {
    content:"";
}

/* display */
.items[data-items-mode="inline"] > .item > .info {
    display: none;
}


.items[data-items-mode="masonry"] .item > .ref-key{
    padding-bottom: 0;
}