html {
  font-size: 16px;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
hr,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}

body {
  font: 400 16px/1.5 -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
    "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", Roboto, Helvetica,
    Arial, sans-serif;
  color: #111;
  background-color: #fdfdfd;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  display: flex;
  min-width: 400px;
  min-height: 100vh;
  flex-direction: column;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
ul,
ol,
dl,
figure {
  margin-bottom: 15px;
}

main {
  display: block;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul,
ol {
  margin-left: 30px;
}

a {
  color: #2a7ae2;
  text-decoration: none;
}

a:visited {
  color: #1756a9;
}

a:hover {
  color: #ccc;
  text-decoration: none;
}

.wrapper {
  max-width: calc(800px - 30px);
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

@media screen and (min-width: 800px) {
  .wrapper {
    max-width: calc(800px - 60px);
    padding-right: 30px;
    padding-left: 30px;
  }
}

.wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: currentColor;
  padding: 5px 3px 2px 5px;
  vertical-align: text-bottom;
}

.mail-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: #fff;
}

/* Site header */
.site-header {
  display: block;
  width: 100%;
  background-color: #001E5A;
  border-top: 5px solid #424242;
  border-bottom: 1px solid #e8e8e8;
  min-height: 55.95px;
  line-height: 54px;
  position: sticky;
  top: 0;
  z-index: 1000;
  min-width: 200px;
}

.site-title {
  font-size: 1.625rem;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
}

.site-title,
.site-title:visited {
  color: #fff;
}

.site-title:hover {
  color: #ccc;
  text-decoration: none;
}

.site-nav {
  position: absolute;
  top: 4px;
  right: 15px;
  background-color: #001E5A;
  border: 1px solid #001E5A;
  border-radius: 4px;
  text-align: right;
}

.site-nav:not(:has(.page-link)) {
  display: none;
}

.site-nav:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.site-nav .nav-trigger {
  display: none;
}

.site-nav .menu-icon {
  float: right;
  width: 36px;
  height: 26px;
  line-height: 0;
  padding-top: 10px;
  text-align: center;
}

.site-nav .menu-icon > svg path {
  fill: #fff;
}

.site-nav label[for="nav-trigger"] {
  display: block;
  float: right;
  width: 36px;
  height: 36px;
  z-index: 2;
  cursor: pointer;
}

.site-nav input ~ .trigger {
  clear: both;
  display: none;
}

.site-nav input:checked ~ .trigger {
  display: block;
  padding-bottom: 5px;
}

.site-nav .page-link {
  color: #fff;
  line-height: 1.5;
  display: block;
  padding: 6px 14px;
  margin-left: 0;
}

.site-nav .page-link:visited {
  color: #fff;
}

.site-nav .page-link:hover,
.site-nav .page-link:focus-visible {
  color: #ccc;
  text-decoration: none;
}

.site-nav .page-link:not(:last-child) {
  margin-right: 0;
}

@media screen and (min-width: 551px) {
  .site-nav {
    position: static;
    float: right;
    border: none;
    background-color: inherit;
    box-shadow: none;
  }

  .site-nav:has(input:checked) {
    border: none;
    box-shadow: none;
  }

  .site-nav label[for="nav-trigger"],
  .site-nav .menu-icon {
    display: none;
  }

  .site-nav input ~ .trigger {
    display: block;
  }

  .site-nav .page-link {
    display: inline;
    padding: 0;
    margin-left: auto;
  }

  .site-nav .page-link:not(:last-child) {
    margin-right: 20px;
  }
}

/* Main content */
.page-content {
  padding: 30px 0;
  flex: 1 0 auto;
}

.page-content-hero {
  padding-top: 0;
}

.profile-hero,
.toolbox-hero {
  width: 100%;
  background-color: #f5f8fc;
  padding: 2rem 0;
}

#dp {
  display: block;
  height: auto;
  width: 100%;
  max-width: 200px;
  min-width: 100px;
  border-radius: 50%;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.profile-photo {
  flex: 0 0 200px;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-eyebrow {
  display: block;
  margin-bottom: 0.05rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a6577;
  line-height: 1.15;
}

.profile-name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #001E5A;
}

.profile-tagline {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111;
}

.profile-affiliation {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #374151;
}

.profile-affiliation-link {
  color: #1756a9;
  text-decoration: none;
}

.profile-affiliation-link:visited {
  color: #1756a9;
}

.profile-affiliation-link:hover,
.profile-affiliation-link:focus-visible {
  color: #001E5A;
  text-decoration: underline;
}

.profile-actions {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.profile-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.45rem;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  color: #001E5A;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.profile-action:visited {
  color: #001E5A;
}

.profile-action:hover,
.profile-action:focus-visible,
.profile-action.copied {
  background-color: #001E5A;
  color: #fff;
  text-decoration: none;
}

.profile-action:focus-visible {
  outline: 2px solid #2a7ae2;
  outline-offset: 2px;
}

.profile-action-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

.profile-action-icon-stroke {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-action-email::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(2px);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: #001E5A;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.profile-action-email:hover::after,
.profile-action-email:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-action-email.copied::after {
  opacity: 0;
}

.profile-email-text-wrap {
  display: inline-grid;
  align-items: center;
}

.profile-email-text,
.profile-copied-text {
  grid-area: 1 / 1;
}

.profile-copied-text {
  visibility: hidden;
  text-align: center;
  font-weight: 600;
}

.profile-action-email.copied .profile-email-text {
  visibility: hidden;
}

.profile-action-email.copied .profile-copied-text {
  visibility: visible;
}

.home-content {
  width: 100%;
  margin-top: 1.5rem;
}

/* Modernized Research Profiles & Contact Info */
.profile-links-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-heading {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #001E5A;
}

.profile-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.profile-chip {
  box-sizing: border-box;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: #f5f8fc;
  color: #001E5A;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.profile-chip:visited {
  color: #001E5A;
}

.profile-chip:hover,
.profile-chip:focus-visible {
  background-color: #001E5A;
  border-color: #001E5A;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.profile-chip:focus-visible {
  outline: 2px solid #2a7ae2;
  outline-offset: 2px;
}

.profile-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.profile-icon-fill {
  fill: currentColor;
}

.profile-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.contact-card:hover {
  background-color: #fff;
  border-color: #b7c8e6;
  box-shadow: 0 2px 10px rgba(0, 30, 90, 0.06);
}

.contact-card-header {
  display: flex;
  align-items: flex-start;
}

.contact-label {
  padding-right: 1.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a6577;
  line-height: 1.25;
}

.contact-email {
  align-self: flex-start;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1756a9;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-email:visited {
  color: #1756a9;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #001E5A;
  text-decoration: underline;
}

.copy-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.25rem;
  border: none;
  border-radius: 4px;
  background-color: transparent;
  color: #6b778c;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background-color: #edf3fc;
  color: #001E5A;
}

.copy-btn:focus-visible {
  outline: 2px solid #2a7ae2;
  outline-offset: 2px;
}

.copy-btn.copied {
  color: #001E5A;
}

.copy-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.copied-label {
  display: none;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.copy-btn.copied .copy-icon {
  display: none;
}

.copy-btn.copied .copied-label {
  display: inline;
}

/* Toolbox page */
.toolbox-eyebrow {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a6577;
  line-height: 1.15;
}

.toolbox-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #001E5A;
}

.toolbox-intro {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.toolbox-section {
  margin-top: 2rem;
}

.toolbox-categories {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.toolbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.toolbox-card {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: #f5f8fc;
  color: #111;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.toolbox-card:visited {
  color: #111;
}

.toolbox-card:hover,
.toolbox-card:focus-visible {
  background-color: #fff;
  border-color: #b7c8e6;
  box-shadow: 0 2px 10px rgba(0, 30, 90, 0.06);
  color: #111;
  text-decoration: none;
}

.toolbox-card:focus-visible {
  outline: 2px solid #2a7ae2;
  outline-offset: 2px;
}

.toolbox-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1756a9;
  transition: color 0.16s ease;
}

.toolbox-card:hover h3,
.toolbox-card:focus-visible h3 {
  color: #001E5A;
}

.toolbox-card p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

.toolbox-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toolbox-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  background-color: #e6eef9;
  color: #001E5A;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.toolbox-card-planned {
  background-color: #f9fbfe;
  border: 1px dashed #cbd5e1;
  cursor: default;
}

.toolbox-card-planned:hover,
.toolbox-card-planned:focus-visible {
  background-color: #f9fbfe;
  border-color: #cbd5e1;
  box-shadow: none;
}

.toolbox-card-planned h3,
.toolbox-card-planned:hover h3,
.toolbox-card-planned:focus-visible h3 {
  color: #4b5563;
}

.toolbox-status {
  margin: 0;
  font-size: 0.95rem;
  color: #5a6577;
}

@media (max-width: 740px) {
  .profile-actions {
    flex-wrap: wrap;
  }

  .profile-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Site footer */
.site-footer {
  background-color: #001E5A;
  border-top: 1px solid #e8e8e8;
  padding: 20px 0;
  z-index: 1000;
}

.site-footer .wrapper {
  color: #fff;
}

.footer-col {
  margin-bottom: 0;
}

.social-media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  color: #fff;
}

.social-media-list li {
  margin: 0;
  display: flex;
  align-items: center;
}

.social-media-list li a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px;
  border: 0;
  line-height: 1.4;
}

.social-media-list li a:hover {
  color: #ccc;
  text-decoration: none;
}

.social-media-list .svg-icon {
  width: 16px;
  height: 16px;
  padding: 0;
  vertical-align: middle;
}

.social-media-list .mail-icon {
  width: 18px;
  height: 18px;
}

.footer-email-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px;
  border: 0;
  border-radius: 4px;
  background-color: transparent;
  color: #fff;
  font: inherit;
  line-height: 1.4;
  cursor: pointer;
}

