/* Academic layout matching the reference at cs.stanford.edu/~jure/. */
:root {
  font:
    14px/1.6 Verdana,
    Geneva,
    sans-serif;
  color: #000;
  background: #b2b2b2;
  --link: #1d65ae;
  --heading: #2968d0;
  --line: #ccc;
  --muted: #555;
  --tint: #f4f4f4;
  --hover: #eee;
  --border-accent: #888;
  --green: #638f39;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
em,
i,
cite,
address {
  font-style: normal;
}
strong,
b {
  font-weight: 700;
}
.page {
  width: 1280px;
  max-width: calc(100% - 48px);
  margin: 15px auto 0;
  background: #fff;
}
.site-header {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  color: #fff;
  background: #444;
}
.site-identity {
  font-size: 12px;
  color: #fff;
}
.university-brand {
  display: block;
}
.university-brand img {
  width: auto;
  height: 40px;
  filter: grayscale(1) invert(1);
}
.masthead-name {
  color: #eee;
  text-align: center;
  font:
    17px/17px Georgia,
    "Times New Roman",
    serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}
.masthead-name span {
  display: block;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 1.5px;
}
.masthead-name:hover {
  color: #fff;
}
.site-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  padding-top: 20px;
}
.sidebar {
  min-width: 0;
}
.sidebar-photo {
  width: 160px;
  height: auto;
  margin: 0 0 25px 30px;
}
.sidebar-photo a {
  display: block;
  width: 100%;
}
.sidebar-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.sidebar-nav,
.sidebar-local {
  width: 160px;
  margin: 0 0 30px 30px;
  padding: 3px 0;
  border: 1px solid #888;
  background: #fff;
  font:
    13px/20px Verdana,
    Geneva,
    sans-serif;
}
.sidebar-nav a,
.sidebar-local a {
  display: block;
  padding: 8px 19px;
  color: #000;
  text-decoration: none;
}
.sidebar-nav a:hover,
.sidebar-local a:hover {
  background: #eee;
  color: #000;
}
.sidebar-nav a[aria-current="page"] {
  background: #eee;
}
.sidebar-note {
  width: 160px;
  border: 1px solid #888;
  margin: 0 0 30px 30px;
  padding: 3px;
  font:
    12px/18px Verdana,
    Geneva,
    sans-serif;
}
.sidebar-note p {
  margin: 0;
}
.sidebar-note p + p {
  margin-top: 9px;
}
main {
  min-width: 0;
  padding: 0 30px 20px 0;
}
a,
.inline-link,
summary {
  color: var(--link);
  text-decoration: none;
}
a:hover,
.inline-link:hover,
summary:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--heading);
  outline-offset: 3px;
}
button,
input {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
h1,
h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.5;
}
h1 {
  font-size: 24px;
  margin: 0 0 14px;
}
h2 {
  font-size: 24px;
  margin: 18px 0 14px;
}
main > h1,
main > section > h1,
main > section > h2,
.neuro-hero h1 {
  padding-left: 42px;
  background: url("assets/section-network.svg") no-repeat left 3px;
  background-size: 33px 33px;
}
h3,
h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.4;
}
h3 {
  font-size: 16px;
  margin: 14px 0 6px;
}
h4 {
  font-size: 14px;
  margin: 10px 0 5px;
}
p {
  margin: 10px 0;
}
figure {
  margin: 0;
}
figcaption,
.muted,
.project-meta,
.affiliation,
.organization,
.timeline-date,
.languages {
  color: var(--muted);
  font-size: 13px;
}
figcaption {
  margin-top: 5px;
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
section {
  margin: 0 0 30px;
  scroll-margin-top: 20px;
}
.biography {
  display: block;
}
.profile-copy {
  max-width: none;
}
.influence-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.influence-portrait {
  width: 180px;
}
.influence-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 410 / 460;
  overflow: hidden;
}
/* Display the existing headshot within Duke's original remembrance image. */
.influence-photo img {
  position: absolute;
  width: 290.25%;
  max-width: none;
  height: auto;
  left: -25.85%;
  top: -19.56%;
}
.influence-portrait figcaption {
  font-size: 12px;
}
.influence-copy p:first-child {
  margin-top: 0;
}
.name-banner {
  margin: 0 0 20px;
  padding: 13px 20px;
  background: var(--green);
  color: #fff;
  font:
    700 36px/1.344 Arial,
    Helvetica,
    sans-serif;
}
.opening-quote {
  margin: 0 0 22px;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--green);
  max-width: 78ch;
}
.opening-quote blockquote {
  margin: 0;
}
.opening-quote p {
  margin: 0;
}
.opening-quote figcaption {
  margin-top: 4px;
}
.affiliation {
  font: inherit;
  color: #000;
}
.profile-links,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
}
.profile-links {
  margin-top: 10px;
  gap: 5px 8px;
}
.breadcrumb {
  margin: 0 0 18px;
  font-size: 11px;
  color: var(--muted);
}
.return-link {
  margin: 25px 0 0;
}
.project-evidence {
  margin-top: 28px;
}
.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.evidence-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.evidence-source {
  margin: 12px 0 18px;
}
.evidence-source[open] summary {
  margin-bottom: 10px;
}
.evidence-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 14px 0 18px;
  padding-left: 22px;
}
.evidence-flow li {
  padding-left: 2px;
}
.evidence-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.evidence-table {
  width: 100%;
  max-width: 850px;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 13px;
}
.evidence-table th,
.evidence-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.evidence-table thead th {
  color: var(--heading);
}
.evidence-table td:last-child {
  color: #466b2a;
}
.project-index {
  margin-top: 24px;
}
.project-index-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 28px;
  align-items: start;
  margin: 0 0 30px;
}
.project-index-copy:only-child {
  grid-column: 1 / -1;
}
.project-index-item h2 {
  margin: 0 0 5px;
  font:
    400 18px/1.4 Arial,
    Helvetica,
    sans-serif;
}
.project-index-item p {
  margin: 7px 0;
}
.project-index-copy p {
  max-width: 75ch;
}
.project-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
}
.project-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.photo-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.personal-gallery {
  gap: 18px 22px;
  align-items: start;
}
.personal-portrait {
  grid-row: span 2;
}
.personal-portrait img {
  aspect-ratio: 4 / 5;
  object-position: 50% 40%;
}
.personal-gallery > figure:not(.personal-portrait) img {
  aspect-ratio: 16 / 9;
}
.app-highlight {
  padding-top: 3px;
}
.app-highlight-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.app-highlight-heading h3 {
  margin-top: 0;
}
.app-highlight-heading p {
  margin-bottom: 0;
}
.app-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.app-metrics dt {
  color: var(--muted);
  font-size: 12px;
}
.app-metrics dd {
  margin: 4px 0 0;
  font:
    400 36px/1.2 Arial,
    Helvetica,
    sans-serif;
  color: var(--heading);
}
.app-metrics dd span {
  font-size: 20px;
}
.app-metrics dd.metric-detail {
  font:
    12px/1.5 Verdana,
    Geneva,
    sans-serif;
  color: var(--muted);
}
.metric-source {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.app-review {
  padding: 4px 0 4px 16px;
  margin: 16px 0;
  border-left: 2px solid var(--green);
}
.app-review blockquote {
  margin: 0;
}
.photo-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}
.photo-open:hover {
  outline: 1px solid #888;
}
.project {
  position: relative;
  margin: 0 0 18px 25px;
  padding: 0 0 0 15px;
  scroll-margin-top: 20px;
}
.project::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 6px solid #f57c16;
}
.project > .project-icon,
.project > .project-symbol,
.project > a {
  display: none;
}
.project h3 {
  margin: 0 0 3px;
}
.project p {
  margin: 5px 0;
}
.project-meta {
  font-size: 12px;
}
.project-links {
  font-size: 12px;
}
.project-highlight .project-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px;
  align-items: start;
}
.project-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 75px));
  gap: 10px;
}
.project-screens img {
  width: 100%;
}
.inline-link {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}
.timeline-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
}
.timeline-row p {
  margin: 0 0 5px;
}
.timeline-row h3 {
  margin: 0 0 4px;
}
.timeline-row .organization {
  margin-bottom: 4px;
}
.subsection-title {
  margin: 18px 0 10px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.skills-grid h3 {
  margin-top: 0;
}
.skills-grid ul,
.certifications {
  margin: 10px 0 10px 25px;
  padding: 0;
  list-style: none;
}
.skills-grid li,
.certifications li {
  position: relative;
  margin-bottom: 7px;
}
.skills-grid li::before,
.certifications li::before {
  content: "▸";
  position: absolute;
  left: -18px;
  color: #f57c16;
}
.certifications span + span {
  margin-left: 7px;
  color: var(--muted);
  font-size: 11px;
}
.certification-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
  margin: 18px 0 30px;
}
.certification-item .photo-open {
  border: 1px solid #ddd;
}
.certification-item img {
  width: 100%;
  aspect-ratio: 800 / 566;
  object-fit: contain;
  background: #fff;
}
.certification-item figcaption {
  margin-top: 7px;
}
.certification-item h3 {
  font-size: 16px;
  margin: 3px 0 5px;
}
.certification-item p {
  margin: 0 0 5px;
}
.certificate-issuer {
  font-size: 12px;
  color: var(--muted);
}
.contact-list {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 5px 10px;
}
.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.copy-email {
  margin-left: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font-size: 12px;
}
#copy-status {
  margin-left: 5px;
  font-size: 12px;
}
footer {
  border-bottom: 10px solid #444;
  padding: 8px 30px 8px 250px;
  font-size: 11px;
  color: var(--muted);
}
footer > a:last-child {
  margin-left: 8px;
}
.skip {
  position: absolute;
  left: 15px;
  top: 0;
  transform: translateY(-200%);
  background: #fff;
}
.skip:focus {
  transform: none;
}
dialog {
  width: min(650px, calc(100% - 30px));
  max-height: 90dvh;
  padding: 16px;
  color: #000;
  background: #fff;
  border: 1px solid #888;
}
dialog::backdrop {
  background: #0008;
}
dialog h2 {
  margin-top: 10px;
}
.dialog-close,
.photo-close {
  display: block;
  margin: 0 0 10px auto;
  border: 0;
  padding: 0;
  background: none;
  color: var(--link);
}
.dialog-open {
  overflow: hidden;
}
#photo-dialog {
  width: fit-content;
  max-width: calc(100% - 30px);
}
#photo-full {
  max-height: 72dvh;
  width: auto;
  margin: auto;
  object-fit: contain;
}
#photo-caption {
  margin: 5px 0 0;
  color: var(--muted);
}
.tags,
.eyebrow {
  font-size: 11px;
  color: var(--muted);
}
.tags span + span::before {
  content: " · ";
}
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}
.lab-layout img {
  width: 100%;
}
.lab-page .contact-list {
  grid-template-columns: 85px minmax(0, 1fr);
}
.lab-hardware {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lab-hardware img {
  aspect-ratio: 1;
  object-fit: contain;
}
.lab-signal {
  max-width: 100%;
  margin: 18px 0;
}
.lab-signal img {
  width: 100%;
}
.lab-document {
  max-width: 570px;
  margin: 18px 0;
}
.annotated-document {
  display: block;
  position: relative;
}
.annotated-document img {
  width: 100%;
}
.annotated-document svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.annotated-document rect {
  fill: none;
  stroke: #d60000;
  stroke-width: 4;
}
.annotation-credit {
  padding: 4px 8px;
  margin: 0;
  background: var(--tint);
  font-size: 11px;
}
.lab-method {
  margin: 15px 0;
}
.lab-method[open] summary {
  margin-bottom: 10px;
}
pre {
  overflow: auto;
  max-width: 100%;
  padding: 10px;
  background: var(--tint);
  border-left: 1px solid #ccc;
  font:
    12px/1.5 Consolas,
    monospace;
}
.lab-page details {
  margin-bottom: 12px;
}
@media (min-width: 1440px) {
  :root {
    font-size: 15px;
  }
}
@media (max-width: 950px) {
  .project-index-item {
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 20px;
  }
}
@media (max-width: 800px) {
  .site-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar-photo {
    width: 160px;
    height: auto;
    margin-left: 20px;
  }
  .sidebar-photo img {
    width: 100%;
  }
  .sidebar-nav,
  .sidebar-local,
  .sidebar-note {
    margin-left: 20px;
  }
  main {
    padding-right: 20px;
  }
  footer {
    padding-left: 200px;
  }
  .certification-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-layout {
    grid-template-columns: 1fr;
  }
  .lab-layout figure {
    max-width: 240px;
  }
  .influence-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-highlight .project-copy {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .page {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .site-header {
    padding-right: 20px;
  }
  .site-identity {
    font-size: 11px;
  }
  .site-layout {
    display: block;
    padding-top: 15px;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 0 15px 20px;
  }
  .sidebar-photo {
    width: 100px;
    height: auto;
    margin: 0;
  }
  .sidebar-photo img {
    width: 100%;
    height: auto;
  }
  .sidebar-nav {
    width: 100%;
    max-width: 210px;
    margin: 0;
  }
  .sidebar-nav a {
    padding: 12px;
  }
  .sidebar-local {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    margin: 0;
    padding: 5px;
  }
  .sidebar-local a {
    padding: 2px 8px;
  }
  .sidebar-note {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 5px 8px;
  }
  .sidebar-note p {
    margin: 0;
  }
  .sidebar-note p:first-child {
    display: none;
  }
  .sidebar-note p + p {
    margin-top: 0;
  }
  .sidebar-note br {
    display: none;
  }
  .sidebar-note p > a + br + a {
    margin-left: 8px;
  }
  main {
    padding: 0 15px 15px;
  }
  .name-banner {
    font-size: 30px;
    padding: 11px 16px;
  }
  .skills-grid,
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .photo-gallery {
    grid-template-columns: 1fr;
  }
  .personal-portrait {
    grid-row: auto;
  }
  .personal-portrait img {
    max-height: 540px;
  }
  .app-metrics {
    gap: 16px 10px;
  }
  .app-metrics dd {
    font-size: 28px;
  }
  .app-highlight-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  .app-metrics dt,
  .app-metrics dd.metric-detail {
    font-size: 11px;
  }
  .evidence-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .evidence-flow {
    display: block;
  }
  .evidence-flow li {
    margin-bottom: 7px;
  }
  .certification-gallery {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .certificate-issuer {
    font-size: 12px;
  }
  .certification-item h3 {
    font-size: 14px;
  }
  .timeline-date {
    margin: 0;
  }
  .project {
    margin-left: 10px;
    padding-left: 12px;
  }
  .project::before {
    left: -8px;
  }
  footer {
    padding: 8px 15px;
  }
}
@media (max-width: 420px) {
  .certification-gallery {
    grid-template-columns: 1fr;
  }
  .site-header {
    padding-left: 15px;
    padding-right: 15px;
  }
  .project-index-item {
    grid-template-columns: minmax(0, 1fr) 85px;
    gap: 12px;
  }
  .project-cover img {
    width: 85px;
    max-height: 160px;
  }
}
/* Accessibility and small-screen refinements shared by all pages. */
main a {
  text-underline-offset: 3px;
}
main a:not(.photo-open):not(.annotated-document) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.skip {
  z-index: 10;
  padding: 8px 12px;
}
main:focus {
  outline: none;
}
.app-metrics dd.metric-unavailable {
  font-size: 23px;
  line-height: 1.6;
}
.photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
}
.photo-toolbar button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--link);
  padding: 4px 12px;
}
.photo-toolbar button:disabled {
  color: #777;
  cursor: default;
}
.photo-close {
  min-height: 40px;
  padding: 4px 8px;
}
#photo-status {
  font-size: 12px;
  color: var(--muted);
}
.reference-page {
  padding: 25px;
  max-width: 900px;
}
.reference-page main {
  padding: 0;
}
.reference-page article {
  margin: 30px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 620px) {
  .app-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-metrics > div:last-child {
    grid-column: 1 / -1;
  }
  .university-brand {
    flex-shrink: 0;
    margin-left: 12px;
  }
  .university-brand img {
    height: 32px;
  }
  .site-identity {
    line-height: 1.4;
  }
  .breadcrumb,
  .project-links {
    font-size: 12px;
  }
}
@media print {
  :root {
    background: white;
  }
  .page {
    max-width: 100%;
    width: auto;
    margin: 0;
  }
  .site-header,
  .sidebar,
  .skip,
  footer,
  dialog,
  .return-link {
    display: none;
  }
  .site-layout {
    display: block;
  }
  main {
    padding: 0;
  }
  .neuro-quiz {
    display: none;
  }
}
/* Project-led home and a consistent brief across project sheets. */
.home-intro {
  max-width: 70ch;
  margin: 0 0 24px;
}
.home-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 30px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.home-project:first-of-type {
  padding-top: 0;
}
.home-project h3 {
  font-size: 21px;
  margin-top: 5px;
}
.home-project figure {
  margin: 0;
}
.home-project img {
  width: 100%;
  max-height: 245px;
  object-fit: contain;
}
.home-project figcaption {
  font-size: 11px;
  text-align: center;
}
.home-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  margin: 18px 0 10px;
}
.home-metrics dt {
  font-size: 12px;
  color: var(--muted);
}
.home-metrics dd {
  margin: 2px 0 0;
  color: var(--heading);
  font:
    22px/1.4 Arial,
    sans-serif;
}
.project-facts {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 12px 20px;
  margin: 16px 0;
}
.project-facts dt {
  color: var(--heading);
}
.project-facts dd {
  margin: 0;
}
.project-challenge p {
  max-width: 85ch;
}
@media (max-width: 800px) {
  .home-project {
    grid-template-columns: minmax(0, 1fr) 115px;
    gap: 18px;
  }
  .project-facts {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .project-facts dd {
    margin-bottom: 12px;
  }
}
@media (max-width: 420px) {
  .home-project {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 14px;
  }
  .home-project h3 {
    overflow-wrap: anywhere;
    font-size: 19px;
  }
  .home-project figcaption {
    font-size: 10px;
  }
  .home-metrics {
    gap: 10px;
  }
  .home-metrics dd {
    font-size: 20px;
  }
}
