.ts-unwoven-archive { 
  padding: 5%;
}
.ts-unwoven-archive__head { padding: 28px 16px 10px; }

.ts-unwoven-grid { 
  gap: 18px;
}

.ts-unwoven-grid--cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 16px;
}

.ts-unwoven-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 1%;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.ts-unwoven-card__media img{
  display:block;
  width:100%;
  height:100%;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
}

.ts-unwoven-card__body{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 14px 16px;
}

.ts-unwoven-card__title{
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.ts-unwoven-card__meta-wrapper,
.ts-unwoven-card__meta{
  margin: 0 0 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.ts-unwoven-card__meta-row{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.ts-unwoven-card__term-tier,
.ts-unwoven-card__term-role,
.ts-unwoven-card__term{
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.75;
}

.ts-unwoven-card__term-tier:last-child,
.ts-unwoven-card__term-role:last-child,
.ts-unwoven-card__term:last-child{
  margin-bottom: 0;
}

.ts-unwoven-card__term-tier a,
.ts-unwoven-card__term-role a,
.ts-unwoven-card__term a{
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: inline-block;
}

.ts-unwoven-card__excerpt{
  flex: 1;
  margin: 0 0 12px;
  opacity: 0.9;
}

.ts-unwoven-card__link{
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ts-unwoven-card__link:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.24);
}
.ts-unwoven-controls { padding: 0 16px 16px; }

.ts-unwoven-filters__row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.ts-unwoven-filters__search{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.95);
}

.ts-unwoven-filters__search::placeholder{
  color: rgba(255,255,255,0.5);
}

.ts-unwoven-filters__fields{
  display: flex;
  gap: 10px;
  flex: 1;
}

.ts-unwoven-filters__actions{
  display: flex;
  gap: 10px;
}

.ts-unwoven-filters__field{ 
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.ts-unwoven-filters__label{ font-size: 12px; opacity: 0.75; }

.ts-unwoven-filters__select{
  min-width: 170px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.95);
}

.ts-unwoven-filters__select option{
  background: #1a1a1a;
  color: rgba(255,255,255,0.95);
}

.ts-unwoven-filters__btn{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ts-unwoven-filters__btn:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
}

.ts-unwoven-filters__reset{
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ts-unwoven-filters__reset:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  opacity: 1;
}

.ts-unwoven-pagination ul{
  display: flex;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .ts-unwoven-grid--cards{
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ts-unwoven-archive { 
    padding: 3%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ts-unwoven-grid--cards{
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
  
  .ts-unwoven-archive { 
    padding: 2%;
  }
  
  .ts-unwoven-archive__head { 
    padding: 20px 12px 10px; 
  }
  
  .ts-unwoven-controls { 
    padding: 0 12px 12px; 
  }
  
  .ts-unwoven-filters__fields{
    flex-direction: column;
    width: 100%;
  }
  
  .ts-unwoven-filters__field{
    width: 100%;
  }
  
  .ts-unwoven-filters__select{
    width: 100%;
    min-width: unset;
  }
  
  .ts-unwoven-filters__actions{
    width: 100%;
  }
  
  .ts-unwoven-filters__btn,
  .ts-unwoven-filters__reset{
    flex: 1;
    text-align: center;
  }
  
  .ts-unwoven-card__title{
    font-size: 16px;
  }
  
  .ts-unwoven-card__media img{
    max-height: 250px;
  }
}
