
.layout {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

aside {
  width: 200px;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 8px;
}

aside label {
  display: block;
  margin: 8px 0;
}

#publicationList {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pub-card {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 6px;
}
.pub-card details pre {
  white-space: pre-wrap;       /* Allows line wrapping inside <pre> */
  word-break: break-word;      /* Breaks long words instead of stretching the card */
  overflow-x: auto;            /* Adds horizontal scroll for very long content */
  max-width: 100%;             /* Ensures it never exceeds the pub-card width */
  box-sizing: border-box;
}
details summary {
  cursor: pointer;
  font-weight: bold;
}

pre {
  background: #f0f0f0;
  padding: 10px;
  font-size: 13px;
  overflow-x: auto;
}

.pub-tag-container {
  margin-bottom: 8px;
}

.pub-tag {
  background-color: #ba0c2f;
  color: white;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  display: inline-block;
}
.pub-type-tag {
  background-color: #aaa;
  color: white;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  display: inline-block;
  margin-right: 6px;
}