html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif;
  line-height: 160%;
  font-weight: 400;
  font-size: 16px;
  color: #111;
  background: #fff;
}

body.modal-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  opacity: 1;
  background: #fff;
  border: 1px solid #444;
  padding: 0.3rem 0.55rem;
  z-index: 50;
}

.container-fluid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  margin: 1.8rem auto;
}

.nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #000;
}

.logo-mark {
  width: 82px;
  height: 82px;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: "Roboto Mono", monospace;
  font-size: 1.42rem;
  font-weight: 500;
}

@media screen and (min-width: 881px) {
  .brand-copy strong {
    white-space: nowrap;
  }
}

.brand-copy small {
  font-size: 0.98rem;
  color: #555;
}

.menu {
  text-align: right;
}

.menu a {
  margin: auto 0.5em;
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
  text-transform: uppercase;
  font-size: 1.1em;
  line-height: 3.2em;
  color: #000;
  text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible {
  color: orange;
}

main {
  margin-top: 0.5rem;
}

.title {
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.5em;
  margin: 1.8rem 0;
}

hr {
  margin: 1.1rem 0;
  border: 0;
  border-top: 1px solid #ddd;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h2 {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  font-size: 1.65rem;
  margin: 1rem 0 0.6rem;
}

h4 {
  font-weight: 700;
  font-size: 1.18rem;
  margin: 0.2rem 0;
}

a {
  color: #4c86f4;
  font-weight: 400;
}

a:hover,
a:focus-visible {
  text-decoration: none;
  color: orange;
}

p {
  margin: 0.45rem 0 0;
}

.section-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.content-item {
  margin-bottom: 1rem;
}

.content-item p {
  margin-top: 0.2rem;
}

.plain-list {
  padding: 0;
  margin: 0;
}

.plain-list li {
  list-style-type: none;
  margin-bottom: 0.8rem;
}

.research-list li {
  margin-bottom: 0.65rem;
}

.col-side {
  font-size: 1.02rem;
}

.side-photo {
  width: 100%;
  max-width: 260px;
  border: 1px solid #adadad;
  margin-bottom: 0.7rem;
}

.side-note {
  color: #555;
}

.subtle {
  font-size: 0.88rem;
  color: #777;
  font-family: "Noto Sans TC", "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}

.group-overview img {
  width: 100%;
  border: 1px solid #adadad;
}

.hero-group {
  margin-top: 0.9rem;
}

.group-overview--hero {
  max-width: 980px;
  margin: 0 auto;
}

.lab-info {
  margin-top: 0.8rem;
}

.lab-info p {
  margin-top: 0.22rem;
}

.news-list {
  margin-top: 0.4rem;
}

.news-item {
  padding: 0.7rem 0 0.85rem;
  border-bottom: 1px solid #ececec;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-date {
  margin: 0;
  color: #666;
  font-family: "Roboto Mono", monospace;
  font-size: 0.88rem;
}

.news-title {
  margin-top: 0.2rem;
  font-size: 1.2rem;
}

.news-content {
  margin-top: 0.25rem;
}

.news-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.92rem;
}

.publication-list {
  margin-top: 0.5rem;
}

.publication-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.publication-thumb {
  width: 100%;
  max-width: 180px;
  border: 1px solid #adadad;
}

.publication-meta h4 {
  font-size: 2rem;
  line-height: 1.4em;
  margin: 0.1rem auto;
}

.publication-meta p {
  margin-top: 0.3rem;
}

.publication-links {
  display: block;
  margin-top: 0.5rem;
}

.publication-links a {
  margin-right: 10px;
  font-size: 0.95rem;
  font-family: "Roboto Mono", monospace;
}

.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem 0.8rem;
  width: 100%;
  max-width: 72.2rem;
  margin-inline: auto;
}

.people-filter-bar {
  width: 100%;
  max-width: 72.2rem;
  margin: 1.4rem auto 0.95rem;
}

.people-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0;
}

