/* Research Program. Shell and type scale come from base.css; this file holds the
 * wide research table and the annotated reference list. */

:root {
  --surface: #f3f1eb;
  --surface-alt: #f5f5f2;
  --header: #2f3b44;
}

.research-intro h1 {
  margin: 0 0 24px;
}

.research-intro p {
  margin: 0 0 1.6em;
  text-align: left;
}

h2 {
  margin: 56px 0 20px;
}

.table-connector {
  margin-top: 2.2em;
}

#research-table {
  scroll-margin-top: 24px;
}

/* Stays inside the text column; the table scrolls sideways within it. */
.research-table-scroll {
  width: 100%;
  margin: 24px 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.research-table {
  width: 100%;
  /* Never wider than the measure, so it fits the column exactly at full width with no
   * scrollbar. On narrower screens the measure stays put while the column shrinks, so
   * the container scrolls rather than crushing three columns of prose. */
  min-width: min(720px, var(--measure));
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.48;
}

.research-table th {
  position: relative;
  padding: 14px 44px 14px 16px;
  border-bottom: 2px solid #111;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
  vertical-align: middle;
}

.research-table th:last-child {
  padding-right: 14px;
}

.header-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  z-index: 1;
  width: auto;
  transform: translateY(-50%);
  background: transparent;
  color: #7c8a97;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.research-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #d8dde2;
  background: #fff;
  vertical-align: top;
}

.research-table th + th,
.research-table td + td {
  border-left: 1px solid #e3e6e8;
}

.research-table td p {
  margin: 0 0 10px;
  line-height: inherit;
}

.research-table td p:last-child {
  margin-bottom: 0;
}

.program-reviews {
  margin: 24px 0 0;
  color: var(--text);
}

.research-references {
  margin-top: 3em;
  padding-top: 1.6em;
  border-top: 1px solid #d8dde2;
}

.reference-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin: 0;
  cursor: pointer;
  list-style: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.reference-disclosure > summary::-webkit-details-marker {
  display: none;
}

.reference-disclosure > summary::after {
  content: "+";
  color: #7c8a97;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.reference-disclosure[open] > summary {
  margin-bottom: 0.9em;
}

.reference-disclosure[open] > summary::after {
  content: "\2212";
}

.reference-disclosure > summary:focus-visible {
  outline: 2px solid #7c8a97;
  outline-offset: 5px;
}

.references-list {
  font-size: 14.5px;
  line-height: 1.58;
}

.reference-item {
  break-inside: avoid;
  margin: 0 0 24px;
  scroll-margin-top: 20px;
}

.reference-title {
  display: grid;
  grid-template-columns: 2.35em minmax(0, 1fr);
  column-gap: 0.2em;
  margin-bottom: 5px;
  font-size: 15.5px;
  line-height: 1.35;
}

.reference-number {
  color: #405c6b;
  font-weight: 700;
}

.reference-authors,
.reference-publication,
.reference-distinction {
  display: block;
  margin-left: 2.55em;
}

.reference-authors { color: #364148; }

.reference-publication { color: var(--muted); }

.reference-distinction {
  margin-top: 5px;
  color: #6b5148;
  font-style: italic;
}

.reference-item a {
  color: inherit;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .research-intro h1 { font-size: 24px; }
}
