/* Typography refinement: slightly larger base font size (+10% on desktop) and crisper metadata dates */
html {
  font-size: 16px;
}

@media (min-width: 48em) {
  html {
    font-size: 16.5px;
  }

  .avatar-glass {
    max-width: 11rem;
    overflow: hidden;
  }

  .avatar-glass img {
    width: 100%;
    max-width: none;
  }
}

.news-date,
.experience-date,
.education-date,
.publication-year,
.compact-list > li > span {
  font-size: 0.75em;
}

/* Equal contribution note in section heading */
.section-heading .section-note {
  margin-left: 0.75em;
  font-size: 0.78em;
  font-weight: 400;
  color: #6f777e;
}

/* Distinct muted teal glass style for Webpage button */
.academic-home .publication-resource-web {
  border-color: rgba(47, 102, 90, 0.14);
  background-color: rgba(47, 102, 90, 0.065);
  color: #2f665a;
}

.academic-home .publication-resource-web:hover,
.academic-home .publication-resource-web:focus {
  background-color: rgba(47, 102, 90, 0.115);
  color: #214c42;
}

/* CVEs two-part subsection layout */
.cve-group + .cve-group {
  margin-top: 0.95em;
}

.page__content .cve-group-title {
  margin: 0.2em 0 0.45em;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 0.88em;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #52677d;
}

.cve-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cve-list li {
  display: grid;
  grid-template-columns: 8.8rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.65em;
  padding: 0.2em 0;
}

.academic-home .cve-list .publication-resource-cve,
.academic-home .cve-list .publication-resource-bounty {
  justify-content: center;
  justify-self: start;
  width: auto;
  min-height: 0;
  height: auto;
  padding: 0.15em 0.4em;
  gap: 0.26em;
  border-radius: 4px;
  font-size: 0.86em;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cve-list .publication-resource i {
  font-size: 0.82em;
}

.cve-list .publication-resource-cve {
  border-color: rgba(82, 103, 125, 0.15);
  background-color: rgba(82, 103, 125, 0.07);
  color: #46596d;
}

.cve-list .publication-resource-cve:hover,
.cve-list .publication-resource-cve:focus {
  background-color: rgba(82, 103, 125, 0.12);
  color: #2c3a47;
}

.cve-list .publication-resource-bounty {
  border-color: rgba(154, 103, 18, 0.18);
  background-color: rgba(154, 103, 18, 0.075);
  color: #85580f;
}

.cve-list .publication-resource-bounty:hover,
.cve-list .publication-resource-bounty:focus {
  background-color: rgba(154, 103, 18, 0.13);
  color: #654107;
}

.compact-list small.badge-bounty {
  border-color: rgba(154, 103, 18, 0.2);
  background: rgba(254, 243, 199, 0.65);
  color: #85580f;
}

.page__content .cve-desc {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.5;
  color: #3f454a;
}

.cve-desc code {
  padding: 0.08em 0.32em;
  border-radius: 3px;
  background: rgba(82, 103, 125, 0.08);
  font-size: 0.88em;
}

/* White-foreground conference logos (NDSS, USENIX Security): dark tint in light mode, pure white in dark mode */
.publication-venue-mark img[src*="ndss"],
.publication-venue-mark img[src*="usenix-security"] {
  filter: brightness(0) opacity(0.75);
}

@media (max-width: 38em) {
  .cve-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3em;
    padding: 0.45em 0;
  }

  .cve-list .publication-resource-cve,
  .cve-list .publication-resource-bounty {
    width: fit-content;
  }
}

@media (prefers-color-scheme: dark) {
  .section-heading .section-note {
    color: #9ba5ae;
  }

  .academic-home .publication-resource-web {
    border-color: rgba(155, 209, 196, 0.24);
    background-color: rgba(155, 209, 196, 0.09);
    color: #9bd1c4;
  }

  .academic-home .publication-resource-web:hover,
  .academic-home .publication-resource-web:focus {
    background-color: rgba(155, 209, 196, 0.15);
    color: #c7eae1;
  }

  .page__content .cve-group-title {
    color: #9fc5e8;
  }

  .cve-list .publication-resource-cve {
    border-color: rgba(143, 179, 217, 0.24);
    background-color: rgba(143, 179, 217, 0.09);
    color: #b4cfe8;
  }

  .cve-list .publication-resource-cve:hover,
  .cve-list .publication-resource-cve:focus {
    border-color: rgba(143, 179, 217, 0.38);
    background-color: rgba(143, 179, 217, 0.15);
    color: #d6e7f7;
  }

  .cve-list .publication-resource-bounty {
    border-color: rgba(242, 196, 111, 0.26);
    background-color: rgba(242, 196, 111, 0.1);
    color: #f0c97d;
  }

  .cve-list .publication-resource-bounty:hover,
  .cve-list .publication-resource-bounty:focus {
    border-color: rgba(242, 196, 111, 0.4);
    background-color: rgba(242, 196, 111, 0.16);
    color: #fae1ae;
  }

  .compact-list small.badge-bounty {
    border-color: rgba(242, 196, 111, 0.26);
    background: rgba(242, 196, 111, 0.1);
    color: #f0c97d;
  }

  .page__content .cve-desc {
    color: #cfd8df;
  }

  .cve-desc code {
    background: rgba(143, 179, 217, 0.12);
    color: #dce6ee;
  }

  .publication-venue-mark img[src*="ndss"],
  .publication-venue-mark img[src*="usenix-security"] {
    filter: none;
    opacity: 0.92;
  }

  .publication-venue-mark img[src*="ieee-sp"] {
    filter: brightness(1.8) contrast(1.05);
  }
}
