/**
 * @file
 * Appearances listing.
 *
 * The listing reuses the shared 'recommendation-page' skin for its sidebar,
 * filter checkboxes, search box and mobile drawer, so only the row layout and
 * the appearance type badge are defined here.
 *
 * Kept as a standalone stylesheet loaded by the uscc/appearances
 * library because the theme's Gulp pipeline cannot be run in this environment.
 * Flat CSS only, since this file is served as-is and is not compiled.
 */


/* The standfirst under the page title needs the banner to grow, so the title
   region drops out of the table layout that vertically centres a lone title. */
.page-appearances .page-title {
  height: auto;
  max-height: none;
  padding: 23px 0;
}

.page-appearances .region-page-title {
  display: block;
}

.page-appearances .page-header {
  display: block;
  margin-bottom: 10px;
}

.page-appearances .page-header-description {
  max-width: 760px;
  margin: 0;
}

/* The real exposed keyword field is replaced by the search box in the results
   column, so it stays in the DOM but out of sight. */
.appearances-listing .exposed-forms .form-item-combine {
  display: none;
}

/* Sort widgets moved out of the sidebar and onto the search bar row. */
.appearances-listing .appearance-sort {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 30px;
}

.appearances-listing .appearance-sort .form-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.appearances-listing .appearance-sort label {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.appearances-listing .appearance-sort select {
  width: auto;
  min-width: 110px;
}

@media (max-width: 767px) {
  .appearances-listing .custom-text-search {
    flex-wrap: wrap;
  }

  .appearances-listing .appearance-sort {
    width: 100%;
    margin: 18px 0 0;
  }

  .appearances-listing .appearance-sort .form-item,
  .appearances-listing .appearance-sort .select-wrapper {
    flex: 1 1 auto;
  }

  .appearances-listing .appearance-sort select {
    min-width: 0;
    width: 100%;
  }
}

.appearances-listing .views-row {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dotted #cccccc;
}

.appearances-listing .views-row:last-child {
  border-bottom: none;
}

.appearances-listing .appearance-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.appearances-listing .appearance-meta .views-field-field-date {
  color: #000;
  font-weight: 600;
}

.appearances-listing .form-item-commission-member .form-control,
.appearances-listing .form-item-commission-member{
  max-width: 100%;
}

/* Matches the badge on the Research listing. */
.appearances-listing .views-field-type {
  display: inline-block;
  padding: 2px 8px 1.5px;
  background: #344558;
  color: #ffffff;
  font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.appearances-listing .appearance-title {
  margin: 0 0 15px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.appearances-listing .appearance-title a {
  color: #005696;
}

.appearances-listing .appearance-title a:hover,
.appearances-listing .appearance-title a:focus {
  color: #152638;
}

.appearances-listing .appearance-source {
  margin-bottom: 15px;
  color: #000;
  font-weight: 600;
}

.appearances-listing .appearance-body {
  margin-bottom: 15px;
}

.appearances-listing .appearance-members {
  font-size: 15px;
}

.appearances-listing .appearance-members__label {
  font-weight: 400;
}

.appearances-listing .appearance-members a {
  color: #005696;
}

.appearances-bio {
  clear: both;
  margin-top: 24px;
  padding-left: 20px;
}

.appearances-bio__title {
  margin-bottom: 8px;
  color: #000000;
}

.appearances-bio__list {
  list-style: none !important;
  margin: 0;
  padding-left: 0 !important;
}

.appearances-bio__list li {
  list-style: none !important;
  position: relative;
}

.appearances-bio__item:before {
  content: '' !important;
  border-radius: 5px !important;
  background: #005696 !important;
  height: 4px !important;
  left: -13px !important;
  position: absolute !important;
  top: 9px !important;
  width: 4px !important;
}

.appearances-bio__item a {
  color: #005696;
}

.page-node-type-commission-member .appearances-bio-link {
  margin-top: 16px;
}

.page-node-type-commission-member .appearances-bio-link a {
  font-weight: 700;
  text-transform: uppercase;
}
