:root {
  --hk-green: #176b4d;
  --hk-green-dark: #0f4f39;
  --hk-green-soft: #edf6f1;
  --hk-ink: #1f2925;
  --hk-muted: #66736c;
  --hk-line: #dce6e0;
  --hk-paper: #fbfdfc;
}

body {
  color: var(--hk-ink);
  background: var(--hk-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.68;
}

a { color: var(--hk-green); }
a:hover { color: var(--hk-green-dark); }

/* Left-hand site navigation */
#quarto-sidebar {
  background: #f6faf7 !important;
  border-right: 1px solid var(--hk-line);
}
#quarto-sidebar .sidebar-title {
  color: var(--hk-green-dark);
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -.02em;
}
#quarto-sidebar .sidebar-navigation {
  padding-top: .65rem;
}
#quarto-sidebar .sidebar-item {
  margin: .12rem 0;
}
#quarto-sidebar .sidebar-link {
  color: #35443d;
  border-radius: 6px;
  font-size: 1.08rem;
  line-height: 1.35;
  padding-top: .36rem;
  padding-bottom: .36rem;
}
#quarto-sidebar .sidebar-link:hover {
  color: var(--hk-green);
  background: var(--hk-green-soft);
}
#quarto-sidebar .sidebar-link.active,
#quarto-sidebar .sidebar-item-container .active {
  color: var(--hk-green-dark) !important;
  font-weight: 700;
}
#quarto-sidebar .sidebar-item-section > .sidebar-item-container {
  margin-top: .55rem;
  font-size: 1.08rem;
  font-weight: 650;
}

main.content { max-width: 1050px; }

h1, h2, h3 { color: #17372a; letter-spacing: -.02em; }
h1 { font-weight: 720; }
h2 {
  margin-top: 2.2rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--hk-line);
}

.hero-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.6rem 1.5rem 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 2.6rem;
  align-items: center;
}
.hero-kicker {
  color: var(--hk-green);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(3.1rem, 5.7vw, 6rem);
  line-height: .95;
  margin: .55rem 0 1.25rem;
  letter-spacing: -.06em;
  font-weight: 780;
  color: #153629;
}
.hero-copy {
  max-width: 720px;
  font-size: 1.12rem;
  color: #52625a;
}
.hero-image {
  display: block;
  width: 100%;
  max-width: 650px;
  height: auto;
  justify-self: end;
  object-fit: contain;
  border-radius: 6px;
}

.section-wide { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin: 1.3rem 0 2rem;
}
.hk-card {
  background: white;
  border: 1px solid var(--hk-line);
  border-radius: 11px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 4px 18px rgba(26,72,51,.035);
}
.hk-card h3 { margin-top: 0; font-size: 1.13rem; }
.hk-card p:last-child { margin-bottom: 0; }
.hk-tag {
  display: inline-block;
  background: var(--hk-green-soft);
  color: var(--hk-green-dark);
  border-radius: 100px;
  padding: .18rem .6rem;
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: .45rem;
}

.person-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.person {
  background: #fff;
  border-left: 3px solid var(--hk-green);
  padding: .9rem 1rem;
}
.person strong { display:block; font-size:1.05rem; color:#18392b; }
.person span { color: var(--hk-muted); font-size:.94rem; }

.video-frame { margin: 1.4rem 0 1.8rem; }
.video-frame video {
  width: 100%;
  max-height: 620px;
  background: #08150f;
  border-radius: 8px;
}
.video-caption {
  color: var(--hk-muted);
  font-size: .92rem;
  line-height: 1.45;
  margin-top: .5rem;
}
.reference-list { font-size: .94rem; }

.notice {
  background: var(--hk-green-soft);
  border-left: 4px solid var(--hk-green);
  padding: 1rem 1.1rem;
  border-radius: 0 7px 7px 0;
}

.quarto-listing-default .listing-title a { color: #17372a; font-weight: 700; }
.quarto-listing-default .listing-description { color: var(--hk-muted); }

footer.footer { background: #f4f8f5; border-top: 1px solid var(--hk-line) !important; }

@media (max-width: 991.98px) {
  .hero-wrap { grid-template-columns: 1fr; padding-top: 2.6rem; }
  .hero-image { justify-self: start; max-width: 100%; }
  .hero-title { font-size: clamp(3rem, 13vw, 5rem); }
  .card-grid { grid-template-columns: 1fr; }
  .person-list { grid-template-columns: 1fr; }
}


/* Group member photo cards */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0 2rem;
}
.member-card {
  background: #fff;
  border: 1px solid var(--hk-line);
  border-radius: 12px;
  padding: 1.15rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(26,72,51,.035);
}
.member-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto .9rem;
  border: 3px solid var(--hk-green-soft);
}
.member-name {
  color: #18392b;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}
.member-role {
  margin-top: .28rem;
  color: var(--hk-green-dark);
  font-size: .95rem;
  font-weight: 650;
}
.member-topic {
  margin-top: .22rem;
  color: var(--hk-muted);
  font-size: .9rem;
  line-height: 1.35;
}
@media (max-width: 650px) {
  .member-grid { grid-template-columns: 1fr; }
}


/* Simulation Highlights preview cards */
.quarto-listing-container-grid .card {
  overflow: hidden;
  border: 1px solid var(--hk-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(26,72,51,.04);
}
.quarto-listing-container-grid .card-img-top,
.quarto-listing-container-grid .thumbnail-image,
.quarto-grid-item .thumbnail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
}
.quarto-listing-container-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,72,51,.08);
  transition: transform .16s ease, box-shadow .16s ease;
}


/* Research section figures */
.research-figure {
  margin: 1.15rem 0 1.55rem;
}
.research-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  margin: 0;
  border: 1px solid var(--hk-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(26,72,51,.035);
}
