:root {
  /* Ant Group–inspired palette (see https://www.antgroup.com/ — theme #1677FF) */
  --ant-primary: #1677ff;
  --ant-primary-hover: #4096ff;
  --ant-primary-active: #0958d9;
  --ant-text: #383735;
  --ant-text-secondary: rgba(56, 55, 53, 0.65);
  --ant-bg-soft: #f5f5f5;
  --ant-primary-bg: #e6f4ff;

  --bg: #ffffff;
  --surface: #ffffff;
  --line: #f0f0f0;
  --line-strong: #d9d9d9;
  --title: #0958d9;
  --text: #383735;
  --muted: rgba(56, 55, 53, 0.65);
  --chip-bg: #f5f5f5;
  --chip-text: rgba(56, 55, 53, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  line-height: 1.58;
}

a {
  color: var(--ant-primary);
  text-decoration: none;
}

a:hover {
  color: var(--ant-primary-hover);
  text-decoration: underline;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(56, 55, 53, 0.06);
}

.nav-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem 0.9rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.nav-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.nav-title__logo {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.nav-title__brand {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ant-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  margin-left: 0;
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  white-space: nowrap;
}

.nav-links a {
  color: var(--ant-text);
  font-size: 0.88rem;
  padding: 0.22rem 0.42rem;
  border-radius: 2px;
}

.nav-links a:hover {
  background: var(--ant-primary-bg);
  color: var(--ant-primary);
  text-decoration: none;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.2rem 2.4rem;
}

main > .card + .card {
  margin-top: 0.8rem;
}

.hero-banner {
  text-align: center;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.title-with-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.35rem;
  flex-wrap: wrap;
}

/* Hero: capped logo columns so the title stays on one line; center gets remaining width */
.title-with-logos--hero {
  display: grid;
  grid-template-columns: minmax(0, 8.75rem) minmax(0, 1fr) minmax(0, 8.75rem);
  align-items: center;
  column-gap: clamp(0.5rem, 2vw, 1.25rem);
  row-gap: 0.55rem;
  width: 100%;
}

.title-with-logos__heading {
  flex: 1 1 14rem;
  text-align: center;
  margin: 0;
  min-width: min(100%, 12rem);
}

.title-with-logos--hero .title-with-logos__heading {
  grid-column: 2;
  grid-row: 1;
  flex: unset;
  min-width: 0;
}

.title-with-logos__mark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.title-with-logos--hero .title-with-logos__mark:first-of-type {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 8.25rem;
  height: auto;
  max-height: clamp(4.25rem, 11vw, 6.75rem);
  object-position: center right;
}

.title-with-logos--hero .title-with-logos__mark:last-of-type {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  width: 100%;
  max-width: 8.25rem;
  height: auto;
  max-height: clamp(4.25rem, 11vw, 6.75rem);
  object-position: center left;
}

.hero-banner .title-with-logos__heading {
  margin: 0;
  color: var(--ant-text);
  font-size: clamp(1rem, 1.35vw + 0.72rem, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
}

.hero-banner p {
  margin-top: 0.35rem;
  color: var(--ant-text-secondary);
  font-size: 0.95rem;
}

.hero {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1rem;
}

.hero-copy,
.hero-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.hero-copy {
  padding: 1rem 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.eyebrow-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ant-primary-active);
}

.eyebrow-pill {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.08rem 0.52rem;
  font-size: 0.74rem;
  color: var(--chip-text);
}

.hero h1 {
  margin: 0.45rem 0 0.42rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.25;
  color: var(--ant-text);
}

.hero h1 span.highlight {
  color: var(--ant-primary);
}

.hero-subtitle {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
}

.hero-kpis {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.kpi {
  min-width: 110px;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 2px;
  padding: 0.34rem 0.5rem;
}

.kpi-main {
  color: var(--ant-primary-active);
  font-size: 1.05rem;
  font-weight: 700;
}

.kpi-label {
  margin-top: 0.08rem;
  font-size: 0.73rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn-primary,
.btn-ghost {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.32rem 0.7rem;
  font-size: 0.82rem;
  color: #333;
  background: #f7f7f7;
}

.btn-primary {
  background: var(--ant-primary);
  border-color: var(--ant-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-ghost:hover {
  background: #ebebeb;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--ant-primary-hover);
  border-color: var(--ant-primary-hover);
  color: #fff;
}

.hero-panel {
  padding: 0.95rem 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 2px;
  font-size: 0.72rem;
  padding: 0.09rem 0.46rem;
}

.hero-panel h2 {
  margin: 0.55rem 0 0.2rem;
  color: var(--title);
  font-size: 1.06rem;
}

.hero-panel p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text);
}

.hero-tracks {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.track-card {
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 2px;
  padding: 0.46rem 0.5rem;
}

.track-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ant-primary-active);
}

.track-title {
  margin-top: 0.16rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ant-primary-active);
}

.track-body {
  margin-top: 0.14rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.track-tags {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.23rem;
}

.track-tag {
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 2px;
  font-size: 0.66rem;
  padding: 0.08rem 0.38rem;
}

.hero-meta {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--muted);
}

.badge-soft {
  border: 1px solid #d9d9d9;
  background: #f5f5f5;
  color: #666;
  border-radius: 2px;
  padding: 0.1rem 0.45rem;
}

.grid-two,
.grid-three {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.95rem;
}

.card {
  padding: 0.95rem 1rem;
}

.card p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.no-wrap {
  white-space: nowrap;
}

.overlook-figure {
  margin: 0;
}

.overlook-section {
  margin-top: 0.8rem;
}

.overlook-figure img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
  display: block;
}

.card > .card-title + .people-intro {
  margin-top: 0.35rem;
}

.people-intro {
  color: var(--muted);
  font-size: 0.86rem;
}

.people-intro a:hover {
  text-decoration: underline;
}

.people-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 1.35rem 1rem;
  justify-items: center;
  text-align: center;
}

