/* ---- LoQ project page: additions on top of bulma + template index.css ---- */

.publication-title { line-height: 1.15; }

/* Disabled placeholder buttons (arXiv / Code / Dataset before release) */
.button.is-disabled-link {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 0.5rem;
  border-radius: var(--border-radius, 12px);
  border: 1px solid var(--border-color, #e2e8f0);
  background: #fff;
}
.loq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.loq-table.is-compact { font-size: 0.8rem; }
.loq-table.is-narrow  { font-size: 0.9rem; }
.loq-table th,
.loq-table td {
  padding: 0.5rem 0.75rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.loq-table th:first-child,
.loq-table td:first-child { text-align: left; }
.loq-table thead th {
  background: var(--background-accent, #f1f5f9);
  color: var(--text-primary, #1e293b);
  font-weight: 700;
  border-bottom: 2px solid #cbd5e1;
  position: sticky;
  top: 0;
}
.loq-table tbody tr:hover { background: #f8fafc; }
.loq-table tr.grp td {
  background: var(--background-secondary, #f8fafc);
  text-align: left;
  color: var(--text-secondary, #64748b);
  font-size: 0.88em;
  letter-spacing: 0.02em;
}
.loq-table tr.best { background: #ecfdf5; }
.loq-table tr.best:hover { background: #d1fae5; }
.loq-table tr.alt td { color: var(--text-secondary, #64748b); }
.loq-table td[rowspan] { vertical-align: middle; font-weight: 600; }

.caption {
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  margin: 0.35rem 0 1.75rem;
  line-height: 1.5;
}
.small-note { font-size: 0.92rem; color: var(--text-secondary, #64748b); }

.loq-details {
  margin: 0.25rem 0 2rem;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--border-radius, 12px);
  padding: 0.6rem 1rem;
  background: #fff;
}
.loq-details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color, #2563eb);
  list-style-position: outside;
}
.loq-details[open] > summary { margin-bottom: 0.75rem; }

/* ---- Headline stats ---- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.stat-card {
  flex: 1 1 200px;
  background: #fff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--border-radius, 12px);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
}
.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-color, #2563eb);
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary, #64748b);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ---- Qualitative example cards (carousel) ---- */
.example-card {
  background: #fff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--border-radius-lg, 16px);
  padding: 1.5rem;
  margin: 0 0.5rem 1rem;
  text-align: left;
  height: 100%;
}
.example-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-color, #2563eb);
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.9rem;
}
.example-doc {
  background: var(--background-secondary, #f8fafc);
  border-left: 3px solid #cbd5e1;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.example-doc b { color: #b45309; font-weight: 700; }
.example-cols { display: flex; flex-wrap: wrap; gap: 1rem; }
.example-col { flex: 1 1 260px; }
.example-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--text-secondary, #64748b);
}
.example-col p, .example-col li { font-size: 0.95rem; line-height: 1.5; }
.example-col.vanilla p {
  background: #fef2f2;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin: 0;
}
.example-col.loq ol {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 0.75rem 0.9rem 0.75rem 2rem;
  margin: 0;
}
.example-col.loq li { margin-bottom: 0.3rem; }
.example-col.loq li:last-child { margin-bottom: 0; }

.results-carousel .item { padding: 0.25rem 0 2rem; }

/* ---- Code block ---- */
.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--border-radius, 12px);
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
}
.code-block code { background: none; color: inherit; padding: 0; }

/* ---- Figures ---- */
.section img, .hero-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .stat-num { font-size: 1.8rem; }
  .loq-table { font-size: 0.85rem; }
  .example-card { padding: 1rem; }
}
