:root{
  --max: 1040px;
  --text: #111;
  --muted: #555;
  --line: #e9e9e9;
  --bg: #fff;
  --soft: #fafafa;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(0,0,0,0.06);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a{ color: inherit; }
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* Top nav */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #111;
  display: inline-block;
}
.nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a{
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 10px;
  color: #111;
}
.nav a:hover{ background: var(--soft); }
.nav a.active{
  background: #111;
  color: #fff;
}
.nav a.btn{
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
}
.nav a.btn:hover{ opacity: 0.9; }

/* Hero */
.hero{
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line);
}
.hero .inner{
  padding: 34px 0 22px;
}
.kicker{
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
h1{
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}
.meta{
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
}
.pill{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

/* Sections */
.section{
  padding: 26px 0;
}
.section h2{
  margin: 0 0 10px;
  font-size: 22px;
}
.section p{ margin: 8px 0; color: var(--text); }
.muted{ color: var(--muted); }
.hr{ border-top: 1px solid var(--line); margin: 18px 0; }

/* Cards */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card h3{ margin: 0 0 6px; font-size: 18px; }
.card p{ margin: 6px 0; color: var(--muted); }

/* Home layout */
.home-left{ grid-column: span 8; }
.home-right{ grid-column: span 4; }
@media (max-width: 860px){
  .home-left, .home-right{ grid-column: span 12; }
}

/* Table (Programme) */
.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}
th, td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th{
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #fbfbfb;
}
tr:last-child td{ border-bottom: 0; }
.time{ white-space: nowrap; color: var(--muted); font-weight: 700; }

/* Speaker cards */
.speaker{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.avatar{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f2f2f2;
  flex: 0 0 auto;
}
.speaker .name{ font-weight: 800; margin: 0; }
.speaker .affil{ margin: 2px 0 6px; color: var(--muted); }
.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tag{
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #333;
}

/* Footer */
.footer{
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.small{ font-size: 13px; }

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar.placeholder {
  background-color: #e6e6e6;
}

/* ===============================
   Funding / partner logos
================================ */

.funder-section{
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.logo-row{
  display: flex;
  flex-wrap: wrap;
  gap: 30px 50px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 18px;
}

.logo-row img{
  height: 72px;           /* ⬅️ 关键：整体放大 */
  width: auto;
  max-width: 240px;       /* 防止过宽 */
  object-fit: contain;
  display: block;
  opacity: 0.95;
  transition: all 0.2s ease;
}

.logo-row img:hover{
  opacity: 1;
  transform: translateY(-2px);
}

/* 针对方形 logo 微调 */
.logo-row img[alt*="Cardiff"]{
  height: 78px;           /* 红方块稍微大一点 */
}

/* 针对细长 logo 微调 */
.logo-row img[alt*="Great Ormond"]{
  height: 64px;
}

@media (max-width: 600px){
  .logo-row img{
    height: 52px;
  }
}


