:root {
  --blue-50: #f8fafc;
  --blue-100: #edf2f7;
  --blue-200: #d9e2ec;
  --blue-500: #4a6480;
  --blue-600: #344a63;
  --blue-900: #1b2a3a;

  --gray-50: #fcfcfb;
  --gray-100: #f6f5f2;
  --gray-200: #e7e5df;
  --gray-400: #8c8a84;
  --gray-800: #2a2a28;

  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(27, 42, 58, 0.10);

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 28px rgba(20, 28, 38, 0.06);
  --shadow-subtle: 0 6px 16px rgba(20, 28, 38, 0.05);

  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;

  --accent-yellow: #FFDD33;
  --accent-yellow-2: #FFF3A3;
  --accent-yellow-3: #E6C400;
  --accent-ink: #2d2a22;
  --accent-ink-strong: #181611;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(74, 100, 128, 0.05), transparent 55%),
    radial-gradient(900px 500px at 90% 15%, rgba(52, 74, 99, 0.04), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #fdfefe 100%);
  color: var(--gray-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Book-cover wave background (very subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("./dynamic-blue-wave-shape-background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.035;
  filter: saturate(0.7) contrast(0.95);
  pointer-events: none;
  z-index: -2;
}

/* soft white veil to keep readability */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.97) 50%,
    rgba(255, 255, 255, 0.95) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(27, 42, 58, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f4f7ff, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.logo-text {
  font-size: 0.9rem;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  margin: 0;
  font-size: clamp(1.06rem, 1.9vw, 1.24rem);
  color: var(--blue-900);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.site-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #7f848d;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(244, 244, 242, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(27, 42, 58, 0.08);
}


.nav-item {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: #7d8793;
}


.nav-item:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue-900);
}

.nav-item.active {
  background: linear-gradient(135deg, #7ea6d1, #5f86b3);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(95, 134, 179, 0.18);
}

.main-content {
  width: 100%;
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 28px 72px;
  flex: 1;
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

.hero-card {
  background: linear-gradient(135deg,
  rgba(255,255,255,0.98),
  rgba(255,255,255,0.96)
  );
  border-radius: 14px;
  padding: 34px 30px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(27, 42, 58, 0.08);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-cover {
  display: flex;
  justify-content: flex-end;
}

.cover-image {
  width: min(320px, 100%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
  transform: translateY(2px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.16), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(233, 238, 244, 0.85);
  color: #4a6480;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(27, 42, 58, 0.08);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  color: #182334;
  letter-spacing: -0.03em;
  line-height: 1.22;
  font-weight: 800;
}

.hero-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.85;
  color: #495465;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(27, 42, 58, 0.08);
  box-shadow: 0 8px 20px rgba(20, 28, 38, 0.04);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.info-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--blue-900);
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #334155;
}

.section-title {
  margin: 2px 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #172554;
}

.section-subtext {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.timeline {
  margin-top: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 22px;
  border: 1px solid rgba(27, 42, 58, 0.08);
  box-shadow: 0 8px 20px rgba(20, 28, 38, 0.04);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-size: 0.94rem;
  font-weight: 800;
  color: #344a63;
}

.timeline-content h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #1e293b;
}

.timeline-content p {
  margin: 0;
  font-size: 0.92rem;
  color: #7b8aa0;
  line-height: 1.6;
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.filter-bar {
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  background: rgba(241, 245, 249, 0.9);
  color: var(--gray-400);
  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

.filter-btn:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.filter-btn.active {
  background: linear-gradient(135deg, #3b6cff, #2f5bdf);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(59, 108, 255, 0.22);
  transform: translateY(0);
}

.table-wrapper {
  margin-top: 12px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  border: none;
}

.participant-list {
  padding: 18px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.participant-card {
  width: 100%;
  display: flex;
  border-bottom: none;
  position: relative;
}

.participant-card-inner {
  max-width: 520px;
  width: 100%;
  padding: 26px 0 28px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  position: relative;
}

.participant-card-inner::before {
  display: none;
}

.participant-label {
  font-weight: 600;
  color: #7a848f;
  letter-spacing: -0.01em;
}

.participant-value {
  color: #24303f;
  word-break: keep-all;
  line-height: 1.7;
}

.participant-card-inner:hover {
  transform: none;
  box-shadow: none;
}

.participant-card.card-left {
  justify-content: flex-start;
  padding-right: 220px;
}

.participant-card.card-right {
  justify-content: flex-end;
  padding-left: 220px;
}

.participant-field {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  column-gap: 22px;
  row-gap: 4px;
  font-size: 0.95rem;
}

.participant-field + .participant-field {
  margin-top: 10px;
}

.participant-value.muted {
  color: var(--gray-400);
}

.publication-card {
  margin-top: 8px;
  padding: 32px 28px;
  border-radius: 16px;
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(255,255,255,0.76), transparent 60%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent-yellow) 35%, transparent),
      color-mix(in srgb, var(--accent-yellow-2) 35%, transparent),
      color-mix(in srgb, var(--accent-yellow-3) 35%, transparent)
    );
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  text-align: left;
}

.publication-card .section-title {
  color: var(--accent-ink-strong);
  -webkit-text-stroke: 0px transparent;
  text-shadow: none;
  font-weight: 1000;
}

.publication-card .section-subtext {
  color: rgba(36, 48, 66, 0.78);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(36, 48, 66, 0.10);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.publication-card .primary-button:hover {
  transform: translateY(-1px);
  background: var(--accent-yellow-3);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.site-footer {
  margin-top: auto;
  padding: 40px 12px 28px;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .site-header {
    margin: 0;
    padding: 0;
  }

  .header-inner {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-area {
    gap: 12px;
  }

  .logo-circle {
    width: 46px;
    height: 46px;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .site-subtitle {
    font-size: 0.78rem;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav .nav-item {
    flex: 1;
  }

  .hero-card {
    padding: 22px 18px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    justify-content: flex-start;
  }

  .cover-image {
    width: min(320px, 100%);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transform: none;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .participant-list {
    padding: 14px 12px 18px;
  }

  .participant-card-inner {
    max-width: none;
  }

  .participant-field {
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 14px;
  }
}

.image-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-popup.hidden {
  display: none;
}

.popup-overlay {
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(4px);
}

.popup-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  overflow: auto;
  padding: 24px 10px;
}

#popup-close {
  position: fixed;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

#popup-images img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.sample-btn {
  background-color: transparent;
  border: 1px solid rgba(109, 120, 131, 0.28);
  color: #556270;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.sample-btn:hover {
  background-color: rgba(255,255,255,0.7);
  border-color: rgba(74, 100, 128, 0.34);
  color: #2f4153;
}

.sample-wrapper {
  position: relative;
  display: block;
  width: 80%;
  max-width: 500px;
  margin: 14px auto;
}

.sample-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.sample-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.04) 0px,
    rgba(0,0,0,0.04) 40px,
    transparent 40px,
    transparent 80px
  );
}

.section-subtext a {
  color: #5b4bb7;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.section-subtext a:hover {
  color: #4338ca;
}

.participant-value .sample-btn {
  margin-left: 8px;
}

.participant-value,
.participant-value.muted {
  max-width: 52ch;
}

.participant-card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: rgba(27, 42, 58, 0.08);
}

@media (max-width: 768px) {
  .participant-card.card-left,
  .participant-card.card-right {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
  }
}

.participant-card:last-child::after {
  display: none;
}