.research-header {
  padding: 4rem 1.5rem 2rem;
}

.research-header-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.research-title {
  font-size: clamp(2.5rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.research-subtitle {
  font-size: 1rem;
  color: #555;
  max-width: 640px;
}

.research-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.7);
}

.research-main {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem 3rem;
}

.research-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.research-controls label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #444;
}

.research-controls input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  outline: none;
  font-size: 0.9rem;
}

.research-controls input[type="text"]:focus {
  border-color: rgba(0, 0, 0, 0.2);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  margin-right: 0.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 0.25rem;
}

.filter-pill.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.research-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.research-column {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
}

.research-column h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.column-desc {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 1.25rem;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.research-card {
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.research-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.15);
}

.research-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.research-card-meta {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.3rem;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.research-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f4f4f4;
  color: #555;
}

.tag-type-paper {
  background: #e8f2ff;
  color: #1853a3;
}

.tag-type-blog {
  background: #eafaf2;
  color: #1a7f43;
}

.tag-type-doc {
  background: #fef3c7;
  color: #92400e;
}

.research-notes {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
}

.notes-header {
  margin-bottom: 0.75rem;
}

.notes-header h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.notes-article-title {
  font-size: 0.85rem;
  color: #666;
}

#notesTextarea {
  width: 100%;
  min-height: 160px;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.9rem;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
}

#notesTextarea:focus {
  border-color: rgba(0, 0, 0, 0.2);
}

.notes-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#saveNotesButton {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.notes-status {
  font-size: 0.8rem;
  color: #777;
}

.research-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

@media (max-width: 960px) {
  .research-columns {
    grid-template-columns: 1fr;
  }

  .research-header {
    padding-top: 3rem;
  }
}


