:root{
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --panel-strong: #334155;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #2563eb;
  --accent2: #4f46e5;
  --accent-soft: #eff6ff;
  --link-color: #0b7d35;
  --link-hover-color: #075b27;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
  --radius-lg: 18px;
  --header-bg: rgba(249, 250, 251, 0.92);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --panel: #1e293b;
  --panel-strong: #ffffff;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #60a5fa;
  --accent2: #818cf8;
  --accent-soft: rgba(37, 99, 235, 0.15);
  --link-color: #4ade80;
  --link-hover-color: #22c55e;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(15, 23, 42, 0.92);
}

*{ box-sizing:border-box; }
html, body{ height:100%; scroll-behavior: smooth; }
html {
  overflow-x: hidden;
}
body{
  margin:0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height:1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
}

a{
  color: var(--link-color);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}
a:hover, a:focus{
  color: var(--link-hover-color);
  text-decoration: underline;
}

.container{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}
.container strong{
  color: var(--panel-strong);
}

.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:800;
  letter-spacing:0.2px;
  text-decoration: none;
}
.brand:hover{
  text-decoration: none;
}
.brand-text{
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.2s ease;
}
.brand:hover .brand-text{
  letter-spacing: 1.5px;
}
.brand-logo{
  height: 40px;
  width: auto;
  transition: all 0.2s ease;
}
.brand-logo:hover{
  transform: scale(1.05);
}
.brand-mark{
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}
.brand-sub{ color: var(--muted); font-weight:700; }