.people-filter-chip,
.people-tag {
  border: 1px solid #c9d0dc;
  background: #f8fafc;
  color: #32435d;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.4rem 0.68rem;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.people-tag {
  display: inline-block;
  width: auto;
  max-width: min(100%, 10.8rem);
  line-height: 1.12;
  padding: 0.24rem 0.42rem;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.people-filter-chip:hover,
.people-filter-chip:focus-visible,
.people-tag:hover,
.people-tag:focus-visible {
  background: #eef4ff;
  border-color: #8fb0ee;
}

.people-filter-chip.is-active,
.people-tag.is-active {
  background: #dbe9ff;
  border-color: #5f8fdf;
  color: #1d3e7a;
}

.people-card {
  flex: 0 1 13.8rem;
  display: block;
  text-align: center;
  width: 13.8rem;
  margin: 0;
}

.people-card[hidden] {
  display: none;
}

.people-card img {
  display: inline-block;
  width: 10.6rem;
  height: auto;
  margin: 0.5em 0;
  border-radius: 14px;
}

.people-open-photo,
.people-open-name {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.people-open-photo {
  display: inline-flex;
  border-radius: 14px;
}

.people-open-photo:focus-visible {
  outline: 2px solid #4c86f4;
  outline-offset: 3px;
}

.people-open-name {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 130ms ease, color 130ms ease;
}

.people-open-name:hover,
.people-open-name:focus-visible {
  color: #4c86f4;
  text-decoration-color: currentcolor;
}

.people-open-name:focus-visible {
  outline: 2px solid #4c86f4;
  outline-offset: 2px;
}

.people-card img.people-photo-square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.people-card h4 {
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.people-tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}

.people-meta {
  color: #999;
  margin-top: 0.2rem;
}

.people-desc {
  margin-top: 0.3rem;
  color: #444;
}

.people-links {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.people-link {
  padding: 0.08rem;
  color: #4f4f4f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

.people-link:hover,
.people-link:focus-visible {
  color: var(--c-link);
  transform: translateY(-1px);
}

.people-link-icon {
  width: 1rem;
  height: 1rem;
}

.people-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow: hidden;
  overscroll-behavior: contain;
}

.people-modal[hidden] {
  display: none;
}

.people-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 50%);
}

.people-modal__dialog {
  box-sizing: border-box;
  position: relative;
  width: min(740px, 100%);
  max-height: calc(100vh - 2.4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 20px 44px rgb(0 0 0 / 22%);
}

.people-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 1.45rem;
  cursor: pointer;
}

.people-modal__close:hover,
.people-modal__close:focus-visible {
  color: #000;
}

.people-modal__header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
}

.people-modal__intro h3 {
  font-family: "Noto Sans TC", "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.people-modal__photo {
  width: 160px;
  border-radius: 12px;
}

.people-modal__photo.people-photo-square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.people-modal__meta {
  margin-top: 0.25rem;
  color: #666;
}

.people-modal__tags {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.people-modal-tag {
  border: 1px solid #c9d0dc;
  background: #f8fafc;
  color: #32435d;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.32rem 0.6rem;
}

.people-modal__desc {
  margin-top: 0.3rem;
  color: #2c2c2c;
}

.people-modal__content {
  margin-top: 0.8rem;
  color: #1a1a1a;
}

.people-modal__content p,
.people-modal__content ul,
.people-modal__content ol {
  margin: 0.52rem 0 0;
}

.people-modal__content h1,
.people-modal__content h2,
.people-modal__content h3,
.people-modal__content h4,
.people-modal__content h5,
.people-modal__content h6 {
  margin: 0.72rem 0 0.2rem;
  line-height: 1.35;
}

.people-modal__content h1 {
  font-size: 1.55rem;
}

.people-modal__content h2 {
  font-size: 1.35rem;
}

.people-modal__content h3 {
  font-size: 1.2rem;
}

.people-modal__content h4 {
  font-size: 1.05rem;
}

.people-modal__content h5 {
  font-size: 0.96rem;
}

.people-modal__content h6 {
  font-size: 0.9rem;
}

.people-modal__content ul,
.people-modal__content ol {
  padding-left: 1.15rem;
}

.people-modal__content li {
  margin: 0.16rem 0;
}

.people-modal__content code {
  font-family: "Roboto Mono", monospace;
  font-size: 0.9em;
  background: #f2f4f8;
  border-radius: 4px;
  padding: 0.02rem 0.25rem;
}

.people-modal__markdown-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 0.65rem;
  border-radius: 10px;
}

.people-modal__links {
  margin-top: 0.9rem;
}

.people-modal__links .people-links {
  justify-content: flex-start;
}

.loading,
.error {
  margin: 0.7rem 0;
  color: #777;
}

