/* IPCI studies: quiet summary rows with readable researcher details. */
body.variant-projects .content-main .study-browser {
  --study-ink: #18334a;
  --study-muted: #647587;
  --study-line: #e0e7ed;
  --study-accent: #133f96;
  margin-block: 1.5rem 2.5rem;
}
body.variant-projects .content-main .study-browser .tab_top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-bottom: 1rem;
}
body.variant-projects .content-main .study-browser .tab_top_left,
body.variant-projects .content-main .study-browser .tab_top_right {
  margin: 0;
}
body.variant-projects .content-main .study-browser .tab_top_right { margin-left: auto; }
body.variant-projects .content-main .study-browser .dataTables_filter { width: auto; }
body.variant-projects .content-main .study-browser .dataTables_length label,
body.variant-projects .content-main .study-browser .dataTables_filter label {
  color: var(--study-muted);
  font-weight: 400;
}
body.variant-projects .content-main .study-browser .dataTables_filter input,
body.variant-projects .content-main .study-browser .dataTables_length select {
  min-height: 42px;
  border-color: #d6dfe7;
  border-radius: 7px;
}
body.variant-projects .content-main .study-browser .dataTables_filter input {
  width: min(340px, 42vw);
  padding-inline: .85rem;
}
body.variant-projects .content-main .study-browser input::placeholder { color: #7b8897; opacity: 1; }
body.variant-projects .content-main table.study-table {
  border: 1px solid var(--study-line);
  border-radius: 9px;
  box-shadow: none;
}
body.variant-projects .content-main table.study-table thead tr.tr_ht1 td.tabcol {
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--study-line);
  border-radius: 0;
  color: var(--study-muted);
  background: #f8fafb;
  font-weight: 600;
  letter-spacing: .025em;
}
body.variant-projects .content-main table.study-table tbody > tr.tabrow > td.tabcol {
  padding: 1.05rem 1.5rem;
  border-bottom: 1px solid var(--study-line);
  color: var(--study-ink);
  background: #fff;
  line-height: 1.55;
  vertical-align: middle;
}
body.variant-projects .content-main table.study-table tbody > tr.tabrow > td.tabcol:first-child {
  width: 138px;
  padding: .7rem .75rem .7rem 1rem !important;
  font-weight: 600;
}
body.variant-projects .content-main table.study-table tbody > tr.tabrow:hover > td.tabcol { background: #f7fafb; }
body.variant-projects .content-main table.study-table tbody > tr.footable-detail-show > td.tabcol {
  border-bottom-color: transparent;
  background: #f5f9fa;
}
body.variant-projects .content-main table.study-table > tbody > tr > td.expand::before { display: none; content: none !important; }
body.variant-projects .content-main table.study-table .study-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .7rem;
  margin: 0;
  padding: .4rem .5rem;
  border: 0;
  border-radius: 5px;
  color: var(--study-accent);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
body.variant-projects .content-main table.study-table .study-toggle::before {
  width: .42rem;
  height: .42rem;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: rotate(-45deg);
  transition: transform .16s ease;
}
body.variant-projects .content-main table.study-table .study-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
body.variant-projects .content-main table.study-table .study-toggle:hover { background: #eaf0fa; }
body.variant-projects .content-main table.study-table .study-toggle:focus-visible {
  outline: 2px solid var(--study-accent);
  outline-offset: 3px;
}
body.variant-projects .content-main table.study-table tr.footable-row-detail > td.footable-cell-detail {
  border-bottom: 1px solid var(--study-line);
  background: #f5f9fa;
}
body.variant-projects .content-main table.study-table .footable-row-detail-inner {
  max-width: 1040px;
  padding: .25rem 2rem 2rem 2.7rem;
  color: var(--study-ink);
  line-height: 1.75;
}
body.variant-projects .content-main table.study-table .study-people {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr);
  gap: 1rem 2.5rem;
  margin: 0;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid #dce6e9;
}
body.variant-projects .content-main table.study-table .study-people dt {
  margin: 0 0 .3rem;
  color: var(--study-muted);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
body.variant-projects .content-main table.study-table .study-people dd {
  margin: 0;
  color: var(--study-ink);
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body.variant-projects .content-main table.study-table .study-description { margin-top: 1.2rem; }
body.variant-projects .content-main table.study-table .study-description h4 {
  margin: 0 0 .55rem;
  color: var(--study-ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
body.variant-projects .content-main table.study-table .study-description p {
  max-width: 82ch;
  margin: 0;
  color: #435969;
  line-height: 1.85;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
body.variant-projects .content-main table.study-table .study-detail-title {
  margin: .75rem 0 .25rem;
  color: var(--study-ink);
  font-size: inherit;
  font-weight: 600;
  line-height: 1.55;
}
body.variant-projects .content-main .study-browser .tab_bottom { margin-top: 1rem; gap: .75rem; }
body.variant-projects .content-main .study-browser .paging_full_numbers { gap: .3rem; }
body.variant-projects .content-main .study-browser .paging_full_numbers a {
  min-height: 36px;
  min-width: 36px;
  padding: .4rem .65rem;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 500;
}
body.variant-projects .content-main .study-browser .paging_full_numbers a.paginate_active {
  border-color: var(--study-accent);
  color: #fff !important;
  background: var(--study-accent);
  box-shadow: none;
}
body.variant-projects .content-main .study-browser .paging_full_numbers a:hover { transform: none; box-shadow: none; }
@media (min-width: 1100px) {
  body.variant-projects .content-main table.study-table .footable-row-detail-inner {
    display: grid !important; /* FooTable sets an inline display during expansion. */
    grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr);
    grid-template-areas: 'title title' 'description people';
    gap: 0 2.5rem;
    max-width: none;
    padding: 1.5rem 2.7rem 2rem;
  }
  body.variant-projects .content-main table.study-table .study-detail-title { grid-area: title; }
  body.variant-projects .content-main table.study-table .study-description {
    grid-area: description;
    margin-top: 0;
  }
  body.variant-projects .content-main table.study-table .study-description p { max-width: none; }
  body.variant-projects .content-main table.study-table .study-people {
    grid-area: people;
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
    gap: 1.5rem;
    padding: 0 0 0 2rem;
    border-bottom: 0;
    border-left: 1px solid #dce6e9;
  }
}
@media (max-width: 640px) {
  body.variant-projects .content-main .study-browser .tab_top { gap: .8rem; }
  body.variant-projects .content-main .study-browser .tab_top_right { width: 100%; margin-left: 0; }
  body.variant-projects .content-main .study-browser .dataTables_filter { float: none; width: 100%; }
  body.variant-projects .content-main .study-browser .dataTables_filter label { display: block; }
  body.variant-projects .content-main .study-browser .dataTables_filter input {
    display: block;
    width: 100%;
    margin: .35rem 0 0;
    box-sizing: border-box;
  }
  body.variant-projects .content-main table.study-table thead tr.tr_ht1 td.tabcol { padding: .7rem 1rem; }
  body.variant-projects .content-main table.study-table tbody > tr.tabrow > td.tabcol { padding: .85rem 1rem; }
  body.variant-projects .content-main table.study-table .footable-row-detail-inner { padding: .15rem 1.15rem 1.4rem; }
  body.variant-projects .content-main table.study-table .study-people { grid-template-columns: 1fr; gap: 1rem; }
  body.variant-projects .content-main .study-browser .tab_bottom { display: flex; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body.variant-projects .content-main table.study-table .study-toggle::before { transition: none; }
}
