.placeholder, .admonition.placeholder { border-left: 4px solid #c0392b; background: #fdf2f2; }
.admonition.placeholder > .admonition-title { background: #c0392b; }
.wy-nav-content { max-width: 960px; }
img.gif-demo { border: 1px solid #ddd; }

/* Retinothalamic Interactive Carousel */
.ng-question-box {
  background: #f0f7ff;
  border-left: 5px solid #0072b2;
  padding: 16px 20px;
  margin: 18px 0 24px 0;
  border-radius: 4px;
}
.ng-question-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1a365d;
}

.ng-retino-carousel {
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin: 28px 0 36px 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ng-carousel-header {
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 16px;
}
.ng-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ng-counter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
#ng-stage-counter {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}
.ng-nav-btn {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ng-nav-btn:hover {
  background: #0072b2;
  color: #ffffff;
  border-color: #0072b2;
}

.ng-toggle-group {
  display: flex;
  gap: 4px;
  background: #eaeaea;
  padding: 2px;
  border-radius: 6px;
}
.ng-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  color: #555;
}
.ng-toggle-btn.active {
  background: #ffffff;
  color: #0072b2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ng-pills-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.ng-pills-bar::-webkit-scrollbar {
  height: 4px;
}
.ng-pills-bar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}
.ng-pill {
  white-space: nowrap;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #555;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ng-pill:hover {
  background: #e4e4e4;
  color: #222;
}
.ng-pill.active {
  background: #0072b2;
  color: #ffffff;
  border-color: #0072b2;
  font-weight: 600;
}

.ng-carousel-body {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #e5e5e5;
}
@media (max-width: 820px) {
  .ng-carousel-body {
    flex-direction: column;
  }
}

.ng-visual-pane {
  flex: 1.1;
  background: #fdfdfd;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
}
.ng-visual-pane img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #eee;
}

.ng-info-pane {
  flex: 1.0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 480px;
}
.ng-stage-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
#ng-stage-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
}
#ng-stage-age {
  background: #e8f4fd;
  color: #0072b2;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.ng-operator-tag {
  font-size: 0.82rem;
  color: #666;
}
.ng-operator-tag code {
  color: #b8390e;
  font-weight: 600;
  background: #f8f8f8;
  padding: 1px 4px;
  border-radius: 3px;
}

.ng-info-section h4 {
  margin: 6px 0 2px 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
}
.ng-info-section p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #333;
}
.ng-info-section pre {
  margin: 4px 0 0 0;
  padding: 8px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #24292e;
  white-space: pre-wrap;
}

.ng-cli-banner {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ng-cli-banner pre {
  margin: 0;
  background: transparent;
  border: none;
  color: #9cdcfe;
  font-size: 0.8rem;
  line-height: 1.35;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-x: auto;
  flex: 1;
}
#ng-cli-copy-btn {
  background: #333;
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
#ng-cli-copy-btn:hover {
  background: #0072b2;
  border-color: #0072b2;
  color: #fff;
}

.ng-citation-footer {
  background: #f9f9f9;
  border-top: 1px solid #eaeaea;
  padding: 10px 18px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #555;
}
.ng-citation-footer strong {
  color: #333;
}

.ng-cond-jump {
  color: #0072b2;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}
.ng-cond-jump:hover {
  color: #d55e00;
}
