/* FlexiAvatar project page custom styles */
:root {
  --flexi-primary: #4361ee;
  --flexi-accent: #f72585;
  --flexi-green: #2ec27e;
  --flexi-ink: #1b1f3b;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: #2a2a2a;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  background: linear-gradient(90deg, #4361ee 0%, #7209b7 55%, #f72585 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.subtitle-tagline {
  color: #555;
  font-weight: 400;
}

.venue-badge {
  display: inline-block;
  background: linear-gradient(90deg, #4361ee, #7209b7);
  color: #fff;
  border-radius: 999px;
  padding: 0.25em 1.1em;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 14px rgba(67, 97, 238, 0.25);
}

.title.is-3 {
  font-family: 'Google Sans', sans-serif;
  color: var(--flexi-ink);
}
.title.is-4 {
  font-family: 'Google Sans', sans-serif;
  color: var(--flexi-ink);
}

/* Visibility-spectrum chips */
.spectrum {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1.2rem 0 0.4rem;
}
.spectrum .chip {
  background: #eef2ff;
  border: 1px solid #d6deff;
  color: #3a45a8;
  border-radius: 10px;
  padding: 0.45em 1em;
  font-weight: 600;
  font-size: 0.95rem;
}
.spectrum .chip .arrow { color: #aab; }

/* Method component cards */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.method-card {
  background: #fff;
  border: 1px solid #ececf5;
  border-radius: 16px;
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 0 6px 22px rgba(27, 31, 59, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(67, 97, 238, 0.14);
}
.method-card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4361ee, #7209b7);
  color: #fff;
  font-weight: 700;
  font-family: 'Google Sans', sans-serif;
  margin-bottom: 0.7rem;
}
.method-card h4 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: var(--flexi-ink);
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}
.method-card p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

/* Highlight callout */
.callout {
  background: linear-gradient(120deg, #eef2ff 0%, #fdeef6 100%);
  border-left: 4px solid var(--flexi-primary);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0;
  font-size: 1.02rem;
}

/* Result tables */
.result-table-wrap { overflow-x: auto; }
table.flexi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 auto;
}
table.flexi-table th, table.flexi-table td {
  padding: 0.55em 0.9em;
  text-align: center;
  border-bottom: 1px solid #ececf2;
}
table.flexi-table thead th {
  font-family: 'Google Sans', sans-serif;
  color: var(--flexi-ink);
  border-bottom: 2px solid #d9d9e6;
}
table.flexi-table td:first-child, table.flexi-table th:first-child {
  text-align: left;
  font-weight: 500;
}
table.flexi-table tr.ours {
  background: #eef7f1;
}
table.flexi-table tr.ours td {
  font-weight: 700;
  color: #1b6b46;
}
.gain { color: var(--flexi-green); font-weight: 600; }

figure.fig img {
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(27, 31, 59, 0.10);
}
figure.fig figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.8rem;
  text-align: center;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.6rem 0 0.4rem;
}
.stat {
  background: #fff;
  border: 1px solid #ececf5;
  border-radius: 14px;
  padding: 1.1rem 1.6rem;
  text-align: center;
  min-width: 150px;
  box-shadow: 0 6px 22px rgba(27, 31, 59, 0.05);
}
.stat .num {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4361ee, #f72585);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl { color: #666; font-size: 0.88rem; margin-top: 0.2rem; }

.section-tight { padding-top: 2rem; padding-bottom: 2rem; }

/* Video carousel (arrow buttons + dots) */
.vcar { position: relative; }

.vtabs-colhead {
  display: flex;
  margin-bottom: 0.5rem;
}
.vtabs-colhead span {
  flex: 1;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: var(--flexi-ink);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}

.vcar-viewport { position: relative; }
.vcar-video {
  width: 100%;
  border-radius: 14px;
  display: none;
  background: #000;
  box-shadow: 0 10px 32px rgba(27, 31, 59, 0.14);
}
.vcar-video.active { display: block; animation: vtfade 0.35s ease; }
@keyframes vtfade { from { opacity: 0; } to { opacity: 1; } }

/* Circular prev/next buttons */
.vcar-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e2ee;
  box-shadow: 0 3px 14px rgba(27, 31, 59, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #3a3a52;
  z-index: 3;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.vcar-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vcar-nav:hover {
  background: #fff;
  color: var(--flexi-primary);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}
.vcar-nav:focus-visible { outline: 2px solid var(--flexi-primary); outline-offset: 2px; }
.vcar-prev { left: 12px; }
.vcar-next { right: 12px; }

/* Dot indicators */
.vcar-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 0.9rem;
}
.vcar-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #cfd2e3;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.vcar-dot:hover { background: #a9b0d6; }
.vcar-dot.active {
  background: linear-gradient(135deg, #4361ee, #7209b7);
  transform: scale(1.3);
}

.vcar-label {
  text-align: center;
  margin-top: 0.55rem;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: var(--flexi-ink);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .vcar-nav { width: 36px; height: 36px; }
  .vcar-nav svg { width: 17px; height: 17px; }
  .vcar-prev { left: 6px; }
  .vcar-next { right: 6px; }
  .vtabs-colhead span { font-size: 0.78rem; }
}
