@media (max-width: 768px) {
  /* Hide desktop header on mobile */
  .pc-box {
    display: none;
  }

  /* Mobile hamburger menu */
  .mobhead-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f5f0eb;
    border-bottom: 1px solid #e0dbd5;
  }
  .mobhead-bar-l a {
    color: #222;
    font-family: Georgia, serif;
    font-size: 22px;
    letter-spacing: 1px;
  }
  .mobhead-bar-r {
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 0 4px;
  }

  /* Slide-out nav */
  .mobhead-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
  }
  .mobhead-nav-overlay.on {
    display: block;
  }
  .mobhead-nav-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 10001;
    transition: right 0.3s;
    padding: 20px;
  }
  .mobhead-nav-panel.on {
    right: 0;
  }
  .mobhead-nav-panel a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
  }
  .mobhead-nav-close {
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 10px;
    color: #666;
  }

  /* Hero */
  .hero-content {
    bottom: 40px;
    right: 20px;
    left: 20px;
    text-align: right;
  }
  .hero-content p {
    font-size: 20px;
  }

  /* Content pages */
  .content-page {
    padding: 40px 20px 60px;
    overflow-x: hidden;
  }
  .content-page h1 {
    font-size: 26px;
    margin: 0 0 30px 0;
  }

  /* Prevent table overflow */
  table {
    display: block;
    overflow-x: auto;
  }

  /* Publication items */
  .pub-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }
  .pub-title {
    font-size: 17px;
  }
  .pub-toc img {
    width: 100%;
    height: auto;
  }

  /* PI card */
  .pi-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pi-card img {
    width: 140px;
    height: 140px;
  }
  .pi-info h2 {
    font-size: 20px;
  }
  .pi-info .contact-item {
    justify-content: center;
  }
  .pi-info .social-links {
    justify-content: center;
  }
  .pi-bio-section {
    text-align: left;
  }

  /* Member grid */
  .member-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }

  /* Research */
  .research-body {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Alumni */
  .alumni-list li {
    font-size: 14px;
    padding: 8px 0;
  }
}

/* Desktop: hide mobile elements */
.mobhead-bar { display: none; }
.mobhead-nav-overlay { display: none; }
.mobhead-nav-panel { display: none; }

@media (min-width: 769px) {
  .mobhead-bar { display: none !important; }
  .mobhead-nav-overlay { display: none !important; }
  .mobhead-nav-panel { display: none !important; }
}
