/* Custom styles preserving the site's classic layout on Bootstrap 5 */

body {
  font-size: 0.9375rem;
  color: #333;
  background-color: #fff;
}

a {
  color: #0072b2;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #004e7c;
  text-decoration: underline;
}

.site-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e3e3e3;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.site-header h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-panel {
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 0.375rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.site-panel h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.site-panel p:last-child {
  margin-bottom: 0;
}

.site-panel .table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.site-panel .table td {
  border-color: #ddd;
  padding: 0.35rem 0.5rem;
}

.site-panel .table tr:first-child td {
  border-top: 1px solid #ddd;
}

.site-panel .table tr:last-child td {
  border-bottom: 0;
}

.profile-photo {
  max-width: 240px;
  width: 100%;
  height: auto;
}

.contact-list {
  padding: 1rem;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.pub-item {
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 0.25rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.04);
}

.pub-item:last-child {
  margin-bottom: 0;
}

.authors-expand {
  margin: 0.2rem 0;
}

.authors-expand summary {
  cursor: pointer;
  color: #0072b2;
  font-size: 0.875rem;
  width: fit-content;
}

.authors-expand summary:hover,
.authors-expand summary:focus {
  color: #004e7c;
  text-decoration: underline;
}

.authors-expand .label-open {
  display: none;
}

.authors-expand[open] .label-closed {
  display: none;
}

.authors-expand[open] .label-open {
  display: inline;
}

.authors-full {
  margin: 0.35rem 0 0.25rem;
  padding: 0.5rem 0.75rem;
  background-color: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  margin-right: 0.2rem;
}

@media (max-width: 575.98px) {
  .site-panel {
    padding: 1rem;
  }

  .site-panel .table {
    font-size: 0.8125rem;
  }

  .site-panel .table td {
    padding: 0.3rem 0.3rem;
  }
}