/* Organisers: single row of 4 */
.people-grid--organisers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: auto;
}

/* Challenge Chairs: fixed 4 columns (auto wraps to next row) */
.people-grid--chairs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.person {
  max-width: 180px;
}

.person-photo {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background-color: #ffffff;
  flex-shrink: 0;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias upward so cropped circle emphasizes face (MER-style headshots) */
  object-position: center 22%;
  display: block;
}

.person-photo--focus-up img {
  object-position: center 12%;
}

/* Bohan Yu: preserve source aspect ratio inside the circle (letterboxing if needed) */
.person-photo--bohan img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.person-photo--face-lg img {
  transform: scale(1.1);
  transform-origin: center 22%;
}

.person-photo--focus-up.person-photo--face-lg img {
  transform-origin: center 12%;
}

.person-photo--face-xl img {
  transform: scale(1.22);
  transform-origin: center 22%;
}

.person-photo--focus-up.person-photo--face-xl img {
  transform-origin: center 12%;
}

.person-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ant-primary);
  line-height: 1.3;
}

.card .person .person-affil {
  margin: 0.18rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.card header {
  position: static;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  color: var(--title);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #eeeeee;
}

.card-subtitle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.87rem;
}

.list li {
  margin-bottom: 0.26rem;
}

.chips {
  margin-top: 0.48rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 2px;
  padding: 0.08rem 0.45rem;
  font-size: 0.7rem;
}

.accent-chip {
  border-color: #91caff;
  background: var(--ant-primary-bg);
  color: var(--ant-primary-active);
}

.schedule-grid,
.topics-grid,
.people-columns {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.schedule-item,
.topics-item {
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 2px;
  padding: 0.42rem 0.5rem;
}

.schedule-label,
.people-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ant-text-secondary);
}

.schedule-time {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ant-primary-active);
}

.schedule-desc,
.topics-item p,
.tagline {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.topics-item strong {
  font-size: 0.82rem;
  color: var(--ant-primary-active);
}

.people-list {
  margin: 0.2rem 0 0;
  padding-left: 1rem;
  font-size: 0.82rem;
}

.people-list li {
  margin-bottom: 0.25rem;
}

.people-list li span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .hero,
  .grid-two,
  .grid-three {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .title-with-logos--hero {
    grid-template-columns: minmax(0, 6rem) minmax(0, 1fr) minmax(0, 6rem);
    column-gap: 0.45rem;
  }

  .title-with-logos--hero .title-with-logos__mark:first-of-type,
  .title-with-logos--hero .title-with-logos__mark:last-of-type {
    max-width: 5.65rem;
    max-height: clamp(3.25rem, 11vw, 5rem);
  }

  .hero-banner .title-with-logos__heading {
    font-size: clamp(0.85rem, 1.05vw + 0.58rem, 1.28rem);
    white-space: normal;
    text-wrap: balance;
    padding-inline: 0.2rem;
  }
}

@media (max-width: 720px) {
  main {
    padding-inline: 0.8rem;
  }

  .nav-inner {
    padding-inline: 0.8rem;
  }

  .nav-links {
    display: none;
  }

  .hero-tracks,
  .schedule-grid,
  .topics-grid,
  .people-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .people-grid--organisers {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .people-grid--chairs {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }


  .title-with-logos--hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    justify-items: stretch;
  }

  .title-with-logos--hero .title-with-logos__heading {
    grid-column: 1 / -1;
    grid-row: 1;
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(1rem, 4.2vw, 1.38rem);
    padding-inline: 0;
  }

  .title-with-logos--hero .title-with-logos__mark:first-of-type {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    max-width: 7.5rem;
    max-height: clamp(4rem, 22vw, 6.5rem);
    object-position: center;
  }

  .title-with-logos--hero .title-with-logos__mark:last-of-type {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    max-width: 7.5rem;
    max-height: clamp(4rem, 22vw, 6.5rem);
    object-position: center;
  }
}