.footer-email-btn:hover,
.footer-email-btn:focus-visible {
  color: #ccc;
}

.footer-email-btn:focus-visible {
  outline: 2px solid #9ab3de;
  outline-offset: 2px;
}

.footer-email-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(2px);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: #fff;
  color: #001E5A;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.footer-email-btn:hover::after,
.footer-email-btn:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-email-btn.copied::after {
  opacity: 0;
}

.footer-email-btn.copied .profile-email-text {
  visibility: hidden;
}

.footer-email-btn.copied .profile-copied-text {
  visibility: visible;
}

@media (max-width: 550px) {
  .site-header {
    min-height: 44px;
    line-height: 44px;
  }

  .site-title {
    font-size: 1.35rem;
    padding-right: 45px;
  }

  .profile-hero,
  .toolbox-hero {
    padding: 1.5rem 0;
  }

  .profile-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .profile-photo,
  .profile-info {
    flex: none;
    width: 100%;
  }

  .profile-eyebrow,
  .profile-name {
    text-align: center;
  }

  .profile-actions {
    align-items: stretch;
  }

  .profile-actions li {
    display: flex;
  }

  .profile-action:not(.profile-action-email) {
    padding: 0.35rem 0.5rem;
  }

  .profile-action:not(.profile-action-email) span {
    display: none;
  }

  #dp {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 0;
  }

  .social-media-list {
    font-size: 0.9rem;
    gap: 0.4rem 1.1rem;
  }

  .social-media-list li a .username {
    display: none;
  }
}

@media (max-width: 480px) {
  .profile-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
