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 {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.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;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

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

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

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

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* ----------------------------
   Gallery (top 6) - no dead space, clear selection
---------------------------- */
.image-gallery {
  /* border: 1px solid #e6e8eb; */
  border-radius: 14px;
  background: white;
  padding: 10px;
  height: auto;              /* match chat height */
  overflow: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.thumb {
  position: relative;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #f7f8fa;
  cursor: pointer;
  height: 150px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  border-color: #dbe3ee;
}

.thumb.is-selected {
  border-color: hsl(204, 86%, 53%);
  box-shadow: 0 0 0 3px rgba(50,115,220,0.18), 0 12px 26px rgba(0,0,0,0.10);
}

.thumb-overlay {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
}

.gallery-title { margin-bottom: 0.3rem !important; text-align: center; }
p.gallery-title { margin-top: -0.2rem; }

/* ----------------------------
   Chat (auto-generated)
---------------------------- */
.chat-window.box {
  /* background: #f5f7f9; */
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  height: 543px;
  display: flex;
  flex-direction: column;
}

.chat-window {
  position: relative;
}


.chat-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.95); /* Matches your white theme */
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 300ms ease;
  border-radius: 14px; /* Matches the parent container rounding */
}

/* Ensure it disappears correctly when hidden */
.chat-placeholder.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Optional: Slight animation to the icon while waiting */
.chat-placeholder .icon i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}


.chat-header {
  background: white;
  border-bottom: 1px solid #eef0f3;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #111827;
}