.nav{
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav a{
  color: var(--muted);
  font-weight:600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.nav a:hover{
  color: var(--text);
  background: var(--bg-elevated);
  text-decoration:none;
  box-shadow: var(--shadow-soft);
}
.nav-cta{
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

/* Theme toggle button */
.theme-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.theme-toggle:hover{
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  transform: rotate(15deg);
}
.theme-toggle .icon-sun{
  display: none;
}
.theme-toggle .icon-moon{
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-sun{
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon{
  display: none;
}

/* Topbar actions (theme toggle + hamburger) */
.topbar-actions{
  display: none;
  align-items: center;
  gap: 8px;
}
.theme-toggle-topbar{
  display: none;
}

.hero{
  padding: 64px 0 36px;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.4s ease;
}
.hero-collapsed{
  max-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.hero-inner{
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.pill{
  display:inline-flex;
  align-self:flex-start;
  margin:0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

h1{
  margin:0;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.15;
  letter-spacing: -0.5px;
  color: var(--muted);
}
.subtitle{
  display:block;
  margin-top: 10px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

.lead{
  margin:0;
  max-width: 900px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.button:hover{
  background: var(--bg-elevated);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration:none;
}
.button.primary{
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.button.primary:hover{
  background: var(--accent2);
  border-color: var(--accent2);
}

.hero-cards{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card{
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-title{
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.card-body{
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
  font-size: 0.95rem;
}

.section{
  padding: 50px 0;
}
.section.alt{
  background: radial-gradient(circle at top left, var(--accent-soft), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2{
  margin:0 0 14px;
  font-size: 28px;
  letter-spacing: -0.3px;
  color: var(--muted);
}
h3{
  margin:0 0 10px;
  font-size: 18px;
  color: var(--muted);
}
h4{
  margin:0 0 8px;
  font-size: 16px;
}

.panel{
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  margin-top: 16px;
  transition: all 0.3s ease;
}
.panel:hover{
  box-shadow: var(--shadow);
}
.panel p{ color: var(--muted); margin-top: 10px; line-height: 1.7; }

.grid-2{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items:start;
}

ul{ margin: 10px 0 0 2px; color: var(--muted); }
li{ margin: 6px 0; }

.muted{ color: var(--muted); }

.dates{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 10px;
}
.date-row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}
.date-row:hover{
  box-shadow: var(--shadow);
  transform: translateX(2px);
}
.date{
  color: var(--text);
  font-weight: 700;
}

.note{
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.62);
}

.topics{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.topic-block{
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  overflow: hidden;
}
.topic-block::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.topic-block:hover{
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.topic-block:hover::before{
  transform: scaleX(1);
}
.topic-block h4{
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  padding: 20px 24px 14px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.topic-block h4::before{
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.topic-block ul{
  margin: 0;
  padding: 20px 24px 24px;
  list-style: none;
  color: var(--muted);
}
.topic-block li{
  margin: 0;
  padding: 10px 0 10px 24px;
  line-height: 1.6;
  font-size: 0.94rem;
  position: relative;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.topic-block li:last-child{
  border-bottom: none;
  padding-bottom: 0;
}
.topic-block li::before{
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.topic-block li:hover{
  color: var(--text);
  padding-left: 28px;
}
.topic-block li:hover::before{
  transform: translateX(4px);
}

.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.person{
  display:flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
}
.person:last-of-type{
  border-bottom: none;
  padding-bottom: 0;
}
.person:first-of-type{
  padding-top: 0;
}
.person:hover{
  background-color: rgba(37, 99, 235, 0.02);
  padding-left: 12px;
  margin-left: -12px;
  margin-right: -12px;
  padding-right: 12px;
  border-radius: 8px;
}

/* Person with photo */
.person-with-photo{
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}
.person-photo{
  width: 90px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}
.person-with-photo:hover .person-photo{
  box-shadow: var(--shadow);
  transform: scale(1.02);
  border-color: #93c5fd;
}

.person-meta{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.person-name{
  font-weight: 700;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.person-affil{
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.9;
}
.person-links{
  margin-top: 4px;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.person-links a{
  color: var(--accent);
  font-weight: 600;
}
.person-links a:hover{
  color: var(--accent2);
}
.dot{
  margin: 0 4px;
  color: var(--muted);
  opacity: 0.5;
}

.list-columns{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.list-columns ul{ margin-top: 0; }

/* TPC Members styling */
.tpc-members{
  list-style: none;
  margin: 0;
  padding: 0;
}
.tpc-members li{
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.tpc-members li:last-child{
  border-bottom: none;
}
.tpc-members li:hover{
  background-color: rgba(37, 99, 235, 0.03);
  padding-left: 8px;
  margin-left: -8px;
  margin-right: -8px;
  padding-right: 8px;
  border-radius: 8px;
}
.member-name{
  font-weight: 700;
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.member-affil{
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 500;
}

/* Contact section */
.contact-info{
  margin: 16px 0;
}
.contact-person{
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-person .person-links a{
  color: var(--accent);
}
.contact-person .person-links a:hover{
  color: var(--accent2);
}
code{
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9em;
  color: var(--accent);
  font-weight: 600;
}

.footer{
  padding: 30px 0 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 14px 0 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-copyright{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-dot{
  color: var(--muted);
  opacity: 0.5;
}
.footer-links{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; }
.footer a{ color: var(--muted); font-weight: 600; transition: color 0.2s ease; }
.footer a:hover{ color: var(--text); text-decoration: none; }

/* Technical Support Banner */
.tech-support-banner{
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}
.tech-support-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tech-support-label{
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  opacity: 0.6;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tech-support-label::before,
.tech-support-label::after{
  content: '';
  width: 40px;
  height: 1px;
  background: var(--muted);
  opacity: 0.3;
}
.tech-support-logo{
  height: 90px;
  width: auto;
  object-fit: contain;
  padding: 10px 16px;
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}
.tech-support-logo:hover{
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

/* Pill badge styling */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-badge{
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill-conference{
  font-weight: 700;
  color: var(--muted) !important;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.pill-conference:hover{
  color: var(--accent) !important;
  text-decoration: underline;
}
.pill-sep{
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
  flex-shrink: 0;
}
.pill-detail{
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88rem;
}

/* Fade-in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .section {
  animation: fadeInUp 0.6s ease-out both;
}

.section:nth-of-type(2) {
  animation-delay: 0.1s;
}

.section:nth-of-type(3) {
  animation-delay: 0.2s;
}

/* Hamburger button - hidden on desktop */
.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}
.hamburger span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2){
  opacity: 0;
}
.hamburger.active span:nth-child(3){
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 900px){
  .hero-cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .list-columns{ grid-template-columns: 1fr; }
  .topics{ grid-template-columns: 1fr; }

  .topbar-actions{ display: flex; }
  .theme-toggle-topbar{ display: inline-flex; }
  .hamburger{ display: flex; }

  .nav{
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: navSlideDown 0.25s ease-out;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-open{
    display: flex;
  }
  .nav a{
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    width: 100%;
    font-size: 0.95rem;
    transition: background 0.15s ease, padding-left 0.15s ease;
  }
  .nav a:hover{
    background: var(--accent-soft);
    padding-left: 24px;
    box-shadow: none;
  }
  .nav a:last-of-type{
    border-bottom: none;
  }
  .nav-cta{
    margin: 10px 16px 8px;
    padding: 10px 20px;
    width: auto;
    align-self: flex-start;
    text-align: center;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
  }
  .nav-cta:hover{
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
  }
  /* Hide theme toggle from nav on mobile, shown in topbar-actions instead */
  .nav .theme-toggle{
    display: none;
  }
}

@media (max-width: 600px){
  .topic-block h4{ font-size: 16px; padding: 16px 20px 12px; }
  .topic-block ul{ padding: 16px 20px 20px; }
  .topic-block li{ font-size: 0.9rem; }

  .person-with-photo{
    flex-direction: row;
    align-items: flex-start;
  }
  .person-photo{
    width: 100px;
    height: 133px;
  }

  .footer-inner{
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 0.82rem;
  }
  .footer-copyright{
    justify-content: center;
  }
  .footer-links{
    justify-content: center;
  }
}

@media (max-width: 400px){
  .person-photo{
    width: 85px;
    height: 113px;
  }
}
