/* Publication list wrapper */
.scl-pub-display-section { 
  display: block;
  width: 80%;
  padding-left: 5%;
  padding-top: 5px;
}

.scl-pub-display-section ul {
  list-style: none !important;
  padding-left: 0;
}

.scl-pub-display-section li {
  margin-bottom: 1rem;
}

.scl-pub-display-section h4 {
  font-weight: 700;
}

/* TAB BAR */
.scl-publication-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;                    /* space between pills */

  padding: 0.5rem 0.75rem;
  margin-bottom: 1em;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  border-radius: 999px;           /* nice pill container */
  background: #f2f2f2;
  border: 1px solid #ccc;

  overflow-x: auto;               /* allow horizontal scroll if needed */
  overflow-y: hidden;

}

/* INDIVIDUAL TABS */
.scl-publication-tabs .scl-tab {
  flex: 0 0 auto;                 /* don’t stretch or shrink weirdly */
  white-space: nowrap;            /* keep label on one line */

  background: transparent;
  border: none;
  border-radius: 999px;           /* pill shape */
  
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  box-shadow: none !important;

  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
              box-shadow 0.15s ease, transform 0.1s ease;
}

.scl-publication-tabs .scl-tab:hover {
  background-color: #e0e0e0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.scl-publication-tabs .scl-tab:active {
  transform: translateY(1px);
}

/* Active tab */
.scl-publication-tabs .scl-tab.active {
  background-color: #555;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
  .scl-publication-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    border-radius: 16px;
  }
}

/* Mobile device changes*/
@media (max-width: 600px) {
  .scl-publication-tabs {
    flex-wrap: stretch;        /* fill rows */
    padding: 0.4rem;
    border-radius: 0;
  }

  .scl-publication-tabs .scl-tab {
    flex: 1 1 auto;         /* allow tabs to take full row if needed */
    text-align: center;
  }
}