/* Shared academic template for all site pages. */
body { color: #333; background: #fff; font-family: "Times New Roman", Times, serif; }
.page__content, .page__content * { font-family: "Times New Roman", Times, serif; }
.page__content { color: #333; font-size: 18px; line-height: 1.65; }
.page__content p, .page__content li { text-align: justify; text-justify: inter-word; }
.page__content a, .sidebar a, .masthead a, .page__footer a,
.page__content a:visited, .sidebar a:visited, .masthead a:visited { color: #111; font-weight: 700; text-decoration: none; }
.page__content a, .page__footer a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page__content a:hover, .sidebar a:hover, .masthead a:hover, .page__footer a:hover { color: #111; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.greedy-nav .visible-links a::before { background: #111; }
.sidebar { font-family: "Times New Roman", Times, serif; }
.sidebar, .sidebar .social-icons i { color: #333 !important; }
.sidebar .author__name { color: #111; font-family: "Times New Roman", Times, serif; }
.sidebar .author__avatar img { width: 160px; height: 160px; object-fit: cover; object-position: center; padding: 0; border: 0; border-radius: 50%; }

/* Shared navigation and profile on every page. */
.masthead .greedy-nav a, .masthead .greedy-nav a:visited { color: #111; font-family: "Times New Roman", Times, serif; font-weight: 700; text-decoration: none; }
.masthead .greedy-nav a:hover { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.masthead .greedy-nav .visible-links a::before { background: #111; }
.sidebar .author__urls a, .sidebar .author__urls_sm a { color: #111; font-weight: 700; text-decoration: none; }
.page__content b, .page__content strong { color: #111; }

/* The photo gallery shares the same white page heading and text navigation. */
body .page__content { color: #333; font-size: 18px; line-height: 1.65; }
body .page__content > p { text-align: justify; text-justify: inter-word; }
body .page__content .photo-hero { margin: 0 0 24px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body .photo-hero::after { display: none; }
body .page__content .photo-hero h1 { margin: 0 0 20px; padding: 0; border: 0; color: #111; font-size: 32px; font-weight: 700; line-height: 1.2; }
body .photo-hero p { color: #333; }
body .photo-nav { gap: 10px 24px; margin: 22px 0 32px; }
body .page__content .photo-nav a, body .page__content .photo-nav a:hover { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; color: #111 !important; font-size: 16px; text-decoration: underline !important; text-underline-offset: 3px; }
body .photo-section { margin: 36px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body .page__content .photo-section h2 { padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; color: #111; font-size: 28px; line-height: 1.3; }
body .photo-item { background: #fff; border-color: #e5e5e5; box-shadow: none; }
body .photo-item:hover { border-color: #ccc; }
body .photo-caption { color: #555; }

/* Keep the interactive community's own controls legible in both themes. */
.dc-page, .dc-page * { font-family: "Times New Roman", Times, serif; }
.dc-page p, .dc-page li { text-align: left; }
.dc-page a, .dc-page a:visited, .dc-page a:hover { color: var(--dc-text); }
.dc-page b, .dc-page strong { color: inherit; }

@media (max-width: 767px) {
  body .page__content { font-size: 17px; line-height: 1.6; }
  .sidebar .author__avatar img { width: 75px; height: 75px; }
  body .page__content .photo-hero h1 { font-size: 28px; }
  body .page__content .photo-section h2 { font-size: 24px; }
}

/* Shared desktop width with equal space on both sides. */
@media (min-width: 925px) {
  #main, .masthead .masthead__inner-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 150px;
    padding-right: 150px;
  }
  #main { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 60px; align-items: start; }
  #main::before, #main::after { display: none; }
  #main > .sidebar { float: none; width: auto; min-width: 0; margin: 0; padding: 0; }
  #main > .page { float: none; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; }
}

/* Home and photo shortcuts use the same right-hand directory as Publications. */
.directory-main { min-width: 0; }
body .page__content .page-directory { display: flex; flex-wrap: wrap; gap: 10px 24px; }
body .page__content .page-directory a,
body .page__content .page-directory a:hover {
  display: block; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; transform: none;
  color: #111; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: left;
  text-decoration: underline; text-underline-offset: 3px;
}
.directory-main .section-title, .directory-main > span[id] { scroll-margin-top: 80px; }
@media (min-width: 1280px) {
  .directory-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 60px; align-items: start; }
  .directory-main { grid-column: 1; grid-row: 1; }
  body .page__content .page-directory {
    grid-column: 2; grid-row: 1; position: sticky; top: 80px;
    flex-direction: column; align-items: flex-start; gap: 20px;
    margin: 0; padding: 4px 0 4px 20px; border-left: 1px solid #e5e5e5;
    max-height: calc(100vh - 112px); overflow-y: auto;
  }
}
@media (max-width: 1279px) {
  .directory-layout { display: flex; flex-direction: column; }
  .directory-main { display: contents; }
  .directory-layout .hero-card, .directory-layout .photo-hero { order: -2; margin-bottom: 0; }
  body .page__content .page-directory { order: -1; margin: 22px 0 32px; }
}

/* Shared main navigation: title-sized labels, current-page color, separators. */
.masthead #site-nav a,
.masthead #site-nav a:visited {
  color: #111; font-family: "Times New Roman", Times, serif;
  font-size: 20px; font-weight: 700; line-height: 1.2;
}
.masthead .masthead__menu-item--lg { padding-right: 0; }
.masthead #site-nav a[aria-current="page"],
.masthead #site-nav a[aria-current="page"]:visited,
.masthead #site-nav a[aria-current="page"]:hover { color: #1f5fae; }
.masthead #site-nav .visible-links a[aria-current="page"]::before { background: #1f5fae; }
.masthead #site-nav .visible-links > li { position: relative; }
.masthead #site-nav .visible-links > li + li::after {
  content: ""; position: absolute; left: 0; top: 50%;
  height: 28px; border-left: 1px solid #999;
  transform: translateY(-50%); pointer-events: none;
}
@media (max-width: 767px) {
  .masthead #site-nav a, .masthead #site-nav a:visited { font-size: 20px; }
  .masthead #site-nav .visible-links > li + li::after { height: 24px; }
  .masthead #site-nav .visible-links > li:nth-child(2)::after { display: none; }
}

/* Research areas: an overview, personal focus, and a conceptual illustration. */
.research-overview { margin-top: 24px; }
.research-topic { margin: 0 0 40px; scroll-margin-top: 90px; }
.research-topic + .research-topic { padding-top: 30px; border-top: 1px solid #e5e5e5; }
.page__content .research-topic h3 { margin: 0 0 16px; color: #111; font-size: 23px; font-weight: 700; line-height: 1.35; text-align: left; scroll-margin-top: 90px; }
.research-topic p { margin: 0 0 16px; }
.page__content .research-figure { display: block; width: 100%; margin: 24px 0 0; }
.page__content .research-figure img { display: block; width: 100%; max-width: none; height: auto; margin: 0 auto; border: 1px solid #e5e5e5; border-radius: 0; background: #fff; }
.page__content .research-figure figcaption { margin: 10px 0 0; color: #666; font-family: "Times New Roman", Times, serif; font-size: 14px; line-height: 1.5; text-align: center; }
@media (max-width: 767px) {
  .page__content .research-topic h3 { font-size: 21px; }
  .research-topic { margin-bottom: 30px; }
  .research-topic + .research-topic { padding-top: 24px; }
  .page__content .research-figure { margin-top: 20px; }
}

/* Full-resolution research figures can be opened without scaling the source file. */
.page__content .research-image-link { display: block; cursor: zoom-in; }
.page__content .research-image-link:hover img { box-shadow: none; }
