:root {
        --ink: #252525;
        --muted: #555;
        --accent: #0e325f;
        --line: #e2e2e2;
      }
      * {
        box-sizing: border-box;
      }
      body {
        margin: 0;
        background: #fff;
        color: var(--ink);
        font-family: "Roboto", Arial, sans-serif;
        font-size: 16px;
        line-height: 1.75;
      }
      a {
        color: var(--accent);
        text-underline-offset: 4px;
      }
      a:hover {
        text-decoration: underline;
      }
      a:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 5px;
      }
      .wrap {
        width: min(1060px, calc(100% - 48px));
        margin-inline: auto;
      }
      .skip {
        position: absolute;
        left: 20px;
        top: -100px;
        background: white;
        padding: 12px;
        z-index: 10;
      }
      .skip:focus {
        top: 12px;
      }
      .institution {
        padding-block: 23px;
      }
      .institution img {
        display: block;
        width: 300px;
        max-width: 100%;
        height: auto;
      }
      .nav-bar {
        background: var(--accent);
      }
      nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 24px;
      }
      nav a {
        color: white;
        text-decoration: none;
        font-size: 15px;
        padding: 11px 8px;
      }
      nav a[aria-current] {
        box-shadow: inset 0 -3px #fff;
        font-weight: 600;
      }
      .hero {
        display: grid;
        grid-template-columns: 260px 1fr;
        align-items: center;
        gap: 52px;
        padding-block: 48px 36px;
      }
      .hero figure {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
      }
      .hero > div {
        grid-column: 2;
      }
      .portrait {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
      }
      h1,
      h2,
      h3,
      p {
        margin-top: 0;
      }
      h1 {
        font-size: 36px;
        line-height: 1.25;
        font-weight: 600;
        margin-bottom: 14px;
      }
      h2 {
        font-size: 24px;
        line-height: 1.4;
        font-weight: 500;
        margin-bottom: 18px;
      }
      .role {
        font-size: 19px;
        line-height: 1.65;
        margin-bottom: 18px;
      }
      .role span {
        display: block;
        font-size: 16px;
      }
      .intro {
        color: var(--muted);
        margin-bottom: 20px;
      }
      .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
      }
      .button {
        font-size: 15px;
      }
      .profiles {
        display: flex;
        gap: 12px 25px;
        flex-wrap: wrap;
        padding-block: 20px;
        border-block: 1px solid var(--line);
      }
      .profiles a {
        font-size: 14px;
      }
      .profiles a, .footer-inner a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }
      .profile-icon {
        width: 22px;
        height: 22px;
        object-fit: contain;
        flex-shrink: 0;
      }
      section {
        padding-block: 30px;
      }
      .research-list {
        padding-left: 22px;
        margin-bottom: 0;
      }
      .research-list li {
        padding-bottom: 5px;
      }
      .about {
        border-top: 1px solid var(--line);
      }
      .biography p {
        margin-bottom: 18px;
      }
      .text-link {
        font-size: 14px;
      }
      .contact {
        border-top: 1px solid var(--line);
        padding-block: 28px 40px;
      }
      .contact h2 {
        margin-bottom: 10px;
      }
      .contact a {
        overflow-wrap: anywhere;
      }
      footer {
        border-top: 1px solid var(--line);
        padding-block: 20px;
      }
      .footer-inner {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        font-size: 13px;
        color: var(--muted);
      }
      @media (max-width: 680px) {
        .wrap {
          width: calc(100% - 36px);
        }
        .institution img {
          margin-inline: auto;
        }
        nav {
          gap: 0 10px;
        }
        nav a {
          font-size: 13px;
          padding: 10px 5px;
        }
        .hero {
          grid-template-columns: 1fr;
          gap: 28px;
          padding-top: 32px;
        }
        .hero figure {
          grid-column: 1;
          grid-row: 1;
          width: min(240px, 100%);
          margin-inline: auto;
        }
        .hero > div {
          grid-column: 1;
        }
        h1 {
          font-size: 30px;
        }
        .profiles {
          gap: 12px 20px;
        }
      }
    
/* Shared content-page layout. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
.page-content { padding-block: 40px; overflow-wrap: anywhere; }
.page-content h1 { margin-bottom: 30px; }
.page-content h2 { margin-top: 32px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h2 strong { font-weight: 500; }
.page-content ol { padding-left: 25px; }
.page-content li { padding-left: 5px; margin-bottom: 14px; }
.page-content img { max-width: 100%; }
.education-row { display: flex; align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.education-row img { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.grade-sheet { display: block; width: min(100%, 800px); height: auto; }
.page-profiles { margin-top: 32px; }
.slider { max-width: 900px; margin-inline: auto; }
.slide { margin: 0; }
.slide[hidden] { display: none; }
.slide img { display: block; width: 100%; height: min(65vh, 640px); object-fit: contain; }
.gallery-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.gallery-controls button { font: inherit; color: var(--accent); background: white; border: 1px solid var(--line); padding: 8px 16px; cursor: pointer; }
.gallery-controls button:hover { background: #f4f6f8; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.contact-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.contact-photos img { display: block; width: 100%; height: auto; }
@media (max-width: 680px) {
 .page-content { padding-block: 30px; }
 .education-row { gap: 15px; align-items: flex-start; }
 .contact-photos { grid-template-columns: 1fr; }
 .footer-inner { flex-wrap: wrap; }
}

/* Mobile navigation: links remain available if JavaScript is unavailable. */
.mobile-nav { display: none; }
@media (max-width: 680px) {
  .nav-bar.nav-ready .mobile-nav { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
  .mobile-nav-title { color: #fff; font-size: 16px; font-weight: 500; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 11px; border: 1px solid #ffffff55; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
  .nav-toggle:hover { background: #ffffff18; }
  .nav-bar a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
  .hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
  .nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #main-navigation { flex-direction: column; gap: 0; padding-block: 6px 14px; }
  .nav-ready #main-navigation { display: none; }
  .nav-ready.is-open #main-navigation { display: flex; border-top: 1px solid #ffffff33; }
  #main-navigation a { padding: 11px 14px; min-height: 46px; font-size: 15px; border-radius: 4px; }
  #main-navigation a[aria-current] { background: #ffffff18; box-shadow: inset 3px 0 #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .hamburger span { transition: none; }
}