.people-grid > .loading,
.people-grid > .error,
.people-grid > .fallback-notice {
  flex: 0 0 100%;
}

.people-page {
  margin-bottom: 2rem;
}

.people-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-top: 0.8rem;
}

.people-profile-photo {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #adadad;
}

.people-profile-main h1 {
  font-family: "Roboto Mono", monospace;
  font-size: 2rem;
  margin: 0;
}

.people-social-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.people-profile-content {
  margin-top: 1rem;
}

.people-profile-content p,
.people-profile-content ul,
.people-profile-content ol,
.people-profile-content h2,
.people-profile-content h3,
.people-profile-content h4 {
  margin-top: 0.6rem;
}

.error {
  color: #b23f24;
}

.fallback-notice {
  margin: 0 0 0.7rem;
  color: #8a5a00;
  font-size: 0.92rem;
  font-family: "Roboto Mono", monospace;
}

.fallback-notice--global {
  margin: 0.8rem 0 0;
  text-align: center;
}

.footer {
  margin: 1.2rem auto 1.6rem;
  text-align: center;
  font-size: 1em;
}

.footer p {
  margin-top: 0.32rem;
}

.footer-nycu-logo-link {
  display: inline-block;
  margin-top: 0.8rem;
}

.footer-nycu-logo {
  display: block;
  width: min(520px, 92vw);
  height: auto;
}

.footer-note {
  color: #666;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(10px);
}

.js-enabled [data-feed-state="pending"] {
  display: none;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 280ms ease, transform 280ms ease;
}

@media screen and (min-width: 1025px) {
  .container-fluid {
    max-width: 1200px;
    padding: 0 1.25rem;
  }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
  .container-fluid {
    padding: 0 1.4rem;
  }
}

@media screen and (max-width: 1024px) {
  .menu a {
    font-size: 1rem;
  }

  .title {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 2.05rem;
  }
}

@media screen and (max-width: 880px) {
  .nav-row,
  .section-row {
    grid-template-columns: 1fr;
  }

  .menu {
    text-align: left;
  }

  .menu a {
    margin-right: 0.8rem;
    margin-left: 0;
    line-height: 2.4em;
  }

  .logo-mark {
    width: 68px;
    height: 68px;
  }

  .brand-copy strong {
    font-size: 1.2rem;
  }

  .brand-copy small {
    font-size: 0.9rem;
  }

  .title {
    font-size: 1.45rem;
  }
}

@media screen and (max-width: 768px) {
  .publication-card {
    grid-template-columns: 1fr;
  }

  .publication-thumb {
    max-width: 240px;
  }

  .publication-meta h4 {
    font-size: 1.55rem;
  }

  .people-modal {
    --modal-edge: 0.6rem;
    align-items: center;
    justify-content: center;
    padding: var(--modal-edge);
    background: rgb(0 0 0 / 50%);
    overflow: hidden;
  }

  .people-modal__backdrop {
    background: transparent;
  }

  .people-modal__dialog {
    width: min(740px, calc(100dvw - var(--modal-edge) - var(--modal-edge)));
    height: auto;
    max-height: calc(100dvh - var(--modal-edge) - var(--modal-edge));
    margin: 0 auto;
    padding-bottom: 1.25rem;
  }

  .people-modal__header {
    grid-template-columns: 124px 1fr;
    align-items: start;
  }

  .people-modal__photo {
    width: 124px;
  }

  .people-grid {
    gap: 0.9rem 0.45rem;
    justify-content: center;
  }

  .people-card {
    flex: 0 1 calc(50% - 0.45rem);
    width: auto;
    max-width: 170px;
    margin: 0;
  }

  .people-card img {
    width: 100%;
    max-width: 140px;
  }

  .people-card h4 {
    font-size: 1rem;
  }

  .people-profile {
    grid-template-columns: 140px 1fr;
  }

  .people-profile-main h1 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 360px) {
  .people-card {
    flex-basis: 100%;
  }

  .people-modal__dialog {
    border-radius: 12px;
    padding: 0.95rem 0.85rem 1.1rem;
  }
}

@media screen and (max-width: 520px) {
  .people-modal__header {
    grid-template-columns: 1fr;
  }

  .people-modal__photo {
    width: 118px;
  }

  .people-modal__intro {
    text-align: left;
  }

  .people-profile {
    grid-template-columns: 1fr;
  }

  .people-profile-photo {
    width: min(220px, 100%);
  }
}
