/* Typography */
body { font-family: 'Inter', sans-serif; }

.publication-title {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 700;
}

.publication-authors { margin-top: 0.75rem; }
.author-block a { color: #363636; text-decoration: none; border-bottom: 1px dotted #363636; padding-bottom: 1px; }
.author-block a:hover { color: #2563eb; }
.eql-cntrb { color: #888; }

/* Publication links */
.publication-links { margin-top: 1rem; }
.publication-links .button { margin: 0.25rem; }

/* Key stats */
.stat-box {
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: #f5f7ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.4rem;
}

/* Explorer controls */
.explorer-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

.control-group { display: flex; flex-direction: column; gap: 0.4rem; }

.control-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.04em;
}

.dataset-search-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.dataset-search-wrap .input { width: 100px; }
.dataset-search-wrap .select select { min-width: 86px; max-width: 86px; }
.dice-btn { padding: 0 0.5rem; color: #888; }
.dice-btn:hover { color: #2563eb; }

/* Split / Y-axis radio buttons */
.split-buttons { display: flex; gap: 0.25rem; }

.split-btn {
  padding: 0.3rem 0.75rem;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
}
.split-btn input[type=radio] { display: none; }
.split-btn:has(input:checked),
.split-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Learner dropdown */
.learner-dropdown-wrap { position: relative; }

.learner-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.35rem 0;
}
.learner-dropdown-panel.open { display: block; }

/* Learner items inside dropdown */
.learner-flat-grid { display: flex; flex-direction: column; }

.learner-cb-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.83rem;
  padding: 0.28rem 0.85rem;
  transition: background 0.1s;
  white-space: nowrap;
}
.learner-cb-label:hover { background: #f0f4ff; }
.learner-cb-label input[type=checkbox] { margin: 0; flex-shrink: 0; }

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Split line icons */
.line-icon {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top-width: 2px;
  border-top-style: solid;
  vertical-align: middle;
  margin: 0 4px 1px 2px;
  border-color: currentColor;
}
.line-icon.dashed { border-top-style: dashed; }

/* Dataset title above chart */
.dataset-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.6rem;
  min-height: 1.3em;
}

/* Chart */
.chart-box { position: relative; padding: 1.25rem; }

.chart-wrap { position: relative; height: 420px; }

.chart-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: #888;
  z-index: 10;
}

/* BibTeX */
.bibtex-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

#bibtex-code {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .publication-title { font-size: 1.4rem; }
  .explorer-controls { flex-direction: column; gap: 1rem; }
  .chart-wrap { height: 300px; }
  .stat-number { font-size: 2rem; }
  .learner-dropdown-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    border-radius: 12px 12px 0 0; max-height: 60vh; min-width: unset; }
}
