/***********************/
/*        SHARED       */
/***********************/

/* Disabled links */
a.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Tabs (nav-link in tablist) */
a.nav-link.active, a.nav-link:hover {
  border-color: transparent !important;
}

/* Button for collapsable sections */
button.w-100[data-bs-toggle=collapse] span {
  font-size: 14px;
}

/* Two-thirds width card */
.flex-basis-two-thirds {
  flex-basis: 66.66%;
  flex-basis: calc((100% / 3) * 2);
}

/* One-third width card */
.flex-basis-one-third {
  flex-basis: 33.33%;
  flex-basis: calc(100% / 3);
}

/* Half width card */
.flex-basis-half {
  flex-basis: 50%;
}

/* Date of last modification div  */
@media (min-width: 1200px) {
  #record_date_modified {
    text-align: right;
  }
}

/* Description, biography, bibliography, editions and references (first two lines) */
#collapse_description, #collapse_bibliography, #collapse_editions, #collapse_references {
  line-height: 24px;
}

#collapse_description.collapse:not(.show),
#collapse_bibliography.collapse:not(.show),
#collapse_editions.collapse:not(.show),
#collapse_references.collapse:not(.show) {
  display: block;
  height: 48px;
  overflow: hidden;
}

#collapse_description.collapsing,
#collapse_bibliography.collapsing,
#collapse_editions.collapsing,
#collapse_references.collapsing {
  height: 48px;
}

/* Search navigation */
#search_navigation button {
  width: 100%;
}

@media (min-width: 576px) {
  #search_navigation button {
    width: 150px;
  }
}

/* Bibliographical references fetched from Zotero, already containing the
`csl-entry` class */
.csl-entry > a {
  font-weight: bold;
}

/* Copy to clipboard confirmation message */
.copy_to_clipboard span {
  display: none;
}

/***********************/
/* PROJECT RECORD PAGE */
/***********************/

#more_toggle, #collections_toggle {
  font-size: 12px;
  padding: 6px;
  width: 80px;
}

/********************/
/* WORK RECORD PAGE */
/********************/

/* Sung text lyrics */
div#work_sung_texts .lyrics {
  font-size: 16px;
  overflow-x: auto;
}

/* Other works using a sung text */
div#work_sung_texts .other_works {
  max-height: 270px;
  overflow-y: auto;
}

/**********************/
/* SOURCE RECORD PAGE */
/**********************/

/* Library website link */
.collapse_library .card-body > p {
  margin-top: -20px;
}

/* Book copy table of contents */
.bookcopy_contents {
  height: 300px;
  overflow-y: auto;
}

/**********************/
/* PERSON RECORD PAGE */
/**********************/

/* List items inside information section */
div#person_information li:first-child {
  padding-top: 0;
}

div#person_information li:last-child {
  padding-bottom: 0;
}

/* Event comments (first two lines) */
.collapse_event_comments {
  line-height: 21px;
}

.collapse_event_comments.collapse:not(.show) {
  display: block;
  height: 42px;
  overflow: hidden;
}

.collapse_event_comments.collapsing {
  height: 42px;
}

/* Geographical origins card */
#geog_origins {
  margin-right: 25px;
  margin-bottom: 10px;
  z-index: 1;
}

/* Timeline vertical ruler */
#event_timeline {
  position: relative;
}

#event_timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--custom-info);
  top: var(--timeline-top); /* dynamically set in `records/person.js` */
  bottom: 0;
  height: var(--timeline-height); /* dynamically set in `records/person.js` */
  left: 31px;
}

/* Timeline events */
.event_container {
  padding: 10px 25px 10px 70px;
  position: relative;
}

.event_card {
  border-color: var(--custom-light);
}

/* Arrows on the timeline events */
.event_container::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 60px;
  border: 1px solid var(--custom-light);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--custom-light) transparent transparent;
}

/* Circles on the timeline vertical ruler */
.event_container::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  top: 22px;
  left: 26px;
  background-color: var(--custom-info);
  border-radius: 50%;
}