.chat-subtitle {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.chat-box {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

/* Chat placeholder overlay */
.chat-box {
  position: relative; /* allows absolute overlay */
}

.chat-messages {
  min-height: 100%;
}


/* MINI section tweaks */
.mini-stimuli-box {
  box-shadow: none !important;
  border: none !important;
}

.mini-instructions {
  margin-top: 18px;
}


.msg-row {
  display: flex;
  margin-bottom: 10px;
}

.msg-row.user { justify-content: flex-end; }
.msg-row.bot { justify-content: flex-start; }

.bubble {
  max-width: 85%;
  border-radius: 14px;
  padding: 10px 12px;
  line-height: 1.35rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.bubble.user {
  background: hsl(204, 86%, 53%);
  color: white;
  border-top-right-radius: 6px;
}

.bubble.bot {
  background: white;
  color: #111827;
  border-top-left-radius: 6px;
}

.bubble .brain-region {
  font-weight: 800;
  color: #f59e0b !important; /* orange */
}


.brain-region {
  font-weight: 800;
  color: #d97706;
}

.typing-indicator {
  background: white;
  border-top: 1px solid #eef0f3;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #000000;
}

/* ----------------------------
   Brain viewer panel
---------------------------- */
.brain-panel {
  margin: 14px auto 0 auto;
  /* border: 1px solid #e6e8eb; */
  border-radius: 14px;
  overflow: hidden;
  width: 57%;
  display: block;
}

.brain-header {
  background: white;
  /* border-bottom: 1px solid #eef0f3; */
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brain-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #111827;
}

.brain-subtitle {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.brain-viewer {
  width: 100%;
  height: 340px;
}

.brain-viewer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.roi-strip {
  background: white;
  /* border-top: 1px solid #eef0f3; */
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.roi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #000000;
}

.roi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ----------------------------
   MINI browser
---------------------------- */
.mini-header {
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f3;
  background: white;
}

.mini-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #111827;
}

/* make preview box a fixed-height flex column */
.mini-preview-box {
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* prevents stretching */
}

/* allow the JSON area to take remaining space and scroll */
.mini-preview-box .mini-pre {
  flex: 1;
  overflow: auto;      /* scroll inside */
  margin: 0;
  border-radius: 0;
}


.mini-subtitle {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

/* Left MINI samples panel: fixed height, grid scrolls */
.mini-samples-box {
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* keep the box fixed */
}

/* let the header be natural height */
.mini-samples-box .mini-header {
  flex: 0 0 auto;
}

/* grid takes the rest and scrolls */
.mini-samples-box .mini-grid {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden; /* optional */
  height: auto;       /* important: stop calc-based height */
}


.mini-thumb {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #f7f8fa;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  height: 150px;
  transition: box-shadow 0.08s ease, transform 0.08s ease, border-color 0.08s ease;
}

.mini-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.mini-thumb-cap {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  background: white;
  border-top: 1px solid #eef0f3;
}

.mini-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  border-color: #dbe3ee;
}

.mini-thumb.is-selected {
  border-color: hsl(204, 86%, 53%);
  box-shadow: 0 0 0 3px rgba(50,115,220,0.18), 0 12px 26px rgba(0,0,0,0.10);
}

.mini-pre {
  margin: 0;
  padding: 12px;
  background: #0b1020;
  color: #e5e7eb;
  overflow: auto;
  flex: 1;
  border-radius: 0;
  font-size: 0.8rem;
}


/* Prevent the MINI preview column from expanding the page */
#mini-browser .columns,
#mini-browser .column,
#mini-browser .box {
  min-width: 0;
}

/* Force the JSON area to scroll instead of stretching layout */
.mini-pre {
  max-width: 100%;
  overflow: auto;        /* both x + y */
  white-space: pre;      /* keep JSON formatting */
}

/* If your code element ever tries to stretch */
.mini-pre code {
  white-space: pre;
}

/* Add to index.css */
.coord-highlight {
  color: #d97706; /* A nice distinct orange */
  font-weight: 700;
  font-family: 'Roboto Mono', monospace; /* Monospace font for coordinates looks better */
  background: rgba(217, 119, 6, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

/* Gallery Selection Highlight */
.thumb.is-selected {
  border: 3px solid #d97706 !important;
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.4);
  transform: scale(1.02);
}

/* Coordinate Highlighting */
.coord-highlight {
  color: #d97706;
  font-weight: 700;
  font-family: 'Roboto Mono', monospace;
  background: rgba(217, 119, 6, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

/* Mini-browser Physics Card */
.physics-card {
  background: #f8fafc;
  border-left: 4px solid #d97706;
  padding: 15px;
  margin-bottom: 15px;
}
.interference-strip {
  display: flex;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

/* PIA Visualizer Styles */
/* Update these in your index.css */
.pia-select {
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid #e1e4e8;
  transition: all 0.2s ease;
  width: 100%;
  display: block;
}

.pia-select:hover { border-color: #d97706; }

.pia-select.is-active {
  border-color: #ff9d00 !important;
  box-shadow: 0 0 8px rgba(255, 157, 0, 0.5);
  transform: scale(1.05);
}

.comparison-flex {
  display: flex;
  gap: 12px;
  height: calc(100% - 40px);
  width: 100%;
}

.pia-terminal-text {
  color: #4ade80;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison-half {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid #1f2937;
  border-radius: 4px;
}

.comparison-half img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures square images fit without cropping */
}

.view-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 3px 7px;
  z-index: 10;
  letter-spacing: 1px;
}
/* ============================================================
   Journal-extension additions: acceptance banner, grouped link
   rows, reasoning comparison, QF-Bench stats.
   Legend colours match the annotation overlay in the grid figure.
   ============================================================ */
/*
.acceptance-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem auto 0.4rem;
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  border: 1px solid #b8e6c8;
  border-radius: 999px;
  background: #f2fbf5;
  font-family: 'Google Sans', sans-serif;
}
.acceptance-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.acceptance-text {
  color: #14532d;
  font-size: 0.98rem;
  font-weight: 600;
}

.journal-status-banner {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin: 0.15rem auto 0;
  padding: 0.28rem 0.75rem 0.28rem 0.35rem;
  border: 1px solid #d9dee8;
  border-radius: 999px;
  background: #f8f9fb;
  font-family: 'Google Sans', sans-serif;
}

.journal-status-pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e9edf4;
  color: #465166;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.journal-status-text {
  color: #5d6677;
  font-size: 0.86rem;
  font-weight: 600;
}

.conference-author-note {
  margin: 0.42rem auto 0.8rem;
  color: #7a8190;
  font-size: 0.76rem;
  line-height: 1.4;
}

.links-group-label {
  margin: 1.4rem 0 0.5rem;
  color: #6b7280;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.links-group-label.is-secondary { color: #9ca3af; }

/* Placeholder buttons: legible, obviously not yet live. */
.button.is-pending {
  background: transparent !important;
  border: 1px dashed #9ca3af !important;
  color: #6b7280 !important;
  cursor: default;
}
.button.is-pending:hover { background: #f3f4f6 !important; }
.pending-tag {
  margin-left: 0.45rem;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- reasoning comparison ---------- */
.reasoning-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 1.6rem 0 0.9rem;
}
@media screen and (max-width: 768px) {
  .reasoning-compare { grid-template-columns: 1fr; }
}
.reason-col {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.reason-head {
  padding: 0.6rem 0.9rem;
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.reason-head.is-template { background: #8a8f98; }
.reason-head.is-grounded { background: #3298dc; }
.reason-sub {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
}
.reason-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.95rem 1.05rem 0.8rem;
}
.reason-span {
  margin-bottom: 0.8rem;
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: justify;
}
.reason-meta {
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid #f3f4f6;
  color: #9ca3af;
  font-size: 0.76rem;
}
.reason-shared {
  padding: 0.85rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}
.reason-shared-label {
  display: block;
  margin-bottom: 0.4rem;
  color: #6b7280;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.reason-shared code {
  display: block;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  color: #374151;
  font-size: 0.79rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- QF-Bench ---------- */
.qf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin: 1.4rem 0 1.6rem;
}
@media screen and (max-width: 768px) {
  .qf-stats { grid-template-columns: repeat(2, 1fr); }
}
.qf-stat {
  padding: 0.95rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
}
.qf-num {
  display: block;
  color: #1f2937;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.qf-lab {
  display: block;
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.qf-table-wrap { overflow-x: auto; margin-bottom: 1.8rem; }
.qf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.qf-table th,
.qf-table td { padding: 0.5rem 0.7rem; text-align: right; }
.qf-table th:first-child,
.qf-table td:first-child { text-align: left; }
.qf-table thead th {
  border-bottom: 2px solid #d1d5db;
  color: #374151;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.qf-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.qf-table tbody tr:hover { background: #fafafa; }
.qf-table tfoot td {
  border-top: 2px solid #d1d5db;
  font-weight: 700;
}

.qf-figure { margin: 0; }
.qf-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.qf-figure figcaption {
  margin-top: 0.8rem;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}
.lg {
  display: inline-block;
  margin: 0 0.12rem;
  padding: 0.05rem 0.45rem;
  border-radius: 4px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}
.lg-mono  { background: #00b34a; }
.lg-few   { background: #00aaff; }
.lg-thick { background: #ff8c00; }

/* Hero teaser figure: was unstyled and rendered at natural size (full bleed).
   Capped to roughly half the viewport on desktop, full width on small screens. */
.hero-figure {
  display: block;
  width: 52%;
  min-width: 320px;
  max-width: 900px;
  height: auto;
  margin: 0.5rem auto 2.5rem;
}
@media screen and (max-width: 900px) {
  .hero-figure { width: 92%; }
}
*/
