body {
  font-family: 'Noto Sans', sans-serif;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
  margin: 0.5rem auto 0;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.navbar-item {
  font-family: 'Google Sans', sans-serif;
}

/* Paper-page additions (cohort Nerfies style) */
:root {
  --cb-blue: #1f77b4;
  --cb-orange: #d95f02;
  --panel-blue: #deebf7;
  --panel-orange: #fde7d9;
}

.takeaway {
  background: #f5f5f5;
  border-left: 5px solid hsl(204, 86%, 53%);
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
  margin: 1.2rem 0;
}

.takeaway p:last-child {
  margin-bottom: 0;
}

.figure-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  text-align: left;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.5rem 0 0.75rem;
}

.results-table th,
.results-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e4e4e4;
  text-align: center;
}

.results-table thead th {
  border-bottom: 2px solid #333;
  font-family: 'Google Sans', sans-serif;
}

.results-table td:first-child,
.results-table th:first-child {
  text-align: left;
}

.results-table tbody tr:hover {
  background: #fafafa;
}

.cell-pos {
  color: var(--cb-blue);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.faq-item {
  margin-bottom: 1.2rem;
}

.faq-item h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* Example browser (judge-viewer style, light Nerfies chrome) */
.example-browser {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  min-height: 520px;
  max-height: 720px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ex-sidebar {
  width: 280px;
  min-width: 240px;
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ex-controls {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ex-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
}

.ex-controls select,
.ex-controls input[type="search"] {
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  background: #fff;
  width: 100%;
}

.ex-status {
  font-size: 0.75rem;
  color: hsl(204, 86%, 40%);
  min-height: 1.1em;
  line-height: 1.35;
}

.ex-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem;
}

.ex-entry {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.15rem;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
}

.ex-entry:hover {
  background: #f0f0f0;
}

.ex-entry.is-active {
  background: #e8f2fa;
  border-color: #b9d6eb;
}

.ex-entry-idx {
  display: block;
  font-size: 0.72rem;
  color: #888;
}

.ex-entry-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #333;
  margin-top: 0.15rem;
}

.ex-entry-hm {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: hsl(204, 86%, 40%);
}

.ex-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ex-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.ex-meta {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.ex-meta strong {
  color: #222;
}

.ex-meta code {
  font-size: 0.78rem;
  background: #f3f3f3;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.ex-counter {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}

.ex-nav {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ex-nav button {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: 'Google Sans', sans-serif;
}

.ex-nav button:hover:not(:disabled) {
  background: #f5f5f5;
}

.ex-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

.ex-condition-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  background: #fbfbfb;
  flex-shrink: 0;
}

.ex-toggle {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.ex-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #555;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.ex-toggle button.is-active {
  background: #363636;
  color: #fff;
}

.ex-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ex-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  background: #fff;
}

.ex-chip .k {
  color: #888;
  font-weight: 600;
}

.ex-chip .v {
  font-weight: 700;
  color: #222;
}

.ex-chip.is-hm {
  border-color: #b9d6eb;
  background: #e8f2fa;
}

.ex-chat {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 1.75rem;
}

.ex-turn {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.ex-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.ex-avatar.user {
  background: #6c5ce7;
}

.ex-avatar.assistant {
  background: hsl(204, 86%, 45%);
}

.ex-turn-body {
  flex: 1;
  min-width: 0;
}

.ex-turn-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.35rem;
}

.ex-turn-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #222;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.ex-rationale {
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #555;
  white-space: pre-wrap;
}

.ex-rationale strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #333;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ex-empty {
  color: #888;
  text-align: center;
  padding: 2rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .example-browser {
    flex-direction: column;
    max-height: none;
  }

  .ex-sidebar {
    width: 100%;
    min-width: 0;
    max-height: 280px;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
  }
}

.method-eq {
  font-family: Castoro, Georgia, serif;
  text-align: center;
  margin: 0.75rem 0;
}

.bibtex-block {
  position: relative;
}

.bibtex-block .button.copy {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
}

pre.bibtex {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.disabled-link {
  opacity: 0.55;
  pointer-events: none;
}

/* ---- Embedded 3D PCA explorer ---- */
.explorer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}

#pca-plot {
  width: 100%;
  height: min(68vh, 600px);
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
}

.explorer-wrap .controls {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0 1.25rem;
}

.explorer-wrap .control-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: left;
}

.explorer-wrap .control-card h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.explorer-wrap .control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.explorer-wrap .control-row label {
  font-size: 0.92rem;
  color: #444;
}

.explorer-wrap .swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.explorer-wrap .meta-line {
  color: #666;
  font-size: 0.92rem;
  margin-top: 0.75rem;
}

.explorer-wrap select {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.25rem 0.4rem;
  max-width: 100%;
}

.explorer-wrap .pending {
  color: #999;
  font-style: italic;
}

@media (max-width: 800px) {
  .explorer-wrap .controls {
    grid-template-columns: 1fr;
  }

  #pca-plot {
    height: 480px;
  }
}
