/**
 * @file
 * Visual styles for Bartik's lists.
 */

ul.links {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-color);
  font-size: 1.4rem;
}

.item-list.modstate-draft {
  border-color: #f15252 !important;
}
.item-list.modstate-published {
  border-color: #94e691 !important;
}
.item-list.modstate-relecture {
  border-color: #f09c5d !important;
}
.item-list.modstate-validation {
  border-color: #f0e35d !important;
}
.item-list.modstate-archived {
  border-color: #60b4f5 !important;
}
.item-list.modstate-publication {
  border-color: #d0be00 !important;
}

.item-list[class*=" modstate-"] li[class*="status-"] {
  background: none;
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.item-list[class*=" modstate-"] li[class*="status-"]::before {
  content: "";
  display: block;
  width: 4px;
  height: 1em;
}

.item-list[class*=" modstate-"] li.status-0::before {
  background-color: var(--accent-color);
}
.item-list[class*=" modstate-"] li.status-1::before {
  background-color: #090;
}

ul.view-articles > li > div,
ul.view-articles > li div.views-field-title {
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  break-inside: avoid;
  width: calc(100% - 0.75em - 4px);
}
ul.view-articles > li div.views-field-title ~ var {
  display: block;
}

.flat-list {
  padding: 0;
  display: inline-block;
}
.xtra-flat-list {
  padding: 0;
  display: inline;
}
.flat-list li,
.xtra-flat-list li {
  display: inline;
}
.flat-list li:not(:last-child)::after,
.xtra-flat-list li:not(:last-child)::after {
  content: " | ";
}

.view-display-id-eva_bnf_articles header {
  display: inline;
  font-size: 1.4rem;
}
.field__biblio li {
  list-style-type: square;
  margin-bottom: 0.5rem;
  padding-block-start: 0.2em;
}
.field__biblio li li {
  font-size: inherit;
  list-style-type: none;
}

.field__biblio li > span,
.view-tc-auteurs-affiche span {
  font-size: 1.6rem;
}

.field__biblio li > span.virgule,
.view-tc-auteurs-affiche span.virgule {
  display: none;
}
.view-tc-auteurs-affiche.view-display-id-embed_home_cal span.virgule {
	display: inline;
}
.field__biblio li > span:not(.bnf-link):not(.article-tool):not(.virgule)::after,
.view-tc-auteurs-affiche
  li
  span:not(.views-field-title):not(.virgule):not(:last-child)::after {
  content: " | ";
  margin-inline: 0.25em;
}
.field__biblio .biblio-btns {
  display: inline-flex;
  height: 20px;
  align-items: flex-end;
  vertical-align: bottom;
}
.field__biblio .biblio-btns .article-tool.edit-tool > a {
  font-size: 0;
  line-height: 16px;
  height: 16px;
}
.field__biblio .biblio-btns span {
  height: 100%;
  display: flex;
  align-items: center;
}
.field__biblio .biblio-btns .article-tool.edit-tool > a::before {
  content: "";
  background: url(/themes/custom/corvin/images/edit.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 17px;
  display: inline-block;
  margin-inline-start: 1px;
  transition: 0.2s ease-in-out;
}
.field__biblio .biblio-btns .article-tool.edit-tool > a:hover::before {
  filter: drop-shadow(0px 0px 2px rgba(19, 3, 3, 0.3));
}
.field__biblio li::marker {
  font-size: 1.6rem;
}
.field__biblio .flag.flag-bookmark {
  padding-left: 5px;
  height: 17px;
}
.field__biblio .biblio-btns[data-edit] .flag.flag-bookmark {
  padding-left: 2px;
  height: 20px;
}
.field__biblio .biblio-btns .bnf-link {
  height: 18px;
}
.field__biblio .biblio-btns span + .bnf-link {
  margin: 0 5px;
}
.field__biblio .biblio-btns[data-edit] .bnf-link {
  height: 20px;
}
.field__biblio li div.bibnf-articles {
  font-size: 1.4rem;
  display: inline;
}
.field__biblio li div.bibnf-articles div {
  display: inline-block;
}
.field__biblio li div.bibnf-articles li {
  padding-right: 0;
}
.field__biblio
  li
  div.bibnf-articles
  .xtra-flat-list
  li:not(:last-child)::after {
  content: " | ";
}

.cols-list li,
ul[class*="cols-"] > li {
  padding-right: 0 !important;
  break-inside: avoid;
}
ul[class*="cols-"] {
  padding-left: 0;
}
.page-node-type-article ul[class*="cols-"] > li {
  list-style: none;
}

/* .cols-list.cols-s-2.cols-m-3.cols-l-4 span {
	text-transform: uppercase;
} */

.view-articles.cols-list.cols-s-2.cols-l-3 span {
  text-transform: uppercase;
  font-weight: 600;
}

@media all and (min-width: 576px) {
  .cols-s-2 {
    column-count: 2;
  }
  .cols-s-3 {
    column-count: 3;
  }
  .cols-s-4 {
    column-count: 4;
  }
}
@media all and (min-width: 851px) {
  .cols-m-1 {
    column-count: 1;
  }
  .cols-m-2 {
    column-count: 2;
  }
  .cols-m-3 {
    column-count: 3;
  }
  .cols-m-4 {
    column-count: 4;
  }
  .cols-m-5 {
    column-count: 5;
  }
}

@media all and (min-width: 1200px) {
  .cols-l-1 {
    column-count: 1;
  }
  .cols-l-2 {
    column-count: 2;
  }
  .cols-l-3 {
    column-count: 3;
    column-width: calc(100% / 3);
  }
  .cols-l-4 {
    column-count: 4;
  }
  .cols-l-5 {
    column-count: 5;
  }
  .cols-l-6 {
    column-count: 6;
  }
}
ul.view-dicos-partages > li {
  margin-block-end: 2rem;
}
.view-display-id-page_mois2 .view-content ul > li {
  margin-block-end: 1.5rem;
}
.tcsa-d.field-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 0.25rem;
}
.tcsa-d > .tcsa_date {
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
  align-items: center;
  justify-content: center;
  padding-inline: 0.75rem;
  padding-block: 0.45rem 0.65rem;
  gap: 0.5rem;
  background-color: transparent;
  outline: none;
  border: 2px solid var(--lighter-grey);
  border-radius: 15%;
}
.tcsa-d > .tcsa_date:hover {
  background-color: var(--lighter-grey);
}
.tcsa-d > .tcsa_date span {
  font-weight: 500;
  font-size: 2rem;
  color: var(--accent-color);
}

.tcsa-link > a::after {
  content: "";
  background: url(/themes/custom/corvin/images/ext-link.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
  transition: 0.2s ease-in-out;
  margin-inline-start: 0.5rem;
  position: relative;
  bottom: -1px;
}
