/* ============================
   CONSTITUENTS SECTION
============================ */

.constituents {
  padding: 3rem 0;
}

/* ============================
   SECTION HEADER
============================ */

.section-header-title,
.section-header-subtitle {
  display: inline-block;
}

.constituents .section-header-subtitle {
  font-family: "MazzardHRegular", sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

.constituents .section-header-title {
  font-size: 3.75rem;
  line-height: 3.875rem;
  color: #323232;
}

.constituents .section-header-line {
  height: 0.75rem;
  margin-bottom: 1rem;
}

.constituents .section-header-line.bg-green {
  background-color: #427f06;
}

/* ============================
   TABLE LAYOUT
============================ */

.constituents .table-container {
  margin-top: 4.25rem;
}

.constituents table.table-sortable {
  margin-bottom: 0;
  border-collapse: collapse;
  width: max-content;
  max-width: none;
}

/* Shared cell styles */
.constituents table.table-sortable th,
.constituents table.table-sortable td {
  min-width: 15rem;
  padding: 0 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #1d2632;
}

/* ============================
   TABLE HEADER
============================ */

.constituents table.table-sortable thead tr {
  border-bottom: 0.188rem solid #1d2639;
}

.constituents table.table-sortable th {
  padding-bottom: 0.5rem;
  border-top: none;
  cursor: pointer;
  font-family: 'MazzardHSemiBold';
  text-transform: capitalize;
  text-align: left;
}

.constituents table.table-sortable thead tr th:last-child,
.constituents table.table-sortable tbody tr td:last-child {
  text-align: left;
  width: auto;
}

/* Sorting arrows */
.constituents .table-sortable th::after {
  content: '\25be';
  margin-left: 0.25rem;
}

.constituents .table-sortable .th-sort-asc::after {
  content: '\25b4';
}

.constituents .table-sortable .th-sort-desc::after {
  content: '\25be';
}

/* ============================
   TABLE BODY
============================ */

.constituents table.table-sortable td {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  font-family: 'MazzardHRegular';
  text-transform: unset;
}

.constituents table.table-sortable td:first-child {
  font-family: 'MazzardHBold';
}

.constituents .table-sortable tbody tr {
  border-bottom: 1px solid #dadada;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 1200px) {
  .constituents {
    padding-top: 4rem;
  }
}

@media (max-width: 768px) {
  .constituents {
    padding: 3rem 0 1.5rem;
  }

  .constituents .table-container {
    display: block;
    margin-top: 2rem;
  }

  .constituents table.table-sortable td {
    padding: 1.25rem 0 0.25rem;
  }

  .constituents table.table-sortable th {
    padding: 0;
  }
}

@media (max-width: 576px) {
  .constituents table.table-sortable th,
  .constituents table.table-sortable td {
    min-width: 100%;
  }

  .constituents table.table-sortable {
    width: 100%;
  }
}
