/* ---------------- Scope index: case-file tab strip ---------------- */

.scope-index {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 4px 0;
  flex-wrap: wrap;
}
.scope-index::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 3%;
  right: 3%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
@media (max-width: 700px) {
  .scope-index::before { display: none; }
  .scope-index { justify-content: center; }
}

.scope-pin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.scope-pin-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--accent);
  font-size: 0.78rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.scope-pin:hover .scope-pin-num,
.scope-pin:focus-visible .scope-pin-num {
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 5px var(--accent-wash);
}
.scope-pin-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 84px;
  line-height: 1.25;
}
.scope-pin:hover .scope-pin-label,
.scope-pin:focus-visible .scope-pin-label { color: var(--text); }

/* ---------------- Limitation flash: jumped-to highlight ---------------- */

.limitation-flash {
  animation: limitationFlash 1.4s ease;
}
@keyframes limitationFlash {
  0% { background: var(--accent-wash); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .limitation-flash { animation: none; }
}

/* ---------------- Expandable test-case notes ---------------- */

.test-case-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.test-case-toggle:hover { border-color: var(--accent); background: var(--accent-wash); }

.test-case-panel {
  margin-top: 10px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent-soft);
  background: var(--panel-raised);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  animation: testCaseIn 0.25s ease;
}
.test-case-panel p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.test-case-panel p::before {
  content: 'FROM THE DEV LOG — ';
  color: var(--accent);
  letter-spacing: 0.04em;
}

@keyframes testCaseIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .test-case-panel { animation: none; }
}
