@import "../shared/variables";

.headliner_card {
  margin: 0.5rem 0;
  border-style: solid;
  border-width: 1pt;
  border-color: #393939;
  background-color: white;
  margin-bottom: 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  width: calc(33.3% - 4px);
  margin-inline-end: 4px;
  @media screen and (max-width: $xs_width) {
    width: 100%;
  }
}

body.modal-open {
  overflow: visible !important;
}

.headliner_card_top {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-basis: 0;
  flex-grow: 3;
}

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

.card_type {
  font-size: 12pt;
  font-weight: bold;
}

.headliner_name_main {
  font-size: 16pt;
  font-weight: bold;
}

.headliner_name_small {
  font-size: 12pt;
}

.headliner_stats_card {
  padding-bottom: 10px;
  font-size: 10pt;
  display: flex;
  flex-direction: row;
}

.card_section_header {
  font-size: 14px;
  font-weight: bold;
}

.card_section_container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  @media screen and (max-width: $xs_width) {
    flex-direction: column;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
  }
}

.download_link_container {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10pt;
}

.downloads_container {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
}

.dataset_modal {
  width: 80vw;
  max-width: 80vw;
  @media screen and (max-width: $sm_width) {
    width: unset;
    max-width: unset;
  }
}

.headliner_card_bottom {
  padding: 1rem 0;
  margin: 0 1rem 0 1rem;
  flex-basis: 0;
  flex-grow: 1;
}

.headliner_stats_titles {
  flex-basis: 0;
  flex-grow: 1;
}
.headliner_stats_numbers {
  font-weight: bold;
  text-align: right;
  padding-right: 10px;
  padding-left: 15px;
  flex-basis: 0;
  flex-grow: 3;
}

.headliner_text_margin {
  margin-bottom: 4px;
}

.headliner_logo {
  width: 100px;
  display: block;
  margin-bottom: 0.5em;
}

.hr_card {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  border-width: 1px;
  border-color: #393939;
}

.hr_headliner {
  display: block;
  margin: 0.5em 0 0.5em 0;
  border-width: 1px;
  border-color: #393939;
}

.truncate {
  width: 120ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.release-notes-text {
  max-width: 40em;
}

.warning_text {
  color: $depmap_popout;
}

.dataset_modal_content_container {
  display: flex;
  flex-direction: row;
  padding-inline-start: 40px;
  padding-inline-end: 40px;
  padding-block-end: 20px;
  @media screen and (max-width: $xs_width) {
    flex-direction: column;
    padding-inline-start: unset;
    padding-inline-end: unset;
  }
}
